diff --git a/docs/resources/s3_accesskey.md b/docs/resources/s3_accesskey.md
index 6347216cc..dab2ccbf7 100644
--- a/docs/resources/s3_accesskey.md
+++ b/docs/resources/s3_accesskey.md
@@ -32,7 +32,6 @@ The following arguments are supported:
- `timeouts` - (Optional) Timeouts for this resource.
- `create` - (Optional)[string] Time to wait for the bucket to be created. Default is `10m`.
- `delete` - (Optional)[string] Time to wait for the bucket to be deleted. Default is `10m`.
-- `force_destroy` - (Optional)[bool] If true, the bucket and the contents of the bucket will be destroyed. Default is `false`.
## Import
diff --git a/go.mod b/go.mod
index 330c751ab..3c992aabb 100644
--- a/go.mod
+++ b/go.mod
@@ -39,7 +39,7 @@ require (
gopkg.in/yaml.v3 v3.0.1
)
-replace github.com/ionos-cloud/sdk-go-s3-management v1.0.0 => /home/radu/work/rubygeneration/sdk-go-s3-management
+replace github.com/ionos-cloud/sdk-go-s3-management v1.0.0 => /home/radu/work/sdk-go-s3-management
require (
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
diff --git a/internal/framework/services/s3management/resource_s3_accesskey.go b/internal/framework/services/s3management/resource_s3_accesskey.go
index 55e82e8e6..68102fe79 100644
--- a/internal/framework/services/s3management/resource_s3_accesskey.go
+++ b/internal/framework/services/s3management/resource_s3_accesskey.go
@@ -114,7 +114,7 @@ func (r *accesskeyResource) Create(ctx context.Context, req resource.CreateReque
defer cancel()
var accessKey = s3management.AccessKeyCreate{
- Properties: &s3management.AccessKeyProperties{
+ Properties: &s3management.AccessKey{
Description: data.Description.ValueStringPointer(),
},
}
@@ -182,7 +182,7 @@ func (r *accesskeyResource) Update(ctx context.Context, req resource.UpdateReque
defer cancel()
var accessKey = s3management.AccessKeyEnsure{
- Properties: &s3management.AccessKeyProperties{
+ Properties: &s3management.AccessKey{
Description: plan.Description.ValueStringPointer(),
},
}
diff --git a/services/s3management/accesskeys.go b/services/s3management/accesskeys.go
index dcb1f1779..0ab30dd7a 100644
--- a/services/s3management/accesskeys.go
+++ b/services/s3management/accesskeys.go
@@ -33,21 +33,21 @@ type AccessKeyDataSourceModel struct {
}
// GetAccessKey retrieves an accesskey
-func (c *Client) GetAccessKey(ctx context.Context, accessKeyID string) (s3management.AccessKey, *s3management.APIResponse, error) {
+func (c *Client) GetAccessKey(ctx context.Context, accessKeyID string) (s3management.AccessKeyRead, *s3management.APIResponse, error) {
accessKey, apiResponse, err := c.client.AccesskeysApi.AccesskeysFindById(ctx, accessKeyID).Execute()
apiResponse.LogInfo()
return accessKey, apiResponse, err
}
// ListAccessKeys retrieves all accesskeys
-func (c *Client) ListAccessKeys(ctx context.Context) (s3management.AccessKeyList, *s3management.APIResponse, error) {
+func (c *Client) ListAccessKeys(ctx context.Context) (s3management.AccessKeyReadList, *s3management.APIResponse, error) {
accessKeys, apiResponse, err := c.client.AccesskeysApi.AccesskeysGet(ctx).Execute()
apiResponse.LogInfo()
return accessKeys, apiResponse, err
}
// CreateAccessKey creates an accesskey
-func (c *Client) CreateAccessKey(ctx context.Context, accessKey s3management.AccessKeyCreate, timeout time.Duration) (s3management.AccessKey, *s3management.APIResponse, error) {
+func (c *Client) CreateAccessKey(ctx context.Context, accessKey s3management.AccessKeyCreate, timeout time.Duration) (s3management.AccessKeyRead, *s3management.APIResponse, error) {
accessKeyResponse, apiResponse, err := c.client.AccesskeysApi.AccesskeysPost(ctx).AccessKeyCreate(accessKey).Execute()
apiResponse.LogInfo()
@@ -66,7 +66,7 @@ func (c *Client) CreateAccessKey(ctx context.Context, accessKey s3management.Acc
}
// UpdateAccessKey updates an accesskey
-func (c *Client) UpdateAccessKey(ctx context.Context, accessKeyID string, accessKey s3management.AccessKeyEnsure, timeout time.Duration) (s3management.AccessKey, *s3management.APIResponse, error) {
+func (c *Client) UpdateAccessKey(ctx context.Context, accessKeyID string, accessKey s3management.AccessKeyEnsure, timeout time.Duration) (s3management.AccessKeyRead, *s3management.APIResponse, error) {
accessKeyResponse, apiResponse, err := c.client.AccesskeysApi.AccesskeysPut(ctx, accessKeyID).AccessKeyEnsure(accessKey).Execute()
apiResponse.LogInfo()
@@ -104,7 +104,7 @@ func (c *Client) DeleteAccessKey(ctx context.Context, accessKeyID string, timeou
}
// SetAccessKeyPropertiesToPlan sets accesskey properties from an SDK object to a AccesskeyResourceModel
-func SetAccessKeyPropertiesToPlan(plan *AccesskeyResourceModel, accessKey s3management.AccessKey) {
+func SetAccessKeyPropertiesToPlan(plan *AccesskeyResourceModel, accessKey s3management.AccessKeyRead) {
if accessKey.Properties != nil {
// Here we check the properties because based on the request not all are set and we do not want to overwrite with nil
@@ -130,7 +130,7 @@ func SetAccessKeyPropertiesToPlan(plan *AccesskeyResourceModel, accessKey s3mana
}
// SetAccessKeyPropertiesToDataSourcePlan sets accesskey properties from an SDK object to a AccessKeyDataSourceModel
-func SetAccessKeyPropertiesToDataSourcePlan(plan *AccessKeyDataSourceModel, accessKey s3management.AccessKey) {
+func SetAccessKeyPropertiesToDataSourcePlan(plan *AccessKeyDataSourceModel, accessKey s3management.AccessKeyRead) {
if accessKey.Properties != nil {
// Here we check the properties because based on the request not all are set and we do not want to overwrite with nil
diff --git a/services/s3management/regions.go b/services/s3management/regions.go
index a115ce12b..1116be58a 100644
--- a/services/s3management/regions.go
+++ b/services/s3management/regions.go
@@ -24,21 +24,21 @@ type capability struct {
}
// GetRegion retrieves a region
-func (c *Client) GetRegion(ctx context.Context, regionID string, depth float32) (s3management.Region, *s3management.APIResponse, error) {
+func (c *Client) GetRegion(ctx context.Context, regionID string, depth float32) (s3management.RegionRead, *s3management.APIResponse, error) {
region, apiResponse, err := c.client.RegionsApi.RegionsFindByRegion(ctx, regionID).Execute()
apiResponse.LogInfo()
return region, apiResponse, err
}
// ListRegions lists all regions
-func (c *Client) ListRegions(ctx context.Context) (s3management.RegionList, *s3management.APIResponse, error) {
+func (c *Client) ListRegions(ctx context.Context) (s3management.RegionReadList, *s3management.APIResponse, error) {
regions, apiResponse, err := c.client.RegionsApi.RegionsGet(ctx).Execute()
apiResponse.LogInfo()
return regions, apiResponse, err
}
// BuildRegionModelFromAPIResponse builds an RegionDataSourceModel from a region SDK object
-func BuildRegionModelFromAPIResponse(output *s3management.Region) *RegionDataSourceModel {
+func BuildRegionModelFromAPIResponse(output *s3management.RegionRead) *RegionDataSourceModel {
built := &RegionDataSourceModel{}
if output.Id != nil {
@@ -62,10 +62,10 @@ func BuildRegionModelFromAPIResponse(output *s3management.Region) *RegionDataSou
}
}
- if output.Properties.Storageclasses != nil {
- built.Storageclasses = make([]types.String, 0, len(*output.Properties.Storageclasses))
- for i := range *output.Properties.Storageclasses {
- built.Storageclasses = append(built.Storageclasses, types.StringPointerValue(&(*output.Properties.Storageclasses)[i]))
+ if output.Properties.StorageClasses != nil {
+ built.Storageclasses = make([]types.String, 0, len(*output.Properties.StorageClasses))
+ for i := range *output.Properties.StorageClasses {
+ built.Storageclasses = append(built.Storageclasses, types.StringPointerValue(&(*output.Properties.StorageClasses)[i]))
}
}
}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/LICENSE b/vendor/github.com/ionos-cloud/sdk-go-s3-management/LICENSE
new file mode 100644
index 000000000..261eeb9e9
--- /dev/null
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/README.md b/vendor/github.com/ionos-cloud/sdk-go-s3-management/README.md
index ca914283b..7b203c186 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/README.md
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/README.md
@@ -1,6 +1,8 @@
+[![Gitter](https://img.shields.io/gitter/room/ionos-cloud/sdk-general)](https://gitter.im/ionos-cloud/sdk-general)
+
# Go API client for ionoscloud
-S3 Management API is a RESTful API that manages the S3
+Object Storage Management API is a RESTful API that manages the object storage
service configuration for IONOS Cloud.
@@ -17,132 +19,113 @@ Install the following dependencies:
```shell
go get github.com/stretchr/testify/assert
+go get golang.org/x/oauth2
go get golang.org/x/net/context
+go get github.com/antihax/optional
```
Put the package under your project folder and add the following in import:
```golang
-import ionoscloud "github.com/ionos-cloud/ionoscloud_s3_management"
+import "./ionoscloud"
```
-To use a proxy, set the environment variable `HTTP_PROXY`:
+## Authentication
-```golang
-os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
-```
+All available server URLs are:
-## Configuration of Server URL
+- *https://s3.ionos.com* - Production
-Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification.
+By default, *https://s3.ionos.com* is used, however this can be overriden at authentication, either
+by setting the `IONOS_API_URL` environment variable or by specifying the `hostUrl` parameter when
+initializing the sdk client.
-### Select Server Configuration
-
-For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.
+The username and password or the authentication token can be manually specified when initializing
+the sdk client:
```golang
-ctx := context.WithValue(context.Background(), ionoscloud.ContextServerIndex, 1)
-```
-### Templated Server URL
+client := ionoscloud.NewAPIClient(ionoscloud.NewConfiguration(username, password, token, hostUrl))
-Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.
-
-```golang
-ctx := context.WithValue(context.Background(), ionoscloud.ContextServerVariables, map[string]string{
- "basePath": "v2",
-})
```
-Note, enum values are always validated and all unused variables are silently ignored.
+Environment variables can also be used. The sdk uses the following variables:
+- IONOS_TOKEN - login via token. This is the recommended way to authenticate.
+- IONOS_USERNAME - to specify the username used to login
+- IONOS_PASSWORD - to specify the password
+- IONOS_API_URL - to specify the API server URL
-## Documentation for API Endpoints
-
-All URIs are relative to *https://s3.ionos.com*
+In this case, the client configuration needs to be initialized using `NewConfigurationFromEnv()`.
-Class | Method | HTTP request | Description
------------- | ------------- | ------------- | -------------
-*AccesskeysApi* | [**AccesskeysDelete**](docs/api/AccesskeysApi.md#accesskeysdelete) | **Delete** /accesskeys/{accesskeyId} | Delete AccessKey
-*AccesskeysApi* | [**AccesskeysFindById**](docs/api/AccesskeysApi.md#accesskeysfindbyid) | **Get** /accesskeys/{accesskeyId} | Retrieve AccessKey
-*AccesskeysApi* | [**AccesskeysGet**](docs/api/AccesskeysApi.md#accesskeysget) | **Get** /accesskeys | Retrieve all Accesskeys
-*AccesskeysApi* | [**AccesskeysPost**](docs/api/AccesskeysApi.md#accesskeyspost) | **Post** /accesskeys | Create AccessKey
-*AccesskeysApi* | [**AccesskeysPut**](docs/api/AccesskeysApi.md#accesskeysput) | **Put** /accesskeys/{accesskeyId} | Ensure AccessKey
-*AccesskeysApi* | [**AccesskeysRenew**](docs/api/AccesskeysApi.md#accesskeysrenew) | **Put** /accesskeys/{accesskeyId}/renew | Ensure AccessKey
-*RegionsApi* | [**RegionsFindByRegion**](docs/api/RegionsApi.md#regionsfindbyregion) | **Get** /regions/{region} | Retrieve Region
-*RegionsApi* | [**RegionsGet**](docs/api/RegionsApi.md#regionsget) | **Get** /regions | Retrieve all Regions
-
-
-## Documentation For Models
+```golang
- - [AccessKey](docs/models/AccessKey.md)
- - [AccessKeyCreate](docs/models/AccessKeyCreate.md)
- - [AccessKeyEnsure](docs/models/AccessKeyEnsure.md)
- - [AccessKeyList](docs/models/AccessKeyList.md)
- - [AccessKeyListAllOf](docs/models/AccessKeyListAllOf.md)
- - [AccessKeyProperties](docs/models/AccessKeyProperties.md)
- - [Bucket](docs/models/Bucket.md)
- - [BucketCreate](docs/models/BucketCreate.md)
- - [BucketEnsure](docs/models/BucketEnsure.md)
- - [BucketRead](docs/models/BucketRead.md)
- - [BucketReadList](docs/models/BucketReadList.md)
- - [BucketReadListAllOf](docs/models/BucketReadListAllOf.md)
- - [Error](docs/models/Error.md)
- - [ErrorMessages](docs/models/ErrorMessages.md)
- - [Links](docs/models/Links.md)
- - [Metadata](docs/models/Metadata.md)
- - [MetadataWithStatus](docs/models/MetadataWithStatus.md)
- - [MetadataWithStatusAllOf](docs/models/MetadataWithStatusAllOf.md)
- - [MetadataWithSupportedRegions](docs/models/MetadataWithSupportedRegions.md)
- - [MetadataWithSupportedRegionsAllOf](docs/models/MetadataWithSupportedRegionsAllOf.md)
- - [Pagination](docs/models/Pagination.md)
- - [Region](docs/models/Region.md)
- - [RegionCreate](docs/models/RegionCreate.md)
- - [RegionEnsure](docs/models/RegionEnsure.md)
- - [RegionList](docs/models/RegionList.md)
- - [RegionListAllOf](docs/models/RegionListAllOf.md)
- - [RegionProperties](docs/models/RegionProperties.md)
- - [RegionPropertiesCapability](docs/models/RegionPropertiesCapability.md)
- - [StorageClass](docs/models/StorageClass.md)
- - [StorageClassCreate](docs/models/StorageClassCreate.md)
- - [StorageClassEnsure](docs/models/StorageClassEnsure.md)
- - [StorageClassList](docs/models/StorageClassList.md)
- - [StorageClassListAllOf](docs/models/StorageClassListAllOf.md)
- - [StorageClassProperties](docs/models/StorageClassProperties.md)
-
-
-## Documentation For Authorization
-
-
-Authentication schemes defined for the API:
-### tokenAuth
-
-- **Type**: HTTP Bearer token authentication
-
-Example
+client := ionoscloud.NewAPIClient(ionoscloud.NewConfigurationFromEnv())
-```golang
-auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_TOKEN_STRING")
-r, err := client.Service.Operation(auth, args)
```
-## Documentation for Utility Methods
+## Documentation for API Endpoints
-Due to the fact that model structure members are all pointers, this package contains
-a number of utility functions to easily obtain pointers to values of basic types.
-Each of these functions takes a value of the given basic type and returns a pointer to it:
+All URIs are relative to *https://s3.ionos.com*
+
+ API Endpoints table
-* `PtrBool`
-* `PtrInt`
-* `PtrInt32`
-* `PtrInt64`
-* `PtrFloat`
-* `PtrFloat32`
-* `PtrFloat64`
-* `PtrString`
-* `PtrTime`
-## Author
+| Class | Method | HTTP request | Description |
+| ------------- | ------------- | ------------- | ------------- |
+| AccesskeysApi | [**AccesskeysDelete**](docs/api/AccesskeysApi.md#AccesskeysDelete) | **Delete** /accesskeys/{accesskeyId} | Delete AccessKey |
+| AccesskeysApi | [**AccesskeysFindById**](docs/api/AccesskeysApi.md#AccesskeysFindById) | **Get** /accesskeys/{accesskeyId} | Retrieve AccessKey |
+| AccesskeysApi | [**AccesskeysGet**](docs/api/AccesskeysApi.md#AccesskeysGet) | **Get** /accesskeys | Retrieve all Accesskeys |
+| AccesskeysApi | [**AccesskeysPost**](docs/api/AccesskeysApi.md#AccesskeysPost) | **Post** /accesskeys | Create AccessKey |
+| AccesskeysApi | [**AccesskeysPut**](docs/api/AccesskeysApi.md#AccesskeysPut) | **Put** /accesskeys/{accesskeyId} | Ensure AccessKey |
+| AccesskeysApi | [**AccesskeysRenew**](docs/api/AccesskeysApi.md#AccesskeysRenew) | **Put** /accesskeys/{accesskeyId}/renew | Ensure AccessKey |
+| RegionsApi | [**RegionsFindByRegion**](docs/api/RegionsApi.md#RegionsFindByRegion) | **Get** /regions/{region} | Retrieve Region |
+| RegionsApi | [**RegionsGet**](docs/api/RegionsApi.md#RegionsGet) | **Get** /regions | Retrieve all Regions |
+
+## Documentation For Models
+All URIs are relative to *https://s3.ionos.com*
+
+API models list
+
+ - [AccessKey](docs/models/AccessKey)
+ - [AccessKeyCreate](docs/models/AccessKeyCreate)
+ - [AccessKeyEnsure](docs/models/AccessKeyEnsure)
+ - [AccessKeyRead](docs/models/AccessKeyRead)
+ - [AccessKeyReadList](docs/models/AccessKeyReadList)
+ - [AccessKeyReadListAllOf](docs/models/AccessKeyReadListAllOf)
+ - [Bucket](docs/models/Bucket)
+ - [BucketCreate](docs/models/BucketCreate)
+ - [BucketEnsure](docs/models/BucketEnsure)
+ - [BucketRead](docs/models/BucketRead)
+ - [BucketReadList](docs/models/BucketReadList)
+ - [BucketReadListAllOf](docs/models/BucketReadListAllOf)
+ - [Error](docs/models/Error)
+ - [ErrorMessages](docs/models/ErrorMessages)
+ - [Links](docs/models/Links)
+ - [Metadata](docs/models/Metadata)
+ - [MetadataWithStatus](docs/models/MetadataWithStatus)
+ - [MetadataWithStatusAllOf](docs/models/MetadataWithStatusAllOf)
+ - [MetadataWithSupportedRegions](docs/models/MetadataWithSupportedRegions)
+ - [MetadataWithSupportedRegionsAllOf](docs/models/MetadataWithSupportedRegionsAllOf)
+ - [Pagination](docs/models/Pagination)
+ - [Region](docs/models/Region)
+ - [RegionCapability](docs/models/RegionCapability)
+ - [RegionCreate](docs/models/RegionCreate)
+ - [RegionEnsure](docs/models/RegionEnsure)
+ - [RegionRead](docs/models/RegionRead)
+ - [RegionReadList](docs/models/RegionReadList)
+ - [RegionReadListAllOf](docs/models/RegionReadListAllOf)
+ - [StorageClass](docs/models/StorageClass)
+ - [StorageClassCreate](docs/models/StorageClassCreate)
+ - [StorageClassEnsure](docs/models/StorageClassEnsure)
+ - [StorageClassRead](docs/models/StorageClassRead)
+ - [StorageClassReadList](docs/models/StorageClassReadList)
+ - [StorageClassReadListAllOf](docs/models/StorageClassReadListAllOf)
+
+
+[[Back to API list]](#documentation-for-api-endpoints) [[Back to Model list]](#documentation-for-models)
+
+
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/api_accesskeys.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/api_accesskeys.go
index 587fe9ef7..854c58855 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/api_accesskeys.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/api_accesskeys.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -207,7 +207,7 @@ type ApiAccesskeysFindByIdRequest struct {
accesskeyId string
}
-func (r ApiAccesskeysFindByIdRequest) Execute() (AccessKey, *APIResponse, error) {
+func (r ApiAccesskeysFindByIdRequest) Execute() (AccessKeyRead, *APIResponse, error) {
return r.ApiService.AccesskeysFindByIdExecute(r)
}
@@ -228,16 +228,16 @@ func (a *AccesskeysApiService) AccesskeysFindById(ctx _context.Context, accesske
/*
* Execute executes the request
- * @return AccessKey
+ * @return AccessKeyRead
*/
-func (a *AccesskeysApiService) AccesskeysFindByIdExecute(r ApiAccesskeysFindByIdRequest) (AccessKey, *APIResponse, error) {
+func (a *AccesskeysApiService) AccesskeysFindByIdExecute(r ApiAccesskeysFindByIdRequest) (AccessKeyRead, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue AccessKey
+ localVarReturnValue AccessKeyRead
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccesskeysApiService.AccesskeysFindById")
@@ -408,7 +408,7 @@ func (r ApiAccesskeysGetRequest) FilterAccesskeyId(filterAccesskeyId string) Api
return r
}
-func (r ApiAccesskeysGetRequest) Execute() (AccessKeyList, *APIResponse, error) {
+func (r ApiAccesskeysGetRequest) Execute() (AccessKeyReadList, *APIResponse, error) {
return r.ApiService.AccesskeysGetExecute(r)
}
@@ -430,16 +430,16 @@ func (a *AccesskeysApiService) AccesskeysGet(ctx _context.Context) ApiAccesskeys
/*
* Execute executes the request
- * @return AccessKeyList
+ * @return AccessKeyReadList
*/
-func (a *AccesskeysApiService) AccesskeysGetExecute(r ApiAccesskeysGetRequest) (AccessKeyList, *APIResponse, error) {
+func (a *AccesskeysApiService) AccesskeysGetExecute(r ApiAccesskeysGetRequest) (AccessKeyReadList, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue AccessKeyList
+ localVarReturnValue AccessKeyReadList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccesskeysApiService.AccesskeysGet")
@@ -599,7 +599,7 @@ func (r ApiAccesskeysPostRequest) AccessKeyCreate(accessKeyCreate AccessKeyCreat
return r
}
-func (r ApiAccesskeysPostRequest) Execute() (AccessKey, *APIResponse, error) {
+func (r ApiAccesskeysPostRequest) Execute() (AccessKeyRead, *APIResponse, error) {
return r.ApiService.AccesskeysPostExecute(r)
}
@@ -622,16 +622,16 @@ func (a *AccesskeysApiService) AccesskeysPost(ctx _context.Context) ApiAccesskey
/*
* Execute executes the request
- * @return AccessKey
+ * @return AccessKeyRead
*/
-func (a *AccesskeysApiService) AccesskeysPostExecute(r ApiAccesskeysPostRequest) (AccessKey, *APIResponse, error) {
+func (a *AccesskeysApiService) AccesskeysPostExecute(r ApiAccesskeysPostRequest) (AccessKeyRead, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue AccessKey
+ localVarReturnValue AccessKeyRead
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccesskeysApiService.AccesskeysPost")
@@ -806,7 +806,7 @@ func (r ApiAccesskeysPutRequest) AccessKeyEnsure(accessKeyEnsure AccessKeyEnsure
return r
}
-func (r ApiAccesskeysPutRequest) Execute() (AccessKey, *APIResponse, error) {
+func (r ApiAccesskeysPutRequest) Execute() (AccessKeyRead, *APIResponse, error) {
return r.ApiService.AccesskeysPutExecute(r)
}
@@ -833,16 +833,16 @@ func (a *AccesskeysApiService) AccesskeysPut(ctx _context.Context, accesskeyId s
/*
* Execute executes the request
- * @return AccessKey
+ * @return AccessKeyRead
*/
-func (a *AccesskeysApiService) AccesskeysPutExecute(r ApiAccesskeysPutRequest) (AccessKey, *APIResponse, error) {
+func (a *AccesskeysApiService) AccesskeysPutExecute(r ApiAccesskeysPutRequest) (AccessKeyRead, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodPut
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue AccessKey
+ localVarReturnValue AccessKeyRead
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccesskeysApiService.AccesskeysPut")
@@ -938,7 +938,7 @@ func (a *AccesskeysApiService) AccesskeysPutExecute(r ApiAccesskeysPutRequest) (
}
newErr.model = v
}
- if localVarHTTPResponse.StatusCode == 409 {
+ if localVarHTTPResponse.StatusCode == 404 {
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
@@ -947,7 +947,7 @@ func (a *AccesskeysApiService) AccesskeysPutExecute(r ApiAccesskeysPutRequest) (
}
newErr.model = v
}
- if localVarHTTPResponse.StatusCode == 404 {
+ if localVarHTTPResponse.StatusCode == 409 {
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
@@ -1030,7 +1030,7 @@ type ApiAccesskeysRenewRequest struct {
accesskeyId string
}
-func (r ApiAccesskeysRenewRequest) Execute() (AccessKey, *APIResponse, error) {
+func (r ApiAccesskeysRenewRequest) Execute() (AccessKeyRead, *APIResponse, error) {
return r.ApiService.AccesskeysRenewExecute(r)
}
@@ -1052,16 +1052,16 @@ func (a *AccesskeysApiService) AccesskeysRenew(ctx _context.Context, accesskeyId
/*
* Execute executes the request
- * @return AccessKey
+ * @return AccessKeyRead
*/
-func (a *AccesskeysApiService) AccesskeysRenewExecute(r ApiAccesskeysRenewRequest) (AccessKey, *APIResponse, error) {
+func (a *AccesskeysApiService) AccesskeysRenewExecute(r ApiAccesskeysRenewRequest) (AccessKeyRead, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodPut
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue AccessKey
+ localVarReturnValue AccessKeyRead
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccesskeysApiService.AccesskeysRenew")
@@ -1152,7 +1152,7 @@ func (a *AccesskeysApiService) AccesskeysRenewExecute(r ApiAccesskeysRenewReques
}
newErr.model = v
}
- if localVarHTTPResponse.StatusCode == 409 {
+ if localVarHTTPResponse.StatusCode == 404 {
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
@@ -1161,7 +1161,7 @@ func (a *AccesskeysApiService) AccesskeysRenewExecute(r ApiAccesskeysRenewReques
}
newErr.model = v
}
- if localVarHTTPResponse.StatusCode == 404 {
+ if localVarHTTPResponse.StatusCode == 409 {
var v Error
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/api_regions.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/api_regions.go
index 6cb010101..52e2a5d30 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/api_regions.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/api_regions.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -33,7 +33,7 @@ type ApiRegionsFindByRegionRequest struct {
region string
}
-func (r ApiRegionsFindByRegionRequest) Execute() (Region, *APIResponse, error) {
+func (r ApiRegionsFindByRegionRequest) Execute() (RegionRead, *APIResponse, error) {
return r.ApiService.RegionsFindByRegionExecute(r)
}
@@ -54,16 +54,16 @@ func (a *RegionsApiService) RegionsFindByRegion(ctx _context.Context, region str
/*
* Execute executes the request
- * @return Region
+ * @return RegionRead
*/
-func (a *RegionsApiService) RegionsFindByRegionExecute(r ApiRegionsFindByRegionRequest) (Region, *APIResponse, error) {
+func (a *RegionsApiService) RegionsFindByRegionExecute(r ApiRegionsFindByRegionRequest) (RegionRead, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue Region
+ localVarReturnValue RegionRead
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegionsApiService.RegionsFindByRegion")
@@ -229,7 +229,7 @@ func (r ApiRegionsGetRequest) Limit(limit int32) ApiRegionsGetRequest {
return r
}
-func (r ApiRegionsGetRequest) Execute() (RegionList, *APIResponse, error) {
+func (r ApiRegionsGetRequest) Execute() (RegionReadList, *APIResponse, error) {
return r.ApiService.RegionsGetExecute(r)
}
@@ -251,16 +251,16 @@ func (a *RegionsApiService) RegionsGet(ctx _context.Context) ApiRegionsGetReques
/*
* Execute executes the request
- * @return RegionList
+ * @return RegionReadList
*/
-func (a *RegionsApiService) RegionsGetExecute(r ApiRegionsGetRequest) (RegionList, *APIResponse, error) {
+func (a *RegionsApiService) RegionsGetExecute(r ApiRegionsGetRequest) (RegionReadList, *APIResponse, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarFormFileName string
localVarFileName string
localVarFileBytes []byte
- localVarReturnValue RegionList
+ localVarReturnValue RegionReadList
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegionsApiService.RegionsGet")
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/client.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/client.go
index 3e00a62f9..a29104836 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/client.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/client.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -53,7 +53,7 @@ const (
Version = "1.0.0"
)
-// APIClient manages communication with the IONOS Cloud - S3 Management API API v0.1.0
+// APIClient manages communication with the IONOS Cloud - Object Storage Management API API v0.1.0
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/configuration.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/configuration.go
index 3fb06dd28..4165416e7 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/configuration.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/configuration.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -134,7 +134,7 @@ func NewConfiguration(username, password, token, hostUrl string) *Configuration
cfg := &Configuration{
DefaultHeader: make(map[string]string),
DefaultQueryParams: url.Values{},
- UserAgent: "ionos-cloud-ionoscloud_s3_management/v1.0.0",
+ UserAgent: "ionos-cloud-sdk-go-s3-management/v1.0.0",
Debug: false,
Username: username,
Password: password,
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/logger.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/logger.go
index 8e6f49cac..a6fb5483e 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/logger.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/logger.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key.go
index afb5eee0a..5abc7fb36 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,30 +14,30 @@ import (
"encoding/json"
)
-// AccessKey struct for AccessKey
+// AccessKey Per user access key.
type AccessKey struct {
- // The ID (UUID) of the AccessKey.
- Id *string `json:"id"`
- // The type of the resource.
- Type *string `json:"type"`
- // The URL of the AccessKey.
- Href *string `json:"href"`
- Metadata *MetadataWithSupportedRegions `json:"metadata"`
- Properties *AccessKeyProperties `json:"properties"`
+ // Description of the Access key.
+ Description *string `json:"description"`
+ // Access key metadata is a string of 92 characters.
+ AccessKey *string `json:"accessKey"`
+ // The secret key of the Access key.
+ SecretKey *string `json:"secretKey"`
+ // The canonical user ID which is valid for user-owned buckets.
+ CanonicalUserId *string `json:"canonicalUserId,omitempty"`
+ // The contract user ID which is valid for contract-owned buckets.
+ ContractUserId *string `json:"contractUserId,omitempty"`
}
// NewAccessKey instantiates a new AccessKey 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 NewAccessKey(id string, type_ string, href string, metadata MetadataWithSupportedRegions, properties AccessKeyProperties) *AccessKey {
+func NewAccessKey(description string, accessKey string, secretKey string) *AccessKey {
this := AccessKey{}
- this.Id = &id
- this.Type = &type_
- this.Href = &href
- this.Metadata = &metadata
- this.Properties = &properties
+ this.Description = &description
+ this.AccessKey = &accessKey
+ this.SecretKey = &secretKey
return &this
}
@@ -50,190 +50,190 @@ func NewAccessKeyWithDefaults() *AccessKey {
return &this
}
-// GetId returns the Id field value
+// GetDescription returns the Description field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKey) GetId() *string {
+func (o *AccessKey) GetDescription() *string {
if o == nil {
return nil
}
- return o.Id
+ return o.Description
}
-// GetIdOk returns a tuple with the Id field value
+// 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 *AccessKey) GetIdOk() (*string, bool) {
+func (o *AccessKey) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Id, true
+ return o.Description, true
}
-// SetId sets field value
-func (o *AccessKey) SetId(v string) {
+// SetDescription sets field value
+func (o *AccessKey) SetDescription(v string) {
- o.Id = &v
+ o.Description = &v
}
-// HasId returns a boolean if a field has been set.
-func (o *AccessKey) HasId() bool {
- if o != nil && o.Id != nil {
+// HasDescription returns a boolean if a field has been set.
+func (o *AccessKey) HasDescription() bool {
+ if o != nil && o.Description != nil {
return true
}
return false
}
-// GetType returns the Type field value
+// GetAccessKey returns the AccessKey field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKey) GetType() *string {
+func (o *AccessKey) GetAccessKey() *string {
if o == nil {
return nil
}
- return o.Type
+ return o.AccessKey
}
-// GetTypeOk returns a tuple with the Type field value
+// GetAccessKeyOk returns a tuple with the AccessKey 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 *AccessKey) GetTypeOk() (*string, bool) {
+func (o *AccessKey) GetAccessKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Type, true
+ return o.AccessKey, true
}
-// SetType sets field value
-func (o *AccessKey) SetType(v string) {
+// SetAccessKey sets field value
+func (o *AccessKey) SetAccessKey(v string) {
- o.Type = &v
+ o.AccessKey = &v
}
-// HasType returns a boolean if a field has been set.
-func (o *AccessKey) HasType() bool {
- if o != nil && o.Type != nil {
+// HasAccessKey returns a boolean if a field has been set.
+func (o *AccessKey) HasAccessKey() bool {
+ if o != nil && o.AccessKey != nil {
return true
}
return false
}
-// GetHref returns the Href field value
+// GetSecretKey returns the SecretKey field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKey) GetHref() *string {
+func (o *AccessKey) GetSecretKey() *string {
if o == nil {
return nil
}
- return o.Href
+ return o.SecretKey
}
-// GetHrefOk returns a tuple with the Href field value
+// GetSecretKeyOk returns a tuple with the SecretKey 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 *AccessKey) GetHrefOk() (*string, bool) {
+func (o *AccessKey) GetSecretKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Href, true
+ return o.SecretKey, true
}
-// SetHref sets field value
-func (o *AccessKey) SetHref(v string) {
+// SetSecretKey sets field value
+func (o *AccessKey) SetSecretKey(v string) {
- o.Href = &v
+ o.SecretKey = &v
}
-// HasHref returns a boolean if a field has been set.
-func (o *AccessKey) HasHref() bool {
- if o != nil && o.Href != nil {
+// HasSecretKey returns a boolean if a field has been set.
+func (o *AccessKey) HasSecretKey() bool {
+ if o != nil && o.SecretKey != nil {
return true
}
return false
}
-// GetMetadata returns the Metadata field value
-// If the value is explicit nil, the zero value for MetadataWithSupportedRegions will be returned
-func (o *AccessKey) GetMetadata() *MetadataWithSupportedRegions {
+// GetCanonicalUserId returns the CanonicalUserId field value
+// If the value is explicit nil, the zero value for string will be returned
+func (o *AccessKey) GetCanonicalUserId() *string {
if o == nil {
return nil
}
- return o.Metadata
+ return o.CanonicalUserId
}
-// GetMetadataOk returns a tuple with the Metadata field value
+// GetCanonicalUserIdOk returns a tuple with the CanonicalUserId 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 *AccessKey) GetMetadataOk() (*MetadataWithSupportedRegions, bool) {
+func (o *AccessKey) GetCanonicalUserIdOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Metadata, true
+ return o.CanonicalUserId, true
}
-// SetMetadata sets field value
-func (o *AccessKey) SetMetadata(v MetadataWithSupportedRegions) {
+// SetCanonicalUserId sets field value
+func (o *AccessKey) SetCanonicalUserId(v string) {
- o.Metadata = &v
+ o.CanonicalUserId = &v
}
-// HasMetadata returns a boolean if a field has been set.
-func (o *AccessKey) HasMetadata() bool {
- if o != nil && o.Metadata != nil {
+// HasCanonicalUserId returns a boolean if a field has been set.
+func (o *AccessKey) HasCanonicalUserId() bool {
+ if o != nil && o.CanonicalUserId != nil {
return true
}
return false
}
-// GetProperties returns the Properties field value
-// If the value is explicit nil, the zero value for AccessKeyProperties will be returned
-func (o *AccessKey) GetProperties() *AccessKeyProperties {
+// GetContractUserId returns the ContractUserId field value
+// If the value is explicit nil, the zero value for string will be returned
+func (o *AccessKey) GetContractUserId() *string {
if o == nil {
return nil
}
- return o.Properties
+ return o.ContractUserId
}
-// GetPropertiesOk returns a tuple with the Properties field value
+// GetContractUserIdOk returns a tuple with the ContractUserId 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 *AccessKey) GetPropertiesOk() (*AccessKeyProperties, bool) {
+func (o *AccessKey) GetContractUserIdOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Properties, true
+ return o.ContractUserId, true
}
-// SetProperties sets field value
-func (o *AccessKey) SetProperties(v AccessKeyProperties) {
+// SetContractUserId sets field value
+func (o *AccessKey) SetContractUserId(v string) {
- o.Properties = &v
+ o.ContractUserId = &v
}
-// HasProperties returns a boolean if a field has been set.
-func (o *AccessKey) HasProperties() bool {
- if o != nil && o.Properties != nil {
+// HasContractUserId returns a boolean if a field has been set.
+func (o *AccessKey) HasContractUserId() bool {
+ if o != nil && o.ContractUserId != nil {
return true
}
@@ -242,24 +242,24 @@ func (o *AccessKey) HasProperties() bool {
func (o AccessKey) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
- if o.Id != nil {
- toSerialize["id"] = o.Id
+ if o.Description != nil {
+ toSerialize["description"] = o.Description
}
- if o.Type != nil {
- toSerialize["type"] = o.Type
+ if o.AccessKey != nil {
+ toSerialize["accessKey"] = o.AccessKey
}
- if o.Href != nil {
- toSerialize["href"] = o.Href
+ if o.SecretKey != nil {
+ toSerialize["secretKey"] = o.SecretKey
}
- if o.Metadata != nil {
- toSerialize["metadata"] = o.Metadata
+ if o.CanonicalUserId != nil {
+ toSerialize["canonicalUserId"] = o.CanonicalUserId
}
- if o.Properties != nil {
- toSerialize["properties"] = o.Properties
+ if o.ContractUserId != nil {
+ toSerialize["contractUserId"] = o.ContractUserId
}
return json.Marshal(toSerialize)
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_create.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_create.go
index 6224a3284..edcb5b2ce 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_create.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_create.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -18,14 +18,14 @@ import (
type AccessKeyCreate struct {
// Metadata
Metadata *map[string]interface{} `json:"metadata,omitempty"`
- Properties *AccessKeyProperties `json:"properties"`
+ Properties *AccessKey `json:"properties"`
}
// NewAccessKeyCreate instantiates a new AccessKeyCreate 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 NewAccessKeyCreate(properties AccessKeyProperties) *AccessKeyCreate {
+func NewAccessKeyCreate(properties AccessKey) *AccessKeyCreate {
this := AccessKeyCreate{}
this.Properties = &properties
@@ -80,8 +80,8 @@ func (o *AccessKeyCreate) HasMetadata() bool {
}
// GetProperties returns the Properties field value
-// If the value is explicit nil, the zero value for AccessKeyProperties will be returned
-func (o *AccessKeyCreate) GetProperties() *AccessKeyProperties {
+// If the value is explicit nil, the zero value for AccessKey will be returned
+func (o *AccessKeyCreate) GetProperties() *AccessKey {
if o == nil {
return nil
}
@@ -93,7 +93,7 @@ func (o *AccessKeyCreate) GetProperties() *AccessKeyProperties {
// 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 *AccessKeyCreate) GetPropertiesOk() (*AccessKeyProperties, bool) {
+func (o *AccessKeyCreate) GetPropertiesOk() (*AccessKey, bool) {
if o == nil {
return nil, false
}
@@ -102,7 +102,7 @@ func (o *AccessKeyCreate) GetPropertiesOk() (*AccessKeyProperties, bool) {
}
// SetProperties sets field value
-func (o *AccessKeyCreate) SetProperties(v AccessKeyProperties) {
+func (o *AccessKeyCreate) SetProperties(v AccessKey) {
o.Properties = &v
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_ensure.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_ensure.go
index 2e24bd6c5..559603b1a 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_ensure.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_ensure.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -20,14 +20,14 @@ type AccessKeyEnsure struct {
Id *string `json:"id"`
// Metadata
Metadata *map[string]interface{} `json:"metadata,omitempty"`
- Properties *AccessKeyProperties `json:"properties"`
+ Properties *AccessKey `json:"properties"`
}
// NewAccessKeyEnsure instantiates a new AccessKeyEnsure 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 NewAccessKeyEnsure(id string, properties AccessKeyProperties) *AccessKeyEnsure {
+func NewAccessKeyEnsure(id string, properties AccessKey) *AccessKeyEnsure {
this := AccessKeyEnsure{}
this.Id = &id
@@ -121,8 +121,8 @@ func (o *AccessKeyEnsure) HasMetadata() bool {
}
// GetProperties returns the Properties field value
-// If the value is explicit nil, the zero value for AccessKeyProperties will be returned
-func (o *AccessKeyEnsure) GetProperties() *AccessKeyProperties {
+// If the value is explicit nil, the zero value for AccessKey will be returned
+func (o *AccessKeyEnsure) GetProperties() *AccessKey {
if o == nil {
return nil
}
@@ -134,7 +134,7 @@ func (o *AccessKeyEnsure) GetProperties() *AccessKeyProperties {
// 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 *AccessKeyEnsure) GetPropertiesOk() (*AccessKeyProperties, bool) {
+func (o *AccessKeyEnsure) GetPropertiesOk() (*AccessKey, bool) {
if o == nil {
return nil, false
}
@@ -143,7 +143,7 @@ func (o *AccessKeyEnsure) GetPropertiesOk() (*AccessKeyProperties, bool) {
}
// SetProperties sets field value
-func (o *AccessKeyEnsure) SetProperties(v AccessKeyProperties) {
+func (o *AccessKeyEnsure) SetProperties(v AccessKey) {
o.Properties = &v
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_properties.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_properties.go
deleted file mode 100644
index 7b0734baa..000000000
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_properties.go
+++ /dev/null
@@ -1,302 +0,0 @@
-/*
- * IONOS Cloud - S3 Management API
- *
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
- *
- * API version: 0.1.0
- */
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package ionoscloud
-
-import (
- "encoding/json"
-)
-
-// AccessKeyProperties Per user access key.
-type AccessKeyProperties struct {
- // Description of the Access key.
- Description *string `json:"description"`
- // Access key metadata is a string of 92 characters.
- AccessKey *string `json:"accessKey"`
- // The secret key of the Access key.
- SecretKey *string `json:"secretKey"`
- // The canonical user ID which is valid for user-owned buckets.
- CanonicalUserId *string `json:"canonicalUserId,omitempty"`
- // The contract user ID which is valid for contract-owned buckets.
- ContractUserId *string `json:"contractUserId,omitempty"`
-}
-
-// NewAccessKeyProperties instantiates a new AccessKeyProperties 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 NewAccessKeyProperties(description string, accessKey string, secretKey string) *AccessKeyProperties {
- this := AccessKeyProperties{}
-
- this.Description = &description
- this.AccessKey = &accessKey
- this.SecretKey = &secretKey
-
- return &this
-}
-
-// NewAccessKeyPropertiesWithDefaults instantiates a new AccessKeyProperties 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 NewAccessKeyPropertiesWithDefaults() *AccessKeyProperties {
- this := AccessKeyProperties{}
- return &this
-}
-
-// GetDescription returns the Description field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyProperties) 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 *AccessKeyProperties) GetDescriptionOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Description, true
-}
-
-// SetDescription sets field value
-func (o *AccessKeyProperties) SetDescription(v string) {
-
- o.Description = &v
-
-}
-
-// HasDescription returns a boolean if a field has been set.
-func (o *AccessKeyProperties) HasDescription() bool {
- if o != nil && o.Description != nil {
- return true
- }
-
- return false
-}
-
-// GetAccessKey returns the AccessKey field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyProperties) GetAccessKey() *string {
- if o == nil {
- return nil
- }
-
- return o.AccessKey
-
-}
-
-// GetAccessKeyOk returns a tuple with the AccessKey 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 *AccessKeyProperties) GetAccessKeyOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.AccessKey, true
-}
-
-// SetAccessKey sets field value
-func (o *AccessKeyProperties) SetAccessKey(v string) {
-
- o.AccessKey = &v
-
-}
-
-// HasAccessKey returns a boolean if a field has been set.
-func (o *AccessKeyProperties) HasAccessKey() bool {
- if o != nil && o.AccessKey != nil {
- return true
- }
-
- return false
-}
-
-// GetSecretKey returns the SecretKey field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyProperties) GetSecretKey() *string {
- if o == nil {
- return nil
- }
-
- return o.SecretKey
-
-}
-
-// GetSecretKeyOk returns a tuple with the SecretKey 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 *AccessKeyProperties) GetSecretKeyOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.SecretKey, true
-}
-
-// SetSecretKey sets field value
-func (o *AccessKeyProperties) SetSecretKey(v string) {
-
- o.SecretKey = &v
-
-}
-
-// HasSecretKey returns a boolean if a field has been set.
-func (o *AccessKeyProperties) HasSecretKey() bool {
- if o != nil && o.SecretKey != nil {
- return true
- }
-
- return false
-}
-
-// GetCanonicalUserId returns the CanonicalUserId field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyProperties) GetCanonicalUserId() *string {
- if o == nil {
- return nil
- }
-
- return o.CanonicalUserId
-
-}
-
-// GetCanonicalUserIdOk returns a tuple with the CanonicalUserId 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 *AccessKeyProperties) GetCanonicalUserIdOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.CanonicalUserId, true
-}
-
-// SetCanonicalUserId sets field value
-func (o *AccessKeyProperties) SetCanonicalUserId(v string) {
-
- o.CanonicalUserId = &v
-
-}
-
-// HasCanonicalUserId returns a boolean if a field has been set.
-func (o *AccessKeyProperties) HasCanonicalUserId() bool {
- if o != nil && o.CanonicalUserId != nil {
- return true
- }
-
- return false
-}
-
-// GetContractUserId returns the ContractUserId field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyProperties) GetContractUserId() *string {
- if o == nil {
- return nil
- }
-
- return o.ContractUserId
-
-}
-
-// GetContractUserIdOk returns a tuple with the ContractUserId 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 *AccessKeyProperties) GetContractUserIdOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.ContractUserId, true
-}
-
-// SetContractUserId sets field value
-func (o *AccessKeyProperties) SetContractUserId(v string) {
-
- o.ContractUserId = &v
-
-}
-
-// HasContractUserId returns a boolean if a field has been set.
-func (o *AccessKeyProperties) HasContractUserId() bool {
- if o != nil && o.ContractUserId != nil {
- return true
- }
-
- return false
-}
-
-func (o AccessKeyProperties) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]interface{}{}
- if o.Description != nil {
- toSerialize["description"] = o.Description
- }
-
- if o.AccessKey != nil {
- toSerialize["accessKey"] = o.AccessKey
- }
-
- if o.SecretKey != nil {
- toSerialize["secretKey"] = o.SecretKey
- }
-
- if o.CanonicalUserId != nil {
- toSerialize["canonicalUserId"] = o.CanonicalUserId
- }
-
- if o.ContractUserId != nil {
- toSerialize["contractUserId"] = o.ContractUserId
- }
-
- return json.Marshal(toSerialize)
-}
-
-type NullableAccessKeyProperties struct {
- value *AccessKeyProperties
- isSet bool
-}
-
-func (v NullableAccessKeyProperties) Get() *AccessKeyProperties {
- return v.value
-}
-
-func (v *NullableAccessKeyProperties) Set(val *AccessKeyProperties) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableAccessKeyProperties) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableAccessKeyProperties) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableAccessKeyProperties(val *AccessKeyProperties) *NullableAccessKeyProperties {
- return &NullableAccessKeyProperties{value: val, isSet: true}
-}
-
-func (v NullableAccessKeyProperties) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableAccessKeyProperties) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read.go
new file mode 100644
index 000000000..2550ede3c
--- /dev/null
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read.go
@@ -0,0 +1,302 @@
+/*
+ * IONOS Cloud - Object Storage Management API
+ *
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
+ *
+ * API version: 0.1.0
+ */
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ionoscloud
+
+import (
+ "encoding/json"
+)
+
+// AccessKeyRead struct for AccessKeyRead
+type AccessKeyRead struct {
+ // The ID (UUID) of the AccessKey.
+ Id *string `json:"id"`
+ // The type of the resource.
+ Type *string `json:"type"`
+ // The URL of the AccessKey.
+ Href *string `json:"href"`
+ Metadata *MetadataWithSupportedRegions `json:"metadata"`
+ Properties *AccessKey `json:"properties"`
+}
+
+// NewAccessKeyRead instantiates a new AccessKeyRead 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 NewAccessKeyRead(id string, type_ string, href string, metadata MetadataWithSupportedRegions, properties AccessKey) *AccessKeyRead {
+ this := AccessKeyRead{}
+
+ this.Id = &id
+ this.Type = &type_
+ this.Href = &href
+ this.Metadata = &metadata
+ this.Properties = &properties
+
+ return &this
+}
+
+// NewAccessKeyReadWithDefaults instantiates a new AccessKeyRead 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 NewAccessKeyReadWithDefaults() *AccessKeyRead {
+ this := AccessKeyRead{}
+ return &this
+}
+
+// GetId returns the Id field value
+// If the value is explicit nil, the zero value for string will be returned
+func (o *AccessKeyRead) 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 *AccessKeyRead) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Id, true
+}
+
+// SetId sets field value
+func (o *AccessKeyRead) SetId(v string) {
+
+ o.Id = &v
+
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *AccessKeyRead) 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 *AccessKeyRead) 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 *AccessKeyRead) GetTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Type, true
+}
+
+// SetType sets field value
+func (o *AccessKeyRead) SetType(v string) {
+
+ o.Type = &v
+
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *AccessKeyRead) 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 *AccessKeyRead) 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 *AccessKeyRead) GetHrefOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Href, true
+}
+
+// SetHref sets field value
+func (o *AccessKeyRead) SetHref(v string) {
+
+ o.Href = &v
+
+}
+
+// HasHref returns a boolean if a field has been set.
+func (o *AccessKeyRead) 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 MetadataWithSupportedRegions will be returned
+func (o *AccessKeyRead) GetMetadata() *MetadataWithSupportedRegions {
+ 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 *AccessKeyRead) GetMetadataOk() (*MetadataWithSupportedRegions, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Metadata, true
+}
+
+// SetMetadata sets field value
+func (o *AccessKeyRead) SetMetadata(v MetadataWithSupportedRegions) {
+
+ o.Metadata = &v
+
+}
+
+// HasMetadata returns a boolean if a field has been set.
+func (o *AccessKeyRead) 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 AccessKey will be returned
+func (o *AccessKeyRead) GetProperties() *AccessKey {
+ 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 *AccessKeyRead) GetPropertiesOk() (*AccessKey, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Properties, true
+}
+
+// SetProperties sets field value
+func (o *AccessKeyRead) SetProperties(v AccessKey) {
+
+ o.Properties = &v
+
+}
+
+// HasProperties returns a boolean if a field has been set.
+func (o *AccessKeyRead) HasProperties() bool {
+ if o != nil && o.Properties != nil {
+ return true
+ }
+
+ return false
+}
+
+func (o AccessKeyRead) 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 NullableAccessKeyRead struct {
+ value *AccessKeyRead
+ isSet bool
+}
+
+func (v NullableAccessKeyRead) Get() *AccessKeyRead {
+ return v.value
+}
+
+func (v *NullableAccessKeyRead) Set(val *AccessKeyRead) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableAccessKeyRead) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableAccessKeyRead) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableAccessKeyRead(val *AccessKeyRead) *NullableAccessKeyRead {
+ return &NullableAccessKeyRead{value: val, isSet: true}
+}
+
+func (v NullableAccessKeyRead) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableAccessKeyRead) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_list.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read_list.go
similarity index 67%
rename from vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_list.go
rename to vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read_list.go
index ef44a9c40..3e942b7b2 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_list.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read_list.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,8 +14,8 @@ import (
"encoding/json"
)
-// AccessKeyList struct for AccessKeyList
-type AccessKeyList struct {
+// AccessKeyReadList struct for AccessKeyReadList
+type AccessKeyReadList struct {
// ID of the list of AccessKey resources.
Id *string `json:"id"`
// The type of the resource.
@@ -23,7 +23,7 @@ type AccessKeyList struct {
// The URL of the list of AccessKey resources.
Href *string `json:"href"`
// The list of AccessKey resources.
- Items *[]AccessKey `json:"items,omitempty"`
+ Items *[]AccessKeyRead `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).
@@ -31,12 +31,12 @@ type AccessKeyList struct {
Links *Links `json:"_links"`
}
-// NewAccessKeyList instantiates a new AccessKeyList object
+// NewAccessKeyReadList instantiates a new AccessKeyReadList 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 NewAccessKeyList(id string, type_ string, href string, offset int32, limit int32, links Links) *AccessKeyList {
- this := AccessKeyList{}
+func NewAccessKeyReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *AccessKeyReadList {
+ this := AccessKeyReadList{}
this.Id = &id
this.Type = &type_
@@ -48,17 +48,17 @@ func NewAccessKeyList(id string, type_ string, href string, offset int32, limit
return &this
}
-// NewAccessKeyListWithDefaults instantiates a new AccessKeyList object
+// NewAccessKeyReadListWithDefaults instantiates a new AccessKeyReadList 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 NewAccessKeyListWithDefaults() *AccessKeyList {
- this := AccessKeyList{}
+func NewAccessKeyReadListWithDefaults() *AccessKeyReadList {
+ this := AccessKeyReadList{}
return &this
}
// GetId returns the Id field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyList) GetId() *string {
+func (o *AccessKeyReadList) GetId() *string {
if o == nil {
return nil
}
@@ -70,7 +70,7 @@ func (o *AccessKeyList) GetId() *string {
// 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 *AccessKeyList) GetIdOk() (*string, bool) {
+func (o *AccessKeyReadList) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -79,14 +79,14 @@ func (o *AccessKeyList) GetIdOk() (*string, bool) {
}
// SetId sets field value
-func (o *AccessKeyList) SetId(v string) {
+func (o *AccessKeyReadList) SetId(v string) {
o.Id = &v
}
// HasId returns a boolean if a field has been set.
-func (o *AccessKeyList) HasId() bool {
+func (o *AccessKeyReadList) HasId() bool {
if o != nil && o.Id != nil {
return true
}
@@ -96,7 +96,7 @@ func (o *AccessKeyList) HasId() bool {
// GetType returns the Type field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyList) GetType() *string {
+func (o *AccessKeyReadList) GetType() *string {
if o == nil {
return nil
}
@@ -108,7 +108,7 @@ func (o *AccessKeyList) GetType() *string {
// 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 *AccessKeyList) GetTypeOk() (*string, bool) {
+func (o *AccessKeyReadList) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -117,14 +117,14 @@ func (o *AccessKeyList) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *AccessKeyList) SetType(v string) {
+func (o *AccessKeyReadList) SetType(v string) {
o.Type = &v
}
// HasType returns a boolean if a field has been set.
-func (o *AccessKeyList) HasType() bool {
+func (o *AccessKeyReadList) HasType() bool {
if o != nil && o.Type != nil {
return true
}
@@ -134,7 +134,7 @@ func (o *AccessKeyList) HasType() bool {
// GetHref returns the Href field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyList) GetHref() *string {
+func (o *AccessKeyReadList) GetHref() *string {
if o == nil {
return nil
}
@@ -146,7 +146,7 @@ func (o *AccessKeyList) GetHref() *string {
// 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 *AccessKeyList) GetHrefOk() (*string, bool) {
+func (o *AccessKeyReadList) GetHrefOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -155,14 +155,14 @@ func (o *AccessKeyList) GetHrefOk() (*string, bool) {
}
// SetHref sets field value
-func (o *AccessKeyList) SetHref(v string) {
+func (o *AccessKeyReadList) SetHref(v string) {
o.Href = &v
}
// HasHref returns a boolean if a field has been set.
-func (o *AccessKeyList) HasHref() bool {
+func (o *AccessKeyReadList) HasHref() bool {
if o != nil && o.Href != nil {
return true
}
@@ -171,8 +171,8 @@ func (o *AccessKeyList) HasHref() bool {
}
// GetItems returns the Items field value
-// If the value is explicit nil, the zero value for []AccessKey will be returned
-func (o *AccessKeyList) GetItems() *[]AccessKey {
+// If the value is explicit nil, the zero value for []AccessKeyRead will be returned
+func (o *AccessKeyReadList) GetItems() *[]AccessKeyRead {
if o == nil {
return nil
}
@@ -184,7 +184,7 @@ func (o *AccessKeyList) GetItems() *[]AccessKey {
// 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 *AccessKeyList) GetItemsOk() (*[]AccessKey, bool) {
+func (o *AccessKeyReadList) GetItemsOk() (*[]AccessKeyRead, bool) {
if o == nil {
return nil, false
}
@@ -193,14 +193,14 @@ func (o *AccessKeyList) GetItemsOk() (*[]AccessKey, bool) {
}
// SetItems sets field value
-func (o *AccessKeyList) SetItems(v []AccessKey) {
+func (o *AccessKeyReadList) SetItems(v []AccessKeyRead) {
o.Items = &v
}
// HasItems returns a boolean if a field has been set.
-func (o *AccessKeyList) HasItems() bool {
+func (o *AccessKeyReadList) HasItems() bool {
if o != nil && o.Items != nil {
return true
}
@@ -210,7 +210,7 @@ func (o *AccessKeyList) HasItems() bool {
// GetOffset returns the Offset field value
// If the value is explicit nil, the zero value for int32 will be returned
-func (o *AccessKeyList) GetOffset() *int32 {
+func (o *AccessKeyReadList) GetOffset() *int32 {
if o == nil {
return nil
}
@@ -222,7 +222,7 @@ func (o *AccessKeyList) GetOffset() *int32 {
// 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 *AccessKeyList) GetOffsetOk() (*int32, bool) {
+func (o *AccessKeyReadList) GetOffsetOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -231,14 +231,14 @@ func (o *AccessKeyList) GetOffsetOk() (*int32, bool) {
}
// SetOffset sets field value
-func (o *AccessKeyList) SetOffset(v int32) {
+func (o *AccessKeyReadList) SetOffset(v int32) {
o.Offset = &v
}
// HasOffset returns a boolean if a field has been set.
-func (o *AccessKeyList) HasOffset() bool {
+func (o *AccessKeyReadList) HasOffset() bool {
if o != nil && o.Offset != nil {
return true
}
@@ -248,7 +248,7 @@ func (o *AccessKeyList) HasOffset() bool {
// GetLimit returns the Limit field value
// If the value is explicit nil, the zero value for int32 will be returned
-func (o *AccessKeyList) GetLimit() *int32 {
+func (o *AccessKeyReadList) GetLimit() *int32 {
if o == nil {
return nil
}
@@ -260,7 +260,7 @@ func (o *AccessKeyList) GetLimit() *int32 {
// 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 *AccessKeyList) GetLimitOk() (*int32, bool) {
+func (o *AccessKeyReadList) GetLimitOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -269,14 +269,14 @@ func (o *AccessKeyList) GetLimitOk() (*int32, bool) {
}
// SetLimit sets field value
-func (o *AccessKeyList) SetLimit(v int32) {
+func (o *AccessKeyReadList) SetLimit(v int32) {
o.Limit = &v
}
// HasLimit returns a boolean if a field has been set.
-func (o *AccessKeyList) HasLimit() bool {
+func (o *AccessKeyReadList) HasLimit() bool {
if o != nil && o.Limit != nil {
return true
}
@@ -286,7 +286,7 @@ func (o *AccessKeyList) HasLimit() bool {
// GetLinks returns the Links field value
// If the value is explicit nil, the zero value for Links will be returned
-func (o *AccessKeyList) GetLinks() *Links {
+func (o *AccessKeyReadList) GetLinks() *Links {
if o == nil {
return nil
}
@@ -298,7 +298,7 @@ func (o *AccessKeyList) GetLinks() *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 *AccessKeyList) GetLinksOk() (*Links, bool) {
+func (o *AccessKeyReadList) GetLinksOk() (*Links, bool) {
if o == nil {
return nil, false
}
@@ -307,14 +307,14 @@ func (o *AccessKeyList) GetLinksOk() (*Links, bool) {
}
// SetLinks sets field value
-func (o *AccessKeyList) SetLinks(v Links) {
+func (o *AccessKeyReadList) SetLinks(v Links) {
o.Links = &v
}
// HasLinks returns a boolean if a field has been set.
-func (o *AccessKeyList) HasLinks() bool {
+func (o *AccessKeyReadList) HasLinks() bool {
if o != nil && o.Links != nil {
return true
}
@@ -322,7 +322,7 @@ func (o *AccessKeyList) HasLinks() bool {
return false
}
-func (o AccessKeyList) MarshalJSON() ([]byte, error) {
+func (o AccessKeyReadList) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
@@ -355,38 +355,38 @@ func (o AccessKeyList) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-type NullableAccessKeyList struct {
- value *AccessKeyList
+type NullableAccessKeyReadList struct {
+ value *AccessKeyReadList
isSet bool
}
-func (v NullableAccessKeyList) Get() *AccessKeyList {
+func (v NullableAccessKeyReadList) Get() *AccessKeyReadList {
return v.value
}
-func (v *NullableAccessKeyList) Set(val *AccessKeyList) {
+func (v *NullableAccessKeyReadList) Set(val *AccessKeyReadList) {
v.value = val
v.isSet = true
}
-func (v NullableAccessKeyList) IsSet() bool {
+func (v NullableAccessKeyReadList) IsSet() bool {
return v.isSet
}
-func (v *NullableAccessKeyList) Unset() {
+func (v *NullableAccessKeyReadList) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableAccessKeyList(val *AccessKeyList) *NullableAccessKeyList {
- return &NullableAccessKeyList{value: val, isSet: true}
+func NewNullableAccessKeyReadList(val *AccessKeyReadList) *NullableAccessKeyReadList {
+ return &NullableAccessKeyReadList{value: val, isSet: true}
}
-func (v NullableAccessKeyList) MarshalJSON() ([]byte, error) {
+func (v NullableAccessKeyReadList) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableAccessKeyList) UnmarshalJSON(src []byte) error {
+func (v *NullableAccessKeyReadList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_list_all_of.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read_list_all_of.go
similarity index 60%
rename from vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_list_all_of.go
rename to vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read_list_all_of.go
index f67efc9d2..abf9c88c7 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_list_all_of.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_access_key_read_list_all_of.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,8 +14,8 @@ import (
"encoding/json"
)
-// AccessKeyListAllOf struct for AccessKeyListAllOf
-type AccessKeyListAllOf struct {
+// AccessKeyReadListAllOf struct for AccessKeyReadListAllOf
+type AccessKeyReadListAllOf struct {
// ID of the list of AccessKey resources.
Id *string `json:"id"`
// The type of the resource.
@@ -23,15 +23,15 @@ type AccessKeyListAllOf struct {
// The URL of the list of AccessKey resources.
Href *string `json:"href"`
// The list of AccessKey resources.
- Items *[]AccessKey `json:"items,omitempty"`
+ Items *[]AccessKeyRead `json:"items,omitempty"`
}
-// NewAccessKeyListAllOf instantiates a new AccessKeyListAllOf object
+// NewAccessKeyReadListAllOf instantiates a new AccessKeyReadListAllOf 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 NewAccessKeyListAllOf(id string, type_ string, href string) *AccessKeyListAllOf {
- this := AccessKeyListAllOf{}
+func NewAccessKeyReadListAllOf(id string, type_ string, href string) *AccessKeyReadListAllOf {
+ this := AccessKeyReadListAllOf{}
this.Id = &id
this.Type = &type_
@@ -40,17 +40,17 @@ func NewAccessKeyListAllOf(id string, type_ string, href string) *AccessKeyListA
return &this
}
-// NewAccessKeyListAllOfWithDefaults instantiates a new AccessKeyListAllOf object
+// NewAccessKeyReadListAllOfWithDefaults instantiates a new AccessKeyReadListAllOf 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 NewAccessKeyListAllOfWithDefaults() *AccessKeyListAllOf {
- this := AccessKeyListAllOf{}
+func NewAccessKeyReadListAllOfWithDefaults() *AccessKeyReadListAllOf {
+ this := AccessKeyReadListAllOf{}
return &this
}
// GetId returns the Id field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyListAllOf) GetId() *string {
+func (o *AccessKeyReadListAllOf) GetId() *string {
if o == nil {
return nil
}
@@ -62,7 +62,7 @@ func (o *AccessKeyListAllOf) GetId() *string {
// 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 *AccessKeyListAllOf) GetIdOk() (*string, bool) {
+func (o *AccessKeyReadListAllOf) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -71,14 +71,14 @@ func (o *AccessKeyListAllOf) GetIdOk() (*string, bool) {
}
// SetId sets field value
-func (o *AccessKeyListAllOf) SetId(v string) {
+func (o *AccessKeyReadListAllOf) SetId(v string) {
o.Id = &v
}
// HasId returns a boolean if a field has been set.
-func (o *AccessKeyListAllOf) HasId() bool {
+func (o *AccessKeyReadListAllOf) HasId() bool {
if o != nil && o.Id != nil {
return true
}
@@ -88,7 +88,7 @@ func (o *AccessKeyListAllOf) HasId() bool {
// GetType returns the Type field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyListAllOf) GetType() *string {
+func (o *AccessKeyReadListAllOf) GetType() *string {
if o == nil {
return nil
}
@@ -100,7 +100,7 @@ func (o *AccessKeyListAllOf) GetType() *string {
// 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 *AccessKeyListAllOf) GetTypeOk() (*string, bool) {
+func (o *AccessKeyReadListAllOf) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -109,14 +109,14 @@ func (o *AccessKeyListAllOf) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *AccessKeyListAllOf) SetType(v string) {
+func (o *AccessKeyReadListAllOf) SetType(v string) {
o.Type = &v
}
// HasType returns a boolean if a field has been set.
-func (o *AccessKeyListAllOf) HasType() bool {
+func (o *AccessKeyReadListAllOf) HasType() bool {
if o != nil && o.Type != nil {
return true
}
@@ -126,7 +126,7 @@ func (o *AccessKeyListAllOf) HasType() bool {
// GetHref returns the Href field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *AccessKeyListAllOf) GetHref() *string {
+func (o *AccessKeyReadListAllOf) GetHref() *string {
if o == nil {
return nil
}
@@ -138,7 +138,7 @@ func (o *AccessKeyListAllOf) GetHref() *string {
// 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 *AccessKeyListAllOf) GetHrefOk() (*string, bool) {
+func (o *AccessKeyReadListAllOf) GetHrefOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -147,14 +147,14 @@ func (o *AccessKeyListAllOf) GetHrefOk() (*string, bool) {
}
// SetHref sets field value
-func (o *AccessKeyListAllOf) SetHref(v string) {
+func (o *AccessKeyReadListAllOf) SetHref(v string) {
o.Href = &v
}
// HasHref returns a boolean if a field has been set.
-func (o *AccessKeyListAllOf) HasHref() bool {
+func (o *AccessKeyReadListAllOf) HasHref() bool {
if o != nil && o.Href != nil {
return true
}
@@ -163,8 +163,8 @@ func (o *AccessKeyListAllOf) HasHref() bool {
}
// GetItems returns the Items field value
-// If the value is explicit nil, the zero value for []AccessKey will be returned
-func (o *AccessKeyListAllOf) GetItems() *[]AccessKey {
+// If the value is explicit nil, the zero value for []AccessKeyRead will be returned
+func (o *AccessKeyReadListAllOf) GetItems() *[]AccessKeyRead {
if o == nil {
return nil
}
@@ -176,7 +176,7 @@ func (o *AccessKeyListAllOf) GetItems() *[]AccessKey {
// 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 *AccessKeyListAllOf) GetItemsOk() (*[]AccessKey, bool) {
+func (o *AccessKeyReadListAllOf) GetItemsOk() (*[]AccessKeyRead, bool) {
if o == nil {
return nil, false
}
@@ -185,14 +185,14 @@ func (o *AccessKeyListAllOf) GetItemsOk() (*[]AccessKey, bool) {
}
// SetItems sets field value
-func (o *AccessKeyListAllOf) SetItems(v []AccessKey) {
+func (o *AccessKeyReadListAllOf) SetItems(v []AccessKeyRead) {
o.Items = &v
}
// HasItems returns a boolean if a field has been set.
-func (o *AccessKeyListAllOf) HasItems() bool {
+func (o *AccessKeyReadListAllOf) HasItems() bool {
if o != nil && o.Items != nil {
return true
}
@@ -200,7 +200,7 @@ func (o *AccessKeyListAllOf) HasItems() bool {
return false
}
-func (o AccessKeyListAllOf) MarshalJSON() ([]byte, error) {
+func (o AccessKeyReadListAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
@@ -221,38 +221,38 @@ func (o AccessKeyListAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-type NullableAccessKeyListAllOf struct {
- value *AccessKeyListAllOf
+type NullableAccessKeyReadListAllOf struct {
+ value *AccessKeyReadListAllOf
isSet bool
}
-func (v NullableAccessKeyListAllOf) Get() *AccessKeyListAllOf {
+func (v NullableAccessKeyReadListAllOf) Get() *AccessKeyReadListAllOf {
return v.value
}
-func (v *NullableAccessKeyListAllOf) Set(val *AccessKeyListAllOf) {
+func (v *NullableAccessKeyReadListAllOf) Set(val *AccessKeyReadListAllOf) {
v.value = val
v.isSet = true
}
-func (v NullableAccessKeyListAllOf) IsSet() bool {
+func (v NullableAccessKeyReadListAllOf) IsSet() bool {
return v.isSet
}
-func (v *NullableAccessKeyListAllOf) Unset() {
+func (v *NullableAccessKeyReadListAllOf) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableAccessKeyListAllOf(val *AccessKeyListAllOf) *NullableAccessKeyListAllOf {
- return &NullableAccessKeyListAllOf{value: val, isSet: true}
+func NewNullableAccessKeyReadListAllOf(val *AccessKeyReadListAllOf) *NullableAccessKeyReadListAllOf {
+ return &NullableAccessKeyReadListAllOf{value: val, isSet: true}
}
-func (v NullableAccessKeyListAllOf) MarshalJSON() ([]byte, error) {
+func (v NullableAccessKeyReadListAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableAccessKeyListAllOf) UnmarshalJSON(src []byte) error {
+func (v *NullableAccessKeyReadListAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket.go
index 647f2dffe..c4697bec3 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_create.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_create.go
index d4781dffc..4754e7bbd 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_create.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_create.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_ensure.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_ensure.go
index 227872708..17d8dae73 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_ensure.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_ensure.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read.go
index 7a33521f7..3ea51afe3 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read_list.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read_list.go
index 6e2b7ef28..b77ed701e 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read_list.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read_list.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read_list_all_of.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read_list_all_of.go
index 853ce81df..3b234e8d9 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read_list_all_of.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_bucket_read_list_all_of.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_error.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_error.go
index 6f03dd2db..1fcd7252e 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_error.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_error.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_error_messages.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_error_messages.go
index 80bd8b4a0..92ee45788 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_error_messages.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_error_messages.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_links.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_links.go
index 44d2c2093..74a607c16 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_links.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_links.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata.go
index dc4f6bcc4..7e130f9c6 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_status.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_status.go
index b112fe048..4ac633629 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_status.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_status.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_status_all_of.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_status_all_of.go
index c3a28a865..11bffc82e 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_status_all_of.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_status_all_of.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_supported_regions.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_supported_regions.go
index a8863656c..e4705448d 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_supported_regions.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_supported_regions.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_supported_regions_all_of.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_supported_regions_all_of.go
index fa3f2b5e0..4577dd2d5 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_supported_regions_all_of.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_metadata_with_supported_regions_all_of.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_pagination.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_pagination.go
index 6d53cc55f..12780cb7e 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_pagination.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_pagination.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region.go
index 75b29cbd5..33919d4c0 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,30 +14,33 @@ import (
"encoding/json"
)
-// Region struct for Region
+// Region IONOS Cloud object storage regions they define the location of the bucket, can also be used as `LocationConstraint` for bucket creation.
type Region struct {
- // The Region of the Region.
- Id *string `json:"id"`
- // The type of the resource.
- Type *string `json:"type"`
- // The URL of the Region.
- Href *string `json:"href"`
- Metadata *map[string]interface{} `json:"metadata"`
- Properties *RegionProperties `json:"properties"`
+ // The version of the region properties
+ Version *int32 `json:"version"`
+ // The endpoint URL for the region
+ Endpoint *string `json:"endpoint"`
+ // The website URL for the region
+ Website *string `json:"website"`
+ Capability *RegionCapability `json:"capability"`
+ // The available classes in the region
+ StorageClasses *[]string `json:"storageClasses,omitempty"`
+ // The data center location of the region as per [Get Location](/docs/cloud/v6/#tag/Locations/operation/locationsGet). *Can't be used as `LocationConstraint` on bucket creation.*
+ Location *string `json:"location"`
}
// NewRegion instantiates a new Region 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 NewRegion(id string, type_ string, href string, metadata map[string]interface{}, properties RegionProperties) *Region {
+func NewRegion(version int32, endpoint string, website string, capability RegionCapability, location string) *Region {
this := Region{}
- this.Id = &id
- this.Type = &type_
- this.Href = &href
- this.Metadata = &metadata
- this.Properties = &properties
+ this.Version = &version
+ this.Endpoint = &endpoint
+ this.Website = &website
+ this.Capability = &capability
+ this.Location = &location
return &this
}
@@ -50,190 +53,228 @@ func NewRegionWithDefaults() *Region {
return &this
}
-// GetId returns the Id field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *Region) GetId() *string {
+// GetVersion returns the Version field value
+// If the value is explicit nil, the zero value for int32 will be returned
+func (o *Region) GetVersion() *int32 {
if o == nil {
return nil
}
- return o.Id
+ return o.Version
}
-// GetIdOk returns a tuple with the Id field value
+// 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 *Region) GetIdOk() (*string, bool) {
+func (o *Region) GetVersionOk() (*int32, bool) {
if o == nil {
return nil, false
}
- return o.Id, true
+ return o.Version, true
}
-// SetId sets field value
-func (o *Region) SetId(v string) {
+// SetVersion sets field value
+func (o *Region) SetVersion(v int32) {
- o.Id = &v
+ o.Version = &v
}
-// HasId returns a boolean if a field has been set.
-func (o *Region) HasId() bool {
- if o != nil && o.Id != nil {
+// HasVersion returns a boolean if a field has been set.
+func (o *Region) HasVersion() bool {
+ if o != nil && o.Version != nil {
return true
}
return false
}
-// GetType returns the Type field value
+// GetEndpoint returns the Endpoint field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *Region) GetType() *string {
+func (o *Region) GetEndpoint() *string {
if o == nil {
return nil
}
- return o.Type
+ return o.Endpoint
}
-// GetTypeOk returns a tuple with the Type field value
+// GetEndpointOk returns a tuple with the Endpoint 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 *Region) GetTypeOk() (*string, bool) {
+func (o *Region) GetEndpointOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Type, true
+ return o.Endpoint, true
}
-// SetType sets field value
-func (o *Region) SetType(v string) {
+// SetEndpoint sets field value
+func (o *Region) SetEndpoint(v string) {
- o.Type = &v
+ o.Endpoint = &v
}
-// HasType returns a boolean if a field has been set.
-func (o *Region) HasType() bool {
- if o != nil && o.Type != nil {
+// HasEndpoint returns a boolean if a field has been set.
+func (o *Region) HasEndpoint() bool {
+ if o != nil && o.Endpoint != nil {
return true
}
return false
}
-// GetHref returns the Href field value
+// GetWebsite returns the Website field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *Region) GetHref() *string {
+func (o *Region) GetWebsite() *string {
if o == nil {
return nil
}
- return o.Href
+ return o.Website
}
-// GetHrefOk returns a tuple with the Href field value
+// GetWebsiteOk returns a tuple with the Website 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 *Region) GetHrefOk() (*string, bool) {
+func (o *Region) GetWebsiteOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Href, true
+ return o.Website, true
}
-// SetHref sets field value
-func (o *Region) SetHref(v string) {
+// SetWebsite sets field value
+func (o *Region) SetWebsite(v string) {
- o.Href = &v
+ o.Website = &v
}
-// HasHref returns a boolean if a field has been set.
-func (o *Region) HasHref() bool {
- if o != nil && o.Href != nil {
+// HasWebsite returns a boolean if a field has been set.
+func (o *Region) HasWebsite() bool {
+ if o != nil && o.Website != nil {
return true
}
return false
}
-// GetMetadata returns the Metadata field value
-// If the value is explicit nil, the zero value for map[string]interface{} will be returned
-func (o *Region) GetMetadata() *map[string]interface{} {
+// GetCapability returns the Capability field value
+// If the value is explicit nil, the zero value for RegionCapability will be returned
+func (o *Region) GetCapability() *RegionCapability {
if o == nil {
return nil
}
- return o.Metadata
+ return o.Capability
}
-// GetMetadataOk returns a tuple with the Metadata field value
+// GetCapabilityOk returns a tuple with the Capability 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 *Region) GetMetadataOk() (*map[string]interface{}, bool) {
+func (o *Region) GetCapabilityOk() (*RegionCapability, bool) {
if o == nil {
return nil, false
}
- return o.Metadata, true
+ return o.Capability, true
}
-// SetMetadata sets field value
-func (o *Region) SetMetadata(v map[string]interface{}) {
+// SetCapability sets field value
+func (o *Region) SetCapability(v RegionCapability) {
- o.Metadata = &v
+ o.Capability = &v
}
-// HasMetadata returns a boolean if a field has been set.
-func (o *Region) HasMetadata() bool {
- if o != nil && o.Metadata != nil {
+// HasCapability returns a boolean if a field has been set.
+func (o *Region) HasCapability() bool {
+ if o != nil && o.Capability != nil {
return true
}
return false
}
-// GetProperties returns the Properties field value
-// If the value is explicit nil, the zero value for RegionProperties will be returned
-func (o *Region) GetProperties() *RegionProperties {
+// GetStorageClasses returns the StorageClasses field value
+// If the value is explicit nil, the zero value for []string will be returned
+func (o *Region) GetStorageClasses() *[]string {
if o == nil {
return nil
}
- return o.Properties
+ return o.StorageClasses
}
-// GetPropertiesOk returns a tuple with the Properties field value
+// GetStorageClassesOk returns a tuple with the StorageClasses 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 *Region) GetPropertiesOk() (*RegionProperties, bool) {
+func (o *Region) GetStorageClassesOk() (*[]string, bool) {
if o == nil {
return nil, false
}
- return o.Properties, true
+ return o.StorageClasses, true
}
-// SetProperties sets field value
-func (o *Region) SetProperties(v RegionProperties) {
+// SetStorageClasses sets field value
+func (o *Region) SetStorageClasses(v []string) {
- o.Properties = &v
+ o.StorageClasses = &v
}
-// HasProperties returns a boolean if a field has been set.
-func (o *Region) HasProperties() bool {
- if o != nil && o.Properties != nil {
+// HasStorageClasses returns a boolean if a field has been set.
+func (o *Region) HasStorageClasses() bool {
+ if o != nil && o.StorageClasses != nil {
+ return true
+ }
+
+ return false
+}
+
+// GetLocation returns the Location field value
+// If the value is explicit nil, the zero value for string will be returned
+func (o *Region) GetLocation() *string {
+ if o == nil {
+ return nil
+ }
+
+ return o.Location
+
+}
+
+// GetLocationOk returns a tuple with the Location 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 *Region) GetLocationOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Location, true
+}
+
+// SetLocation sets field value
+func (o *Region) SetLocation(v string) {
+
+ o.Location = &v
+
+}
+
+// HasLocation returns a boolean if a field has been set.
+func (o *Region) HasLocation() bool {
+ if o != nil && o.Location != nil {
return true
}
@@ -242,24 +283,28 @@ func (o *Region) HasProperties() bool {
func (o Region) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
- if o.Id != nil {
- toSerialize["id"] = o.Id
+ if o.Version != nil {
+ toSerialize["version"] = o.Version
+ }
+
+ if o.Endpoint != nil {
+ toSerialize["endpoint"] = o.Endpoint
}
- if o.Type != nil {
- toSerialize["type"] = o.Type
+ if o.Website != nil {
+ toSerialize["website"] = o.Website
}
- if o.Href != nil {
- toSerialize["href"] = o.Href
+ if o.Capability != nil {
+ toSerialize["capability"] = o.Capability
}
- if o.Metadata != nil {
- toSerialize["metadata"] = o.Metadata
+ if o.StorageClasses != nil {
+ toSerialize["storageClasses"] = o.StorageClasses
}
- if o.Properties != nil {
- toSerialize["properties"] = o.Properties
+ if o.Location != nil {
+ toSerialize["location"] = o.Location
}
return json.Marshal(toSerialize)
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_properties_capability.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_capability.go
similarity index 55%
rename from vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_properties_capability.go
rename to vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_capability.go
index d257ddde8..fbe6f17c3 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_properties_capability.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_capability.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,35 +14,35 @@ import (
"encoding/json"
)
-// RegionPropertiesCapability The capabilities of the region
-type RegionPropertiesCapability struct {
+// RegionCapability The capabilities of the region
+type RegionCapability struct {
// Indicates if IAM policy based access is supported
Iam *bool `json:"iam,omitempty"`
// Indicates if S3 Select is supported
S3select *bool `json:"s3select,omitempty"`
}
-// NewRegionPropertiesCapability instantiates a new RegionPropertiesCapability object
+// NewRegionCapability instantiates a new RegionCapability 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 NewRegionPropertiesCapability() *RegionPropertiesCapability {
- this := RegionPropertiesCapability{}
+func NewRegionCapability() *RegionCapability {
+ this := RegionCapability{}
return &this
}
-// NewRegionPropertiesCapabilityWithDefaults instantiates a new RegionPropertiesCapability object
+// NewRegionCapabilityWithDefaults instantiates a new RegionCapability 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 NewRegionPropertiesCapabilityWithDefaults() *RegionPropertiesCapability {
- this := RegionPropertiesCapability{}
+func NewRegionCapabilityWithDefaults() *RegionCapability {
+ this := RegionCapability{}
return &this
}
// GetIam returns the Iam field value
// If the value is explicit nil, the zero value for bool will be returned
-func (o *RegionPropertiesCapability) GetIam() *bool {
+func (o *RegionCapability) GetIam() *bool {
if o == nil {
return nil
}
@@ -54,7 +54,7 @@ func (o *RegionPropertiesCapability) GetIam() *bool {
// GetIamOk returns a tuple with the Iam 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 *RegionPropertiesCapability) GetIamOk() (*bool, bool) {
+func (o *RegionCapability) GetIamOk() (*bool, bool) {
if o == nil {
return nil, false
}
@@ -63,14 +63,14 @@ func (o *RegionPropertiesCapability) GetIamOk() (*bool, bool) {
}
// SetIam sets field value
-func (o *RegionPropertiesCapability) SetIam(v bool) {
+func (o *RegionCapability) SetIam(v bool) {
o.Iam = &v
}
// HasIam returns a boolean if a field has been set.
-func (o *RegionPropertiesCapability) HasIam() bool {
+func (o *RegionCapability) HasIam() bool {
if o != nil && o.Iam != nil {
return true
}
@@ -80,7 +80,7 @@ func (o *RegionPropertiesCapability) HasIam() bool {
// GetS3select returns the S3select field value
// If the value is explicit nil, the zero value for bool will be returned
-func (o *RegionPropertiesCapability) GetS3select() *bool {
+func (o *RegionCapability) GetS3select() *bool {
if o == nil {
return nil
}
@@ -92,7 +92,7 @@ func (o *RegionPropertiesCapability) GetS3select() *bool {
// GetS3selectOk returns a tuple with the S3select 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 *RegionPropertiesCapability) GetS3selectOk() (*bool, bool) {
+func (o *RegionCapability) GetS3selectOk() (*bool, bool) {
if o == nil {
return nil, false
}
@@ -101,14 +101,14 @@ func (o *RegionPropertiesCapability) GetS3selectOk() (*bool, bool) {
}
// SetS3select sets field value
-func (o *RegionPropertiesCapability) SetS3select(v bool) {
+func (o *RegionCapability) SetS3select(v bool) {
o.S3select = &v
}
// HasS3select returns a boolean if a field has been set.
-func (o *RegionPropertiesCapability) HasS3select() bool {
+func (o *RegionCapability) HasS3select() bool {
if o != nil && o.S3select != nil {
return true
}
@@ -116,7 +116,7 @@ func (o *RegionPropertiesCapability) HasS3select() bool {
return false
}
-func (o RegionPropertiesCapability) MarshalJSON() ([]byte, error) {
+func (o RegionCapability) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Iam != nil {
toSerialize["iam"] = o.Iam
@@ -129,38 +129,38 @@ func (o RegionPropertiesCapability) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-type NullableRegionPropertiesCapability struct {
- value *RegionPropertiesCapability
+type NullableRegionCapability struct {
+ value *RegionCapability
isSet bool
}
-func (v NullableRegionPropertiesCapability) Get() *RegionPropertiesCapability {
+func (v NullableRegionCapability) Get() *RegionCapability {
return v.value
}
-func (v *NullableRegionPropertiesCapability) Set(val *RegionPropertiesCapability) {
+func (v *NullableRegionCapability) Set(val *RegionCapability) {
v.value = val
v.isSet = true
}
-func (v NullableRegionPropertiesCapability) IsSet() bool {
+func (v NullableRegionCapability) IsSet() bool {
return v.isSet
}
-func (v *NullableRegionPropertiesCapability) Unset() {
+func (v *NullableRegionCapability) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableRegionPropertiesCapability(val *RegionPropertiesCapability) *NullableRegionPropertiesCapability {
- return &NullableRegionPropertiesCapability{value: val, isSet: true}
+func NewNullableRegionCapability(val *RegionCapability) *NullableRegionCapability {
+ return &NullableRegionCapability{value: val, isSet: true}
}
-func (v NullableRegionPropertiesCapability) MarshalJSON() ([]byte, error) {
+func (v NullableRegionCapability) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableRegionPropertiesCapability) UnmarshalJSON(src []byte) error {
+func (v *NullableRegionCapability) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_create.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_create.go
index 697a8a36b..8949b590d 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_create.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_create.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -18,14 +18,14 @@ import (
type RegionCreate struct {
// Metadata
Metadata *map[string]interface{} `json:"metadata,omitempty"`
- Properties *RegionProperties `json:"properties"`
+ Properties *Region `json:"properties"`
}
// NewRegionCreate instantiates a new RegionCreate 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 NewRegionCreate(properties RegionProperties) *RegionCreate {
+func NewRegionCreate(properties Region) *RegionCreate {
this := RegionCreate{}
this.Properties = &properties
@@ -80,8 +80,8 @@ func (o *RegionCreate) HasMetadata() bool {
}
// GetProperties returns the Properties field value
-// If the value is explicit nil, the zero value for RegionProperties will be returned
-func (o *RegionCreate) GetProperties() *RegionProperties {
+// If the value is explicit nil, the zero value for Region will be returned
+func (o *RegionCreate) GetProperties() *Region {
if o == nil {
return nil
}
@@ -93,7 +93,7 @@ func (o *RegionCreate) GetProperties() *RegionProperties {
// 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 *RegionCreate) GetPropertiesOk() (*RegionProperties, bool) {
+func (o *RegionCreate) GetPropertiesOk() (*Region, bool) {
if o == nil {
return nil, false
}
@@ -102,7 +102,7 @@ func (o *RegionCreate) GetPropertiesOk() (*RegionProperties, bool) {
}
// SetProperties sets field value
-func (o *RegionCreate) SetProperties(v RegionProperties) {
+func (o *RegionCreate) SetProperties(v Region) {
o.Properties = &v
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_ensure.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_ensure.go
index 8ff2e9a0d..e83934556 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_ensure.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_ensure.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -20,14 +20,14 @@ type RegionEnsure struct {
Id *string `json:"id"`
// Metadata
Metadata *map[string]interface{} `json:"metadata,omitempty"`
- Properties *RegionProperties `json:"properties"`
+ Properties *Region `json:"properties"`
}
// NewRegionEnsure instantiates a new RegionEnsure 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 NewRegionEnsure(id string, properties RegionProperties) *RegionEnsure {
+func NewRegionEnsure(id string, properties Region) *RegionEnsure {
this := RegionEnsure{}
this.Id = &id
@@ -121,8 +121,8 @@ func (o *RegionEnsure) HasMetadata() bool {
}
// GetProperties returns the Properties field value
-// If the value is explicit nil, the zero value for RegionProperties will be returned
-func (o *RegionEnsure) GetProperties() *RegionProperties {
+// If the value is explicit nil, the zero value for Region will be returned
+func (o *RegionEnsure) GetProperties() *Region {
if o == nil {
return nil
}
@@ -134,7 +134,7 @@ func (o *RegionEnsure) GetProperties() *RegionProperties {
// 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 *RegionEnsure) GetPropertiesOk() (*RegionProperties, bool) {
+func (o *RegionEnsure) GetPropertiesOk() (*Region, bool) {
if o == nil {
return nil, false
}
@@ -143,7 +143,7 @@ func (o *RegionEnsure) GetPropertiesOk() (*RegionProperties, bool) {
}
// SetProperties sets field value
-func (o *RegionEnsure) SetProperties(v RegionProperties) {
+func (o *RegionEnsure) SetProperties(v Region) {
o.Properties = &v
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_properties.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_properties.go
deleted file mode 100644
index fc95634b2..000000000
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_properties.go
+++ /dev/null
@@ -1,347 +0,0 @@
-/*
- * IONOS Cloud - S3 Management API
- *
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
- *
- * API version: 0.1.0
- */
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package ionoscloud
-
-import (
- "encoding/json"
-)
-
-// RegionProperties IONOS Cloud S3 regions they define the location of the bucket, can also be used as `LocationConstraint` for bucket creation.
-type RegionProperties struct {
- // The version of the region properties
- Version *int32 `json:"version"`
- // The endpoint URL for the region
- Endpoint *string `json:"endpoint"`
- // The website URL for the region
- Website *string `json:"website"`
- Capability *RegionPropertiesCapability `json:"capability"`
- // The available classes in the region
- Storageclasses *[]string `json:"storageclasses,omitempty"`
- // The data center location of the region as per [Get Location](/docs/cloud/v6/#tag/Locations/operation/locationsGet). *Can't be used as `LocationConstraint` on bucket creation.*
- Location *string `json:"location"`
-}
-
-// NewRegionProperties instantiates a new RegionProperties 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 NewRegionProperties(version int32, endpoint string, website string, capability RegionPropertiesCapability, location string) *RegionProperties {
- this := RegionProperties{}
-
- this.Version = &version
- this.Endpoint = &endpoint
- this.Website = &website
- this.Capability = &capability
- this.Location = &location
-
- return &this
-}
-
-// NewRegionPropertiesWithDefaults instantiates a new RegionProperties 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 NewRegionPropertiesWithDefaults() *RegionProperties {
- this := RegionProperties{}
- return &this
-}
-
-// GetVersion returns the Version field value
-// If the value is explicit nil, the zero value for int32 will be returned
-func (o *RegionProperties) GetVersion() *int32 {
- 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 *RegionProperties) GetVersionOk() (*int32, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Version, true
-}
-
-// SetVersion sets field value
-func (o *RegionProperties) SetVersion(v int32) {
-
- o.Version = &v
-
-}
-
-// HasVersion returns a boolean if a field has been set.
-func (o *RegionProperties) HasVersion() bool {
- if o != nil && o.Version != nil {
- return true
- }
-
- return false
-}
-
-// GetEndpoint returns the Endpoint field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionProperties) GetEndpoint() *string {
- if o == nil {
- return nil
- }
-
- return o.Endpoint
-
-}
-
-// GetEndpointOk returns a tuple with the Endpoint 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 *RegionProperties) GetEndpointOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Endpoint, true
-}
-
-// SetEndpoint sets field value
-func (o *RegionProperties) SetEndpoint(v string) {
-
- o.Endpoint = &v
-
-}
-
-// HasEndpoint returns a boolean if a field has been set.
-func (o *RegionProperties) HasEndpoint() bool {
- if o != nil && o.Endpoint != nil {
- return true
- }
-
- return false
-}
-
-// GetWebsite returns the Website field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionProperties) GetWebsite() *string {
- if o == nil {
- return nil
- }
-
- return o.Website
-
-}
-
-// GetWebsiteOk returns a tuple with the Website 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 *RegionProperties) GetWebsiteOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Website, true
-}
-
-// SetWebsite sets field value
-func (o *RegionProperties) SetWebsite(v string) {
-
- o.Website = &v
-
-}
-
-// HasWebsite returns a boolean if a field has been set.
-func (o *RegionProperties) HasWebsite() bool {
- if o != nil && o.Website != nil {
- return true
- }
-
- return false
-}
-
-// GetCapability returns the Capability field value
-// If the value is explicit nil, the zero value for RegionPropertiesCapability will be returned
-func (o *RegionProperties) GetCapability() *RegionPropertiesCapability {
- if o == nil {
- return nil
- }
-
- return o.Capability
-
-}
-
-// GetCapabilityOk returns a tuple with the Capability 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 *RegionProperties) GetCapabilityOk() (*RegionPropertiesCapability, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Capability, true
-}
-
-// SetCapability sets field value
-func (o *RegionProperties) SetCapability(v RegionPropertiesCapability) {
-
- o.Capability = &v
-
-}
-
-// HasCapability returns a boolean if a field has been set.
-func (o *RegionProperties) HasCapability() bool {
- if o != nil && o.Capability != nil {
- return true
- }
-
- return false
-}
-
-// GetStorageclasses returns the Storageclasses field value
-// If the value is explicit nil, the zero value for []string will be returned
-func (o *RegionProperties) GetStorageclasses() *[]string {
- if o == nil {
- return nil
- }
-
- return o.Storageclasses
-
-}
-
-// GetStorageclassesOk returns a tuple with the Storageclasses 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 *RegionProperties) GetStorageclassesOk() (*[]string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Storageclasses, true
-}
-
-// SetStorageclasses sets field value
-func (o *RegionProperties) SetStorageclasses(v []string) {
-
- o.Storageclasses = &v
-
-}
-
-// HasStorageclasses returns a boolean if a field has been set.
-func (o *RegionProperties) HasStorageclasses() bool {
- if o != nil && o.Storageclasses != nil {
- return true
- }
-
- return false
-}
-
-// GetLocation returns the Location field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionProperties) GetLocation() *string {
- if o == nil {
- return nil
- }
-
- return o.Location
-
-}
-
-// GetLocationOk returns a tuple with the Location 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 *RegionProperties) GetLocationOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Location, true
-}
-
-// SetLocation sets field value
-func (o *RegionProperties) SetLocation(v string) {
-
- o.Location = &v
-
-}
-
-// HasLocation returns a boolean if a field has been set.
-func (o *RegionProperties) HasLocation() bool {
- if o != nil && o.Location != nil {
- return true
- }
-
- return false
-}
-
-func (o RegionProperties) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]interface{}{}
- if o.Version != nil {
- toSerialize["version"] = o.Version
- }
-
- if o.Endpoint != nil {
- toSerialize["endpoint"] = o.Endpoint
- }
-
- if o.Website != nil {
- toSerialize["website"] = o.Website
- }
-
- if o.Capability != nil {
- toSerialize["capability"] = o.Capability
- }
-
- if o.Storageclasses != nil {
- toSerialize["storageclasses"] = o.Storageclasses
- }
-
- if o.Location != nil {
- toSerialize["location"] = o.Location
- }
-
- return json.Marshal(toSerialize)
-}
-
-type NullableRegionProperties struct {
- value *RegionProperties
- isSet bool
-}
-
-func (v NullableRegionProperties) Get() *RegionProperties {
- return v.value
-}
-
-func (v *NullableRegionProperties) Set(val *RegionProperties) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableRegionProperties) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableRegionProperties) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableRegionProperties(val *RegionProperties) *NullableRegionProperties {
- return &NullableRegionProperties{value: val, isSet: true}
-}
-
-func (v NullableRegionProperties) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableRegionProperties) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read.go
new file mode 100644
index 000000000..92f389dbc
--- /dev/null
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read.go
@@ -0,0 +1,302 @@
+/*
+ * IONOS Cloud - Object Storage Management API
+ *
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
+ *
+ * API version: 0.1.0
+ */
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ionoscloud
+
+import (
+ "encoding/json"
+)
+
+// RegionRead struct for RegionRead
+type RegionRead struct {
+ // The Region of the Region.
+ Id *string `json:"id"`
+ // The type of the resource.
+ Type *string `json:"type"`
+ // The URL of the Region.
+ Href *string `json:"href"`
+ Metadata *map[string]interface{} `json:"metadata"`
+ Properties *Region `json:"properties"`
+}
+
+// NewRegionRead instantiates a new RegionRead 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 NewRegionRead(id string, type_ string, href string, metadata map[string]interface{}, properties Region) *RegionRead {
+ this := RegionRead{}
+
+ this.Id = &id
+ this.Type = &type_
+ this.Href = &href
+ this.Metadata = &metadata
+ this.Properties = &properties
+
+ return &this
+}
+
+// NewRegionReadWithDefaults instantiates a new RegionRead 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 NewRegionReadWithDefaults() *RegionRead {
+ this := RegionRead{}
+ return &this
+}
+
+// GetId returns the Id field value
+// If the value is explicit nil, the zero value for string will be returned
+func (o *RegionRead) 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 *RegionRead) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Id, true
+}
+
+// SetId sets field value
+func (o *RegionRead) SetId(v string) {
+
+ o.Id = &v
+
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *RegionRead) 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 *RegionRead) 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 *RegionRead) GetTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Type, true
+}
+
+// SetType sets field value
+func (o *RegionRead) SetType(v string) {
+
+ o.Type = &v
+
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *RegionRead) 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 *RegionRead) 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 *RegionRead) GetHrefOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Href, true
+}
+
+// SetHref sets field value
+func (o *RegionRead) SetHref(v string) {
+
+ o.Href = &v
+
+}
+
+// HasHref returns a boolean if a field has been set.
+func (o *RegionRead) 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 map[string]interface{} will be returned
+func (o *RegionRead) GetMetadata() *map[string]interface{} {
+ 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 *RegionRead) GetMetadataOk() (*map[string]interface{}, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Metadata, true
+}
+
+// SetMetadata sets field value
+func (o *RegionRead) SetMetadata(v map[string]interface{}) {
+
+ o.Metadata = &v
+
+}
+
+// HasMetadata returns a boolean if a field has been set.
+func (o *RegionRead) 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 Region will be returned
+func (o *RegionRead) GetProperties() *Region {
+ 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 *RegionRead) GetPropertiesOk() (*Region, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Properties, true
+}
+
+// SetProperties sets field value
+func (o *RegionRead) SetProperties(v Region) {
+
+ o.Properties = &v
+
+}
+
+// HasProperties returns a boolean if a field has been set.
+func (o *RegionRead) HasProperties() bool {
+ if o != nil && o.Properties != nil {
+ return true
+ }
+
+ return false
+}
+
+func (o RegionRead) 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 NullableRegionRead struct {
+ value *RegionRead
+ isSet bool
+}
+
+func (v NullableRegionRead) Get() *RegionRead {
+ return v.value
+}
+
+func (v *NullableRegionRead) Set(val *RegionRead) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRegionRead) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRegionRead) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRegionRead(val *RegionRead) *NullableRegionRead {
+ return &NullableRegionRead{value: val, isSet: true}
+}
+
+func (v NullableRegionRead) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRegionRead) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_list.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read_list.go
similarity index 69%
rename from vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_list.go
rename to vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read_list.go
index bd36fcffd..7e78cf2ee 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_list.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read_list.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,8 +14,8 @@ import (
"encoding/json"
)
-// RegionList struct for RegionList
-type RegionList struct {
+// RegionReadList struct for RegionReadList
+type RegionReadList struct {
// ID of the list of Region resources.
Id *string `json:"id"`
// The type of the resource.
@@ -23,7 +23,7 @@ type RegionList struct {
// The URL of the list of Region resources.
Href *string `json:"href"`
// The list of Region resources.
- Items *[]Region `json:"items,omitempty"`
+ Items *[]RegionRead `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).
@@ -31,12 +31,12 @@ type RegionList struct {
Links *Links `json:"_links"`
}
-// NewRegionList instantiates a new RegionList object
+// NewRegionReadList instantiates a new RegionReadList 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 NewRegionList(id string, type_ string, href string, offset int32, limit int32, links Links) *RegionList {
- this := RegionList{}
+func NewRegionReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *RegionReadList {
+ this := RegionReadList{}
this.Id = &id
this.Type = &type_
@@ -48,17 +48,17 @@ func NewRegionList(id string, type_ string, href string, offset int32, limit int
return &this
}
-// NewRegionListWithDefaults instantiates a new RegionList object
+// NewRegionReadListWithDefaults instantiates a new RegionReadList 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 NewRegionListWithDefaults() *RegionList {
- this := RegionList{}
+func NewRegionReadListWithDefaults() *RegionReadList {
+ this := RegionReadList{}
return &this
}
// GetId returns the Id field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionList) GetId() *string {
+func (o *RegionReadList) GetId() *string {
if o == nil {
return nil
}
@@ -70,7 +70,7 @@ func (o *RegionList) GetId() *string {
// 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 *RegionList) GetIdOk() (*string, bool) {
+func (o *RegionReadList) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -79,14 +79,14 @@ func (o *RegionList) GetIdOk() (*string, bool) {
}
// SetId sets field value
-func (o *RegionList) SetId(v string) {
+func (o *RegionReadList) SetId(v string) {
o.Id = &v
}
// HasId returns a boolean if a field has been set.
-func (o *RegionList) HasId() bool {
+func (o *RegionReadList) HasId() bool {
if o != nil && o.Id != nil {
return true
}
@@ -96,7 +96,7 @@ func (o *RegionList) HasId() bool {
// GetType returns the Type field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionList) GetType() *string {
+func (o *RegionReadList) GetType() *string {
if o == nil {
return nil
}
@@ -108,7 +108,7 @@ func (o *RegionList) GetType() *string {
// 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 *RegionList) GetTypeOk() (*string, bool) {
+func (o *RegionReadList) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -117,14 +117,14 @@ func (o *RegionList) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *RegionList) SetType(v string) {
+func (o *RegionReadList) SetType(v string) {
o.Type = &v
}
// HasType returns a boolean if a field has been set.
-func (o *RegionList) HasType() bool {
+func (o *RegionReadList) HasType() bool {
if o != nil && o.Type != nil {
return true
}
@@ -134,7 +134,7 @@ func (o *RegionList) HasType() bool {
// GetHref returns the Href field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionList) GetHref() *string {
+func (o *RegionReadList) GetHref() *string {
if o == nil {
return nil
}
@@ -146,7 +146,7 @@ func (o *RegionList) GetHref() *string {
// 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 *RegionList) GetHrefOk() (*string, bool) {
+func (o *RegionReadList) GetHrefOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -155,14 +155,14 @@ func (o *RegionList) GetHrefOk() (*string, bool) {
}
// SetHref sets field value
-func (o *RegionList) SetHref(v string) {
+func (o *RegionReadList) SetHref(v string) {
o.Href = &v
}
// HasHref returns a boolean if a field has been set.
-func (o *RegionList) HasHref() bool {
+func (o *RegionReadList) HasHref() bool {
if o != nil && o.Href != nil {
return true
}
@@ -171,8 +171,8 @@ func (o *RegionList) HasHref() bool {
}
// GetItems returns the Items field value
-// If the value is explicit nil, the zero value for []Region will be returned
-func (o *RegionList) GetItems() *[]Region {
+// If the value is explicit nil, the zero value for []RegionRead will be returned
+func (o *RegionReadList) GetItems() *[]RegionRead {
if o == nil {
return nil
}
@@ -184,7 +184,7 @@ func (o *RegionList) GetItems() *[]Region {
// 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 *RegionList) GetItemsOk() (*[]Region, bool) {
+func (o *RegionReadList) GetItemsOk() (*[]RegionRead, bool) {
if o == nil {
return nil, false
}
@@ -193,14 +193,14 @@ func (o *RegionList) GetItemsOk() (*[]Region, bool) {
}
// SetItems sets field value
-func (o *RegionList) SetItems(v []Region) {
+func (o *RegionReadList) SetItems(v []RegionRead) {
o.Items = &v
}
// HasItems returns a boolean if a field has been set.
-func (o *RegionList) HasItems() bool {
+func (o *RegionReadList) HasItems() bool {
if o != nil && o.Items != nil {
return true
}
@@ -210,7 +210,7 @@ func (o *RegionList) HasItems() bool {
// GetOffset returns the Offset field value
// If the value is explicit nil, the zero value for int32 will be returned
-func (o *RegionList) GetOffset() *int32 {
+func (o *RegionReadList) GetOffset() *int32 {
if o == nil {
return nil
}
@@ -222,7 +222,7 @@ func (o *RegionList) GetOffset() *int32 {
// 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 *RegionList) GetOffsetOk() (*int32, bool) {
+func (o *RegionReadList) GetOffsetOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -231,14 +231,14 @@ func (o *RegionList) GetOffsetOk() (*int32, bool) {
}
// SetOffset sets field value
-func (o *RegionList) SetOffset(v int32) {
+func (o *RegionReadList) SetOffset(v int32) {
o.Offset = &v
}
// HasOffset returns a boolean if a field has been set.
-func (o *RegionList) HasOffset() bool {
+func (o *RegionReadList) HasOffset() bool {
if o != nil && o.Offset != nil {
return true
}
@@ -248,7 +248,7 @@ func (o *RegionList) HasOffset() bool {
// GetLimit returns the Limit field value
// If the value is explicit nil, the zero value for int32 will be returned
-func (o *RegionList) GetLimit() *int32 {
+func (o *RegionReadList) GetLimit() *int32 {
if o == nil {
return nil
}
@@ -260,7 +260,7 @@ func (o *RegionList) GetLimit() *int32 {
// 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 *RegionList) GetLimitOk() (*int32, bool) {
+func (o *RegionReadList) GetLimitOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -269,14 +269,14 @@ func (o *RegionList) GetLimitOk() (*int32, bool) {
}
// SetLimit sets field value
-func (o *RegionList) SetLimit(v int32) {
+func (o *RegionReadList) SetLimit(v int32) {
o.Limit = &v
}
// HasLimit returns a boolean if a field has been set.
-func (o *RegionList) HasLimit() bool {
+func (o *RegionReadList) HasLimit() bool {
if o != nil && o.Limit != nil {
return true
}
@@ -286,7 +286,7 @@ func (o *RegionList) HasLimit() bool {
// GetLinks returns the Links field value
// If the value is explicit nil, the zero value for Links will be returned
-func (o *RegionList) GetLinks() *Links {
+func (o *RegionReadList) GetLinks() *Links {
if o == nil {
return nil
}
@@ -298,7 +298,7 @@ func (o *RegionList) GetLinks() *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 *RegionList) GetLinksOk() (*Links, bool) {
+func (o *RegionReadList) GetLinksOk() (*Links, bool) {
if o == nil {
return nil, false
}
@@ -307,14 +307,14 @@ func (o *RegionList) GetLinksOk() (*Links, bool) {
}
// SetLinks sets field value
-func (o *RegionList) SetLinks(v Links) {
+func (o *RegionReadList) SetLinks(v Links) {
o.Links = &v
}
// HasLinks returns a boolean if a field has been set.
-func (o *RegionList) HasLinks() bool {
+func (o *RegionReadList) HasLinks() bool {
if o != nil && o.Links != nil {
return true
}
@@ -322,7 +322,7 @@ func (o *RegionList) HasLinks() bool {
return false
}
-func (o RegionList) MarshalJSON() ([]byte, error) {
+func (o RegionReadList) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
@@ -355,38 +355,38 @@ func (o RegionList) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-type NullableRegionList struct {
- value *RegionList
+type NullableRegionReadList struct {
+ value *RegionReadList
isSet bool
}
-func (v NullableRegionList) Get() *RegionList {
+func (v NullableRegionReadList) Get() *RegionReadList {
return v.value
}
-func (v *NullableRegionList) Set(val *RegionList) {
+func (v *NullableRegionReadList) Set(val *RegionReadList) {
v.value = val
v.isSet = true
}
-func (v NullableRegionList) IsSet() bool {
+func (v NullableRegionReadList) IsSet() bool {
return v.isSet
}
-func (v *NullableRegionList) Unset() {
+func (v *NullableRegionReadList) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableRegionList(val *RegionList) *NullableRegionList {
- return &NullableRegionList{value: val, isSet: true}
+func NewNullableRegionReadList(val *RegionReadList) *NullableRegionReadList {
+ return &NullableRegionReadList{value: val, isSet: true}
}
-func (v NullableRegionList) MarshalJSON() ([]byte, error) {
+func (v NullableRegionReadList) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableRegionList) UnmarshalJSON(src []byte) error {
+func (v *NullableRegionReadList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_list_all_of.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read_list_all_of.go
similarity index 61%
rename from vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_list_all_of.go
rename to vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read_list_all_of.go
index 01e568265..7d632de6e 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_list_all_of.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_region_read_list_all_of.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,8 +14,8 @@ import (
"encoding/json"
)
-// RegionListAllOf struct for RegionListAllOf
-type RegionListAllOf struct {
+// RegionReadListAllOf struct for RegionReadListAllOf
+type RegionReadListAllOf struct {
// ID of the list of Region resources.
Id *string `json:"id"`
// The type of the resource.
@@ -23,15 +23,15 @@ type RegionListAllOf struct {
// The URL of the list of Region resources.
Href *string `json:"href"`
// The list of Region resources.
- Items *[]Region `json:"items,omitempty"`
+ Items *[]RegionRead `json:"items,omitempty"`
}
-// NewRegionListAllOf instantiates a new RegionListAllOf object
+// NewRegionReadListAllOf instantiates a new RegionReadListAllOf 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 NewRegionListAllOf(id string, type_ string, href string) *RegionListAllOf {
- this := RegionListAllOf{}
+func NewRegionReadListAllOf(id string, type_ string, href string) *RegionReadListAllOf {
+ this := RegionReadListAllOf{}
this.Id = &id
this.Type = &type_
@@ -40,17 +40,17 @@ func NewRegionListAllOf(id string, type_ string, href string) *RegionListAllOf {
return &this
}
-// NewRegionListAllOfWithDefaults instantiates a new RegionListAllOf object
+// NewRegionReadListAllOfWithDefaults instantiates a new RegionReadListAllOf 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 NewRegionListAllOfWithDefaults() *RegionListAllOf {
- this := RegionListAllOf{}
+func NewRegionReadListAllOfWithDefaults() *RegionReadListAllOf {
+ this := RegionReadListAllOf{}
return &this
}
// GetId returns the Id field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionListAllOf) GetId() *string {
+func (o *RegionReadListAllOf) GetId() *string {
if o == nil {
return nil
}
@@ -62,7 +62,7 @@ func (o *RegionListAllOf) GetId() *string {
// 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 *RegionListAllOf) GetIdOk() (*string, bool) {
+func (o *RegionReadListAllOf) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -71,14 +71,14 @@ func (o *RegionListAllOf) GetIdOk() (*string, bool) {
}
// SetId sets field value
-func (o *RegionListAllOf) SetId(v string) {
+func (o *RegionReadListAllOf) SetId(v string) {
o.Id = &v
}
// HasId returns a boolean if a field has been set.
-func (o *RegionListAllOf) HasId() bool {
+func (o *RegionReadListAllOf) HasId() bool {
if o != nil && o.Id != nil {
return true
}
@@ -88,7 +88,7 @@ func (o *RegionListAllOf) HasId() bool {
// GetType returns the Type field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionListAllOf) GetType() *string {
+func (o *RegionReadListAllOf) GetType() *string {
if o == nil {
return nil
}
@@ -100,7 +100,7 @@ func (o *RegionListAllOf) GetType() *string {
// 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 *RegionListAllOf) GetTypeOk() (*string, bool) {
+func (o *RegionReadListAllOf) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -109,14 +109,14 @@ func (o *RegionListAllOf) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *RegionListAllOf) SetType(v string) {
+func (o *RegionReadListAllOf) SetType(v string) {
o.Type = &v
}
// HasType returns a boolean if a field has been set.
-func (o *RegionListAllOf) HasType() bool {
+func (o *RegionReadListAllOf) HasType() bool {
if o != nil && o.Type != nil {
return true
}
@@ -126,7 +126,7 @@ func (o *RegionListAllOf) HasType() bool {
// GetHref returns the Href field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *RegionListAllOf) GetHref() *string {
+func (o *RegionReadListAllOf) GetHref() *string {
if o == nil {
return nil
}
@@ -138,7 +138,7 @@ func (o *RegionListAllOf) GetHref() *string {
// 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 *RegionListAllOf) GetHrefOk() (*string, bool) {
+func (o *RegionReadListAllOf) GetHrefOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -147,14 +147,14 @@ func (o *RegionListAllOf) GetHrefOk() (*string, bool) {
}
// SetHref sets field value
-func (o *RegionListAllOf) SetHref(v string) {
+func (o *RegionReadListAllOf) SetHref(v string) {
o.Href = &v
}
// HasHref returns a boolean if a field has been set.
-func (o *RegionListAllOf) HasHref() bool {
+func (o *RegionReadListAllOf) HasHref() bool {
if o != nil && o.Href != nil {
return true
}
@@ -163,8 +163,8 @@ func (o *RegionListAllOf) HasHref() bool {
}
// GetItems returns the Items field value
-// If the value is explicit nil, the zero value for []Region will be returned
-func (o *RegionListAllOf) GetItems() *[]Region {
+// If the value is explicit nil, the zero value for []RegionRead will be returned
+func (o *RegionReadListAllOf) GetItems() *[]RegionRead {
if o == nil {
return nil
}
@@ -176,7 +176,7 @@ func (o *RegionListAllOf) GetItems() *[]Region {
// 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 *RegionListAllOf) GetItemsOk() (*[]Region, bool) {
+func (o *RegionReadListAllOf) GetItemsOk() (*[]RegionRead, bool) {
if o == nil {
return nil, false
}
@@ -185,14 +185,14 @@ func (o *RegionListAllOf) GetItemsOk() (*[]Region, bool) {
}
// SetItems sets field value
-func (o *RegionListAllOf) SetItems(v []Region) {
+func (o *RegionReadListAllOf) SetItems(v []RegionRead) {
o.Items = &v
}
// HasItems returns a boolean if a field has been set.
-func (o *RegionListAllOf) HasItems() bool {
+func (o *RegionReadListAllOf) HasItems() bool {
if o != nil && o.Items != nil {
return true
}
@@ -200,7 +200,7 @@ func (o *RegionListAllOf) HasItems() bool {
return false
}
-func (o RegionListAllOf) MarshalJSON() ([]byte, error) {
+func (o RegionReadListAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
@@ -221,38 +221,38 @@ func (o RegionListAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-type NullableRegionListAllOf struct {
- value *RegionListAllOf
+type NullableRegionReadListAllOf struct {
+ value *RegionReadListAllOf
isSet bool
}
-func (v NullableRegionListAllOf) Get() *RegionListAllOf {
+func (v NullableRegionReadListAllOf) Get() *RegionReadListAllOf {
return v.value
}
-func (v *NullableRegionListAllOf) Set(val *RegionListAllOf) {
+func (v *NullableRegionReadListAllOf) Set(val *RegionReadListAllOf) {
v.value = val
v.isSet = true
}
-func (v NullableRegionListAllOf) IsSet() bool {
+func (v NullableRegionReadListAllOf) IsSet() bool {
return v.isSet
}
-func (v *NullableRegionListAllOf) Unset() {
+func (v *NullableRegionReadListAllOf) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableRegionListAllOf(val *RegionListAllOf) *NullableRegionListAllOf {
- return &NullableRegionListAllOf{value: val, isSet: true}
+func NewNullableRegionReadListAllOf(val *RegionReadListAllOf) *NullableRegionReadListAllOf {
+ return &NullableRegionReadListAllOf{value: val, isSet: true}
}
-func (v NullableRegionListAllOf) MarshalJSON() ([]byte, error) {
+func (v NullableRegionReadListAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableRegionListAllOf) UnmarshalJSON(src []byte) error {
+func (v *NullableRegionReadListAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class.go
index cc06f6a1f..f4426a652 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,30 +14,26 @@ import (
"encoding/json"
)
-// StorageClass struct for StorageClass
+// StorageClass Details the cross functional aspects of the given storage class.
type StorageClass struct {
- // The StorageClass of the StorageClass.
- Id *string `json:"id"`
- // The type of the resource.
- Type *string `json:"type"`
- // The URL of the StorageClass.
- Href *string `json:"href"`
- Metadata *map[string]interface{} `json:"metadata"`
- Properties *StorageClassProperties `json:"properties"`
+ // Explains the motivation for the storage class
+ Description *string `json:"description"`
+ // The durability of the storage class
+ Durability *string `json:"durability"`
+ // The availability of the storage class
+ Availability *string `json:"availability"`
}
// NewStorageClass instantiates a new StorageClass 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 NewStorageClass(id string, type_ string, href string, metadata map[string]interface{}, properties StorageClassProperties) *StorageClass {
+func NewStorageClass(description string, durability string, availability string) *StorageClass {
this := StorageClass{}
- this.Id = &id
- this.Type = &type_
- this.Href = &href
- this.Metadata = &metadata
- this.Properties = &properties
+ this.Description = &description
+ this.Durability = &durability
+ this.Availability = &availability
return &this
}
@@ -50,190 +46,114 @@ func NewStorageClassWithDefaults() *StorageClass {
return &this
}
-// GetId returns the Id field value
+// GetDescription returns the Description field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClass) GetId() *string {
+func (o *StorageClass) GetDescription() *string {
if o == nil {
return nil
}
- return o.Id
+ return o.Description
}
-// GetIdOk returns a tuple with the Id field value
+// 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 *StorageClass) GetIdOk() (*string, bool) {
+func (o *StorageClass) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Id, true
+ return o.Description, true
}
-// SetId sets field value
-func (o *StorageClass) SetId(v string) {
+// SetDescription sets field value
+func (o *StorageClass) SetDescription(v string) {
- o.Id = &v
+ o.Description = &v
}
-// HasId returns a boolean if a field has been set.
-func (o *StorageClass) HasId() bool {
- if o != nil && o.Id != nil {
+// HasDescription returns a boolean if a field has been set.
+func (o *StorageClass) HasDescription() bool {
+ if o != nil && o.Description != nil {
return true
}
return false
}
-// GetType returns the Type field value
+// GetDurability returns the Durability field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClass) GetType() *string {
+func (o *StorageClass) GetDurability() *string {
if o == nil {
return nil
}
- return o.Type
+ return o.Durability
}
-// GetTypeOk returns a tuple with the Type field value
+// GetDurabilityOk returns a tuple with the Durability 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 *StorageClass) GetTypeOk() (*string, bool) {
+func (o *StorageClass) GetDurabilityOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Type, true
+ return o.Durability, true
}
-// SetType sets field value
-func (o *StorageClass) SetType(v string) {
+// SetDurability sets field value
+func (o *StorageClass) SetDurability(v string) {
- o.Type = &v
+ o.Durability = &v
}
-// HasType returns a boolean if a field has been set.
-func (o *StorageClass) HasType() bool {
- if o != nil && o.Type != nil {
+// HasDurability returns a boolean if a field has been set.
+func (o *StorageClass) HasDurability() bool {
+ if o != nil && o.Durability != nil {
return true
}
return false
}
-// GetHref returns the Href field value
+// GetAvailability returns the Availability field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClass) GetHref() *string {
+func (o *StorageClass) GetAvailability() *string {
if o == nil {
return nil
}
- return o.Href
+ return o.Availability
}
-// GetHrefOk returns a tuple with the Href field value
+// GetAvailabilityOk returns a tuple with the Availability 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 *StorageClass) GetHrefOk() (*string, bool) {
+func (o *StorageClass) GetAvailabilityOk() (*string, bool) {
if o == nil {
return nil, false
}
- return o.Href, true
+ return o.Availability, true
}
-// SetHref sets field value
-func (o *StorageClass) SetHref(v string) {
+// SetAvailability sets field value
+func (o *StorageClass) SetAvailability(v string) {
- o.Href = &v
+ o.Availability = &v
}
-// HasHref returns a boolean if a field has been set.
-func (o *StorageClass) 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 map[string]interface{} will be returned
-func (o *StorageClass) GetMetadata() *map[string]interface{} {
- 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 *StorageClass) GetMetadataOk() (*map[string]interface{}, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Metadata, true
-}
-
-// SetMetadata sets field value
-func (o *StorageClass) SetMetadata(v map[string]interface{}) {
-
- o.Metadata = &v
-
-}
-
-// HasMetadata returns a boolean if a field has been set.
-func (o *StorageClass) 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 StorageClassProperties will be returned
-func (o *StorageClass) GetProperties() *StorageClassProperties {
- 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 *StorageClass) GetPropertiesOk() (*StorageClassProperties, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Properties, true
-}
-
-// SetProperties sets field value
-func (o *StorageClass) SetProperties(v StorageClassProperties) {
-
- o.Properties = &v
-
-}
-
-// HasProperties returns a boolean if a field has been set.
-func (o *StorageClass) HasProperties() bool {
- if o != nil && o.Properties != nil {
+// HasAvailability returns a boolean if a field has been set.
+func (o *StorageClass) HasAvailability() bool {
+ if o != nil && o.Availability != nil {
return true
}
@@ -242,24 +162,16 @@ func (o *StorageClass) HasProperties() bool {
func (o StorageClass) 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.Description != nil {
+ toSerialize["description"] = o.Description
}
- if o.Metadata != nil {
- toSerialize["metadata"] = o.Metadata
+ if o.Durability != nil {
+ toSerialize["durability"] = o.Durability
}
- if o.Properties != nil {
- toSerialize["properties"] = o.Properties
+ if o.Availability != nil {
+ toSerialize["availability"] = o.Availability
}
return json.Marshal(toSerialize)
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_create.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_create.go
index eb4813d4b..99d2add7f 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_create.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_create.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -18,14 +18,14 @@ import (
type StorageClassCreate struct {
// Metadata
Metadata *map[string]interface{} `json:"metadata,omitempty"`
- Properties *StorageClassProperties `json:"properties"`
+ Properties *StorageClass `json:"properties"`
}
// NewStorageClassCreate instantiates a new StorageClassCreate 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 NewStorageClassCreate(properties StorageClassProperties) *StorageClassCreate {
+func NewStorageClassCreate(properties StorageClass) *StorageClassCreate {
this := StorageClassCreate{}
this.Properties = &properties
@@ -80,8 +80,8 @@ func (o *StorageClassCreate) HasMetadata() bool {
}
// GetProperties returns the Properties field value
-// If the value is explicit nil, the zero value for StorageClassProperties will be returned
-func (o *StorageClassCreate) GetProperties() *StorageClassProperties {
+// If the value is explicit nil, the zero value for StorageClass will be returned
+func (o *StorageClassCreate) GetProperties() *StorageClass {
if o == nil {
return nil
}
@@ -93,7 +93,7 @@ func (o *StorageClassCreate) GetProperties() *StorageClassProperties {
// 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 *StorageClassCreate) GetPropertiesOk() (*StorageClassProperties, bool) {
+func (o *StorageClassCreate) GetPropertiesOk() (*StorageClass, bool) {
if o == nil {
return nil, false
}
@@ -102,7 +102,7 @@ func (o *StorageClassCreate) GetPropertiesOk() (*StorageClassProperties, bool) {
}
// SetProperties sets field value
-func (o *StorageClassCreate) SetProperties(v StorageClassProperties) {
+func (o *StorageClassCreate) SetProperties(v StorageClass) {
o.Properties = &v
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_ensure.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_ensure.go
index 46f0ad2b4..682b882db 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_ensure.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_ensure.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -20,14 +20,14 @@ type StorageClassEnsure struct {
Id *string `json:"id"`
// Metadata
Metadata *map[string]interface{} `json:"metadata,omitempty"`
- Properties *StorageClassProperties `json:"properties"`
+ Properties *StorageClass `json:"properties"`
}
// NewStorageClassEnsure instantiates a new StorageClassEnsure 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 NewStorageClassEnsure(id string, properties StorageClassProperties) *StorageClassEnsure {
+func NewStorageClassEnsure(id string, properties StorageClass) *StorageClassEnsure {
this := StorageClassEnsure{}
this.Id = &id
@@ -121,8 +121,8 @@ func (o *StorageClassEnsure) HasMetadata() bool {
}
// GetProperties returns the Properties field value
-// If the value is explicit nil, the zero value for StorageClassProperties will be returned
-func (o *StorageClassEnsure) GetProperties() *StorageClassProperties {
+// If the value is explicit nil, the zero value for StorageClass will be returned
+func (o *StorageClassEnsure) GetProperties() *StorageClass {
if o == nil {
return nil
}
@@ -134,7 +134,7 @@ func (o *StorageClassEnsure) GetProperties() *StorageClassProperties {
// 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 *StorageClassEnsure) GetPropertiesOk() (*StorageClassProperties, bool) {
+func (o *StorageClassEnsure) GetPropertiesOk() (*StorageClass, bool) {
if o == nil {
return nil, false
}
@@ -143,7 +143,7 @@ func (o *StorageClassEnsure) GetPropertiesOk() (*StorageClassProperties, bool) {
}
// SetProperties sets field value
-func (o *StorageClassEnsure) SetProperties(v StorageClassProperties) {
+func (o *StorageClassEnsure) SetProperties(v StorageClass) {
o.Properties = &v
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_properties.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_properties.go
deleted file mode 100644
index da6b4e179..000000000
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_properties.go
+++ /dev/null
@@ -1,214 +0,0 @@
-/*
- * IONOS Cloud - S3 Management API
- *
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
- *
- * API version: 0.1.0
- */
-
-// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-package ionoscloud
-
-import (
- "encoding/json"
-)
-
-// StorageClassProperties Details the cross functional aspects of the given storage class.
-type StorageClassProperties struct {
- // Explains the motivation for the storage class
- Description *string `json:"description"`
- // The durability of the storage class
- Durability *string `json:"durability"`
- // The availability of the storage class
- Availability *string `json:"availability"`
-}
-
-// NewStorageClassProperties instantiates a new StorageClassProperties 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 NewStorageClassProperties(description string, durability string, availability string) *StorageClassProperties {
- this := StorageClassProperties{}
-
- this.Description = &description
- this.Durability = &durability
- this.Availability = &availability
-
- return &this
-}
-
-// NewStorageClassPropertiesWithDefaults instantiates a new StorageClassProperties 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 NewStorageClassPropertiesWithDefaults() *StorageClassProperties {
- this := StorageClassProperties{}
- return &this
-}
-
-// GetDescription returns the Description field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassProperties) 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 *StorageClassProperties) GetDescriptionOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Description, true
-}
-
-// SetDescription sets field value
-func (o *StorageClassProperties) SetDescription(v string) {
-
- o.Description = &v
-
-}
-
-// HasDescription returns a boolean if a field has been set.
-func (o *StorageClassProperties) HasDescription() bool {
- if o != nil && o.Description != nil {
- return true
- }
-
- return false
-}
-
-// GetDurability returns the Durability field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassProperties) GetDurability() *string {
- if o == nil {
- return nil
- }
-
- return o.Durability
-
-}
-
-// GetDurabilityOk returns a tuple with the Durability 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 *StorageClassProperties) GetDurabilityOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Durability, true
-}
-
-// SetDurability sets field value
-func (o *StorageClassProperties) SetDurability(v string) {
-
- o.Durability = &v
-
-}
-
-// HasDurability returns a boolean if a field has been set.
-func (o *StorageClassProperties) HasDurability() bool {
- if o != nil && o.Durability != nil {
- return true
- }
-
- return false
-}
-
-// GetAvailability returns the Availability field value
-// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassProperties) GetAvailability() *string {
- if o == nil {
- return nil
- }
-
- return o.Availability
-
-}
-
-// GetAvailabilityOk returns a tuple with the Availability 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 *StorageClassProperties) GetAvailabilityOk() (*string, bool) {
- if o == nil {
- return nil, false
- }
-
- return o.Availability, true
-}
-
-// SetAvailability sets field value
-func (o *StorageClassProperties) SetAvailability(v string) {
-
- o.Availability = &v
-
-}
-
-// HasAvailability returns a boolean if a field has been set.
-func (o *StorageClassProperties) HasAvailability() bool {
- if o != nil && o.Availability != nil {
- return true
- }
-
- return false
-}
-
-func (o StorageClassProperties) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]interface{}{}
- if o.Description != nil {
- toSerialize["description"] = o.Description
- }
-
- if o.Durability != nil {
- toSerialize["durability"] = o.Durability
- }
-
- if o.Availability != nil {
- toSerialize["availability"] = o.Availability
- }
-
- return json.Marshal(toSerialize)
-}
-
-type NullableStorageClassProperties struct {
- value *StorageClassProperties
- isSet bool
-}
-
-func (v NullableStorageClassProperties) Get() *StorageClassProperties {
- return v.value
-}
-
-func (v *NullableStorageClassProperties) Set(val *StorageClassProperties) {
- v.value = val
- v.isSet = true
-}
-
-func (v NullableStorageClassProperties) IsSet() bool {
- return v.isSet
-}
-
-func (v *NullableStorageClassProperties) Unset() {
- v.value = nil
- v.isSet = false
-}
-
-func NewNullableStorageClassProperties(val *StorageClassProperties) *NullableStorageClassProperties {
- return &NullableStorageClassProperties{value: val, isSet: true}
-}
-
-func (v NullableStorageClassProperties) MarshalJSON() ([]byte, error) {
- return json.Marshal(v.value)
-}
-
-func (v *NullableStorageClassProperties) UnmarshalJSON(src []byte) error {
- v.isSet = true
- return json.Unmarshal(src, &v.value)
-}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read.go
new file mode 100644
index 000000000..38497bb79
--- /dev/null
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read.go
@@ -0,0 +1,302 @@
+/*
+ * IONOS Cloud - Object Storage Management API
+ *
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
+ *
+ * API version: 0.1.0
+ */
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ionoscloud
+
+import (
+ "encoding/json"
+)
+
+// StorageClassRead struct for StorageClassRead
+type StorageClassRead struct {
+ // The StorageClass of the StorageClass.
+ Id *string `json:"id"`
+ // The type of the resource.
+ Type *string `json:"type"`
+ // The URL of the StorageClass.
+ Href *string `json:"href"`
+ Metadata *map[string]interface{} `json:"metadata"`
+ Properties *StorageClass `json:"properties"`
+}
+
+// NewStorageClassRead instantiates a new StorageClassRead 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 NewStorageClassRead(id string, type_ string, href string, metadata map[string]interface{}, properties StorageClass) *StorageClassRead {
+ this := StorageClassRead{}
+
+ this.Id = &id
+ this.Type = &type_
+ this.Href = &href
+ this.Metadata = &metadata
+ this.Properties = &properties
+
+ return &this
+}
+
+// NewStorageClassReadWithDefaults instantiates a new StorageClassRead 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 NewStorageClassReadWithDefaults() *StorageClassRead {
+ this := StorageClassRead{}
+ return &this
+}
+
+// GetId returns the Id field value
+// If the value is explicit nil, the zero value for string will be returned
+func (o *StorageClassRead) 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 *StorageClassRead) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Id, true
+}
+
+// SetId sets field value
+func (o *StorageClassRead) SetId(v string) {
+
+ o.Id = &v
+
+}
+
+// HasId returns a boolean if a field has been set.
+func (o *StorageClassRead) 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 *StorageClassRead) 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 *StorageClassRead) GetTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Type, true
+}
+
+// SetType sets field value
+func (o *StorageClassRead) SetType(v string) {
+
+ o.Type = &v
+
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *StorageClassRead) 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 *StorageClassRead) 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 *StorageClassRead) GetHrefOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Href, true
+}
+
+// SetHref sets field value
+func (o *StorageClassRead) SetHref(v string) {
+
+ o.Href = &v
+
+}
+
+// HasHref returns a boolean if a field has been set.
+func (o *StorageClassRead) 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 map[string]interface{} will be returned
+func (o *StorageClassRead) GetMetadata() *map[string]interface{} {
+ 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 *StorageClassRead) GetMetadataOk() (*map[string]interface{}, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Metadata, true
+}
+
+// SetMetadata sets field value
+func (o *StorageClassRead) SetMetadata(v map[string]interface{}) {
+
+ o.Metadata = &v
+
+}
+
+// HasMetadata returns a boolean if a field has been set.
+func (o *StorageClassRead) 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 StorageClass will be returned
+func (o *StorageClassRead) GetProperties() *StorageClass {
+ 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 *StorageClassRead) GetPropertiesOk() (*StorageClass, bool) {
+ if o == nil {
+ return nil, false
+ }
+
+ return o.Properties, true
+}
+
+// SetProperties sets field value
+func (o *StorageClassRead) SetProperties(v StorageClass) {
+
+ o.Properties = &v
+
+}
+
+// HasProperties returns a boolean if a field has been set.
+func (o *StorageClassRead) HasProperties() bool {
+ if o != nil && o.Properties != nil {
+ return true
+ }
+
+ return false
+}
+
+func (o StorageClassRead) 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 NullableStorageClassRead struct {
+ value *StorageClassRead
+ isSet bool
+}
+
+func (v NullableStorageClassRead) Get() *StorageClassRead {
+ return v.value
+}
+
+func (v *NullableStorageClassRead) Set(val *StorageClassRead) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableStorageClassRead) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableStorageClassRead) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableStorageClassRead(val *StorageClassRead) *NullableStorageClassRead {
+ return &NullableStorageClassRead{value: val, isSet: true}
+}
+
+func (v NullableStorageClassRead) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableStorageClassRead) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_list.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read_list.go
similarity index 66%
rename from vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_list.go
rename to vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read_list.go
index d89422b20..9a655f16c 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_list.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read_list.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,8 +14,8 @@ import (
"encoding/json"
)
-// StorageClassList struct for StorageClassList
-type StorageClassList struct {
+// StorageClassReadList struct for StorageClassReadList
+type StorageClassReadList struct {
// ID of the list of StorageClass resources.
Id *string `json:"id"`
// The type of the resource.
@@ -23,7 +23,7 @@ type StorageClassList struct {
// The URL of the list of StorageClass resources.
Href *string `json:"href"`
// The list of StorageClass resources.
- Items *[]StorageClass `json:"items,omitempty"`
+ Items *[]StorageClassRead `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).
@@ -31,12 +31,12 @@ type StorageClassList struct {
Links *Links `json:"_links"`
}
-// NewStorageClassList instantiates a new StorageClassList object
+// NewStorageClassReadList instantiates a new StorageClassReadList 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 NewStorageClassList(id string, type_ string, href string, offset int32, limit int32, links Links) *StorageClassList {
- this := StorageClassList{}
+func NewStorageClassReadList(id string, type_ string, href string, offset int32, limit int32, links Links) *StorageClassReadList {
+ this := StorageClassReadList{}
this.Id = &id
this.Type = &type_
@@ -48,17 +48,17 @@ func NewStorageClassList(id string, type_ string, href string, offset int32, lim
return &this
}
-// NewStorageClassListWithDefaults instantiates a new StorageClassList object
+// NewStorageClassReadListWithDefaults instantiates a new StorageClassReadList 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 NewStorageClassListWithDefaults() *StorageClassList {
- this := StorageClassList{}
+func NewStorageClassReadListWithDefaults() *StorageClassReadList {
+ this := StorageClassReadList{}
return &this
}
// GetId returns the Id field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassList) GetId() *string {
+func (o *StorageClassReadList) GetId() *string {
if o == nil {
return nil
}
@@ -70,7 +70,7 @@ func (o *StorageClassList) GetId() *string {
// 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 *StorageClassList) GetIdOk() (*string, bool) {
+func (o *StorageClassReadList) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -79,14 +79,14 @@ func (o *StorageClassList) GetIdOk() (*string, bool) {
}
// SetId sets field value
-func (o *StorageClassList) SetId(v string) {
+func (o *StorageClassReadList) SetId(v string) {
o.Id = &v
}
// HasId returns a boolean if a field has been set.
-func (o *StorageClassList) HasId() bool {
+func (o *StorageClassReadList) HasId() bool {
if o != nil && o.Id != nil {
return true
}
@@ -96,7 +96,7 @@ func (o *StorageClassList) HasId() bool {
// GetType returns the Type field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassList) GetType() *string {
+func (o *StorageClassReadList) GetType() *string {
if o == nil {
return nil
}
@@ -108,7 +108,7 @@ func (o *StorageClassList) GetType() *string {
// 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 *StorageClassList) GetTypeOk() (*string, bool) {
+func (o *StorageClassReadList) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -117,14 +117,14 @@ func (o *StorageClassList) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *StorageClassList) SetType(v string) {
+func (o *StorageClassReadList) SetType(v string) {
o.Type = &v
}
// HasType returns a boolean if a field has been set.
-func (o *StorageClassList) HasType() bool {
+func (o *StorageClassReadList) HasType() bool {
if o != nil && o.Type != nil {
return true
}
@@ -134,7 +134,7 @@ func (o *StorageClassList) HasType() bool {
// GetHref returns the Href field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassList) GetHref() *string {
+func (o *StorageClassReadList) GetHref() *string {
if o == nil {
return nil
}
@@ -146,7 +146,7 @@ func (o *StorageClassList) GetHref() *string {
// 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 *StorageClassList) GetHrefOk() (*string, bool) {
+func (o *StorageClassReadList) GetHrefOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -155,14 +155,14 @@ func (o *StorageClassList) GetHrefOk() (*string, bool) {
}
// SetHref sets field value
-func (o *StorageClassList) SetHref(v string) {
+func (o *StorageClassReadList) SetHref(v string) {
o.Href = &v
}
// HasHref returns a boolean if a field has been set.
-func (o *StorageClassList) HasHref() bool {
+func (o *StorageClassReadList) HasHref() bool {
if o != nil && o.Href != nil {
return true
}
@@ -171,8 +171,8 @@ func (o *StorageClassList) HasHref() bool {
}
// GetItems returns the Items field value
-// If the value is explicit nil, the zero value for []StorageClass will be returned
-func (o *StorageClassList) GetItems() *[]StorageClass {
+// If the value is explicit nil, the zero value for []StorageClassRead will be returned
+func (o *StorageClassReadList) GetItems() *[]StorageClassRead {
if o == nil {
return nil
}
@@ -184,7 +184,7 @@ func (o *StorageClassList) GetItems() *[]StorageClass {
// 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 *StorageClassList) GetItemsOk() (*[]StorageClass, bool) {
+func (o *StorageClassReadList) GetItemsOk() (*[]StorageClassRead, bool) {
if o == nil {
return nil, false
}
@@ -193,14 +193,14 @@ func (o *StorageClassList) GetItemsOk() (*[]StorageClass, bool) {
}
// SetItems sets field value
-func (o *StorageClassList) SetItems(v []StorageClass) {
+func (o *StorageClassReadList) SetItems(v []StorageClassRead) {
o.Items = &v
}
// HasItems returns a boolean if a field has been set.
-func (o *StorageClassList) HasItems() bool {
+func (o *StorageClassReadList) HasItems() bool {
if o != nil && o.Items != nil {
return true
}
@@ -210,7 +210,7 @@ func (o *StorageClassList) HasItems() bool {
// GetOffset returns the Offset field value
// If the value is explicit nil, the zero value for int32 will be returned
-func (o *StorageClassList) GetOffset() *int32 {
+func (o *StorageClassReadList) GetOffset() *int32 {
if o == nil {
return nil
}
@@ -222,7 +222,7 @@ func (o *StorageClassList) GetOffset() *int32 {
// 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 *StorageClassList) GetOffsetOk() (*int32, bool) {
+func (o *StorageClassReadList) GetOffsetOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -231,14 +231,14 @@ func (o *StorageClassList) GetOffsetOk() (*int32, bool) {
}
// SetOffset sets field value
-func (o *StorageClassList) SetOffset(v int32) {
+func (o *StorageClassReadList) SetOffset(v int32) {
o.Offset = &v
}
// HasOffset returns a boolean if a field has been set.
-func (o *StorageClassList) HasOffset() bool {
+func (o *StorageClassReadList) HasOffset() bool {
if o != nil && o.Offset != nil {
return true
}
@@ -248,7 +248,7 @@ func (o *StorageClassList) HasOffset() bool {
// GetLimit returns the Limit field value
// If the value is explicit nil, the zero value for int32 will be returned
-func (o *StorageClassList) GetLimit() *int32 {
+func (o *StorageClassReadList) GetLimit() *int32 {
if o == nil {
return nil
}
@@ -260,7 +260,7 @@ func (o *StorageClassList) GetLimit() *int32 {
// 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 *StorageClassList) GetLimitOk() (*int32, bool) {
+func (o *StorageClassReadList) GetLimitOk() (*int32, bool) {
if o == nil {
return nil, false
}
@@ -269,14 +269,14 @@ func (o *StorageClassList) GetLimitOk() (*int32, bool) {
}
// SetLimit sets field value
-func (o *StorageClassList) SetLimit(v int32) {
+func (o *StorageClassReadList) SetLimit(v int32) {
o.Limit = &v
}
// HasLimit returns a boolean if a field has been set.
-func (o *StorageClassList) HasLimit() bool {
+func (o *StorageClassReadList) HasLimit() bool {
if o != nil && o.Limit != nil {
return true
}
@@ -286,7 +286,7 @@ func (o *StorageClassList) HasLimit() bool {
// GetLinks returns the Links field value
// If the value is explicit nil, the zero value for Links will be returned
-func (o *StorageClassList) GetLinks() *Links {
+func (o *StorageClassReadList) GetLinks() *Links {
if o == nil {
return nil
}
@@ -298,7 +298,7 @@ func (o *StorageClassList) GetLinks() *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 *StorageClassList) GetLinksOk() (*Links, bool) {
+func (o *StorageClassReadList) GetLinksOk() (*Links, bool) {
if o == nil {
return nil, false
}
@@ -307,14 +307,14 @@ func (o *StorageClassList) GetLinksOk() (*Links, bool) {
}
// SetLinks sets field value
-func (o *StorageClassList) SetLinks(v Links) {
+func (o *StorageClassReadList) SetLinks(v Links) {
o.Links = &v
}
// HasLinks returns a boolean if a field has been set.
-func (o *StorageClassList) HasLinks() bool {
+func (o *StorageClassReadList) HasLinks() bool {
if o != nil && o.Links != nil {
return true
}
@@ -322,7 +322,7 @@ func (o *StorageClassList) HasLinks() bool {
return false
}
-func (o StorageClassList) MarshalJSON() ([]byte, error) {
+func (o StorageClassReadList) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
@@ -355,38 +355,38 @@ func (o StorageClassList) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-type NullableStorageClassList struct {
- value *StorageClassList
+type NullableStorageClassReadList struct {
+ value *StorageClassReadList
isSet bool
}
-func (v NullableStorageClassList) Get() *StorageClassList {
+func (v NullableStorageClassReadList) Get() *StorageClassReadList {
return v.value
}
-func (v *NullableStorageClassList) Set(val *StorageClassList) {
+func (v *NullableStorageClassReadList) Set(val *StorageClassReadList) {
v.value = val
v.isSet = true
}
-func (v NullableStorageClassList) IsSet() bool {
+func (v NullableStorageClassReadList) IsSet() bool {
return v.isSet
}
-func (v *NullableStorageClassList) Unset() {
+func (v *NullableStorageClassReadList) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableStorageClassList(val *StorageClassList) *NullableStorageClassList {
- return &NullableStorageClassList{value: val, isSet: true}
+func NewNullableStorageClassReadList(val *StorageClassReadList) *NullableStorageClassReadList {
+ return &NullableStorageClassReadList{value: val, isSet: true}
}
-func (v NullableStorageClassList) MarshalJSON() ([]byte, error) {
+func (v NullableStorageClassReadList) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableStorageClassList) UnmarshalJSON(src []byte) error {
+func (v *NullableStorageClassReadList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_list_all_of.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read_list_all_of.go
similarity index 59%
rename from vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_list_all_of.go
rename to vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read_list_all_of.go
index e4e65dab8..b5699ad49 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_list_all_of.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/model_storage_class_read_list_all_of.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
@@ -14,8 +14,8 @@ import (
"encoding/json"
)
-// StorageClassListAllOf struct for StorageClassListAllOf
-type StorageClassListAllOf struct {
+// StorageClassReadListAllOf struct for StorageClassReadListAllOf
+type StorageClassReadListAllOf struct {
// ID of the list of StorageClass resources.
Id *string `json:"id"`
// The type of the resource.
@@ -23,15 +23,15 @@ type StorageClassListAllOf struct {
// The URL of the list of StorageClass resources.
Href *string `json:"href"`
// The list of StorageClass resources.
- Items *[]StorageClass `json:"items,omitempty"`
+ Items *[]StorageClassRead `json:"items,omitempty"`
}
-// NewStorageClassListAllOf instantiates a new StorageClassListAllOf object
+// NewStorageClassReadListAllOf instantiates a new StorageClassReadListAllOf 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 NewStorageClassListAllOf(id string, type_ string, href string) *StorageClassListAllOf {
- this := StorageClassListAllOf{}
+func NewStorageClassReadListAllOf(id string, type_ string, href string) *StorageClassReadListAllOf {
+ this := StorageClassReadListAllOf{}
this.Id = &id
this.Type = &type_
@@ -40,17 +40,17 @@ func NewStorageClassListAllOf(id string, type_ string, href string) *StorageClas
return &this
}
-// NewStorageClassListAllOfWithDefaults instantiates a new StorageClassListAllOf object
+// NewStorageClassReadListAllOfWithDefaults instantiates a new StorageClassReadListAllOf 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 NewStorageClassListAllOfWithDefaults() *StorageClassListAllOf {
- this := StorageClassListAllOf{}
+func NewStorageClassReadListAllOfWithDefaults() *StorageClassReadListAllOf {
+ this := StorageClassReadListAllOf{}
return &this
}
// GetId returns the Id field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassListAllOf) GetId() *string {
+func (o *StorageClassReadListAllOf) GetId() *string {
if o == nil {
return nil
}
@@ -62,7 +62,7 @@ func (o *StorageClassListAllOf) GetId() *string {
// 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 *StorageClassListAllOf) GetIdOk() (*string, bool) {
+func (o *StorageClassReadListAllOf) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -71,14 +71,14 @@ func (o *StorageClassListAllOf) GetIdOk() (*string, bool) {
}
// SetId sets field value
-func (o *StorageClassListAllOf) SetId(v string) {
+func (o *StorageClassReadListAllOf) SetId(v string) {
o.Id = &v
}
// HasId returns a boolean if a field has been set.
-func (o *StorageClassListAllOf) HasId() bool {
+func (o *StorageClassReadListAllOf) HasId() bool {
if o != nil && o.Id != nil {
return true
}
@@ -88,7 +88,7 @@ func (o *StorageClassListAllOf) HasId() bool {
// GetType returns the Type field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassListAllOf) GetType() *string {
+func (o *StorageClassReadListAllOf) GetType() *string {
if o == nil {
return nil
}
@@ -100,7 +100,7 @@ func (o *StorageClassListAllOf) GetType() *string {
// 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 *StorageClassListAllOf) GetTypeOk() (*string, bool) {
+func (o *StorageClassReadListAllOf) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -109,14 +109,14 @@ func (o *StorageClassListAllOf) GetTypeOk() (*string, bool) {
}
// SetType sets field value
-func (o *StorageClassListAllOf) SetType(v string) {
+func (o *StorageClassReadListAllOf) SetType(v string) {
o.Type = &v
}
// HasType returns a boolean if a field has been set.
-func (o *StorageClassListAllOf) HasType() bool {
+func (o *StorageClassReadListAllOf) HasType() bool {
if o != nil && o.Type != nil {
return true
}
@@ -126,7 +126,7 @@ func (o *StorageClassListAllOf) HasType() bool {
// GetHref returns the Href field value
// If the value is explicit nil, the zero value for string will be returned
-func (o *StorageClassListAllOf) GetHref() *string {
+func (o *StorageClassReadListAllOf) GetHref() *string {
if o == nil {
return nil
}
@@ -138,7 +138,7 @@ func (o *StorageClassListAllOf) GetHref() *string {
// 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 *StorageClassListAllOf) GetHrefOk() (*string, bool) {
+func (o *StorageClassReadListAllOf) GetHrefOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -147,14 +147,14 @@ func (o *StorageClassListAllOf) GetHrefOk() (*string, bool) {
}
// SetHref sets field value
-func (o *StorageClassListAllOf) SetHref(v string) {
+func (o *StorageClassReadListAllOf) SetHref(v string) {
o.Href = &v
}
// HasHref returns a boolean if a field has been set.
-func (o *StorageClassListAllOf) HasHref() bool {
+func (o *StorageClassReadListAllOf) HasHref() bool {
if o != nil && o.Href != nil {
return true
}
@@ -163,8 +163,8 @@ func (o *StorageClassListAllOf) HasHref() bool {
}
// GetItems returns the Items field value
-// If the value is explicit nil, the zero value for []StorageClass will be returned
-func (o *StorageClassListAllOf) GetItems() *[]StorageClass {
+// If the value is explicit nil, the zero value for []StorageClassRead will be returned
+func (o *StorageClassReadListAllOf) GetItems() *[]StorageClassRead {
if o == nil {
return nil
}
@@ -176,7 +176,7 @@ func (o *StorageClassListAllOf) GetItems() *[]StorageClass {
// 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 *StorageClassListAllOf) GetItemsOk() (*[]StorageClass, bool) {
+func (o *StorageClassReadListAllOf) GetItemsOk() (*[]StorageClassRead, bool) {
if o == nil {
return nil, false
}
@@ -185,14 +185,14 @@ func (o *StorageClassListAllOf) GetItemsOk() (*[]StorageClass, bool) {
}
// SetItems sets field value
-func (o *StorageClassListAllOf) SetItems(v []StorageClass) {
+func (o *StorageClassReadListAllOf) SetItems(v []StorageClassRead) {
o.Items = &v
}
// HasItems returns a boolean if a field has been set.
-func (o *StorageClassListAllOf) HasItems() bool {
+func (o *StorageClassReadListAllOf) HasItems() bool {
if o != nil && o.Items != nil {
return true
}
@@ -200,7 +200,7 @@ func (o *StorageClassListAllOf) HasItems() bool {
return false
}
-func (o StorageClassListAllOf) MarshalJSON() ([]byte, error) {
+func (o StorageClassReadListAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Id != nil {
toSerialize["id"] = o.Id
@@ -221,38 +221,38 @@ func (o StorageClassListAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(toSerialize)
}
-type NullableStorageClassListAllOf struct {
- value *StorageClassListAllOf
+type NullableStorageClassReadListAllOf struct {
+ value *StorageClassReadListAllOf
isSet bool
}
-func (v NullableStorageClassListAllOf) Get() *StorageClassListAllOf {
+func (v NullableStorageClassReadListAllOf) Get() *StorageClassReadListAllOf {
return v.value
}
-func (v *NullableStorageClassListAllOf) Set(val *StorageClassListAllOf) {
+func (v *NullableStorageClassReadListAllOf) Set(val *StorageClassReadListAllOf) {
v.value = val
v.isSet = true
}
-func (v NullableStorageClassListAllOf) IsSet() bool {
+func (v NullableStorageClassReadListAllOf) IsSet() bool {
return v.isSet
}
-func (v *NullableStorageClassListAllOf) Unset() {
+func (v *NullableStorageClassReadListAllOf) Unset() {
v.value = nil
v.isSet = false
}
-func NewNullableStorageClassListAllOf(val *StorageClassListAllOf) *NullableStorageClassListAllOf {
- return &NullableStorageClassListAllOf{value: val, isSet: true}
+func NewNullableStorageClassReadListAllOf(val *StorageClassReadListAllOf) *NullableStorageClassReadListAllOf {
+ return &NullableStorageClassReadListAllOf{value: val, isSet: true}
}
-func (v NullableStorageClassListAllOf) MarshalJSON() ([]byte, error) {
+func (v NullableStorageClassReadListAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
-func (v *NullableStorageClassListAllOf) UnmarshalJSON(src []byte) error {
+func (v *NullableStorageClassReadListAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/response.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/response.go
index ca6204502..715454726 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/response.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/response.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/github.com/ionos-cloud/sdk-go-s3-management/utils.go b/vendor/github.com/ionos-cloud/sdk-go-s3-management/utils.go
index cbc1119db..1e090d8a0 100644
--- a/vendor/github.com/ionos-cloud/sdk-go-s3-management/utils.go
+++ b/vendor/github.com/ionos-cloud/sdk-go-s3-management/utils.go
@@ -1,7 +1,7 @@
/*
- * IONOS Cloud - S3 Management API
+ * IONOS Cloud - Object Storage Management API
*
- * S3 Management API is a RESTful API that manages the S3 service configuration for IONOS Cloud.
+ * Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
*
* API version: 0.1.0
*/
diff --git a/vendor/modules.txt b/vendor/modules.txt
index ecbc0fabc..adf8d59e4 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -355,7 +355,7 @@ github.com/ionos-cloud/sdk-go-nfs
# github.com/ionos-cloud/sdk-go-s3 v1.1.0
## explicit; go 1.18
github.com/ionos-cloud/sdk-go-s3
-# github.com/ionos-cloud/sdk-go-s3-management v1.0.0 => /home/radu/work/rubygeneration/sdk-go-s3-management
+# github.com/ionos-cloud/sdk-go-s3-management v1.0.0 => /home/radu/work/sdk-go-s3-management
## explicit; go 1.18
github.com/ionos-cloud/sdk-go-s3-management
# github.com/ionos-cloud/sdk-go-vm-autoscaling v1.0.1