diff --git a/services/iaasalpha/api_default.go b/services/iaasalpha/api_default.go index d8a00fa5b..05f9ca821 100644 --- a/services/iaasalpha/api_default.go +++ b/services/iaasalpha/api_default.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -233,6 +233,30 @@ type DefaultApi interface { */ ListNetworksExecute(ctx context.Context, projectId string, region string) (*NetworkListResponse, error) + /* + ListNetworksOfRoutingTable List all networks in a routing table. + Get a list of all networks in a routing table. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organizationId The identifier (ID) of a STACKIT Organization. + @param areaId The identifier (ID) of a STACKIT Network Area. + @param region The STACKIT Region of the resources. + @param routingTableId The identifier (ID) of a STACKIT Routing Table. + @return ApiListNetworksOfRoutingTableRequest + */ + ListNetworksOfRoutingTable(ctx context.Context, organizationId string, areaId string, region string, routingTableId string) ApiListNetworksOfRoutingTableRequest + /* + ListNetworksOfRoutingTableExecute executes the request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organizationId The identifier (ID) of a STACKIT Organization. + @param areaId The identifier (ID) of a STACKIT Network Area. + @param region The STACKIT Region of the resources. + @param routingTableId The identifier (ID) of a STACKIT Routing Table. + @return NetworkListResponse + + */ + ListNetworksOfRoutingTableExecute(ctx context.Context, organizationId string, areaId string, region string, routingTableId string) (*NetworkListResponse, error) /* ListRoutesOfRoutingTable List all routes in a routing table. Get a list of all routes in a routing table. @@ -395,6 +419,10 @@ type ApiListNetworksRequest interface { Execute() (*NetworkListResponse, error) } +type ApiListNetworksOfRoutingTableRequest interface { + Execute() (*NetworkListResponse, error) +} + type ApiListRoutesOfRoutingTableRequest interface { // Filter resources by labels. LabelSelector(labelSelector string) ApiListRoutesOfRoutingTableRequest @@ -2514,6 +2542,214 @@ func (a *APIClient) ListNetworksExecute(ctx context.Context, projectId string, r return r.Execute() } +type ListNetworksOfRoutingTableRequest struct { + ctx context.Context + apiService *DefaultApiService + organizationId string + areaId string + region string + routingTableId string +} + +func (r ListNetworksOfRoutingTableRequest) Execute() (*NetworkListResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NetworkListResponse + ) + a := r.apiService + client, ok := a.client.(*APIClient) + if !ok { + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") + } + localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListNetworksOfRoutingTable") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}/networks" + localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(r.organizationId, "organizationId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(r.areaId, "areaId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"routingTableId"+"}", url.PathEscape(ParameterValueToString(r.routingTableId, "routingTableId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if strlen(r.organizationId) < 36 { + return localVarReturnValue, fmt.Errorf("organizationId must have at least 36 elements") + } + if strlen(r.organizationId) > 36 { + return localVarReturnValue, fmt.Errorf("organizationId must have less than 36 elements") + } + if strlen(r.areaId) < 36 { + return localVarReturnValue, fmt.Errorf("areaId must have at least 36 elements") + } + if strlen(r.areaId) > 36 { + return localVarReturnValue, fmt.Errorf("areaId must have less than 36 elements") + } + if strlen(r.routingTableId) < 36 { + return localVarReturnValue, fmt.Errorf("routingTableId must have at least 36 elements") + } + if strlen(r.routingTableId) > 36 { + return localVarReturnValue, fmt.Errorf("routingTableId must have less than 36 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +/* +ListNetworksOfRoutingTable: List all networks in a routing table. + +Get a list of all networks in a routing table. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organizationId The identifier (ID) of a STACKIT Organization. + @param areaId The identifier (ID) of a STACKIT Network Area. + @param region The STACKIT Region of the resources. + @param routingTableId The identifier (ID) of a STACKIT Routing Table. + @return ApiListNetworksOfRoutingTableRequest +*/ +func (a *APIClient) ListNetworksOfRoutingTable(ctx context.Context, organizationId string, areaId string, region string, routingTableId string) ApiListNetworksOfRoutingTableRequest { + return ListNetworksOfRoutingTableRequest{ + apiService: a.defaultApi, + ctx: ctx, + organizationId: organizationId, + areaId: areaId, + region: region, + routingTableId: routingTableId, + } +} + +func (a *APIClient) ListNetworksOfRoutingTableExecute(ctx context.Context, organizationId string, areaId string, region string, routingTableId string) (*NetworkListResponse, error) { + r := ListNetworksOfRoutingTableRequest{ + apiService: a.defaultApi, + ctx: ctx, + organizationId: organizationId, + areaId: areaId, + region: region, + routingTableId: routingTableId, + } + return r.Execute() +} + type ListRoutesOfRoutingTableRequest struct { ctx context.Context apiService *DefaultApiService diff --git a/services/iaasalpha/api_default_test.go b/services/iaasalpha/api_default_test.go index a8099fe38..e0ab157a7 100644 --- a/services/iaasalpha/api_default_test.go +++ b/services/iaasalpha/api_default_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API Testing DefaultApiService @@ -603,6 +603,67 @@ func Test_iaasalpha_DefaultApiService(t *testing.T) { } }) + t.Run("Test DefaultApiService ListNetworksOfRoutingTable", func(t *testing.T) { + _apiUrlPath := "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}/networks" + organizationIdValue := randString(36) + _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"organizationId"+"}", url.PathEscape(ParameterValueToString(organizationIdValue, "organizationId")), -1) + areaIdValue := randString(36) + _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"areaId"+"}", url.PathEscape(ParameterValueToString(areaIdValue, "areaId")), -1) + regionValue := "region-value" + _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(regionValue, "region")), -1) + routingTableIdValue := randString(36) + _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"routingTableId"+"}", url.PathEscape(ParameterValueToString(routingTableIdValue, "routingTableId")), -1) + + testDefaultApiServeMux := http.NewServeMux() + testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { + data := NetworkListResponse{} + w.Header().Add("Content-Type", "application/json") + json.NewEncoder(w).Encode(data) + }) + testServer := httptest.NewServer(testDefaultApiServeMux) + defer testServer.Close() + + configuration := &config.Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Region: "test_region", + Servers: config.ServerConfigurations{ + { + URL: testServer.URL, + Description: "Localhost for iaasalpha_DefaultApi", + Variables: map[string]config.ServerVariable{ + "region": { + DefaultValue: "test_region.", + EnumValues: []string{ + "test_region.", + }, + }, + }, + }, + }, + OperationServers: map[string]config.ServerConfigurations{}, + } + apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) + if err != nil { + t.Fatalf("creating API client: %v", err) + } + + organizationId := organizationIdValue + areaId := areaIdValue + region := regionValue + routingTableId := routingTableIdValue + + resp, reqErr := apiClient.ListNetworksOfRoutingTable(context.Background(), organizationId, areaId, region, routingTableId).Execute() + + if reqErr != nil { + t.Fatalf("error in call: %v", reqErr) + } + if IsNil(resp) { + t.Fatalf("response not present") + } + }) + t.Run("Test DefaultApiService ListRoutesOfRoutingTable", func(t *testing.T) { _apiUrlPath := "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}/routes" organizationIdValue := randString(36) diff --git a/services/iaasalpha/client.go b/services/iaasalpha/client.go index 35123387a..f994a6575 100644 --- a/services/iaasalpha/client.go +++ b/services/iaasalpha/client.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the IaaS-API API v2alpha1 +// APIClient manages communication with the STACKIT IaaS API API v2alpha1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/iaasalpha/configuration.go b/services/iaasalpha/configuration.go index 9eb464e2c..2edd836c8 100644 --- a/services/iaasalpha/configuration.go +++ b/services/iaasalpha/configuration.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_add_routes_to_routing_table_payload.go b/services/iaasalpha/model_add_routes_to_routing_table_payload.go index 1c726a9ff..b669e76e3 100644 --- a/services/iaasalpha/model_add_routes_to_routing_table_payload.go +++ b/services/iaasalpha/model_add_routes_to_routing_table_payload.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_add_routes_to_routing_table_payload_test.go b/services/iaasalpha/model_add_routes_to_routing_table_payload_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_add_routes_to_routing_table_payload_test.go +++ b/services/iaasalpha/model_add_routes_to_routing_table_payload_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_add_routing_table_to_area_payload.go b/services/iaasalpha/model_add_routing_table_to_area_payload.go index 36fdfd09f..e826e44f0 100644 --- a/services/iaasalpha/model_add_routing_table_to_area_payload.go +++ b/services/iaasalpha/model_add_routing_table_to_area_payload.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -79,6 +79,26 @@ func setAddRoutingTableToAreaPayloadGetDescriptionAttributeType(arg *AddRoutingT type AddRoutingTableToAreaPayloadGetDescriptionArgType = string type AddRoutingTableToAreaPayloadGetDescriptionRetType = string +/* + types and functions for dynamicRoutes +*/ + +// isBoolean +type AddRoutingTableToAreaPayloadgetDynamicRoutesAttributeType = *bool +type AddRoutingTableToAreaPayloadgetDynamicRoutesArgType = bool +type AddRoutingTableToAreaPayloadgetDynamicRoutesRetType = bool + +func getAddRoutingTableToAreaPayloadgetDynamicRoutesAttributeTypeOk(arg AddRoutingTableToAreaPayloadgetDynamicRoutesAttributeType) (ret AddRoutingTableToAreaPayloadgetDynamicRoutesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setAddRoutingTableToAreaPayloadgetDynamicRoutesAttributeType(arg *AddRoutingTableToAreaPayloadgetDynamicRoutesAttributeType, val AddRoutingTableToAreaPayloadgetDynamicRoutesRetType) { + *arg = &val +} + /* types and functions for id */ @@ -189,13 +209,16 @@ type AddRoutingTableToAreaPayload struct { Default AddRoutingTableToAreaPayloadgetDefaultAttributeType `json:"default,omitempty"` // Description Object. Allows string up to 255 Characters. Description AddRoutingTableToAreaPayloadGetDescriptionAttributeType `json:"description,omitempty"` + // A config setting for a routing table which allows propagation of dynamic routes to this routing table. + DynamicRoutes AddRoutingTableToAreaPayloadgetDynamicRoutesAttributeType `json:"dynamicRoutes,omitempty"` // Universally Unique Identifier (UUID). Id AddRoutingTableToAreaPayloadGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels AddRoutingTableToAreaPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED - Name AddRoutingTableToAreaPayloadGetNameAttributeType `json:"name" required:"true"` + Name AddRoutingTableToAreaPayloadGetNameAttributeType `json:"name" required:"true"` + // A config setting for a routing table which allows installation of automatic system routes for connectivity between projects in the same SNA. SystemRoutes AddRoutingTableToAreaPayloadgetSystemRoutesAttributeType `json:"systemRoutes,omitempty"` // Date-time when resource was last updated. UpdatedAt AddRoutingTableToAreaPayloadGetUpdatedAtAttributeType `json:"updatedAt,omitempty"` @@ -218,6 +241,8 @@ func NewAddRoutingTableToAreaPayload(name AddRoutingTableToAreaPayloadGetNameArg // but it doesn't guarantee that properties required by API are set func NewAddRoutingTableToAreaPayloadWithDefaults() *AddRoutingTableToAreaPayload { this := AddRoutingTableToAreaPayload{} + var dynamicRoutes bool = true + this.DynamicRoutes = &dynamicRoutes var systemRoutes bool = true this.SystemRoutes = &systemRoutes return &this @@ -292,6 +317,29 @@ func (o *AddRoutingTableToAreaPayload) SetDescription(v AddRoutingTableToAreaPay setAddRoutingTableToAreaPayloadGetDescriptionAttributeType(&o.Description, v) } +// GetDynamicRoutes returns the DynamicRoutes field value if set, zero value otherwise. +func (o *AddRoutingTableToAreaPayload) GetDynamicRoutes() (res AddRoutingTableToAreaPayloadgetDynamicRoutesRetType) { + res, _ = o.GetDynamicRoutesOk() + return +} + +// GetDynamicRoutesOk returns a tuple with the DynamicRoutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddRoutingTableToAreaPayload) GetDynamicRoutesOk() (ret AddRoutingTableToAreaPayloadgetDynamicRoutesRetType, ok bool) { + return getAddRoutingTableToAreaPayloadgetDynamicRoutesAttributeTypeOk(o.DynamicRoutes) +} + +// HasDynamicRoutes returns a boolean if a field has been set. +func (o *AddRoutingTableToAreaPayload) HasDynamicRoutes() bool { + _, ok := o.GetDynamicRoutesOk() + return ok +} + +// SetDynamicRoutes gets a reference to the given bool and assigns it to the DynamicRoutes field. +func (o *AddRoutingTableToAreaPayload) SetDynamicRoutes(v AddRoutingTableToAreaPayloadgetDynamicRoutesRetType) { + setAddRoutingTableToAreaPayloadgetDynamicRoutesAttributeType(&o.DynamicRoutes, v) +} + // GetId returns the Id field value if set, zero value otherwise. func (o *AddRoutingTableToAreaPayload) GetId() (res AddRoutingTableToAreaPayloadGetIdRetType) { res, _ = o.GetIdOk() @@ -412,6 +460,9 @@ func (o AddRoutingTableToAreaPayload) ToMap() (map[string]interface{}, error) { if val, ok := getAddRoutingTableToAreaPayloadGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } + if val, ok := getAddRoutingTableToAreaPayloadgetDynamicRoutesAttributeTypeOk(o.DynamicRoutes); ok { + toSerialize["DynamicRoutes"] = val + } if val, ok := getAddRoutingTableToAreaPayloadGetIdAttributeTypeOk(o.Id); ok { toSerialize["Id"] = val } diff --git a/services/iaasalpha/model_add_routing_table_to_area_payload_test.go b/services/iaasalpha/model_add_routing_table_to_area_payload_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_add_routing_table_to_area_payload_test.go +++ b/services/iaasalpha/model_add_routing_table_to_area_payload_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv4.go b/services/iaasalpha/model_create_network_ipv4.go index ff5471a30..b2adaa57e 100644 --- a/services/iaasalpha/model_create_network_ipv4.go +++ b/services/iaasalpha/model_create_network_ipv4.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv4_test.go b/services/iaasalpha/model_create_network_ipv4_test.go index d5f368bd8..69bd9b204 100644 --- a/services/iaasalpha/model_create_network_ipv4_test.go +++ b/services/iaasalpha/model_create_network_ipv4_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv4_with_prefix.go b/services/iaasalpha/model_create_network_ipv4_with_prefix.go index 34753520e..55a053183 100644 --- a/services/iaasalpha/model_create_network_ipv4_with_prefix.go +++ b/services/iaasalpha/model_create_network_ipv4_with_prefix.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv4_with_prefix_length.go b/services/iaasalpha/model_create_network_ipv4_with_prefix_length.go index 99cdf8c39..3177f491d 100644 --- a/services/iaasalpha/model_create_network_ipv4_with_prefix_length.go +++ b/services/iaasalpha/model_create_network_ipv4_with_prefix_length.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv4_with_prefix_length_test.go b/services/iaasalpha/model_create_network_ipv4_with_prefix_length_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_create_network_ipv4_with_prefix_length_test.go +++ b/services/iaasalpha/model_create_network_ipv4_with_prefix_length_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv4_with_prefix_test.go b/services/iaasalpha/model_create_network_ipv4_with_prefix_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_create_network_ipv4_with_prefix_test.go +++ b/services/iaasalpha/model_create_network_ipv4_with_prefix_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv6.go b/services/iaasalpha/model_create_network_ipv6.go index 707624ef9..1bf2bb897 100644 --- a/services/iaasalpha/model_create_network_ipv6.go +++ b/services/iaasalpha/model_create_network_ipv6.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv6_test.go b/services/iaasalpha/model_create_network_ipv6_test.go index 5d8a1708d..bdac6bfab 100644 --- a/services/iaasalpha/model_create_network_ipv6_test.go +++ b/services/iaasalpha/model_create_network_ipv6_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv6_with_prefix.go b/services/iaasalpha/model_create_network_ipv6_with_prefix.go index 364d1dbb9..1add0e9bf 100644 --- a/services/iaasalpha/model_create_network_ipv6_with_prefix.go +++ b/services/iaasalpha/model_create_network_ipv6_with_prefix.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv6_with_prefix_length.go b/services/iaasalpha/model_create_network_ipv6_with_prefix_length.go index 87b5b74ad..2113b8ad0 100644 --- a/services/iaasalpha/model_create_network_ipv6_with_prefix_length.go +++ b/services/iaasalpha/model_create_network_ipv6_with_prefix_length.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv6_with_prefix_length_test.go b/services/iaasalpha/model_create_network_ipv6_with_prefix_length_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_create_network_ipv6_with_prefix_length_test.go +++ b/services/iaasalpha/model_create_network_ipv6_with_prefix_length_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_ipv6_with_prefix_test.go b/services/iaasalpha/model_create_network_ipv6_with_prefix_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_create_network_ipv6_with_prefix_test.go +++ b/services/iaasalpha/model_create_network_ipv6_with_prefix_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_create_network_payload.go b/services/iaasalpha/model_create_network_payload.go index 9e55903f7..4ab163d3c 100644 --- a/services/iaasalpha/model_create_network_payload.go +++ b/services/iaasalpha/model_create_network_payload.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -165,7 +165,7 @@ type CreateNetworkPayload struct { Dhcp CreateNetworkPayloadgetDhcpAttributeType `json:"dhcp,omitempty"` Ipv4 CreateNetworkPayloadGetIpv4AttributeType `json:"ipv4,omitempty"` Ipv6 CreateNetworkPayloadGetIpv6AttributeType `json:"ipv6,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateNetworkPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaasalpha/model_create_network_payload_test.go b/services/iaasalpha/model_create_network_payload_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_create_network_payload_test.go +++ b/services/iaasalpha/model_create_network_payload_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_destination_cidrv4.go b/services/iaasalpha/model_destination_cidrv4.go index b89a42e76..96836443a 100644 --- a/services/iaasalpha/model_destination_cidrv4.go +++ b/services/iaasalpha/model_destination_cidrv4.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_destination_cidrv4_test.go b/services/iaasalpha/model_destination_cidrv4_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_destination_cidrv4_test.go +++ b/services/iaasalpha/model_destination_cidrv4_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_destination_cidrv6.go b/services/iaasalpha/model_destination_cidrv6.go index 6f210dc62..d89dfefd1 100644 --- a/services/iaasalpha/model_destination_cidrv6.go +++ b/services/iaasalpha/model_destination_cidrv6.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_destination_cidrv6_test.go b/services/iaasalpha/model_destination_cidrv6_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_destination_cidrv6_test.go +++ b/services/iaasalpha/model_destination_cidrv6_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_error.go b/services/iaasalpha/model_error.go index 09350af9e..ab95fdfc5 100644 --- a/services/iaasalpha/model_error.go +++ b/services/iaasalpha/model_error.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_error_test.go b/services/iaasalpha/model_error_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_error_test.go +++ b/services/iaasalpha/model_error_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_network.go b/services/iaasalpha/model_network.go index 7c13eff4b..f30f57563 100644 --- a/services/iaasalpha/model_network.go +++ b/services/iaasalpha/model_network.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -253,7 +253,7 @@ type Network struct { Id NetworkGetIdAttributeType `json:"id" required:"true"` Ipv4 NetworkGetIpv4AttributeType `json:"ipv4,omitempty"` Ipv6 NetworkGetIpv6AttributeType `json:"ipv6,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels NetworkGetLabelsAttributeType `json:"labels,omitempty"` // REQUIRED Name NetworkGetNameAttributeType `json:"name" required:"true"` diff --git a/services/iaasalpha/model_network_ipv4.go b/services/iaasalpha/model_network_ipv4.go index c66c961ca..cb76c88b4 100644 --- a/services/iaasalpha/model_network_ipv4.go +++ b/services/iaasalpha/model_network_ipv4.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_network_ipv4_test.go b/services/iaasalpha/model_network_ipv4_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_network_ipv4_test.go +++ b/services/iaasalpha/model_network_ipv4_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_network_ipv6.go b/services/iaasalpha/model_network_ipv6.go index 147f42042..c69662347 100644 --- a/services/iaasalpha/model_network_ipv6.go +++ b/services/iaasalpha/model_network_ipv6.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_network_ipv6_test.go b/services/iaasalpha/model_network_ipv6_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_network_ipv6_test.go +++ b/services/iaasalpha/model_network_ipv6_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_network_list_response.go b/services/iaasalpha/model_network_list_response.go index 6bdc691dc..47892a897 100644 --- a/services/iaasalpha/model_network_list_response.go +++ b/services/iaasalpha/model_network_list_response.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_network_list_response_test.go b/services/iaasalpha/model_network_list_response_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_network_list_response_test.go +++ b/services/iaasalpha/model_network_list_response_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_network_test.go b/services/iaasalpha/model_network_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_network_test.go +++ b/services/iaasalpha/model_network_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_nexthop_blackhole.go b/services/iaasalpha/model_nexthop_blackhole.go index aca12b147..743e2a7c6 100644 --- a/services/iaasalpha/model_nexthop_blackhole.go +++ b/services/iaasalpha/model_nexthop_blackhole.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_nexthop_blackhole_test.go b/services/iaasalpha/model_nexthop_blackhole_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_nexthop_blackhole_test.go +++ b/services/iaasalpha/model_nexthop_blackhole_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_nexthop_internet.go b/services/iaasalpha/model_nexthop_internet.go index e65324403..bbb6bdf31 100644 --- a/services/iaasalpha/model_nexthop_internet.go +++ b/services/iaasalpha/model_nexthop_internet.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_nexthop_internet_test.go b/services/iaasalpha/model_nexthop_internet_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_nexthop_internet_test.go +++ b/services/iaasalpha/model_nexthop_internet_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_nexthop_ipv4.go b/services/iaasalpha/model_nexthop_ipv4.go index 872c90f30..83ce911fa 100644 --- a/services/iaasalpha/model_nexthop_ipv4.go +++ b/services/iaasalpha/model_nexthop_ipv4.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_nexthop_ipv4_test.go b/services/iaasalpha/model_nexthop_ipv4_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_nexthop_ipv4_test.go +++ b/services/iaasalpha/model_nexthop_ipv4_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_nexthop_ipv6.go b/services/iaasalpha/model_nexthop_ipv6.go index 20d7c0cf2..079ae4522 100644 --- a/services/iaasalpha/model_nexthop_ipv6.go +++ b/services/iaasalpha/model_nexthop_ipv6.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_nexthop_ipv6_test.go b/services/iaasalpha/model_nexthop_ipv6_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_nexthop_ipv6_test.go +++ b/services/iaasalpha/model_nexthop_ipv6_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_partial_update_network_payload.go b/services/iaasalpha/model_partial_update_network_payload.go index 91c661748..1f837fc94 100644 --- a/services/iaasalpha/model_partial_update_network_payload.go +++ b/services/iaasalpha/model_partial_update_network_payload.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -165,7 +165,7 @@ type PartialUpdateNetworkPayload struct { Dhcp PartialUpdateNetworkPayloadgetDhcpAttributeType `json:"dhcp,omitempty"` Ipv4 PartialUpdateNetworkPayloadGetIpv4AttributeType `json:"ipv4,omitempty"` Ipv6 PartialUpdateNetworkPayloadGetIpv6AttributeType `json:"ipv6,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels PartialUpdateNetworkPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name PartialUpdateNetworkPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaasalpha/model_partial_update_network_payload_test.go b/services/iaasalpha/model_partial_update_network_payload_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_partial_update_network_payload_test.go +++ b/services/iaasalpha/model_partial_update_network_payload_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_route.go b/services/iaasalpha/model_route.go index 7f1dae56b..0227580bd 100644 --- a/services/iaasalpha/model_route.go +++ b/services/iaasalpha/model_route.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -147,7 +147,7 @@ type Route struct { Destination RouteGetDestinationAttributeType `json:"destination" required:"true"` // Universally Unique Identifier (UUID). Id RouteGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels RouteGetLabelsAttributeType `json:"labels,omitempty"` // REQUIRED Nexthop RouteGetNexthopAttributeType `json:"nexthop" required:"true"` diff --git a/services/iaasalpha/model_route_destination.go b/services/iaasalpha/model_route_destination.go index 0dcec16e6..90061ce77 100644 --- a/services/iaasalpha/model_route_destination.go +++ b/services/iaasalpha/model_route_destination.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_route_destination_test.go b/services/iaasalpha/model_route_destination_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_route_destination_test.go +++ b/services/iaasalpha/model_route_destination_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_route_list_response.go b/services/iaasalpha/model_route_list_response.go index 217510e17..548ccce2f 100644 --- a/services/iaasalpha/model_route_list_response.go +++ b/services/iaasalpha/model_route_list_response.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_route_list_response_test.go b/services/iaasalpha/model_route_list_response_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_route_list_response_test.go +++ b/services/iaasalpha/model_route_list_response_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_route_nexthop.go b/services/iaasalpha/model_route_nexthop.go index 1dcc862db..ada85df77 100644 --- a/services/iaasalpha/model_route_nexthop.go +++ b/services/iaasalpha/model_route_nexthop.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_route_nexthop_test.go b/services/iaasalpha/model_route_nexthop_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_route_nexthop_test.go +++ b/services/iaasalpha/model_route_nexthop_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_route_test.go b/services/iaasalpha/model_route_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_route_test.go +++ b/services/iaasalpha/model_route_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_routing_table.go b/services/iaasalpha/model_routing_table.go index f99908525..fdbe737e7 100644 --- a/services/iaasalpha/model_routing_table.go +++ b/services/iaasalpha/model_routing_table.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -79,6 +79,26 @@ func setRoutingTableGetDescriptionAttributeType(arg *RoutingTableGetDescriptionA type RoutingTableGetDescriptionArgType = string type RoutingTableGetDescriptionRetType = string +/* + types and functions for dynamicRoutes +*/ + +// isBoolean +type RoutingTablegetDynamicRoutesAttributeType = *bool +type RoutingTablegetDynamicRoutesArgType = bool +type RoutingTablegetDynamicRoutesRetType = bool + +func getRoutingTablegetDynamicRoutesAttributeTypeOk(arg RoutingTablegetDynamicRoutesAttributeType) (ret RoutingTablegetDynamicRoutesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setRoutingTablegetDynamicRoutesAttributeType(arg *RoutingTablegetDynamicRoutesAttributeType, val RoutingTablegetDynamicRoutesRetType) { + *arg = &val +} + /* types and functions for id */ @@ -189,13 +209,16 @@ type RoutingTable struct { Default RoutingTablegetDefaultAttributeType `json:"default,omitempty"` // Description Object. Allows string up to 255 Characters. Description RoutingTableGetDescriptionAttributeType `json:"description,omitempty"` + // A config setting for a routing table which allows propagation of dynamic routes to this routing table. + DynamicRoutes RoutingTablegetDynamicRoutesAttributeType `json:"dynamicRoutes,omitempty"` // Universally Unique Identifier (UUID). Id RoutingTableGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels RoutingTableGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED - Name RoutingTableGetNameAttributeType `json:"name" required:"true"` + Name RoutingTableGetNameAttributeType `json:"name" required:"true"` + // A config setting for a routing table which allows installation of automatic system routes for connectivity between projects in the same SNA. SystemRoutes RoutingTablegetSystemRoutesAttributeType `json:"systemRoutes,omitempty"` // Date-time when resource was last updated. UpdatedAt RoutingTableGetUpdatedAtAttributeType `json:"updatedAt,omitempty"` @@ -218,6 +241,8 @@ func NewRoutingTable(name RoutingTableGetNameArgType) *RoutingTable { // but it doesn't guarantee that properties required by API are set func NewRoutingTableWithDefaults() *RoutingTable { this := RoutingTable{} + var dynamicRoutes bool = true + this.DynamicRoutes = &dynamicRoutes var systemRoutes bool = true this.SystemRoutes = &systemRoutes return &this @@ -292,6 +317,29 @@ func (o *RoutingTable) SetDescription(v RoutingTableGetDescriptionRetType) { setRoutingTableGetDescriptionAttributeType(&o.Description, v) } +// GetDynamicRoutes returns the DynamicRoutes field value if set, zero value otherwise. +func (o *RoutingTable) GetDynamicRoutes() (res RoutingTablegetDynamicRoutesRetType) { + res, _ = o.GetDynamicRoutesOk() + return +} + +// GetDynamicRoutesOk returns a tuple with the DynamicRoutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoutingTable) GetDynamicRoutesOk() (ret RoutingTablegetDynamicRoutesRetType, ok bool) { + return getRoutingTablegetDynamicRoutesAttributeTypeOk(o.DynamicRoutes) +} + +// HasDynamicRoutes returns a boolean if a field has been set. +func (o *RoutingTable) HasDynamicRoutes() bool { + _, ok := o.GetDynamicRoutesOk() + return ok +} + +// SetDynamicRoutes gets a reference to the given bool and assigns it to the DynamicRoutes field. +func (o *RoutingTable) SetDynamicRoutes(v RoutingTablegetDynamicRoutesRetType) { + setRoutingTablegetDynamicRoutesAttributeType(&o.DynamicRoutes, v) +} + // GetId returns the Id field value if set, zero value otherwise. func (o *RoutingTable) GetId() (res RoutingTableGetIdRetType) { res, _ = o.GetIdOk() @@ -412,6 +460,9 @@ func (o RoutingTable) ToMap() (map[string]interface{}, error) { if val, ok := getRoutingTableGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } + if val, ok := getRoutingTablegetDynamicRoutesAttributeTypeOk(o.DynamicRoutes); ok { + toSerialize["DynamicRoutes"] = val + } if val, ok := getRoutingTableGetIdAttributeTypeOk(o.Id); ok { toSerialize["Id"] = val } diff --git a/services/iaasalpha/model_routing_table_list_response.go b/services/iaasalpha/model_routing_table_list_response.go index 48d76eff7..5ba2383a7 100644 --- a/services/iaasalpha/model_routing_table_list_response.go +++ b/services/iaasalpha/model_routing_table_list_response.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_routing_table_list_response_test.go b/services/iaasalpha/model_routing_table_list_response_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_routing_table_list_response_test.go +++ b/services/iaasalpha/model_routing_table_list_response_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_routing_table_test.go b/services/iaasalpha/model_routing_table_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_routing_table_test.go +++ b/services/iaasalpha/model_routing_table_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_update_network_ipv4_body.go b/services/iaasalpha/model_update_network_ipv4_body.go index 0cfb0c33a..e4799f1a6 100644 --- a/services/iaasalpha/model_update_network_ipv4_body.go +++ b/services/iaasalpha/model_update_network_ipv4_body.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_update_network_ipv4_body_test.go b/services/iaasalpha/model_update_network_ipv4_body_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_update_network_ipv4_body_test.go +++ b/services/iaasalpha/model_update_network_ipv4_body_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_update_network_ipv6_body.go b/services/iaasalpha/model_update_network_ipv6_body.go index 0002d7f93..9c6fe0ec7 100644 --- a/services/iaasalpha/model_update_network_ipv6_body.go +++ b/services/iaasalpha/model_update_network_ipv6_body.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_update_network_ipv6_body_test.go b/services/iaasalpha/model_update_network_ipv6_body_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_update_network_ipv6_body_test.go +++ b/services/iaasalpha/model_update_network_ipv6_body_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_update_route_of_routing_table_payload.go b/services/iaasalpha/model_update_route_of_routing_table_payload.go index f6eccec9b..4b65c9f4d 100644 --- a/services/iaasalpha/model_update_route_of_routing_table_payload.go +++ b/services/iaasalpha/model_update_route_of_routing_table_payload.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -39,7 +39,7 @@ func setUpdateRouteOfRoutingTablePayloadGetLabelsAttributeType(arg *UpdateRouteO // UpdateRouteOfRoutingTablePayload Object that represents the request body for a route update. type UpdateRouteOfRoutingTablePayload struct { - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateRouteOfRoutingTablePayloadGetLabelsAttributeType `json:"labels,omitempty"` } diff --git a/services/iaasalpha/model_update_route_of_routing_table_payload_test.go b/services/iaasalpha/model_update_route_of_routing_table_payload_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_update_route_of_routing_table_payload_test.go +++ b/services/iaasalpha/model_update_route_of_routing_table_payload_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/model_update_routing_table_of_area_payload.go b/services/iaasalpha/model_update_routing_table_of_area_payload.go index 1ab02848b..8b7cf9569 100644 --- a/services/iaasalpha/model_update_routing_table_of_area_payload.go +++ b/services/iaasalpha/model_update_routing_table_of_area_payload.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. @@ -38,6 +38,26 @@ func setUpdateRoutingTableOfAreaPayloadGetDescriptionAttributeType(arg *UpdateRo type UpdateRoutingTableOfAreaPayloadGetDescriptionArgType = string type UpdateRoutingTableOfAreaPayloadGetDescriptionRetType = string +/* + types and functions for dynamicRoutes +*/ + +// isBoolean +type UpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeType = *bool +type UpdateRoutingTableOfAreaPayloadgetDynamicRoutesArgType = bool +type UpdateRoutingTableOfAreaPayloadgetDynamicRoutesRetType = bool + +func getUpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeTypeOk(arg UpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeType) (ret UpdateRoutingTableOfAreaPayloadgetDynamicRoutesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setUpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeType(arg *UpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeType, val UpdateRoutingTableOfAreaPayloadgetDynamicRoutesRetType) { + *arg = &val +} + /* types and functions for labels */ @@ -79,14 +99,38 @@ func setUpdateRoutingTableOfAreaPayloadGetNameAttributeType(arg *UpdateRoutingTa type UpdateRoutingTableOfAreaPayloadGetNameArgType = string type UpdateRoutingTableOfAreaPayloadGetNameRetType = string +/* + types and functions for systemRoutes +*/ + +// isBoolean +type UpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeType = *bool +type UpdateRoutingTableOfAreaPayloadgetSystemRoutesArgType = bool +type UpdateRoutingTableOfAreaPayloadgetSystemRoutesRetType = bool + +func getUpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeTypeOk(arg UpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeType) (ret UpdateRoutingTableOfAreaPayloadgetSystemRoutesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setUpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeType(arg *UpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeType, val UpdateRoutingTableOfAreaPayloadgetSystemRoutesRetType) { + *arg = &val +} + // UpdateRoutingTableOfAreaPayload Object that represents the request body for a routing table update. type UpdateRoutingTableOfAreaPayload struct { // Description Object. Allows string up to 255 Characters. Description UpdateRoutingTableOfAreaPayloadGetDescriptionAttributeType `json:"description,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // The update config setting for a routing table which allows propagation of dynamic routes to this routing table. + DynamicRoutes UpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeType `json:"dynamicRoutes,omitempty"` + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateRoutingTableOfAreaPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name UpdateRoutingTableOfAreaPayloadGetNameAttributeType `json:"name,omitempty"` + // The update config setting for a routing table which allows installation of automatic system routes for connectivity between projects in the same SNA. + SystemRoutes UpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeType `json:"systemRoutes,omitempty"` } // NewUpdateRoutingTableOfAreaPayload instantiates a new UpdateRoutingTableOfAreaPayload object @@ -129,6 +173,29 @@ func (o *UpdateRoutingTableOfAreaPayload) SetDescription(v UpdateRoutingTableOfA setUpdateRoutingTableOfAreaPayloadGetDescriptionAttributeType(&o.Description, v) } +// GetDynamicRoutes returns the DynamicRoutes field value if set, zero value otherwise. +func (o *UpdateRoutingTableOfAreaPayload) GetDynamicRoutes() (res UpdateRoutingTableOfAreaPayloadgetDynamicRoutesRetType) { + res, _ = o.GetDynamicRoutesOk() + return +} + +// GetDynamicRoutesOk returns a tuple with the DynamicRoutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateRoutingTableOfAreaPayload) GetDynamicRoutesOk() (ret UpdateRoutingTableOfAreaPayloadgetDynamicRoutesRetType, ok bool) { + return getUpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeTypeOk(o.DynamicRoutes) +} + +// HasDynamicRoutes returns a boolean if a field has been set. +func (o *UpdateRoutingTableOfAreaPayload) HasDynamicRoutes() bool { + _, ok := o.GetDynamicRoutesOk() + return ok +} + +// SetDynamicRoutes gets a reference to the given bool and assigns it to the DynamicRoutes field. +func (o *UpdateRoutingTableOfAreaPayload) SetDynamicRoutes(v UpdateRoutingTableOfAreaPayloadgetDynamicRoutesRetType) { + setUpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeType(&o.DynamicRoutes, v) +} + // GetLabels returns the Labels field value if set, zero value otherwise. func (o *UpdateRoutingTableOfAreaPayload) GetLabels() (res UpdateRoutingTableOfAreaPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() @@ -175,17 +242,46 @@ func (o *UpdateRoutingTableOfAreaPayload) SetName(v UpdateRoutingTableOfAreaPayl setUpdateRoutingTableOfAreaPayloadGetNameAttributeType(&o.Name, v) } +// GetSystemRoutes returns the SystemRoutes field value if set, zero value otherwise. +func (o *UpdateRoutingTableOfAreaPayload) GetSystemRoutes() (res UpdateRoutingTableOfAreaPayloadgetSystemRoutesRetType) { + res, _ = o.GetSystemRoutesOk() + return +} + +// GetSystemRoutesOk returns a tuple with the SystemRoutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateRoutingTableOfAreaPayload) GetSystemRoutesOk() (ret UpdateRoutingTableOfAreaPayloadgetSystemRoutesRetType, ok bool) { + return getUpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeTypeOk(o.SystemRoutes) +} + +// HasSystemRoutes returns a boolean if a field has been set. +func (o *UpdateRoutingTableOfAreaPayload) HasSystemRoutes() bool { + _, ok := o.GetSystemRoutesOk() + return ok +} + +// SetSystemRoutes gets a reference to the given bool and assigns it to the SystemRoutes field. +func (o *UpdateRoutingTableOfAreaPayload) SetSystemRoutes(v UpdateRoutingTableOfAreaPayloadgetSystemRoutesRetType) { + setUpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeType(&o.SystemRoutes, v) +} + func (o UpdateRoutingTableOfAreaPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateRoutingTableOfAreaPayloadGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } + if val, ok := getUpdateRoutingTableOfAreaPayloadgetDynamicRoutesAttributeTypeOk(o.DynamicRoutes); ok { + toSerialize["DynamicRoutes"] = val + } if val, ok := getUpdateRoutingTableOfAreaPayloadGetLabelsAttributeTypeOk(o.Labels); ok { toSerialize["Labels"] = val } if val, ok := getUpdateRoutingTableOfAreaPayloadGetNameAttributeTypeOk(o.Name); ok { toSerialize["Name"] = val } + if val, ok := getUpdateRoutingTableOfAreaPayloadgetSystemRoutesAttributeTypeOk(o.SystemRoutes); ok { + toSerialize["SystemRoutes"] = val + } return toSerialize, nil } diff --git a/services/iaasalpha/model_update_routing_table_of_area_payload_test.go b/services/iaasalpha/model_update_routing_table_of_area_payload_test.go index 7b8f0d01a..0eb7b505a 100644 --- a/services/iaasalpha/model_update_routing_table_of_area_payload_test.go +++ b/services/iaasalpha/model_update_routing_table_of_area_payload_test.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources. diff --git a/services/iaasalpha/utils.go b/services/iaasalpha/utils.go index ac3c54961..93de50a64 100644 --- a/services/iaasalpha/utils.go +++ b/services/iaasalpha/utils.go @@ -1,5 +1,5 @@ /* -IaaS-API +STACKIT IaaS API This API allows you to create and modify IaaS resources.