From 8825955fe13705e48106b4bfbaf0969fbf25ed21 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 9 Apr 2024 13:37:26 +0000 Subject: [PATCH 1/6] Generate services --- services/argus/api_default.go | 170 ++++++++++++++++ services/authorization/api_default.go | 30 +++ .../authorization/model_add_roles_payload.go | 18 -- .../model_add_roles_payload_item.go | 20 -- .../model_admin_move_resource_payload.go | 15 -- .../model_admin_move_resource_response.go | 15 -- services/authorization/model_consistency.go | 18 -- .../model_create_resource_payload.go | 22 --- .../model_create_resource_response.go | 25 --- .../model_delete_resource_response.go | 15 -- .../model_delete_subject_response.go | 17 -- services/authorization/model_domain_filter.go | 22 --- .../model_domain_filter_payload.go | 16 -- .../model_domain_filter_response.go | 16 -- .../model_enforce_permission_payload.go | 23 --- .../model_list_subject_ids_response.go | 19 -- .../model_list_subjects_response.go | 16 -- .../authorization/model_move_destination.go | 18 -- .../authorization/model_move_initiator.go | 18 -- .../model_move_resource_payload.go | 16 -- .../model_move_resource_response.go | 15 -- .../authorization/model_permission_request.go | 16 -- .../model_remove_role_request.go | 16 -- .../model_remove_roles_payload.go | 18 -- services/authorization/model_resource.go | 19 -- services/authorization/model_subject.go | 20 -- ...el_transfer_subject_memberships_payload.go | 16 -- .../model_user_resources_response.go | 21 -- .../model_validate_child_members_payload.go | 20 -- .../model_write_schema_payload.go | 16 -- .../model_write_schema_response.go | 16 -- services/dns/api_default.go | 55 ++++++ services/loadbalancer/api_default.go | 182 ++++++++++++++++++ services/loadbalancer/api_default_test.go | 52 +++++ services/loadbalancer/model_credentials.go | 20 -- services/loadbalancer/model_target.go | 2 +- services/logme/api_default.go | 50 +++++ services/mariadb/api_default.go | 50 +++++ services/membership/api_default.go | 30 +++ services/mongodbflex/api_default.go | 120 ++++++++++++ services/objectstorage/api_default.go | 65 +++++++ .../model_force_delete_response.go | 17 -- services/opensearch/api_default.go | 50 +++++ services/postgresflex/api_default.go | 100 ++++++++++ services/postgresql/api_default.go | 50 +++++ services/rabbitmq/api_default.go | 50 +++++ services/redis/api_default.go | 50 +++++ services/resourcemanager/api_default.go | 25 +++ services/secretsmanager/api_default.go | 75 ++++++++ services/serviceaccount/api_default.go | 65 +++++++ ...create_internal_service_account_payload.go | 20 -- ...del_impersonate_service_account_payload.go | 16 -- ...el_impersonate_service_account_response.go | 22 --- .../model_introspect_jwt_payload.go | 17 -- .../model_introspect_jwt_response.go | 26 --- services/serviceaccount/model_scim_error.go | 18 -- .../model_scim_error_response_detail.go | 17 -- .../model_scim_list_response.go | 28 --- .../model_scim_schema_service_account.go | 27 --- ...schema_service_account_attributes_inner.go | 32 --- .../model_scim_service_account.go | 34 ---- .../model_scim_service_account_meta.go | 33 ---- services/ske/api_default.go | 80 ++++++++ services/ske/model_v1_noop_feature.go | 15 -- 64 files changed, 1350 insertions(+), 865 deletions(-) delete mode 100644 services/authorization/model_add_roles_payload.go delete mode 100644 services/authorization/model_add_roles_payload_item.go delete mode 100644 services/authorization/model_admin_move_resource_payload.go delete mode 100644 services/authorization/model_admin_move_resource_response.go delete mode 100644 services/authorization/model_consistency.go delete mode 100644 services/authorization/model_create_resource_payload.go delete mode 100644 services/authorization/model_create_resource_response.go delete mode 100644 services/authorization/model_delete_resource_response.go delete mode 100644 services/authorization/model_delete_subject_response.go delete mode 100644 services/authorization/model_domain_filter.go delete mode 100644 services/authorization/model_domain_filter_payload.go delete mode 100644 services/authorization/model_domain_filter_response.go delete mode 100644 services/authorization/model_enforce_permission_payload.go delete mode 100644 services/authorization/model_list_subject_ids_response.go delete mode 100644 services/authorization/model_list_subjects_response.go delete mode 100644 services/authorization/model_move_destination.go delete mode 100644 services/authorization/model_move_initiator.go delete mode 100644 services/authorization/model_move_resource_payload.go delete mode 100644 services/authorization/model_move_resource_response.go delete mode 100644 services/authorization/model_permission_request.go delete mode 100644 services/authorization/model_remove_role_request.go delete mode 100644 services/authorization/model_remove_roles_payload.go delete mode 100644 services/authorization/model_resource.go delete mode 100644 services/authorization/model_subject.go delete mode 100644 services/authorization/model_transfer_subject_memberships_payload.go delete mode 100644 services/authorization/model_user_resources_response.go delete mode 100644 services/authorization/model_validate_child_members_payload.go delete mode 100644 services/authorization/model_write_schema_payload.go delete mode 100644 services/authorization/model_write_schema_response.go delete mode 100644 services/loadbalancer/model_credentials.go delete mode 100644 services/objectstorage/model_force_delete_response.go delete mode 100644 services/serviceaccount/model_create_internal_service_account_payload.go delete mode 100644 services/serviceaccount/model_impersonate_service_account_payload.go delete mode 100644 services/serviceaccount/model_impersonate_service_account_response.go delete mode 100644 services/serviceaccount/model_introspect_jwt_payload.go delete mode 100644 services/serviceaccount/model_introspect_jwt_response.go delete mode 100644 services/serviceaccount/model_scim_error.go delete mode 100644 services/serviceaccount/model_scim_error_response_detail.go delete mode 100644 services/serviceaccount/model_scim_list_response.go delete mode 100644 services/serviceaccount/model_scim_schema_service_account.go delete mode 100644 services/serviceaccount/model_scim_schema_service_account_attributes_inner.go delete mode 100644 services/serviceaccount/model_scim_service_account.go delete mode 100644 services/serviceaccount/model_scim_service_account_meta.go delete mode 100644 services/ske/model_v1_noop_feature.go diff --git a/services/argus/api_default.go b/services/argus/api_default.go index 9f9446269..5171676e9 100644 --- a/services/argus/api_default.go +++ b/services/argus/api_default.go @@ -87,6 +87,11 @@ func (r ApiCreateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRes return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -236,6 +241,11 @@ func (r ApiCreateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -374,6 +384,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -510,6 +525,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -656,6 +676,11 @@ func (r ApiCreateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -796,6 +821,11 @@ func (r ApiDeleteAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRes return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -939,6 +969,11 @@ func (r ApiDeleteAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1082,6 +1117,11 @@ func (r ApiDeleteCredentialsRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1236,6 +1276,11 @@ func (r ApiDeleteCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRem return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1399,6 +1444,11 @@ func (r ApiDeleteInstanceRequest) Execute() (*InstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1528,6 +1578,11 @@ func (r ApiDeleteScrapeConfigRequest) Execute() (*DeleteScrapeConfigResponse, er return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1671,6 +1726,11 @@ func (r ApiGetAlertConfigReceiverRequest) Execute() (*Receiver, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1814,6 +1874,11 @@ func (r ApiGetAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, err return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1944,6 +2009,11 @@ func (r ApiGetAlertConfigsRequest) Execute() (*GetAlertConfigsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2073,6 +2143,11 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2216,6 +2291,11 @@ func (r ApiGetCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemote return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2368,6 +2448,11 @@ func (r ApiGetGrafanaConfigsRequest) Execute() (*GrafanaConfigs, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2495,6 +2580,11 @@ func (r ApiGetInstanceRequest) Execute() (*GetInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2624,6 +2714,11 @@ func (r ApiGetScrapeConfigRequest) Execute() (*GetScrapeConfigResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2754,6 +2849,11 @@ func (r ApiListACLRequest) Execute() (*ListACLResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2881,6 +2981,11 @@ func (r ApiListAlertConfigReceiversRequest) Execute() (*AlertConfigReceiversResp return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3008,6 +3113,11 @@ func (r ApiListAlertConfigRoutesRequest) Execute() (*AlertConfigRouteResponse, e return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3135,6 +3245,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3260,6 +3375,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3382,6 +3502,11 @@ func (r ApiListPlansRequest) Execute() (*PlansResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3506,6 +3631,11 @@ func (r ApiListScrapeConfigsRequest) Execute() (*ListScrapeConfigsResponse, erro return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3641,6 +3771,11 @@ func (r ApiUpdateACLRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3792,6 +3927,11 @@ func (r ApiUpdateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRes return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3957,6 +4097,11 @@ func (r ApiUpdateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4120,6 +4265,11 @@ func (r ApiUpdateAlertConfigsRequest) Execute() (*UpdateAlertConfigsResponse, er return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4271,6 +4421,11 @@ func (r ApiUpdateCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRem return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4445,6 +4600,11 @@ func (r ApiUpdateGrafanaConfigsRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4594,6 +4754,11 @@ func (r ApiUpdateInstanceRequest) Execute() (*InstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4745,6 +4910,11 @@ func (r ApiUpdateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/authorization/api_default.go b/services/authorization/api_default.go index 83fe2a78c..074f2c465 100644 --- a/services/authorization/api_default.go +++ b/services/authorization/api_default.go @@ -85,6 +85,11 @@ func (r ApiAddMembersRequest) Execute() (*MembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -240,6 +245,11 @@ func (r ApiListMembersRequest) Execute() (*ListMembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -394,6 +404,11 @@ func (r ApiListPermissionsRequest) Execute() (*ListPermissionsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -537,6 +552,11 @@ func (r ApiListRolesRequest) Execute() (*RolesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -711,6 +731,11 @@ func (r ApiListUserMembershipsRequest) Execute() (*ListUserMembershipsResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -866,6 +891,11 @@ func (r ApiRemoveMembersRequest) Execute() (*MembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/authorization/model_add_roles_payload.go b/services/authorization/model_add_roles_payload.go deleted file mode 100644 index 5467919cd..000000000 --- a/services/authorization/model_add_roles_payload.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type AddRolesPayload struct { - // REQUIRED - ResourceType *string `json:"resourceType"` - // REQUIRED - Roles *[]AddRolesPayloadItem `json:"roles"` -} diff --git a/services/authorization/model_add_roles_payload_item.go b/services/authorization/model_add_roles_payload_item.go deleted file mode 100644 index 992508302..000000000 --- a/services/authorization/model_add_roles_payload_item.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type AddRolesPayloadItem struct { - // REQUIRED - Description *string `json:"description"` - // REQUIRED - Name *string `json:"name"` - // REQUIRED - Permissions *[]PermissionRequest `json:"permissions"` -} diff --git a/services/authorization/model_admin_move_resource_payload.go b/services/authorization/model_admin_move_resource_payload.go deleted file mode 100644 index 94b501e86..000000000 --- a/services/authorization/model_admin_move_resource_payload.go +++ /dev/null @@ -1,15 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type AdminMoveResourcePayload struct { - Destination *MoveDestination `json:"destination,omitempty"` -} diff --git a/services/authorization/model_admin_move_resource_response.go b/services/authorization/model_admin_move_resource_response.go deleted file mode 100644 index ee07d24bd..000000000 --- a/services/authorization/model_admin_move_resource_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type AdminMoveResourceResponse struct { - WrittenAt *Zookie `json:"writtenAt,omitempty"` -} diff --git a/services/authorization/model_consistency.go b/services/authorization/model_consistency.go deleted file mode 100644 index 73feee62b..000000000 --- a/services/authorization/model_consistency.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type Consistency struct { - AtExactSnapshot *Zookie `json:"atExactSnapshot,omitempty"` - AtLeastAsFresh *Zookie `json:"atLeastAsFresh,omitempty"` - FullyConsistent *bool `json:"fullyConsistent,omitempty"` - MinimizeLatency *bool `json:"minimizeLatency,omitempty"` -} diff --git a/services/authorization/model_create_resource_payload.go b/services/authorization/model_create_resource_payload.go deleted file mode 100644 index 1ad2dc036..000000000 --- a/services/authorization/model_create_resource_payload.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type CreateResourcePayload struct { - Members *[]Member `json:"members,omitempty"` - // REQUIRED - ParentId *string `json:"parentId"` - // REQUIRED - ParentType *string `json:"parentType"` - ResourceAlias *string `json:"resourceAlias,omitempty"` - // REQUIRED - ResourceId *string `json:"resourceId"` -} diff --git a/services/authorization/model_create_resource_response.go b/services/authorization/model_create_resource_response.go deleted file mode 100644 index 11ac841ae..000000000 --- a/services/authorization/model_create_resource_response.go +++ /dev/null @@ -1,25 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type CreateResourceResponse struct { - Members *[]Member `json:"members,omitempty"` - // REQUIRED - ParentId *string `json:"parentId"` - // REQUIRED - ParentType *string `json:"parentType"` - ResourceAlias *string `json:"resourceAlias,omitempty"` - // REQUIRED - ResourceId *string `json:"resourceId"` - // REQUIRED - ResourceType *string `json:"resourceType"` - WrittenAt *Zookie `json:"writtenAt,omitempty"` -} diff --git a/services/authorization/model_delete_resource_response.go b/services/authorization/model_delete_resource_response.go deleted file mode 100644 index c2fc075c0..000000000 --- a/services/authorization/model_delete_resource_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type DeleteResourceResponse struct { - WrittenAt *Zookie `json:"writtenAt,omitempty"` -} diff --git a/services/authorization/model_delete_subject_response.go b/services/authorization/model_delete_subject_response.go deleted file mode 100644 index 2dc7a8df7..000000000 --- a/services/authorization/model_delete_subject_response.go +++ /dev/null @@ -1,17 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type DeleteSubjectResponse struct { - DeletedAt *Zookie `json:"deletedAt,omitempty"` - // REQUIRED - DeletedFromResourceIds *[]string `json:"deletedFromResourceIds"` -} diff --git a/services/authorization/model_domain_filter.go b/services/authorization/model_domain_filter.go deleted file mode 100644 index 4717a2f99..000000000 --- a/services/authorization/model_domain_filter.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type DomainFilter struct { - Domains *[]string `json:"domains,omitempty"` - // REQUIRED - Effective *bool `json:"effective"` - // REQUIRED - ResourceId *string `json:"resourceId"` - // REQUIRED - ResourceType *string `json:"resourceType"` - UpdatedAt *string `json:"updatedAt,omitempty"` -} diff --git a/services/authorization/model_domain_filter_payload.go b/services/authorization/model_domain_filter_payload.go deleted file mode 100644 index ceef23afc..000000000 --- a/services/authorization/model_domain_filter_payload.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type DomainFilterPayload struct { - // REQUIRED - Domains *[]string `json:"domains"` -} diff --git a/services/authorization/model_domain_filter_response.go b/services/authorization/model_domain_filter_response.go deleted file mode 100644 index fdeb7fcc3..000000000 --- a/services/authorization/model_domain_filter_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type DomainFilterResponse struct { - // REQUIRED - DomainFilter *DomainFilter `json:"domainFilter"` -} diff --git a/services/authorization/model_enforce_permission_payload.go b/services/authorization/model_enforce_permission_payload.go deleted file mode 100644 index 60fe155ed..000000000 --- a/services/authorization/model_enforce_permission_payload.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type EnforcePermissionPayload struct { - // REQUIRED - Actions *[]string `json:"actions"` - Consistency *Consistency `json:"consistency,omitempty"` - // REQUIRED - Resource *string `json:"resource"` - // REQUIRED - ResourceType *string `json:"resourceType"` - // REQUIRED - Subject *string `json:"subject"` -} diff --git a/services/authorization/model_list_subject_ids_response.go b/services/authorization/model_list_subject_ids_response.go deleted file mode 100644 index 95b9f3a21..000000000 --- a/services/authorization/model_list_subject_ids_response.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type ListSubjectIdsResponse struct { - Cursor *string `json:"cursor,omitempty"` - // REQUIRED - Items *[]string `json:"items"` - // Can be cast to int32 without loss of precision. - Limit *int64 `json:"limit,omitempty"` -} diff --git a/services/authorization/model_list_subjects_response.go b/services/authorization/model_list_subjects_response.go deleted file mode 100644 index dae90b3da..000000000 --- a/services/authorization/model_list_subjects_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type ListSubjectsResponse struct { - // REQUIRED - Items *[]Subject `json:"items"` -} diff --git a/services/authorization/model_move_destination.go b/services/authorization/model_move_destination.go deleted file mode 100644 index a48a3c953..000000000 --- a/services/authorization/model_move_destination.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type MoveDestination struct { - // REQUIRED - ResourceId *string `json:"resourceId"` - // REQUIRED - ResourceType *string `json:"resourceType"` -} diff --git a/services/authorization/model_move_initiator.go b/services/authorization/model_move_initiator.go deleted file mode 100644 index 64b3d033d..000000000 --- a/services/authorization/model_move_initiator.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type MoveInitiator struct { - // REQUIRED - Email *string `json:"email"` - // REQUIRED - Id *string `json:"id"` -} diff --git a/services/authorization/model_move_resource_payload.go b/services/authorization/model_move_resource_payload.go deleted file mode 100644 index 2d88bac1c..000000000 --- a/services/authorization/model_move_resource_payload.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type MoveResourcePayload struct { - Destination *MoveDestination `json:"destination,omitempty"` - Initiator *MoveInitiator `json:"initiator,omitempty"` -} diff --git a/services/authorization/model_move_resource_response.go b/services/authorization/model_move_resource_response.go deleted file mode 100644 index c071d11c0..000000000 --- a/services/authorization/model_move_resource_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type MoveResourceResponse struct { - WrittenAt *Zookie `json:"writtenAt,omitempty"` -} diff --git a/services/authorization/model_permission_request.go b/services/authorization/model_permission_request.go deleted file mode 100644 index 35b1f0ccf..000000000 --- a/services/authorization/model_permission_request.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type PermissionRequest struct { - // REQUIRED - Name *string `json:"name"` -} diff --git a/services/authorization/model_remove_role_request.go b/services/authorization/model_remove_role_request.go deleted file mode 100644 index 478e1ecdc..000000000 --- a/services/authorization/model_remove_role_request.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type RemoveRoleRequest struct { - // REQUIRED - Name *string `json:"name"` -} diff --git a/services/authorization/model_remove_roles_payload.go b/services/authorization/model_remove_roles_payload.go deleted file mode 100644 index bc23b6279..000000000 --- a/services/authorization/model_remove_roles_payload.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type RemoveRolesPayload struct { - // REQUIRED - ResourceType *string `json:"resourceType"` - // REQUIRED - Roles *[]RemoveRoleRequest `json:"roles"` -} diff --git a/services/authorization/model_resource.go b/services/authorization/model_resource.go deleted file mode 100644 index 9600a2b14..000000000 --- a/services/authorization/model_resource.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type Resource struct { - ResourceAlias *string `json:"resourceAlias,omitempty"` - // REQUIRED - ResourceId *string `json:"resourceId"` - // REQUIRED - ResourceType *string `json:"resourceType"` -} diff --git a/services/authorization/model_subject.go b/services/authorization/model_subject.go deleted file mode 100644 index 9fb9dbc18..000000000 --- a/services/authorization/model_subject.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type Subject struct { - // REQUIRED - Email *string `json:"email"` - // REQUIRED - Id *string `json:"id"` - // REQUIRED - Type *string `json:"type"` -} diff --git a/services/authorization/model_transfer_subject_memberships_payload.go b/services/authorization/model_transfer_subject_memberships_payload.go deleted file mode 100644 index 9c5aee2bd..000000000 --- a/services/authorization/model_transfer_subject_memberships_payload.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type TransferSubjectMembershipsPayload struct { - // REQUIRED - TargetSubjectId *string `json:"targetSubjectId"` -} diff --git a/services/authorization/model_user_resources_response.go b/services/authorization/model_user_resources_response.go deleted file mode 100644 index 7e8c6595e..000000000 --- a/services/authorization/model_user_resources_response.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type UserResourcesResponse struct { - // REQUIRED - Cursor *string `json:"cursor"` - // REQUIRED - Items *[]Resource `json:"items"` - // Can be cast to int32 without loss of precision. - // REQUIRED - Limit *int64 `json:"limit"` -} diff --git a/services/authorization/model_validate_child_members_payload.go b/services/authorization/model_validate_child_members_payload.go deleted file mode 100644 index 557065a09..000000000 --- a/services/authorization/model_validate_child_members_payload.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type ValidateChildMembersPayload struct { - // REQUIRED - ChildResourceType *string `json:"childResourceType"` - // REQUIRED - Members *[]Member `json:"members"` - // REQUIRED - ResourceType *string `json:"resourceType"` -} diff --git a/services/authorization/model_write_schema_payload.go b/services/authorization/model_write_schema_payload.go deleted file mode 100644 index 6d87a1c24..000000000 --- a/services/authorization/model_write_schema_payload.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type WriteSchemaPayload struct { - // REQUIRED - Schema *string `json:"schema"` -} diff --git a/services/authorization/model_write_schema_response.go b/services/authorization/model_write_schema_response.go deleted file mode 100644 index 5b66b06ef..000000000 --- a/services/authorization/model_write_schema_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -STACKIT Membership API - -The Membership API is used to manage memberships, roles and permissions of STACKIT resources, like projects, folders, organizations and other resources. - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package authorization - -type WriteSchemaResponse struct { - // REQUIRED - WrittenAt *Zookie `json:"writtenAt"` -} diff --git a/services/dns/api_default.go b/services/dns/api_default.go index dd7a12afe..d606f0e66 100644 --- a/services/dns/api_default.go +++ b/services/dns/api_default.go @@ -89,6 +89,11 @@ func (r ApiCreateRecordSetRequest) Execute() (*RecordSetResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -260,6 +265,11 @@ func (r ApiCreateZoneRequest) Execute() (*ZoneResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -419,6 +429,11 @@ func (r ApiDeleteRecordSetRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -571,6 +586,11 @@ func (r ApiDeleteZoneRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -722,6 +742,11 @@ func (r ApiGetRecordSetRequest) Execute() (*RecordSetResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -863,6 +888,11 @@ func (r ApiGetZoneRequest) Execute() (*ZoneResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1353,6 +1383,11 @@ func (r ApiListRecordSetsRequest) Execute() (*ListRecordSetsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1973,6 +2008,11 @@ func (r ApiListZonesRequest) Execute() (*ListZonesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2123,6 +2163,11 @@ func (r ApiPartialUpdateRecordRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2290,6 +2335,11 @@ func (r ApiPartialUpdateRecordSetRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2455,6 +2505,11 @@ func (r ApiPartialUpdateZoneRequest) Execute() (*ZoneResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/loadbalancer/api_default.go b/services/loadbalancer/api_default.go index 9c0587e34..f51fca762 100644 --- a/services/loadbalancer/api_default.go +++ b/services/loadbalancer/api_default.go @@ -26,6 +26,123 @@ import ( // DefaultApiService DefaultApi service type DefaultApiService service +type ApiAPIServiceGetQuotaRequest struct { + ctx context.Context + apiService *DefaultApiService + projectId string +} + +func (r ApiAPIServiceGetQuotaRequest) Execute() (*GetQuotaResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetQuotaResponse + ) + a := r.apiService + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.APIServiceGetQuota") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/quota" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.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, + } + return localVarReturnValue, newErr + } + + err = a.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 +} + +/* +APIServiceGetQuota Get the quota of Load Balancers and Target Pools in a project. + +GetQuota gets the configured load balancer quota for the project. Default is 3. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiAPIServiceGetQuotaRequest +*/ +func (a *APIClient) APIServiceGetQuota(ctx context.Context, projectId string) ApiAPIServiceGetQuotaRequest { + return ApiAPIServiceGetQuotaRequest{ + apiService: a.defaultApi, + ctx: ctx, + projectId: projectId, + } +} + +func (a *APIClient) APIServiceGetQuotaExecute(ctx context.Context, projectId string) (*GetQuotaResponse, error) { + r := ApiAPIServiceGetQuotaRequest{ + apiService: a.defaultApi, + ctx: ctx, + projectId: projectId, + } + return r.Execute() +} + type ApiCreateCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -95,6 +212,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -231,6 +353,11 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -347,6 +474,11 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -464,6 +596,11 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -579,6 +716,11 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -705,6 +847,11 @@ func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -823,6 +970,11 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -940,6 +1092,11 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1058,6 +1215,11 @@ func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1174,6 +1336,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1286,6 +1453,11 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1414,6 +1586,11 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1547,6 +1724,11 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/loadbalancer/api_default_test.go b/services/loadbalancer/api_default_test.go index 896cbf777..d021e4c43 100644 --- a/services/loadbalancer/api_default_test.go +++ b/services/loadbalancer/api_default_test.go @@ -23,6 +23,58 @@ import ( func Test_loadbalancer_DefaultApiService(t *testing.T) { + t.Run("Test DefaultApiService APIServiceGetQuota", func(t *testing.T) { + path := "/v1/projects/{projectId}/quota" + projectIdValue := "projectId" + path = strings.Replace(path, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) + + testDefaultApiServeMux := http.NewServeMux() + testDefaultApiServeMux.HandleFunc(path, func(w http.ResponseWriter, req *http.Request) { + data := GetQuotaResponse{} + 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 loadbalancer_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) + } + + projectId := "projectId" + + resp, reqErr := apiClient.APIServiceGetQuota(context.Background(), projectId).Execute() + + if reqErr != nil { + t.Fatalf("error in call: %v", err) + } + if resp == nil { + t.Fatalf("response not present") + } + }) + t.Run("Test DefaultApiService CreateCredentials", func(t *testing.T) { path := "/v1/projects/{projectId}/credentials" projectIdValue := "projectId" diff --git a/services/loadbalancer/model_credentials.go b/services/loadbalancer/model_credentials.go deleted file mode 100644 index 67ce9b5fa..000000000 --- a/services/loadbalancer/model_credentials.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Load Balancer API - -This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. - -API version: 1.6.4 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package loadbalancer - -type Credentials struct { - // Credential name - DisplayName *string `json:"displayName,omitempty"` - // A valid password used for an existing ARGUS instance, which is used during basic auth. - Password *string `json:"password,omitempty"` - // A valid username used for an existing ARGUS instance, which is used during basic auth. - Username *string `json:"username,omitempty"` -} diff --git a/services/loadbalancer/model_target.go b/services/loadbalancer/model_target.go index 262cb5e34..00d828574 100644 --- a/services/loadbalancer/model_target.go +++ b/services/loadbalancer/model_target.go @@ -13,6 +13,6 @@ package loadbalancer type Target struct { // Target name DisplayName *string `json:"displayName,omitempty"` - // Target IP + // Target IP. Must by unique within a target pool. Ip *string `json:"ip,omitempty"` } diff --git a/services/logme/api_default.go b/services/logme/api_default.go index 647bd7c4d..06c3e569f 100644 --- a/services/logme/api_default.go +++ b/services/logme/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/mariadb/api_default.go b/services/mariadb/api_default.go index e14da082e..0536eeed5 100644 --- a/services/mariadb/api_default.go +++ b/services/mariadb/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/membership/api_default.go b/services/membership/api_default.go index 51e109caf..337e23bc6 100644 --- a/services/membership/api_default.go +++ b/services/membership/api_default.go @@ -85,6 +85,11 @@ func (r ApiAddMembersRequest) Execute() (*MembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -240,6 +245,11 @@ func (r ApiListMembersRequest) Execute() (*ListMembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -394,6 +404,11 @@ func (r ApiListPermissionsRequest) Execute() (*ListPermissionsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -537,6 +552,11 @@ func (r ApiListRolesRequest) Execute() (*RolesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -711,6 +731,11 @@ func (r ApiListUserMembershipsRequest) Execute() (*ListUserMembershipsResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -866,6 +891,11 @@ func (r ApiRemoveMembersRequest) Execute() (*MembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/mongodbflex/api_default.go b/services/mongodbflex/api_default.go index 7e3fb0164..653764818 100644 --- a/services/mongodbflex/api_default.go +++ b/services/mongodbflex/api_default.go @@ -89,6 +89,11 @@ func (r ApiCloneInstanceRequest) Execute() (*CloneInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -239,6 +244,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -398,6 +408,11 @@ func (r ApiCreateUserRequest) Execute() (*CreateUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -557,6 +572,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -697,6 +717,11 @@ func (r ApiDeleteUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -825,6 +850,11 @@ func (r ApiDisableServiceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -952,6 +982,11 @@ func (r ApiGetBackupRequest) Execute() (*GetBackupResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1093,6 +1128,11 @@ func (r ApiGetInstanceRequest) Execute() (*GetInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1233,6 +1273,11 @@ func (r ApiGetUserRequest) Execute() (*GetUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1374,6 +1419,11 @@ func (r ApiListBackupsRequest) Execute() (*ListBackupsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1510,6 +1560,11 @@ func (r ApiListFlavorsRequest) Execute() (*ListFlavorsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1655,6 +1710,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1837,6 +1897,11 @@ func (r ApiListMetricsRequest) Execute() (*ListMetricsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1989,6 +2054,11 @@ func (r ApiListRestoreJobsRequest) Execute() (*ListRestoreJobsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2127,6 +2197,11 @@ func (r ApiListStoragesRequest) Execute() (*ListStoragesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2265,6 +2340,11 @@ func (r ApiListUsersRequest) Execute() (*ListUsersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2401,6 +2481,11 @@ func (r ApiListVersionsRequest) Execute() (*ListVersionsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2538,6 +2623,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, err return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2712,6 +2802,11 @@ func (r ApiPartialUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2856,6 +2951,11 @@ func (r ApiResetUserRequest) Execute() (*User, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3010,6 +3110,11 @@ func (r ApiRestoreInstanceRequest) Execute() (*RestoreInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3161,6 +3266,11 @@ func (r ApiUpdateBackupScheduleRequest) Execute() (*BackupSchedule, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3312,6 +3422,11 @@ func (r ApiUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3486,6 +3601,11 @@ func (r ApiUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/objectstorage/api_default.go b/services/objectstorage/api_default.go index 25c3a971d..d8e2f4378 100644 --- a/services/objectstorage/api_default.go +++ b/services/objectstorage/api_default.go @@ -94,6 +94,11 @@ func (r ApiCreateAccessKeyRequest) Execute() (*CreateAccessKeyResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -257,6 +262,11 @@ func (r ApiCreateBucketRequest) Execute() (*CreateBucketResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -427,6 +437,11 @@ func (r ApiCreateCredentialsGroupRequest) Execute() (*CreateCredentialsGroupResp return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -602,6 +617,11 @@ func (r ApiDeleteAccessKeyRequest) Execute() (*DeleteAccessKeyResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -779,6 +799,11 @@ func (r ApiDeleteBucketRequest) Execute() (*DeleteBucketResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -928,6 +953,11 @@ func (r ApiDeleteCredentialsGroupRequest) Execute() (*DeleteCredentialsGroupResp return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1076,6 +1106,11 @@ func (r ApiDisableServiceRequest) Execute() (*ProjectStatus, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1242,6 +1277,11 @@ func (r ApiEnableServiceRequest) Execute() (*ProjectStatus, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1406,6 +1446,11 @@ func (r ApiGetBucketRequest) Execute() (*GetBucketResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1564,6 +1609,11 @@ func (r ApiGetServiceStatusRequest) Execute() (*ProjectStatus, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1728,6 +1778,11 @@ func (r ApiListAccessKeysRequest) Execute() (*ListAccessKeysResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1883,6 +1938,11 @@ func (r ApiListBucketsRequest) Execute() (*ListBucketsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2038,6 +2098,11 @@ func (r ApiListCredentialsGroupsRequest) Execute() (*ListCredentialsGroupsRespon return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/objectstorage/model_force_delete_response.go b/services/objectstorage/model_force_delete_response.go deleted file mode 100644 index e20a8ba59..000000000 --- a/services/objectstorage/model_force_delete_response.go +++ /dev/null @@ -1,17 +0,0 @@ -/* -STACKIT Object Storage API - -STACKIT API to manage the Object Storage - -API version: 1.1.2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package objectstorage - -type ForceDeleteResponse struct { - // Project ID - // REQUIRED - Project *string `json:"project"` -} diff --git a/services/opensearch/api_default.go b/services/opensearch/api_default.go index 000a10eac..6c9852dc6 100644 --- a/services/opensearch/api_default.go +++ b/services/opensearch/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/postgresflex/api_default.go b/services/postgresflex/api_default.go index 21f992b2f..347eedd0e 100644 --- a/services/postgresflex/api_default.go +++ b/services/postgresflex/api_default.go @@ -89,6 +89,11 @@ func (r ApiCloneInstanceRequest) Execute() (*CloneInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -228,6 +233,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -366,6 +376,11 @@ func (r ApiCreateUserRequest) Execute() (*CreateUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -493,6 +508,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -633,6 +653,11 @@ func (r ApiDeleteUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -753,6 +778,11 @@ func (r ApiForceDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -883,6 +913,11 @@ func (r ApiGetBackupRequest) Execute() (*GetBackupResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1014,6 +1049,11 @@ func (r ApiGetInstanceRequest) Execute() (*InstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1144,6 +1184,11 @@ func (r ApiGetUserRequest) Execute() (*GetUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1275,6 +1320,11 @@ func (r ApiListBackupsRequest) Execute() (*ListBackupsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1401,6 +1451,11 @@ func (r ApiListFlavorsRequest) Execute() (*ListFlavorsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1524,6 +1579,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1649,6 +1709,11 @@ func (r ApiListStoragesRequest) Execute() (*ListStoragesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1777,6 +1842,11 @@ func (r ApiListUsersRequest) Execute() (*ListUsersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1914,6 +1984,11 @@ func (r ApiListVersionsRequest) Execute() (*ListVersionsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2052,6 +2127,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() (*PartialUpdateInstanceRespon return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2191,6 +2271,11 @@ func (r ApiPartialUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2324,6 +2409,11 @@ func (r ApiResetUserRequest) Execute() (*ResetUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2488,6 +2578,11 @@ func (r ApiUpdateBackupScheduleRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2617,6 +2712,11 @@ func (r ApiUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/postgresql/api_default.go b/services/postgresql/api_default.go index 8ef798dae..c8dcc4d93 100644 --- a/services/postgresql/api_default.go +++ b/services/postgresql/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/rabbitmq/api_default.go b/services/rabbitmq/api_default.go index bcec63958..0c7b63f7e 100644 --- a/services/rabbitmq/api_default.go +++ b/services/rabbitmq/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/redis/api_default.go b/services/redis/api_default.go index 2ccc70f4b..043908299 100644 --- a/services/redis/api_default.go +++ b/services/redis/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/resourcemanager/api_default.go b/services/resourcemanager/api_default.go index 4a670a86e..c7f19009f 100644 --- a/services/resourcemanager/api_default.go +++ b/services/resourcemanager/api_default.go @@ -81,6 +81,11 @@ func (r ApiCreateProjectRequest) Execute() (*ProjectResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -223,6 +228,11 @@ func (r ApiDeleteProjectRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -346,6 +356,11 @@ func (r ApiGetProjectRequest) Execute() (*ProjectResponseWithParents, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -551,6 +566,11 @@ func (r ApiListProjectsRequest) Execute() (*AllProjectsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -709,6 +729,11 @@ func (r ApiPartialUpdateProjectRequest) Execute() (*ProjectResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/secretsmanager/api_default.go b/services/secretsmanager/api_default.go index d690fa63b..b6a31a02f 100644 --- a/services/secretsmanager/api_default.go +++ b/services/secretsmanager/api_default.go @@ -87,6 +87,11 @@ func (r ApiCreateACLRequest) Execute() (*Acl, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -213,6 +218,11 @@ func (r ApiCreateInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -338,6 +348,11 @@ func (r ApiCreateUserRequest) Execute() (*User, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -456,6 +471,11 @@ func (r ApiDeleteACLRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -565,6 +585,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -673,6 +698,11 @@ func (r ApiDeleteUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -785,6 +815,11 @@ func (r ApiGetACLRequest) Execute() (*Acl, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -905,6 +940,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1024,6 +1064,11 @@ func (r ApiGetUserRequest) Execute() (*User, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1144,6 +1189,11 @@ func (r ApiListACLsRequest) Execute() (*AclList, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1259,6 +1309,11 @@ func (r ApiListInstancesRequest) Execute() (*InstanceList, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1373,6 +1428,11 @@ func (r ApiListUsersRequest) Execute() (*UserList, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1502,6 +1562,11 @@ func (r ApiUpdateACLRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1622,6 +1687,11 @@ func (r ApiUpdateACLsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1741,6 +1811,11 @@ func (r ApiUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/serviceaccount/api_default.go b/services/serviceaccount/api_default.go index 0c5749d95..a8b83f06e 100644 --- a/services/serviceaccount/api_default.go +++ b/services/serviceaccount/api_default.go @@ -86,6 +86,11 @@ func (r ApiCreateAccessTokenRequest) Execute() (*AccessToken, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -254,6 +259,11 @@ func (r ApiCreateServiceAccountRequest) Execute() (*ServiceAccount, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -421,6 +431,11 @@ func (r ApiCreateServiceAccountKeyRequest) Execute() (*CreateServiceAccountKeyRe return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -611,6 +626,11 @@ func (r ApiCreateShortLivedAccessTokenRequest) Execute() (*CreateShortLivedAcces return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -724,6 +744,11 @@ func (r ApiDeleteAccessTokenRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -887,6 +912,11 @@ func (r ApiDeleteServiceAccountRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1038,6 +1068,11 @@ func (r ApiDeleteServiceAccountKeyRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1178,6 +1213,11 @@ func (r ApiGetJWKSRequest) Execute() (*JWKS, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1305,6 +1345,11 @@ func (r ApiGetServiceAccountKeyRequest) Execute() (*GetServiceAccountKeyResponse return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1457,6 +1502,11 @@ func (r ApiListAccessTokensRequest) Execute() (*ListAccessTokensResponse, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1617,6 +1667,11 @@ func (r ApiListServiceAccountKeysRequest) Execute() (*ListServiceAccountKeysResp return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1764,6 +1819,11 @@ func (r ApiListServiceAccountsRequest) Execute() (*ListServiceAccountsResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1922,6 +1982,11 @@ func (r ApiPartialUpdateServiceAccountKeyRequest) Execute() (*PartialUpdateServi return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/serviceaccount/model_create_internal_service_account_payload.go b/services/serviceaccount/model_create_internal_service_account_payload.go deleted file mode 100644 index 212f7e963..000000000 --- a/services/serviceaccount/model_create_internal_service_account_payload.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type CreateInternalServiceAccountPayload struct { - // The requested name of the service account. The service will generate a unique email from this name. - // REQUIRED - Name *string `json:"name"` - // The requested suffix for the service account. The service will generate a unique email from this name. - // REQUIRED - Suffix *string `json:"suffix"` -} diff --git a/services/serviceaccount/model_impersonate_service_account_payload.go b/services/serviceaccount/model_impersonate_service_account_payload.go deleted file mode 100644 index a7ccd14c3..000000000 --- a/services/serviceaccount/model_impersonate_service_account_payload.go +++ /dev/null @@ -1,16 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type ImpersonateServiceAccountPayload struct { - // Lifetime of the created access token in seconds. - Lifetime *int64 `json:"lifetime,omitempty"` -} diff --git a/services/serviceaccount/model_impersonate_service_account_response.go b/services/serviceaccount/model_impersonate_service_account_response.go deleted file mode 100644 index e0735e7c2..000000000 --- a/services/serviceaccount/model_impersonate_service_account_response.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type ImpersonateServiceAccountResponse struct { - // The short lived token that can be used for API access - // REQUIRED - AccessToken *string `json:"access_token"` - // Time in seconds till token expires - // REQUIRED - ExpiresIn *int64 `json:"expires_in"` - // REQUIRED - TokenType *string `json:"token_type"` -} diff --git a/services/serviceaccount/model_introspect_jwt_payload.go b/services/serviceaccount/model_introspect_jwt_payload.go deleted file mode 100644 index 51be008a6..000000000 --- a/services/serviceaccount/model_introspect_jwt_payload.go +++ /dev/null @@ -1,17 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type IntrospectJWTPayload struct { - // REQUIRED - Token *string `json:"token"` - TokenTypeHint *string `json:"token_type_hint,omitempty"` -} diff --git a/services/serviceaccount/model_introspect_jwt_response.go b/services/serviceaccount/model_introspect_jwt_response.go deleted file mode 100644 index 627c9d4fa..000000000 --- a/services/serviceaccount/model_introspect_jwt_response.go +++ /dev/null @@ -1,26 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type IntrospectJWTResponse struct { - // REQUIRED - Active *bool `json:"active"` - Aud *[]string `json:"aud,omitempty"` - ClientId *string `json:"client_id,omitempty"` - Exp *int64 `json:"exp,omitempty"` - Iat *int64 `json:"iat,omitempty"` - Iss *string `json:"iss,omitempty"` - Jti *string `json:"jti,omitempty"` - Scope *string `json:"scope,omitempty"` - Sub *string `json:"sub,omitempty"` - TokenType *string `json:"token_type,omitempty"` - Username *string `json:"username,omitempty"` -} diff --git a/services/serviceaccount/model_scim_error.go b/services/serviceaccount/model_scim_error.go deleted file mode 100644 index cbce3b9d8..000000000 --- a/services/serviceaccount/model_scim_error.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type ScimError struct { - // REQUIRED - Response *ScimErrorResponseDetail `json:"response"` - // REQUIRED - Status *string `json:"status"` -} diff --git a/services/serviceaccount/model_scim_error_response_detail.go b/services/serviceaccount/model_scim_error_response_detail.go deleted file mode 100644 index b1fae181c..000000000 --- a/services/serviceaccount/model_scim_error_response_detail.go +++ /dev/null @@ -1,17 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type ScimErrorResponseDetail struct { - Detail *[]string `json:"detail,omitempty"` - Schemas *[]string `json:"schemas,omitempty"` - ScimType *string `json:"scimType,omitempty"` -} diff --git a/services/serviceaccount/model_scim_list_response.go b/services/serviceaccount/model_scim_list_response.go deleted file mode 100644 index 6f0c61609..000000000 --- a/services/serviceaccount/model_scim_list_response.go +++ /dev/null @@ -1,28 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type ScimListResponse struct { - // REQUIRED - Resources *[]ScimServiceAccount `json:"Resources"` - // The number of service accounts returned in a list response page. Required when partial results are returned due to pagination. - // REQUIRED - ItemsPerPage *int64 `json:"itemsPerPage"` - // SCIM schema used. - // REQUIRED - Schemas *[]string `json:"schemas"` - // The 1-based index of the first result in the current set of list results. Required when partial results are returned due to pagination. - // REQUIRED - StartIndex *int64 `json:"startIndex"` - // The total number of results returned by the list or query operation. The value may be larger than the number of resources returned - // REQUIRED - TotalResults *int64 `json:"totalResults"` -} diff --git a/services/serviceaccount/model_scim_schema_service_account.go b/services/serviceaccount/model_scim_schema_service_account.go deleted file mode 100644 index a4b4cd254..000000000 --- a/services/serviceaccount/model_scim_schema_service_account.go +++ /dev/null @@ -1,27 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type ScimSchemaServiceAccount struct { - // SCIM resource attributes. - // REQUIRED - Attributes *[]ScimSchemaServiceAccountAttributesInner `json:"attributes"` - // The schema's human-readable description. - Description *string `json:"description,omitempty"` - // The unique URI of the schema. - // REQUIRED - Id *string `json:"id"` - // SCIM schema meta information. - // REQUIRED - Meta *map[string]interface{} `json:"meta"` - // The schema's human-readable name. - Name *string `json:"name,omitempty"` -} diff --git a/services/serviceaccount/model_scim_schema_service_account_attributes_inner.go b/services/serviceaccount/model_scim_schema_service_account_attributes_inner.go deleted file mode 100644 index 716526a2b..000000000 --- a/services/serviceaccount/model_scim_schema_service_account_attributes_inner.go +++ /dev/null @@ -1,32 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type ScimSchemaServiceAccountAttributesInner struct { - // Boolean value that specifies whether or not a string attribute is case sensitive. - CaseExact *string `json:"caseExact,omitempty"` - // Attribute's human-readable description. - Description *string `json:"description,omitempty"` - // Boolean value indicating attribute's plurality. - MultiValued *string `json:"multiValued,omitempty"` - // Keyword indicating the circumstances under which the value of the attribute can be (re)defined. - Mutability *string `json:"mutability,omitempty"` - // Attribute's name. - Name *string `json:"name,omitempty"` - // Boolean value indicating wheter attribute is required or not. - Required *string `json:"required,omitempty"` - // Keyword that indicates when an attribute and associated values are returned in response to a GET request or in response to a PUT, POST, or PATCH request. - Returned *string `json:"returned,omitempty"` - // Attributes's data type. - Type *string `json:"type,omitempty"` - // Keyword value that specifies how the service provider enforces uniqueness of attribute values. - Uniqueness *string `json:"uniqueness,omitempty"` -} diff --git a/services/serviceaccount/model_scim_service_account.go b/services/serviceaccount/model_scim_service_account.go deleted file mode 100644 index f1572d220..000000000 --- a/services/serviceaccount/model_scim_service_account.go +++ /dev/null @@ -1,34 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -type ScimServiceAccount struct { - // Unique identifier of the service account in format of an email address generated by the service containing the prefix provided by the user during creation. - // REQUIRED - Email *string `json:"email"` - // Unique ID of the service account. It is also used in the 'sub' field of the service accounts access tokens. - // REQUIRED - Id *string `json:"id"` - // A Boolean value indicating internal service accounts. - // REQUIRED - Internal *bool `json:"internal"` - // REQUIRED - Meta *ScimServiceAccountMeta `json:"meta"` - // Name of the service account, suitable for display to end-users. - // REQUIRED - Name *string `json:"name"` - // Identifier of related project. - // REQUIRED - ProjectId *string `json:"projectId"` - // Array of strings containing SCIM's primary/base schema URI. - // REQUIRED - Schemas *[]string `json:"schemas"` -} diff --git a/services/serviceaccount/model_scim_service_account_meta.go b/services/serviceaccount/model_scim_service_account_meta.go deleted file mode 100644 index 1f8042feb..000000000 --- a/services/serviceaccount/model_scim_service_account_meta.go +++ /dev/null @@ -1,33 +0,0 @@ -/* -Service Account API - -API to manage Service Accounts and their Access Tokens. ### System for Cross-domain Identity Management (SCIM) Service Account Service offers SCIM APIs to query state. The SCIM protocol was created as standard for automating the exchange of user identity information between identity domains, or IT systems. Service accounts are be handled as indentites similar to SCIM users. A custom SCIM schema has been created: `/ServiceAccounts` #### Syntax ##### Attribute operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | eq | equal | | ne | not equal | | co | contains | | sw | starts with | | ew | ends with | ##### Logical operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | and | logical \"and\" | | or | logical \"or\" | ##### Grouping operators | OPERATOR | DESCRIPTION | |----------|--------------------------| | () | precending grouping | ##### Example ``` filter=email eq \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email ne \"my-service-account-aBc2defg@sa.stackit.cloud\" filter=email co \"my-service-account\" filter=name sw \"my\" filter=name ew \"account\" filter=email co \"my-service-account\" and name sw \"my\" filter=email co \"my-service-account\" and (name sw \"my\" or name ew \"account\") ``` #### Sorting > Sorting is optional | PARAMETER | DESCRIPTION | |-----------|--------------------------------------| | sortBy | attribute response is ordered by | | sortOrder | 'ASCENDING' (default) or 'DESCENDING'| #### Pagination | PARAMETER | DESCRIPTION | |--------------|----------------------------------------------| | startIndex | index of first query result, default: 1 | | count | maximum number of query results, default: 100| - -API version: 2.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package serviceaccount - -import ( - "time" -) - -type ScimServiceAccountMeta struct { - // Timestamp service account was created - // REQUIRED - Created *time.Time `json:"created"` - // Timestamp service account was last modified - // REQUIRED - LastModified *time.Time `json:"lastModified"` - // The URI of the service account being returned. - // REQUIRED - Location *string `json:"location"` - // Name of the SCIM resource type - // REQUIRED - ResourceType *string `json:"resourceType"` - // The version of the service account being returned. Currently empty. - // REQUIRED - Version *string `json:"version"` -} diff --git a/services/ske/api_default.go b/services/ske/api_default.go index 11818ee6b..ec4cde702 100644 --- a/services/ske/api_default.go +++ b/services/ske/api_default.go @@ -76,6 +76,11 @@ func (r ApiCompleteCredentialsRotationRequest) Execute() (map[string]interface{} return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -234,6 +239,11 @@ func (r ApiCreateKubeconfigRequest) Execute() (*Kubeconfig, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -370,6 +380,11 @@ func (r ApiCreateOrUpdateClusterRequest) Execute() (*Cluster, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -517,6 +532,11 @@ func (r ApiDeleteClusterRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -640,6 +660,11 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -771,6 +796,11 @@ func (r ApiEnableServiceRequest) Execute() (*ProjectResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -904,6 +934,11 @@ func (r ApiGetClusterRequest) Execute() (*Cluster, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1029,6 +1064,11 @@ func (r ApiGetCredentialsRequest) Execute() (*Credentials, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1178,6 +1218,11 @@ func (r ApiGetServiceStatusRequest) Execute() (*ProjectResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1309,6 +1354,11 @@ func (r ApiListClustersRequest) Execute() (*ListClustersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1449,6 +1499,11 @@ func (r ApiListProviderOptionsRequest) Execute() (*ProviderOptions, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1568,6 +1623,11 @@ func (r ApiStartCredentialsRotationRequest) Execute() (map[string]interface{}, e return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1715,6 +1775,11 @@ func (r ApiTriggerHibernateRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1851,6 +1916,11 @@ func (r ApiTriggerMaintenanceRequest) Execute() (map[string]interface{}, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1987,6 +2057,11 @@ func (r ApiTriggerReconcileRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2123,6 +2198,11 @@ func (r ApiTriggerRotateCredentialsRequest) Execute() (map[string]interface{}, e return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/ske/model_v1_noop_feature.go b/services/ske/model_v1_noop_feature.go deleted file mode 100644 index 583ee29af..000000000 --- a/services/ske/model_v1_noop_feature.go +++ /dev/null @@ -1,15 +0,0 @@ -/* -SKE-API - -The SKE API provides endpoints to create, update, delete clusters within STACKIT portal projects and to trigger further cluster management tasks. - -API version: 1.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package ske - -type V1NoopFeature struct { - Content *string `json:"content,omitempty"` -} From 3850ab95a644748d86b07226653f25d6a255a649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Ferr=C3=A3o?= Date: Tue, 9 Apr 2024 16:00:20 +0100 Subject: [PATCH 2/6] Add changelogs --- services/argus/CHANGELOG.md | 4 ++++ services/authorization/CHANGELOG.md | 2 +- services/dns/CHANGELOG.md | 4 ++++ services/loadbalancer/CHANGELOG.md | 4 ++++ services/logme/CHANGELOG.md | 4 ++++ services/mariadb/CHANGELOG.md | 4 ++++ services/membership/CHANGELOG.md | 3 +++ services/mongodbflex/CHANGELOG.md | 4 ++++ services/objectstorage/CHANGELOG.md | 4 ++++ services/opensearch/CHANGELOG.md | 4 ++++ services/postgresflex/CHANGELOG.md | 4 ++++ services/postgresql/CHANGELOG.md | 4 ++++ services/rabbitmq/CHANGELOG.md | 4 ++++ services/redis/CHANGELOG.md | 4 ++++ services/resourcemanager/CHANGELOG.md | 4 ++++ services/secretsmanager/CHANGELOG.md | 4 ++++ services/serviceaccount/CHANGELOG.md | 4 ++++ services/ske/CHANGELOG.md | 4 ++++ 18 files changed, 68 insertions(+), 1 deletion(-) diff --git a/services/argus/CHANGELOG.md b/services/argus/CHANGELOG.md index 128e0c942..2dc90a196 100644 --- a/services/argus/CHANGELOG.md +++ b/services/argus/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.9.6 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.9.5 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) diff --git a/services/authorization/CHANGELOG.md b/services/authorization/CHANGELOG.md index e7ac79845..9d32dc71b 100644 --- a/services/authorization/CHANGELOG.md +++ b/services/authorization/CHANGELOG.md @@ -1,6 +1,6 @@ ## v0.1.2 (2024-04-09) -- Removed unused model data types. +- Set config.ContextHTTPRequest in Execute method ## v0.1.1 (2024-02-28) diff --git a/services/dns/CHANGELOG.md b/services/dns/CHANGELOG.md index abdb09883..5f6c14727 100644 --- a/services/dns/CHANGELOG.md +++ b/services/dns/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.8.5 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.8.4 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) diff --git a/services/loadbalancer/CHANGELOG.md b/services/loadbalancer/CHANGELOG.md index 8fd50361d..664413327 100644 --- a/services/loadbalancer/CHANGELOG.md +++ b/services/loadbalancer/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.10.2 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.10.1 (2024-04-09) - Remove unused model data types.. diff --git a/services/logme/CHANGELOG.md b/services/logme/CHANGELOG.md index 5956db743..ead82ab58 100644 --- a/services/logme/CHANGELOG.md +++ b/services/logme/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Feature:** `InstanceParameters` has new fields `FluentdTcp`, `FluentdTls`, `FluentdTlsCiphers`, `FluentdTlsMaxVersion`, `FluentdTlsMinVersion`, `FluentdTlsVersion`, `FluentdUdp`, `Groks`, `IsmDeletionAfter`, `IsmJitter`, `IsmJobInterval`, `JavaHeapspace`, `JavaMaxmetaspace`, `OpensearchTlsCiphers`, `OpensearchTlsProtocols`, and `SyslogUseUdp` diff --git a/services/mariadb/CHANGELOG.md b/services/mariadb/CHANGELOG.md index f5297beea..f714aeee1 100644 --- a/services/mariadb/CHANGELOG.md +++ b/services/mariadb/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Breaking change:** Field `Plugins` was removed from `InstanceParameters` diff --git a/services/membership/CHANGELOG.md b/services/membership/CHANGELOG.md index fe18da8d2..93c72f459 100644 --- a/services/membership/CHANGELOG.md +++ b/services/membership/CHANGELOG.md @@ -1,6 +1,9 @@ > This module has been replaced with the authorization module, which connects to the same API. > > **This module will receive no further updates.** Use `github.com/stackitcloud/stackit-sdk-go/services/authorization` instead. +## v0.5.0 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method ## v0.4.0 (2024-02-07) diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index 49eab10c3..007a4d01e 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.2 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.1 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) diff --git a/services/objectstorage/CHANGELOG.md b/services/objectstorage/CHANGELOG.md index b8657d162..f8297abab 100644 --- a/services/objectstorage/CHANGELOG.md +++ b/services/objectstorage/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.8.8 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.8.7 (2024-04-09) - Remove unused model data types.. diff --git a/services/opensearch/CHANGELOG.md b/services/opensearch/CHANGELOG.md index 8160237d2..257888df6 100644 --- a/services/opensearch/CHANGELOG.md +++ b/services/opensearch/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Feature:** `InstanceParameters` has new fields `TlsCiphers`, `TlsProtocols`, `JavaGarbageCollector`, `JavaHeapspace`, and `JavaMaxmetaspace` diff --git a/services/postgresflex/CHANGELOG.md b/services/postgresflex/CHANGELOG.md index 6a94fb9fe..8c2c27dba 100644 --- a/services/postgresflex/CHANGELOG.md +++ b/services/postgresflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.12.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.12.0 (2024-04-03) - **Improvement**: Update `DeleteInstanceWaitHandler` to support new deletion method. diff --git a/services/postgresql/CHANGELOG.md b/services/postgresql/CHANGELOG.md index bc2639684..d77046ed4 100644 --- a/services/postgresql/CHANGELOG.md +++ b/services/postgresql/CHANGELOG.md @@ -2,6 +2,10 @@ > > Use `github.com/stackitcloud/stackit-sdk-go/services/postgresflex` instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html. +## v0.13.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.13.0 (2024-04-02) - **Breaking change:** Field `Plugins` was removed from `InstanceParameters` diff --git a/services/rabbitmq/CHANGELOG.md b/services/rabbitmq/CHANGELOG.md index a6e5f6e18..523c22cf1 100644 --- a/services/rabbitmq/CHANGELOG.md +++ b/services/rabbitmq/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Feature:** `InstanceParameters` has new fields `TlsCiphers`, `TlsProtocols`, `Roles`, and `ConsumerTimeout` diff --git a/services/redis/CHANGELOG.md b/services/redis/CHANGELOG.md index 2b34a74c0..1bb7724ac 100644 --- a/services/redis/CHANGELOG.md +++ b/services/redis/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Feature:** `InstanceParameters` has new fields `DownAfterMilliseconds`, `FailoverTimeout`, `LazyfreeLazyEviction`, `LazyfreeLazyExpire`, `LuaTimeLimit`, `Maxclients`, `MaxmemoryPolicy`, `MaxmemorySamples`, `MinReplicasMaxLag`, `NotifyKeyspaceEvents`, `Snapshot`, `TlsCiphers`, `TlsCiphersuites`, and `TlsProtocols` diff --git a/services/resourcemanager/CHANGELOG.md b/services/resourcemanager/CHANGELOG.md index 2525b9b2f..c5a96e6ae 100644 --- a/services/resourcemanager/CHANGELOG.md +++ b/services/resourcemanager/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.7.8 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.7.7 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) diff --git a/services/secretsmanager/CHANGELOG.md b/services/secretsmanager/CHANGELOG.md index f8cd28b19..2c7601635 100644 --- a/services/secretsmanager/CHANGELOG.md +++ b/services/secretsmanager/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.6.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.6.0 (2024-03-18) - **Feature**: New API method `UpdateACLs` to update all ACLs of an instance diff --git a/services/serviceaccount/CHANGELOG.md b/services/serviceaccount/CHANGELOG.md index eb76e2cde..d7e4989cf 100644 --- a/services/serviceaccount/CHANGELOG.md +++ b/services/serviceaccount/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.3.8 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.3.7 (2024-04-09) - Remove unused model data types.. diff --git a/services/ske/CHANGELOG.md b/services/ske/CHANGELOG.md index 8352a0c7a..8c229e9d9 100644 --- a/services/ske/CHANGELOG.md +++ b/services/ske/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.2 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.1 (2024-04-09) - Remove unused model data types.. From ff2341144258923e74e8e198e541fce9f9ec15b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Ferr=C3=A3o?= Date: Tue, 9 Apr 2024 16:09:26 +0100 Subject: [PATCH 3/6] fix wrong changelog in authorization service --- services/authorization/CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/authorization/CHANGELOG.md b/services/authorization/CHANGELOG.md index 9d32dc71b..1c49b7c92 100644 --- a/services/authorization/CHANGELOG.md +++ b/services/authorization/CHANGELOG.md @@ -1,7 +1,11 @@ -## v0.1.2 (2024-04-09) +## v0.1.3 (2024-04-09) - Set config.ContextHTTPRequest in Execute method +## v0.1.2 (2024-04-09) + +- Removed unused model data types. + ## v0.1.1 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) From 4f5071a15c95efec7fa2c348a0731629ea2fba02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Ferr=C3=A3o?= Date: Tue, 9 Apr 2024 16:16:22 +0100 Subject: [PATCH 4/6] remove changelog for deprecated service --- services/membership/CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/membership/CHANGELOG.md b/services/membership/CHANGELOG.md index 93c72f459..ddcf1489a 100644 --- a/services/membership/CHANGELOG.md +++ b/services/membership/CHANGELOG.md @@ -1,10 +1,6 @@ > This module has been replaced with the authorization module, which connects to the same API. > > **This module will receive no further updates.** Use `github.com/stackitcloud/stackit-sdk-go/services/authorization` instead. -## v0.5.0 (2024-04-09) - -- Set config.ContextHTTPRequest in Execute method - ## v0.4.0 (2024-02-07) - Add deprecation note From 9b2c24a7326dd81919efbda96c1e407e12f2431a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Ferr=C3=A3o?= Date: Tue, 9 Apr 2024 16:17:02 +0100 Subject: [PATCH 5/6] revert changes to loadbalancer --- services/loadbalancer/CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/loadbalancer/CHANGELOG.md b/services/loadbalancer/CHANGELOG.md index 664413327..8fd50361d 100644 --- a/services/loadbalancer/CHANGELOG.md +++ b/services/loadbalancer/CHANGELOG.md @@ -1,7 +1,3 @@ -## v0.10.2 (2024-04-09) - -- Set config.ContextHTTPRequest in Execute method - ## v0.10.1 (2024-04-09) - Remove unused model data types.. From 0ff42fb59c349855f88b00ce5f0af9cbd725e7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diogo=20Ferr=C3=A3o?= Date: Tue, 9 Apr 2024 16:19:33 +0100 Subject: [PATCH 6/6] revert changes to load balancer --- services/loadbalancer/api_default.go | 182 --------------------- services/loadbalancer/api_default_test.go | 52 ------ services/loadbalancer/model_credentials.go | 20 +++ services/loadbalancer/model_target.go | 2 +- 4 files changed, 21 insertions(+), 235 deletions(-) create mode 100644 services/loadbalancer/model_credentials.go diff --git a/services/loadbalancer/api_default.go b/services/loadbalancer/api_default.go index f51fca762..9c0587e34 100644 --- a/services/loadbalancer/api_default.go +++ b/services/loadbalancer/api_default.go @@ -26,123 +26,6 @@ import ( // DefaultApiService DefaultApi service type DefaultApiService service -type ApiAPIServiceGetQuotaRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string -} - -func (r ApiAPIServiceGetQuotaRequest) Execute() (*GetQuotaResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetQuotaResponse - ) - a := r.apiService - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.APIServiceGetQuota") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v1/projects/{projectId}/quota" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := a.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, - } - return localVarReturnValue, newErr - } - - err = a.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 -} - -/* -APIServiceGetQuota Get the quota of Load Balancers and Target Pools in a project. - -GetQuota gets the configured load balancer quota for the project. Default is 3. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @return ApiAPIServiceGetQuotaRequest -*/ -func (a *APIClient) APIServiceGetQuota(ctx context.Context, projectId string) ApiAPIServiceGetQuotaRequest { - return ApiAPIServiceGetQuotaRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - } -} - -func (a *APIClient) APIServiceGetQuotaExecute(ctx context.Context, projectId string) (*GetQuotaResponse, error) { - r := ApiAPIServiceGetQuotaRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - } - return r.Execute() -} - type ApiCreateCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -212,11 +95,6 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -353,11 +231,6 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -474,11 +347,6 @@ func (r ApiDeleteCredentialsRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -596,11 +464,6 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -716,11 +579,6 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -847,11 +705,6 @@ func (r ApiEnableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -970,11 +823,6 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1092,11 +940,6 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1215,11 +1058,6 @@ func (r ApiGetServiceStatusRequest) Execute() (*GetServiceStatusResponse, error) return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1336,11 +1174,6 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1453,11 +1286,6 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1586,11 +1414,6 @@ func (r ApiUpdateLoadBalancerRequest) Execute() (*LoadBalancer, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1724,11 +1547,6 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { return localVarReturnValue, err } - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/loadbalancer/api_default_test.go b/services/loadbalancer/api_default_test.go index d021e4c43..896cbf777 100644 --- a/services/loadbalancer/api_default_test.go +++ b/services/loadbalancer/api_default_test.go @@ -23,58 +23,6 @@ import ( func Test_loadbalancer_DefaultApiService(t *testing.T) { - t.Run("Test DefaultApiService APIServiceGetQuota", func(t *testing.T) { - path := "/v1/projects/{projectId}/quota" - projectIdValue := "projectId" - path = strings.Replace(path, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(path, func(w http.ResponseWriter, req *http.Request) { - data := GetQuotaResponse{} - 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 loadbalancer_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) - } - - projectId := "projectId" - - resp, reqErr := apiClient.APIServiceGetQuota(context.Background(), projectId).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", err) - } - if resp == nil { - t.Fatalf("response not present") - } - }) - t.Run("Test DefaultApiService CreateCredentials", func(t *testing.T) { path := "/v1/projects/{projectId}/credentials" projectIdValue := "projectId" diff --git a/services/loadbalancer/model_credentials.go b/services/loadbalancer/model_credentials.go new file mode 100644 index 000000000..67ce9b5fa --- /dev/null +++ b/services/loadbalancer/model_credentials.go @@ -0,0 +1,20 @@ +/* +Load Balancer API + +This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + +API version: 1.6.4 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package loadbalancer + +type Credentials struct { + // Credential name + DisplayName *string `json:"displayName,omitempty"` + // A valid password used for an existing ARGUS instance, which is used during basic auth. + Password *string `json:"password,omitempty"` + // A valid username used for an existing ARGUS instance, which is used during basic auth. + Username *string `json:"username,omitempty"` +} diff --git a/services/loadbalancer/model_target.go b/services/loadbalancer/model_target.go index 00d828574..262cb5e34 100644 --- a/services/loadbalancer/model_target.go +++ b/services/loadbalancer/model_target.go @@ -13,6 +13,6 @@ package loadbalancer type Target struct { // Target name DisplayName *string `json:"displayName,omitempty"` - // Target IP. Must by unique within a target pool. + // Target IP Ip *string `json:"ip,omitempty"` }