diff --git a/client.go b/client.go index 3a987de..8add64a 100644 --- a/client.go +++ b/client.go @@ -52,7 +52,7 @@ const ( RequestStatusFailed = "FAILED" RequestStatusDone = "DONE" - Version = "6.3.0" + Version = "6.3.1" ) // Constants for APIs diff --git a/configuration.go b/configuration.go index 130ef83..633d643 100644 --- a/configuration.go +++ b/configuration.go @@ -131,7 +131,7 @@ func NewConfiguration(username, password, token, hostUrl string) *Configuration cfg := &Configuration{ DefaultHeader: make(map[string]string), DefaultQueryParams: url.Values{}, - UserAgent: "ionos-cloud-sdk-go/v6.3.0", + UserAgent: "ionos-cloud-sdk-go/v6.3.1", Debug: false, Username: username, Password: password, diff --git a/docs/models/GroupProperties.md b/docs/models/GroupProperties.md index 8aeb393..f9366e5 100644 --- a/docs/models/GroupProperties.md +++ b/docs/models/GroupProperties.md @@ -21,6 +21,15 @@ |**AccessAndManageDns** | Pointer to **bool** | Privilege for a group to access and manage dns records. | [optional] | |**ManageRegistry** | Pointer to **bool** | Privilege for group accessing container registry related functionality. | [optional] | |**ManageDataplatform** | Pointer to **bool** | Privilege for a group to access and manage the Data Platform. | [optional] | +|**AccessAndManageLogging** | Pointer to **bool** | Privilege for a group to access and manage Logs. | [optional] | +|**AccessAndManageCdn** | Pointer to **bool** | Privilege for a group to access and manage CDN. | [optional] | +|**AccessAndManageVpn** | Pointer to **bool** | Privilege for a group to access and manage VPN. | [optional] | +|**AccessAndManageApiGateway** | Pointer to **bool** | Privilege for a group to access and manage API Gateway. | [optional] | +|**AccessAndManageKaas** | Pointer to **bool** | Privilege for a group to access and manage KaaS. | [optional] | +|**AccessAndManageNetworkFileStorage** | Pointer to **bool** | Privilege for a group to access and manage Network File Storage. | [optional] | +|**AccessAndManageAiModelHub** | Pointer to **bool** | Privilege for a group to access and manage AI Model Hub. | [optional] | +|**AccessAndManageIamResources** | Pointer to **bool** | Privilege for a group to access and manage Password Policies. | [optional] | +|**CreateNetworkSecurityGroups** | Pointer to **bool** | Privilege for a group to access and manage Network Security Groups. | [optional] | ## Methods @@ -466,5 +475,230 @@ SetManageDataplatform sets ManageDataplatform field to given value. HasManageDataplatform returns a boolean if a field has been set. +### GetAccessAndManageLogging + +`func (o *GroupProperties) GetAccessAndManageLogging() bool` + +GetAccessAndManageLogging returns the AccessAndManageLogging field if non-nil, zero value otherwise. + +### GetAccessAndManageLoggingOk + +`func (o *GroupProperties) GetAccessAndManageLoggingOk() (*bool, bool)` + +GetAccessAndManageLoggingOk returns a tuple with the AccessAndManageLogging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessAndManageLogging + +`func (o *GroupProperties) SetAccessAndManageLogging(v bool)` + +SetAccessAndManageLogging sets AccessAndManageLogging field to given value. + +### HasAccessAndManageLogging + +`func (o *GroupProperties) HasAccessAndManageLogging() bool` + +HasAccessAndManageLogging returns a boolean if a field has been set. + +### GetAccessAndManageCdn + +`func (o *GroupProperties) GetAccessAndManageCdn() bool` + +GetAccessAndManageCdn returns the AccessAndManageCdn field if non-nil, zero value otherwise. + +### GetAccessAndManageCdnOk + +`func (o *GroupProperties) GetAccessAndManageCdnOk() (*bool, bool)` + +GetAccessAndManageCdnOk returns a tuple with the AccessAndManageCdn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessAndManageCdn + +`func (o *GroupProperties) SetAccessAndManageCdn(v bool)` + +SetAccessAndManageCdn sets AccessAndManageCdn field to given value. + +### HasAccessAndManageCdn + +`func (o *GroupProperties) HasAccessAndManageCdn() bool` + +HasAccessAndManageCdn returns a boolean if a field has been set. + +### GetAccessAndManageVpn + +`func (o *GroupProperties) GetAccessAndManageVpn() bool` + +GetAccessAndManageVpn returns the AccessAndManageVpn field if non-nil, zero value otherwise. + +### GetAccessAndManageVpnOk + +`func (o *GroupProperties) GetAccessAndManageVpnOk() (*bool, bool)` + +GetAccessAndManageVpnOk returns a tuple with the AccessAndManageVpn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessAndManageVpn + +`func (o *GroupProperties) SetAccessAndManageVpn(v bool)` + +SetAccessAndManageVpn sets AccessAndManageVpn field to given value. + +### HasAccessAndManageVpn + +`func (o *GroupProperties) HasAccessAndManageVpn() bool` + +HasAccessAndManageVpn returns a boolean if a field has been set. + +### GetAccessAndManageApiGateway + +`func (o *GroupProperties) GetAccessAndManageApiGateway() bool` + +GetAccessAndManageApiGateway returns the AccessAndManageApiGateway field if non-nil, zero value otherwise. + +### GetAccessAndManageApiGatewayOk + +`func (o *GroupProperties) GetAccessAndManageApiGatewayOk() (*bool, bool)` + +GetAccessAndManageApiGatewayOk returns a tuple with the AccessAndManageApiGateway field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessAndManageApiGateway + +`func (o *GroupProperties) SetAccessAndManageApiGateway(v bool)` + +SetAccessAndManageApiGateway sets AccessAndManageApiGateway field to given value. + +### HasAccessAndManageApiGateway + +`func (o *GroupProperties) HasAccessAndManageApiGateway() bool` + +HasAccessAndManageApiGateway returns a boolean if a field has been set. + +### GetAccessAndManageKaas + +`func (o *GroupProperties) GetAccessAndManageKaas() bool` + +GetAccessAndManageKaas returns the AccessAndManageKaas field if non-nil, zero value otherwise. + +### GetAccessAndManageKaasOk + +`func (o *GroupProperties) GetAccessAndManageKaasOk() (*bool, bool)` + +GetAccessAndManageKaasOk returns a tuple with the AccessAndManageKaas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessAndManageKaas + +`func (o *GroupProperties) SetAccessAndManageKaas(v bool)` + +SetAccessAndManageKaas sets AccessAndManageKaas field to given value. + +### HasAccessAndManageKaas + +`func (o *GroupProperties) HasAccessAndManageKaas() bool` + +HasAccessAndManageKaas returns a boolean if a field has been set. + +### GetAccessAndManageNetworkFileStorage + +`func (o *GroupProperties) GetAccessAndManageNetworkFileStorage() bool` + +GetAccessAndManageNetworkFileStorage returns the AccessAndManageNetworkFileStorage field if non-nil, zero value otherwise. + +### GetAccessAndManageNetworkFileStorageOk + +`func (o *GroupProperties) GetAccessAndManageNetworkFileStorageOk() (*bool, bool)` + +GetAccessAndManageNetworkFileStorageOk returns a tuple with the AccessAndManageNetworkFileStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessAndManageNetworkFileStorage + +`func (o *GroupProperties) SetAccessAndManageNetworkFileStorage(v bool)` + +SetAccessAndManageNetworkFileStorage sets AccessAndManageNetworkFileStorage field to given value. + +### HasAccessAndManageNetworkFileStorage + +`func (o *GroupProperties) HasAccessAndManageNetworkFileStorage() bool` + +HasAccessAndManageNetworkFileStorage returns a boolean if a field has been set. + +### GetAccessAndManageAiModelHub + +`func (o *GroupProperties) GetAccessAndManageAiModelHub() bool` + +GetAccessAndManageAiModelHub returns the AccessAndManageAiModelHub field if non-nil, zero value otherwise. + +### GetAccessAndManageAiModelHubOk + +`func (o *GroupProperties) GetAccessAndManageAiModelHubOk() (*bool, bool)` + +GetAccessAndManageAiModelHubOk returns a tuple with the AccessAndManageAiModelHub field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessAndManageAiModelHub + +`func (o *GroupProperties) SetAccessAndManageAiModelHub(v bool)` + +SetAccessAndManageAiModelHub sets AccessAndManageAiModelHub field to given value. + +### HasAccessAndManageAiModelHub + +`func (o *GroupProperties) HasAccessAndManageAiModelHub() bool` + +HasAccessAndManageAiModelHub returns a boolean if a field has been set. + +### GetAccessAndManageIamResources + +`func (o *GroupProperties) GetAccessAndManageIamResources() bool` + +GetAccessAndManageIamResources returns the AccessAndManageIamResources field if non-nil, zero value otherwise. + +### GetAccessAndManageIamResourcesOk + +`func (o *GroupProperties) GetAccessAndManageIamResourcesOk() (*bool, bool)` + +GetAccessAndManageIamResourcesOk returns a tuple with the AccessAndManageIamResources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessAndManageIamResources + +`func (o *GroupProperties) SetAccessAndManageIamResources(v bool)` + +SetAccessAndManageIamResources sets AccessAndManageIamResources field to given value. + +### HasAccessAndManageIamResources + +`func (o *GroupProperties) HasAccessAndManageIamResources() bool` + +HasAccessAndManageIamResources returns a boolean if a field has been set. + +### GetCreateNetworkSecurityGroups + +`func (o *GroupProperties) GetCreateNetworkSecurityGroups() bool` + +GetCreateNetworkSecurityGroups returns the CreateNetworkSecurityGroups field if non-nil, zero value otherwise. + +### GetCreateNetworkSecurityGroupsOk + +`func (o *GroupProperties) GetCreateNetworkSecurityGroupsOk() (*bool, bool)` + +GetCreateNetworkSecurityGroupsOk returns a tuple with the CreateNetworkSecurityGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateNetworkSecurityGroups + +`func (o *GroupProperties) SetCreateNetworkSecurityGroups(v bool)` + +SetCreateNetworkSecurityGroups sets CreateNetworkSecurityGroups field to given value. + +### HasCreateNetworkSecurityGroups + +`func (o *GroupProperties) HasCreateNetworkSecurityGroups() bool` + +HasCreateNetworkSecurityGroups returns a boolean if a field has been set. + diff --git a/model_group_properties.go b/model_group_properties.go index f61b6c9..830070b 100644 --- a/model_group_properties.go +++ b/model_group_properties.go @@ -50,6 +50,24 @@ type GroupProperties struct { ManageRegistry *bool `json:"manageRegistry,omitempty"` // Privilege for a group to access and manage the Data Platform. ManageDataplatform *bool `json:"manageDataplatform,omitempty"` + // Privilege for a group to access and manage Logs. + AccessAndManageLogging *bool `json:"accessAndManageLogging,omitempty"` + // Privilege for a group to access and manage CDN. + AccessAndManageCdn *bool `json:"accessAndManageCdn,omitempty"` + // Privilege for a group to access and manage VPN. + AccessAndManageVpn *bool `json:"accessAndManageVpn,omitempty"` + // Privilege for a group to access and manage API Gateway. + AccessAndManageApiGateway *bool `json:"accessAndManageApiGateway,omitempty"` + // Privilege for a group to access and manage KaaS. + AccessAndManageKaas *bool `json:"accessAndManageKaas,omitempty"` + // Privilege for a group to access and manage Network File Storage. + AccessAndManageNetworkFileStorage *bool `json:"accessAndManageNetworkFileStorage,omitempty"` + // Privilege for a group to access and manage AI Model Hub. + AccessAndManageAiModelHub *bool `json:"accessAndManageAiModelHub,omitempty"` + // Privilege for a group to access and manage Password Policies. + AccessAndManageIamResources *bool `json:"accessAndManageIamResources,omitempty"` + // Privilege for a group to access and manage Network Security Groups. + CreateNetworkSecurityGroups *bool `json:"createNetworkSecurityGroups,omitempty"` } // NewGroupProperties instantiates a new GroupProperties object @@ -716,6 +734,348 @@ func (o *GroupProperties) HasManageDataplatform() bool { return false } +// GetAccessAndManageLogging returns the AccessAndManageLogging field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetAccessAndManageLogging() *bool { + if o == nil { + return nil + } + + return o.AccessAndManageLogging + +} + +// GetAccessAndManageLoggingOk returns a tuple with the AccessAndManageLogging 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 *GroupProperties) GetAccessAndManageLoggingOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.AccessAndManageLogging, true +} + +// SetAccessAndManageLogging sets field value +func (o *GroupProperties) SetAccessAndManageLogging(v bool) { + + o.AccessAndManageLogging = &v + +} + +// HasAccessAndManageLogging returns a boolean if a field has been set. +func (o *GroupProperties) HasAccessAndManageLogging() bool { + if o != nil && o.AccessAndManageLogging != nil { + return true + } + + return false +} + +// GetAccessAndManageCdn returns the AccessAndManageCdn field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetAccessAndManageCdn() *bool { + if o == nil { + return nil + } + + return o.AccessAndManageCdn + +} + +// GetAccessAndManageCdnOk returns a tuple with the AccessAndManageCdn 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 *GroupProperties) GetAccessAndManageCdnOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.AccessAndManageCdn, true +} + +// SetAccessAndManageCdn sets field value +func (o *GroupProperties) SetAccessAndManageCdn(v bool) { + + o.AccessAndManageCdn = &v + +} + +// HasAccessAndManageCdn returns a boolean if a field has been set. +func (o *GroupProperties) HasAccessAndManageCdn() bool { + if o != nil && o.AccessAndManageCdn != nil { + return true + } + + return false +} + +// GetAccessAndManageVpn returns the AccessAndManageVpn field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetAccessAndManageVpn() *bool { + if o == nil { + return nil + } + + return o.AccessAndManageVpn + +} + +// GetAccessAndManageVpnOk returns a tuple with the AccessAndManageVpn 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 *GroupProperties) GetAccessAndManageVpnOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.AccessAndManageVpn, true +} + +// SetAccessAndManageVpn sets field value +func (o *GroupProperties) SetAccessAndManageVpn(v bool) { + + o.AccessAndManageVpn = &v + +} + +// HasAccessAndManageVpn returns a boolean if a field has been set. +func (o *GroupProperties) HasAccessAndManageVpn() bool { + if o != nil && o.AccessAndManageVpn != nil { + return true + } + + return false +} + +// GetAccessAndManageApiGateway returns the AccessAndManageApiGateway field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetAccessAndManageApiGateway() *bool { + if o == nil { + return nil + } + + return o.AccessAndManageApiGateway + +} + +// GetAccessAndManageApiGatewayOk returns a tuple with the AccessAndManageApiGateway 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 *GroupProperties) GetAccessAndManageApiGatewayOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.AccessAndManageApiGateway, true +} + +// SetAccessAndManageApiGateway sets field value +func (o *GroupProperties) SetAccessAndManageApiGateway(v bool) { + + o.AccessAndManageApiGateway = &v + +} + +// HasAccessAndManageApiGateway returns a boolean if a field has been set. +func (o *GroupProperties) HasAccessAndManageApiGateway() bool { + if o != nil && o.AccessAndManageApiGateway != nil { + return true + } + + return false +} + +// GetAccessAndManageKaas returns the AccessAndManageKaas field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetAccessAndManageKaas() *bool { + if o == nil { + return nil + } + + return o.AccessAndManageKaas + +} + +// GetAccessAndManageKaasOk returns a tuple with the AccessAndManageKaas 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 *GroupProperties) GetAccessAndManageKaasOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.AccessAndManageKaas, true +} + +// SetAccessAndManageKaas sets field value +func (o *GroupProperties) SetAccessAndManageKaas(v bool) { + + o.AccessAndManageKaas = &v + +} + +// HasAccessAndManageKaas returns a boolean if a field has been set. +func (o *GroupProperties) HasAccessAndManageKaas() bool { + if o != nil && o.AccessAndManageKaas != nil { + return true + } + + return false +} + +// GetAccessAndManageNetworkFileStorage returns the AccessAndManageNetworkFileStorage field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetAccessAndManageNetworkFileStorage() *bool { + if o == nil { + return nil + } + + return o.AccessAndManageNetworkFileStorage + +} + +// GetAccessAndManageNetworkFileStorageOk returns a tuple with the AccessAndManageNetworkFileStorage 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 *GroupProperties) GetAccessAndManageNetworkFileStorageOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.AccessAndManageNetworkFileStorage, true +} + +// SetAccessAndManageNetworkFileStorage sets field value +func (o *GroupProperties) SetAccessAndManageNetworkFileStorage(v bool) { + + o.AccessAndManageNetworkFileStorage = &v + +} + +// HasAccessAndManageNetworkFileStorage returns a boolean if a field has been set. +func (o *GroupProperties) HasAccessAndManageNetworkFileStorage() bool { + if o != nil && o.AccessAndManageNetworkFileStorage != nil { + return true + } + + return false +} + +// GetAccessAndManageAiModelHub returns the AccessAndManageAiModelHub field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetAccessAndManageAiModelHub() *bool { + if o == nil { + return nil + } + + return o.AccessAndManageAiModelHub + +} + +// GetAccessAndManageAiModelHubOk returns a tuple with the AccessAndManageAiModelHub 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 *GroupProperties) GetAccessAndManageAiModelHubOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.AccessAndManageAiModelHub, true +} + +// SetAccessAndManageAiModelHub sets field value +func (o *GroupProperties) SetAccessAndManageAiModelHub(v bool) { + + o.AccessAndManageAiModelHub = &v + +} + +// HasAccessAndManageAiModelHub returns a boolean if a field has been set. +func (o *GroupProperties) HasAccessAndManageAiModelHub() bool { + if o != nil && o.AccessAndManageAiModelHub != nil { + return true + } + + return false +} + +// GetAccessAndManageIamResources returns the AccessAndManageIamResources field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetAccessAndManageIamResources() *bool { + if o == nil { + return nil + } + + return o.AccessAndManageIamResources + +} + +// GetAccessAndManageIamResourcesOk returns a tuple with the AccessAndManageIamResources 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 *GroupProperties) GetAccessAndManageIamResourcesOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.AccessAndManageIamResources, true +} + +// SetAccessAndManageIamResources sets field value +func (o *GroupProperties) SetAccessAndManageIamResources(v bool) { + + o.AccessAndManageIamResources = &v + +} + +// HasAccessAndManageIamResources returns a boolean if a field has been set. +func (o *GroupProperties) HasAccessAndManageIamResources() bool { + if o != nil && o.AccessAndManageIamResources != nil { + return true + } + + return false +} + +// GetCreateNetworkSecurityGroups returns the CreateNetworkSecurityGroups field value +// If the value is explicit nil, nil is returned +func (o *GroupProperties) GetCreateNetworkSecurityGroups() *bool { + if o == nil { + return nil + } + + return o.CreateNetworkSecurityGroups + +} + +// GetCreateNetworkSecurityGroupsOk returns a tuple with the CreateNetworkSecurityGroups 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 *GroupProperties) GetCreateNetworkSecurityGroupsOk() (*bool, bool) { + if o == nil { + return nil, false + } + + return o.CreateNetworkSecurityGroups, true +} + +// SetCreateNetworkSecurityGroups sets field value +func (o *GroupProperties) SetCreateNetworkSecurityGroups(v bool) { + + o.CreateNetworkSecurityGroups = &v + +} + +// HasCreateNetworkSecurityGroups returns a boolean if a field has been set. +func (o *GroupProperties) HasCreateNetworkSecurityGroups() bool { + if o != nil && o.CreateNetworkSecurityGroups != nil { + return true + } + + return false +} + func (o GroupProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { @@ -786,6 +1146,42 @@ func (o GroupProperties) MarshalJSON() ([]byte, error) { toSerialize["manageDataplatform"] = o.ManageDataplatform } + if o.AccessAndManageLogging != nil { + toSerialize["accessAndManageLogging"] = o.AccessAndManageLogging + } + + if o.AccessAndManageCdn != nil { + toSerialize["accessAndManageCdn"] = o.AccessAndManageCdn + } + + if o.AccessAndManageVpn != nil { + toSerialize["accessAndManageVpn"] = o.AccessAndManageVpn + } + + if o.AccessAndManageApiGateway != nil { + toSerialize["accessAndManageApiGateway"] = o.AccessAndManageApiGateway + } + + if o.AccessAndManageKaas != nil { + toSerialize["accessAndManageKaas"] = o.AccessAndManageKaas + } + + if o.AccessAndManageNetworkFileStorage != nil { + toSerialize["accessAndManageNetworkFileStorage"] = o.AccessAndManageNetworkFileStorage + } + + if o.AccessAndManageAiModelHub != nil { + toSerialize["accessAndManageAiModelHub"] = o.AccessAndManageAiModelHub + } + + if o.AccessAndManageIamResources != nil { + toSerialize["accessAndManageIamResources"] = o.AccessAndManageIamResources + } + + if o.CreateNetworkSecurityGroups != nil { + toSerialize["createNetworkSecurityGroups"] = o.CreateNetworkSecurityGroups + } + return json.Marshal(toSerialize) }