diff --git a/serviceaccounts/apiv1internal/client/.gitignore b/serviceaccounts/apiv1internal/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/serviceaccounts/apiv1internal/client/.openapi-generator/FILES b/serviceaccounts/apiv1internal/client/.openapi-generator/FILES new file mode 100644 index 00000000..12022e67 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/.openapi-generator/FILES @@ -0,0 +1,43 @@ +.gitignore +README.md +api/openapi.yaml +api_service_accounts.go +api_serviceaccounts.go +client.go +configuration.go +docs/Error.md +docs/InlineResponse400.md +docs/InlineResponse400Cause.md +docs/InlineResponse400CauseStackTrace.md +docs/InlineResponse400CauseSuppressed.md +docs/InlineResponse400Response.md +docs/InlineResponse400ResponseCookies.md +docs/InlineResponse400ResponseEntityTag.md +docs/InlineResponse400ResponseLanguage.md +docs/InlineResponse400ResponseLinks.md +docs/InlineResponse400ResponseMediaType.md +docs/InlineResponse400ResponseStatusInfo.md +docs/InlineResponse401.md +docs/ServiceAccountCreateRequestData.md +docs/ServiceAccountData.md +docs/ServiceAccountRequestData.md +docs/ServiceAccountsApi.md +docs/ServiceaccountsApi.md +model_error.go +model_inline_response_400.go +model_inline_response_400_cause.go +model_inline_response_400_cause_stack_trace.go +model_inline_response_400_cause_suppressed.go +model_inline_response_400_response.go +model_inline_response_400_response_cookies.go +model_inline_response_400_response_entity_tag.go +model_inline_response_400_response_language.go +model_inline_response_400_response_links.go +model_inline_response_400_response_media_type.go +model_inline_response_400_response_status_info.go +model_inline_response_401.go +model_service_account_create_request_data.go +model_service_account_data.go +model_service_account_request_data.go +response.go +utils.go diff --git a/serviceaccounts/apiv1internal/client/.openapi-generator/VERSION b/serviceaccounts/apiv1internal/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/serviceaccounts/apiv1internal/client/README.md b/serviceaccounts/apiv1internal/client/README.md new file mode 100644 index 00000000..52ad7de2 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/README.md @@ -0,0 +1,144 @@ +# Go API client for serviceaccountsclient + +This is the API documentation for Service Accounts + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.0 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./serviceaccountsclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ServiceAccountsApi* | [**CreateServiceAccount**](docs/ServiceAccountsApi.md#createserviceaccount) | **Post** /apis/service_accounts/v1 | Create service account +*ServiceAccountsApi* | [**DeleteServiceAccount**](docs/ServiceAccountsApi.md#deleteserviceaccount) | **Delete** /apis/service_accounts/v1/{id} | Delete service account by id +*ServiceAccountsApi* | [**GetServiceAccounts**](docs/ServiceAccountsApi.md#getserviceaccounts) | **Get** /apis/service_accounts/v1 | List all service accounts +*ServiceAccountsApi* | [**UpdateServiceAccount**](docs/ServiceAccountsApi.md#updateserviceaccount) | **Patch** /apis/service_accounts/v1/{id} | Update service account +*ServiceaccountsApi* | [**GetServiceAccount**](docs/ServiceaccountsApi.md#getserviceaccount) | **Get** /apis/service_accounts/v1/{id} | Get service account by id +*ServiceaccountsApi* | [**ResetServiceAccountSecret**](docs/ServiceaccountsApi.md#resetserviceaccountsecret) | **Post** /apis/service_accounts/v1/{id}/resetSecret | Reset service account secret by id + + +## Documentation For Models + + - [Error](docs/Error.md) + - [InlineResponse400](docs/InlineResponse400.md) + - [InlineResponse400Cause](docs/InlineResponse400Cause.md) + - [InlineResponse400CauseStackTrace](docs/InlineResponse400CauseStackTrace.md) + - [InlineResponse400CauseSuppressed](docs/InlineResponse400CauseSuppressed.md) + - [InlineResponse400Response](docs/InlineResponse400Response.md) + - [InlineResponse400ResponseCookies](docs/InlineResponse400ResponseCookies.md) + - [InlineResponse400ResponseEntityTag](docs/InlineResponse400ResponseEntityTag.md) + - [InlineResponse400ResponseLanguage](docs/InlineResponse400ResponseLanguage.md) + - [InlineResponse400ResponseLinks](docs/InlineResponse400ResponseLinks.md) + - [InlineResponse400ResponseMediaType](docs/InlineResponse400ResponseMediaType.md) + - [InlineResponse400ResponseStatusInfo](docs/InlineResponse400ResponseStatusInfo.md) + - [InlineResponse401](docs/InlineResponse401.md) + - [ServiceAccountCreateRequestData](docs/ServiceAccountCreateRequestData.md) + - [ServiceAccountData](docs/ServiceAccountData.md) + - [ServiceAccountRequestData](docs/ServiceAccountRequestData.md) + + +## Documentation For Authorization + + + +### bearerAuth + +- **Type**: HTTP Bearer token authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/serviceaccounts/apiv1internal/client/api/openapi.yaml b/serviceaccounts/apiv1internal/client/api/openapi.yaml new file mode 100644 index 00000000..20470749 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/api/openapi.yaml @@ -0,0 +1,626 @@ +openapi: 3.0.1 +info: + description: This is the API documentation for Service Accounts + termsOfService: https://www.redhat.com/en/about/terms-use + title: Service Accounts API Documentation + version: "1.0" +servers: +- description: Development server + url: / +security: +- bearerAuth: [] +paths: + /apis/service_accounts/v1: + get: + description: Returns a list of service accounts created by a user. User information + is obtained from the bearer token. The list is paginated with starting index + as 'first' and page size as 'max.' If 'max' is greater than the maximum allowable + page size a NotAcceptableException is thrown + operationId: getServiceAccounts + parameters: + - explode: true + in: query + name: first + required: false + schema: + default: 0 + format: int32 + minimum: 0 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + default: 20 + format: int32 + maximum: 100 + minimum: 1 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ServiceAccountData' + type: array + description: OK + links: + getNextPage: + description: link to the next page of service accounts + operationId: getServiceAccounts + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not Acceptable + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + summary: List all service accounts + tags: + - service_accounts + post: + description: Create a service account. Created service account is associated + with the user defined in the bearer token. + operationId: createServiceAccount + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountCreateRequestData' + description: '''name'' and ''description'' of the service account' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountData' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_401' + description: Unauthorized + summary: Create service account + tags: + - service_accounts + /apis/service_accounts/v1/{id}: + delete: + description: Delete service account by id. Throws not found exception if the + service account is not found or the user does not have access to this service + account + operationId: deleteServiceAccount + parameters: + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: {} + description: OK + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_400' + description: Not Found + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_401' + description: Unauthorized + summary: Delete service account by id + tags: + - service_accounts + get: + description: Returns service account by id. Throws not found exception if the + service account is not found or the user does not have access to this service + account + operationId: getServiceAccount + parameters: + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountData' + description: OK + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not Found + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + summary: Get service account by id + tags: + - serviceaccounts + patch: + description: Update a service account by id. + operationId: updateServiceAccount + parameters: + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountRequestData' + description: '''name'' and ''description'' of the service account' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountData' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Bad Request + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not Found + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + summary: Update service account + tags: + - service_accounts + /apis/service_accounts/v1/{id}/resetSecret: + post: + description: Reset service account secret by id . Throws not found exception + if the service account is not found or the user does not have access to this + service account + operationId: resetServiceAccountSecret + parameters: + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountData' + description: OK + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not Found + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + summary: Reset service account secret by id + tags: + - serviceaccounts +components: + responses: + UnauthorizedError: + description: Access token is missing or invalid + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not Found + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not Acceptable + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal Server Error + schemas: + Error: + properties: + error: + description: The cause of the Error. + type: string + required: + - error + type: object + ServiceAccountData: + example: + createdAt: 0 + clientId: clientId + name: name + description: description + id: id + secret: secret + ownerId: ownerId + properties: + id: + type: string + clientId: + type: string + secret: + description: Provided during creation and resetting of service account credentials. + type: string + name: + type: string + description: + type: string + ownerId: + type: string + createdAt: + format: int64 + type: integer + type: object + ServiceAccountCreateRequestData: + example: + name: name + description: description + properties: + name: + type: string + description: + type: string + required: + - description + - name + type: object + ServiceAccountRequestData: + example: + name: name + description: description + properties: + name: + type: string + description: + type: string + type: object + inline_response_400_cause_stackTrace: + properties: + methodName: + type: string + fileName: + type: string + lineNumber: + format: int32 + type: integer + className: + type: string + nativeMethod: + type: boolean + type: object + inline_response_400_cause_suppressed: + properties: + stackTrace: + items: + $ref: '#/components/schemas/inline_response_400_cause_stackTrace' + type: array + message: + type: string + localizedMessage: + type: string + type: object + inline_response_400_cause: + properties: + stackTrace: + items: + $ref: '#/components/schemas/inline_response_400_cause_stackTrace' + type: array + message: + type: string + localizedMessage: + type: string + suppressed: + items: + $ref: '#/components/schemas/inline_response_400_cause_suppressed' + type: array + type: object + inline_response_400_response_entityTag: + properties: + value: + type: string + weak: + type: boolean + type: object + inline_response_400_response_cookies: + properties: + name: + type: string + value: + type: string + version: + format: int32 + type: integer + path: + type: string + domain: + type: string + comment: + type: string + maxAge: + format: int32 + type: integer + expiry: + format: date-time + type: string + secure: + type: boolean + httpOnly: + type: boolean + type: object + inline_response_400_response_mediaType: + properties: + type: + type: string + subtype: + type: string + parameters: + additionalProperties: + type: string + type: object + wildcardType: + type: boolean + wildcardSubtype: + type: boolean + type: object + inline_response_400_response_statusInfo: + properties: + reasonPhrase: + type: string + statusCode: + format: int32 + type: integer + family: + enum: + - INFORMATIONAL + - SUCCESSFUL + - REDIRECTION + - CLIENT_ERROR + - SERVER_ERROR + - OTHER + type: string + type: object + inline_response_400_response_links: + properties: + uriBuilder: + type: object + params: + additionalProperties: + type: string + type: object + title: + type: string + uri: + format: uri + type: string + rel: + type: string + rels: + items: + type: string + type: array + type: + type: string + type: object + inline_response_400_response_language: + properties: + language: + type: string + script: + type: string + country: + type: string + variant: + type: string + extensionKeys: + items: + type: string + type: array + uniqueItems: true + unicodeLocaleAttributes: + items: + type: string + type: array + uniqueItems: true + unicodeLocaleKeys: + items: + type: string + type: array + uniqueItems: true + iso3Language: + type: string + iso3Country: + type: string + displayLanguage: + type: string + displayScript: + type: string + displayCountry: + type: string + displayVariant: + type: string + displayName: + type: string + type: object + inline_response_400_response: + properties: + metadata: + additionalProperties: + items: + type: object + type: array + type: object + entity: + type: object + status: + format: int32 + type: integer + entityTag: + $ref: '#/components/schemas/inline_response_400_response_entityTag' + cookies: + additionalProperties: + $ref: '#/components/schemas/inline_response_400_response_cookies' + type: object + allowedMethods: + items: + type: string + type: array + uniqueItems: true + mediaType: + $ref: '#/components/schemas/inline_response_400_response_mediaType' + stringHeaders: + additionalProperties: + items: + type: string + type: array + type: object + statusInfo: + $ref: '#/components/schemas/inline_response_400_response_statusInfo' + links: + items: + $ref: '#/components/schemas/inline_response_400_response_links' + type: array + uniqueItems: true + length: + format: int32 + type: integer + language: + $ref: '#/components/schemas/inline_response_400_response_language' + location: + format: uri + type: string + lastModified: + format: date-time + type: string + date: + format: date-time + type: string + headers: + additionalProperties: + items: + type: object + type: array + type: object + type: object + inline_response_400: + properties: + cause: + $ref: '#/components/schemas/inline_response_400_cause' + stackTrace: + items: + $ref: '#/components/schemas/inline_response_400_cause_stackTrace' + type: array + response: + $ref: '#/components/schemas/inline_response_400_response' + message: + type: string + localizedMessage: + type: string + suppressed: + items: + $ref: '#/components/schemas/inline_response_400_cause_suppressed' + type: array + type: object + inline_response_401: + properties: + cause: + $ref: '#/components/schemas/inline_response_400_cause' + stackTrace: + items: + $ref: '#/components/schemas/inline_response_400_cause_stackTrace' + type: array + response: + $ref: '#/components/schemas/inline_response_400_response' + challenges: + items: + type: object + type: array + message: + type: string + localizedMessage: + type: string + suppressed: + items: + $ref: '#/components/schemas/inline_response_400_cause_suppressed' + type: array + type: object + securitySchemes: + bearerAuth: + bearerFormat: JWT + scheme: bearer + type: http diff --git a/serviceaccounts/apiv1internal/client/api_service_accounts.go b/serviceaccounts/apiv1internal/client/api_service_accounts.go new file mode 100644 index 00000000..9011eead --- /dev/null +++ b/serviceaccounts/apiv1internal/client/api_service_accounts.go @@ -0,0 +1,615 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ServiceAccountsApi interface { + + /* + * CreateServiceAccount Create service account + * Create a service account. Created service account is associated with the user defined in the bearer token. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateServiceAccountRequest + */ + CreateServiceAccount(ctx _context.Context) ApiCreateServiceAccountRequest + + /* + * CreateServiceAccountExecute executes the request + * @return ServiceAccountData + */ + CreateServiceAccountExecute(r ApiCreateServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) + + /* + * DeleteServiceAccount Delete service account by id + * Delete service account by id. Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiDeleteServiceAccountRequest + */ + DeleteServiceAccount(ctx _context.Context, id string) ApiDeleteServiceAccountRequest + + /* + * DeleteServiceAccountExecute executes the request + */ + DeleteServiceAccountExecute(r ApiDeleteServiceAccountRequest) (*_nethttp.Response, error) + + /* + * GetServiceAccounts List all service accounts + * Returns a list of service accounts created by a user. User information is obtained from the bearer token. The list is paginated with starting index as 'first' and page size as 'max.' If 'max' is greater than the maximum allowable page size a NotAcceptableException is thrown + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetServiceAccountsRequest + */ + GetServiceAccounts(ctx _context.Context) ApiGetServiceAccountsRequest + + /* + * GetServiceAccountsExecute executes the request + * @return []ServiceAccountData + */ + GetServiceAccountsExecute(r ApiGetServiceAccountsRequest) ([]ServiceAccountData, *_nethttp.Response, error) + + /* + * UpdateServiceAccount Update service account + * Update a service account by id. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiUpdateServiceAccountRequest + */ + UpdateServiceAccount(ctx _context.Context, id string) ApiUpdateServiceAccountRequest + + /* + * UpdateServiceAccountExecute executes the request + * @return ServiceAccountData + */ + UpdateServiceAccountExecute(r ApiUpdateServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) +} + +// ServiceAccountsApiService ServiceAccountsApi service +type ServiceAccountsApiService service + +type ApiCreateServiceAccountRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + serviceAccountCreateRequestData *ServiceAccountCreateRequestData +} + +func (r ApiCreateServiceAccountRequest) ServiceAccountCreateRequestData(serviceAccountCreateRequestData ServiceAccountCreateRequestData) ApiCreateServiceAccountRequest { + r.serviceAccountCreateRequestData = &serviceAccountCreateRequestData + return r +} + +func (r ApiCreateServiceAccountRequest) Execute() (ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.CreateServiceAccountExecute(r) +} + +/* + * CreateServiceAccount Create service account + * Create a service account. Created service account is associated with the user defined in the bearer token. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateServiceAccountRequest + */ +func (a *ServiceAccountsApiService) CreateServiceAccount(ctx _context.Context) ApiCreateServiceAccountRequest { + return ApiCreateServiceAccountRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ServiceAccountData + */ +func (a *ServiceAccountsApiService) CreateServiceAccountExecute(r ApiCreateServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.CreateServiceAccount") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.serviceAccountCreateRequestData == nil { + return localVarReturnValue, nil, reportError("serviceAccountCreateRequestData is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceAccountCreateRequestData + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v InlineResponse401 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteServiceAccountRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + id string +} + + +func (r ApiDeleteServiceAccountRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteServiceAccountExecute(r) +} + +/* + * DeleteServiceAccount Delete service account by id + * Delete service account by id. Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiDeleteServiceAccountRequest + */ +func (a *ServiceAccountsApiService) DeleteServiceAccount(ctx _context.Context, id string) ApiDeleteServiceAccountRequest { + return ApiDeleteServiceAccountRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *ServiceAccountsApiService) DeleteServiceAccountExecute(r ApiDeleteServiceAccountRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.DeleteServiceAccount") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v InlineResponse401 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetServiceAccountsRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + first *int32 + max *int32 +} + +func (r ApiGetServiceAccountsRequest) First(first int32) ApiGetServiceAccountsRequest { + r.first = &first + return r +} +func (r ApiGetServiceAccountsRequest) Max(max int32) ApiGetServiceAccountsRequest { + r.max = &max + return r +} + +func (r ApiGetServiceAccountsRequest) Execute() ([]ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.GetServiceAccountsExecute(r) +} + +/* + * GetServiceAccounts List all service accounts + * Returns a list of service accounts created by a user. User information is obtained from the bearer token. The list is paginated with starting index as 'first' and page size as 'max.' If 'max' is greater than the maximum allowable page size a NotAcceptableException is thrown + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetServiceAccountsRequest + */ +func (a *ServiceAccountsApiService) GetServiceAccounts(ctx _context.Context) ApiGetServiceAccountsRequest { + return ApiGetServiceAccountsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return []ServiceAccountData + */ +func (a *ServiceAccountsApiService) GetServiceAccountsExecute(r ApiGetServiceAccountsRequest) ([]ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.GetServiceAccounts") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.first != nil { + localVarQueryParams.Add("first", parameterToString(*r.first, "")) + } + if r.max != nil { + localVarQueryParams.Add("max", parameterToString(*r.max, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 406 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateServiceAccountRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + id string + serviceAccountRequestData *ServiceAccountRequestData +} + +func (r ApiUpdateServiceAccountRequest) ServiceAccountRequestData(serviceAccountRequestData ServiceAccountRequestData) ApiUpdateServiceAccountRequest { + r.serviceAccountRequestData = &serviceAccountRequestData + return r +} + +func (r ApiUpdateServiceAccountRequest) Execute() (ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.UpdateServiceAccountExecute(r) +} + +/* + * UpdateServiceAccount Update service account + * Update a service account by id. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiUpdateServiceAccountRequest + */ +func (a *ServiceAccountsApiService) UpdateServiceAccount(ctx _context.Context, id string) ApiUpdateServiceAccountRequest { + return ApiUpdateServiceAccountRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ServiceAccountData + */ +func (a *ServiceAccountsApiService) UpdateServiceAccountExecute(r ApiUpdateServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.UpdateServiceAccount") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.serviceAccountRequestData == nil { + return localVarReturnValue, nil, reportError("serviceAccountRequestData is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceAccountRequestData + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/serviceaccounts/apiv1internal/client/api_serviceaccounts.go b/serviceaccounts/apiv1internal/client/api_serviceaccounts.go new file mode 100644 index 00000000..b7ad21f9 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/api_serviceaccounts.go @@ -0,0 +1,311 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ServiceaccountsApi interface { + + /* + * GetServiceAccount Get service account by id + * Returns service account by id. Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiGetServiceAccountRequest + */ + GetServiceAccount(ctx _context.Context, id string) ApiGetServiceAccountRequest + + /* + * GetServiceAccountExecute executes the request + * @return ServiceAccountData + */ + GetServiceAccountExecute(r ApiGetServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) + + /* + * ResetServiceAccountSecret Reset service account secret by id + * Reset service account secret by id . Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiResetServiceAccountSecretRequest + */ + ResetServiceAccountSecret(ctx _context.Context, id string) ApiResetServiceAccountSecretRequest + + /* + * ResetServiceAccountSecretExecute executes the request + * @return ServiceAccountData + */ + ResetServiceAccountSecretExecute(r ApiResetServiceAccountSecretRequest) (ServiceAccountData, *_nethttp.Response, error) +} + +// ServiceaccountsApiService ServiceaccountsApi service +type ServiceaccountsApiService service + +type ApiGetServiceAccountRequest struct { + ctx _context.Context + ApiService ServiceaccountsApi + id string +} + + +func (r ApiGetServiceAccountRequest) Execute() (ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.GetServiceAccountExecute(r) +} + +/* + * GetServiceAccount Get service account by id + * Returns service account by id. Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiGetServiceAccountRequest + */ +func (a *ServiceaccountsApiService) GetServiceAccount(ctx _context.Context, id string) ApiGetServiceAccountRequest { + return ApiGetServiceAccountRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ServiceAccountData + */ +func (a *ServiceaccountsApiService) GetServiceAccountExecute(r ApiGetServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceaccountsApiService.GetServiceAccount") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiResetServiceAccountSecretRequest struct { + ctx _context.Context + ApiService ServiceaccountsApi + id string +} + + +func (r ApiResetServiceAccountSecretRequest) Execute() (ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.ResetServiceAccountSecretExecute(r) +} + +/* + * ResetServiceAccountSecret Reset service account secret by id + * Reset service account secret by id . Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiResetServiceAccountSecretRequest + */ +func (a *ServiceaccountsApiService) ResetServiceAccountSecret(ctx _context.Context, id string) ApiResetServiceAccountSecretRequest { + return ApiResetServiceAccountSecretRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ServiceAccountData + */ +func (a *ServiceaccountsApiService) ResetServiceAccountSecretExecute(r ApiResetServiceAccountSecretRequest) (ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceaccountsApiService.ResetServiceAccountSecret") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1/{id}/resetSecret" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/serviceaccounts/apiv1internal/client/client.go b/serviceaccounts/apiv1internal/client/client.go new file mode 100644 index 00000000..508ed536 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/client.go @@ -0,0 +1,548 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Service Accounts API Documentation API v1.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ServiceAccountsApi ServiceAccountsApi + + ServiceaccountsApi ServiceaccountsApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ServiceAccountsApi = (*ServiceAccountsApiService)(&c.common) + c.ServiceaccountsApi = (*ServiceaccountsApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/serviceaccounts/apiv1internal/client/configuration.go b/serviceaccounts/apiv1internal/client/configuration.go new file mode 100644 index 00000000..6842ed90 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/configuration.go @@ -0,0 +1,230 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "Development server", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/serviceaccounts/apiv1internal/client/docs/Error.md b/serviceaccounts/apiv1internal/client/docs/Error.md new file mode 100644 index 00000000..eb751cf9 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/Error.md @@ -0,0 +1,53 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | **string** | The cause of the Error. | + + +## Methods + +### NewError + +`func NewError(error_ string, ) *Error` + +NewError instantiates a new Error object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetError + +`func (o *Error) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *Error) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *Error) SetError(v string)` + +SetError sets Error field to given value. + + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400.md new file mode 100644 index 00000000..1e718f9d --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400.md @@ -0,0 +1,193 @@ +# InlineResponse400 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cause** | Pointer to [**InlineResponse400Cause**](InlineResponse400Cause.md) | | [optional] +**StackTrace** | Pointer to [**[]InlineResponse400CauseStackTrace**](InlineResponse400CauseStackTrace.md) | | [optional] +**Response** | Pointer to [**InlineResponse400Response**](InlineResponse400Response.md) | | [optional] +**Message** | Pointer to **string** | | [optional] +**LocalizedMessage** | Pointer to **string** | | [optional] +**Suppressed** | Pointer to [**[]InlineResponse400CauseSuppressed**](InlineResponse400CauseSuppressed.md) | | [optional] + + +## Methods + +### NewInlineResponse400 + +`func NewInlineResponse400() *InlineResponse400` + +NewInlineResponse400 instantiates a new InlineResponse400 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400WithDefaults + +`func NewInlineResponse400WithDefaults() *InlineResponse400` + +NewInlineResponse400WithDefaults instantiates a new InlineResponse400 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetCause + +`func (o *InlineResponse400) GetCause() InlineResponse400Cause` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *InlineResponse400) GetCauseOk() (*InlineResponse400Cause, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *InlineResponse400) SetCause(v InlineResponse400Cause)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *InlineResponse400) HasCause() bool` + +HasCause returns a boolean if a field has been set. + + +### GetStackTrace + +`func (o *InlineResponse400) GetStackTrace() []InlineResponse400CauseStackTrace` + +GetStackTrace returns the StackTrace field if non-nil, zero value otherwise. + +### GetStackTraceOk + +`func (o *InlineResponse400) GetStackTraceOk() (*[]InlineResponse400CauseStackTrace, bool)` + +GetStackTraceOk returns a tuple with the StackTrace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackTrace + +`func (o *InlineResponse400) SetStackTrace(v []InlineResponse400CauseStackTrace)` + +SetStackTrace sets StackTrace field to given value. + +### HasStackTrace + +`func (o *InlineResponse400) HasStackTrace() bool` + +HasStackTrace returns a boolean if a field has been set. + + +### GetResponse + +`func (o *InlineResponse400) GetResponse() InlineResponse400Response` + +GetResponse returns the Response field if non-nil, zero value otherwise. + +### GetResponseOk + +`func (o *InlineResponse400) GetResponseOk() (*InlineResponse400Response, bool)` + +GetResponseOk returns a tuple with the Response field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponse + +`func (o *InlineResponse400) SetResponse(v InlineResponse400Response)` + +SetResponse sets Response field to given value. + +### HasResponse + +`func (o *InlineResponse400) HasResponse() bool` + +HasResponse returns a boolean if a field has been set. + + +### GetMessage + +`func (o *InlineResponse400) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *InlineResponse400) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *InlineResponse400) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *InlineResponse400) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +### GetLocalizedMessage + +`func (o *InlineResponse400) GetLocalizedMessage() string` + +GetLocalizedMessage returns the LocalizedMessage field if non-nil, zero value otherwise. + +### GetLocalizedMessageOk + +`func (o *InlineResponse400) GetLocalizedMessageOk() (*string, bool)` + +GetLocalizedMessageOk returns a tuple with the LocalizedMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalizedMessage + +`func (o *InlineResponse400) SetLocalizedMessage(v string)` + +SetLocalizedMessage sets LocalizedMessage field to given value. + +### HasLocalizedMessage + +`func (o *InlineResponse400) HasLocalizedMessage() bool` + +HasLocalizedMessage returns a boolean if a field has been set. + + +### GetSuppressed + +`func (o *InlineResponse400) GetSuppressed() []InlineResponse400CauseSuppressed` + +GetSuppressed returns the Suppressed field if non-nil, zero value otherwise. + +### GetSuppressedOk + +`func (o *InlineResponse400) GetSuppressedOk() (*[]InlineResponse400CauseSuppressed, bool)` + +GetSuppressedOk returns a tuple with the Suppressed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuppressed + +`func (o *InlineResponse400) SetSuppressed(v []InlineResponse400CauseSuppressed)` + +SetSuppressed sets Suppressed field to given value. + +### HasSuppressed + +`func (o *InlineResponse400) HasSuppressed() bool` + +HasSuppressed returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400Cause.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400Cause.md new file mode 100644 index 00000000..a3dd0089 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400Cause.md @@ -0,0 +1,139 @@ +# InlineResponse400Cause + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StackTrace** | Pointer to [**[]InlineResponse400CauseStackTrace**](InlineResponse400CauseStackTrace.md) | | [optional] +**Message** | Pointer to **string** | | [optional] +**LocalizedMessage** | Pointer to **string** | | [optional] +**Suppressed** | Pointer to [**[]InlineResponse400CauseSuppressed**](InlineResponse400CauseSuppressed.md) | | [optional] + + +## Methods + +### NewInlineResponse400Cause + +`func NewInlineResponse400Cause() *InlineResponse400Cause` + +NewInlineResponse400Cause instantiates a new InlineResponse400Cause object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400CauseWithDefaults + +`func NewInlineResponse400CauseWithDefaults() *InlineResponse400Cause` + +NewInlineResponse400CauseWithDefaults instantiates a new InlineResponse400Cause object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetStackTrace + +`func (o *InlineResponse400Cause) GetStackTrace() []InlineResponse400CauseStackTrace` + +GetStackTrace returns the StackTrace field if non-nil, zero value otherwise. + +### GetStackTraceOk + +`func (o *InlineResponse400Cause) GetStackTraceOk() (*[]InlineResponse400CauseStackTrace, bool)` + +GetStackTraceOk returns a tuple with the StackTrace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackTrace + +`func (o *InlineResponse400Cause) SetStackTrace(v []InlineResponse400CauseStackTrace)` + +SetStackTrace sets StackTrace field to given value. + +### HasStackTrace + +`func (o *InlineResponse400Cause) HasStackTrace() bool` + +HasStackTrace returns a boolean if a field has been set. + + +### GetMessage + +`func (o *InlineResponse400Cause) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *InlineResponse400Cause) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *InlineResponse400Cause) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *InlineResponse400Cause) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +### GetLocalizedMessage + +`func (o *InlineResponse400Cause) GetLocalizedMessage() string` + +GetLocalizedMessage returns the LocalizedMessage field if non-nil, zero value otherwise. + +### GetLocalizedMessageOk + +`func (o *InlineResponse400Cause) GetLocalizedMessageOk() (*string, bool)` + +GetLocalizedMessageOk returns a tuple with the LocalizedMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalizedMessage + +`func (o *InlineResponse400Cause) SetLocalizedMessage(v string)` + +SetLocalizedMessage sets LocalizedMessage field to given value. + +### HasLocalizedMessage + +`func (o *InlineResponse400Cause) HasLocalizedMessage() bool` + +HasLocalizedMessage returns a boolean if a field has been set. + + +### GetSuppressed + +`func (o *InlineResponse400Cause) GetSuppressed() []InlineResponse400CauseSuppressed` + +GetSuppressed returns the Suppressed field if non-nil, zero value otherwise. + +### GetSuppressedOk + +`func (o *InlineResponse400Cause) GetSuppressedOk() (*[]InlineResponse400CauseSuppressed, bool)` + +GetSuppressedOk returns a tuple with the Suppressed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuppressed + +`func (o *InlineResponse400Cause) SetSuppressed(v []InlineResponse400CauseSuppressed)` + +SetSuppressed sets Suppressed field to given value. + +### HasSuppressed + +`func (o *InlineResponse400Cause) HasSuppressed() bool` + +HasSuppressed returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400CauseStackTrace.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400CauseStackTrace.md new file mode 100644 index 00000000..7e55ac3a --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400CauseStackTrace.md @@ -0,0 +1,166 @@ +# InlineResponse400CauseStackTrace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MethodName** | Pointer to **string** | | [optional] +**FileName** | Pointer to **string** | | [optional] +**LineNumber** | Pointer to **int32** | | [optional] +**ClassName** | Pointer to **string** | | [optional] +**NativeMethod** | Pointer to **bool** | | [optional] + + +## Methods + +### NewInlineResponse400CauseStackTrace + +`func NewInlineResponse400CauseStackTrace() *InlineResponse400CauseStackTrace` + +NewInlineResponse400CauseStackTrace instantiates a new InlineResponse400CauseStackTrace object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400CauseStackTraceWithDefaults + +`func NewInlineResponse400CauseStackTraceWithDefaults() *InlineResponse400CauseStackTrace` + +NewInlineResponse400CauseStackTraceWithDefaults instantiates a new InlineResponse400CauseStackTrace object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetMethodName + +`func (o *InlineResponse400CauseStackTrace) GetMethodName() string` + +GetMethodName returns the MethodName field if non-nil, zero value otherwise. + +### GetMethodNameOk + +`func (o *InlineResponse400CauseStackTrace) GetMethodNameOk() (*string, bool)` + +GetMethodNameOk returns a tuple with the MethodName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodName + +`func (o *InlineResponse400CauseStackTrace) SetMethodName(v string)` + +SetMethodName sets MethodName field to given value. + +### HasMethodName + +`func (o *InlineResponse400CauseStackTrace) HasMethodName() bool` + +HasMethodName returns a boolean if a field has been set. + + +### GetFileName + +`func (o *InlineResponse400CauseStackTrace) GetFileName() string` + +GetFileName returns the FileName field if non-nil, zero value otherwise. + +### GetFileNameOk + +`func (o *InlineResponse400CauseStackTrace) GetFileNameOk() (*string, bool)` + +GetFileNameOk returns a tuple with the FileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileName + +`func (o *InlineResponse400CauseStackTrace) SetFileName(v string)` + +SetFileName sets FileName field to given value. + +### HasFileName + +`func (o *InlineResponse400CauseStackTrace) HasFileName() bool` + +HasFileName returns a boolean if a field has been set. + + +### GetLineNumber + +`func (o *InlineResponse400CauseStackTrace) GetLineNumber() int32` + +GetLineNumber returns the LineNumber field if non-nil, zero value otherwise. + +### GetLineNumberOk + +`func (o *InlineResponse400CauseStackTrace) GetLineNumberOk() (*int32, bool)` + +GetLineNumberOk returns a tuple with the LineNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineNumber + +`func (o *InlineResponse400CauseStackTrace) SetLineNumber(v int32)` + +SetLineNumber sets LineNumber field to given value. + +### HasLineNumber + +`func (o *InlineResponse400CauseStackTrace) HasLineNumber() bool` + +HasLineNumber returns a boolean if a field has been set. + + +### GetClassName + +`func (o *InlineResponse400CauseStackTrace) GetClassName() string` + +GetClassName returns the ClassName field if non-nil, zero value otherwise. + +### GetClassNameOk + +`func (o *InlineResponse400CauseStackTrace) GetClassNameOk() (*string, bool)` + +GetClassNameOk returns a tuple with the ClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassName + +`func (o *InlineResponse400CauseStackTrace) SetClassName(v string)` + +SetClassName sets ClassName field to given value. + +### HasClassName + +`func (o *InlineResponse400CauseStackTrace) HasClassName() bool` + +HasClassName returns a boolean if a field has been set. + + +### GetNativeMethod + +`func (o *InlineResponse400CauseStackTrace) GetNativeMethod() bool` + +GetNativeMethod returns the NativeMethod field if non-nil, zero value otherwise. + +### GetNativeMethodOk + +`func (o *InlineResponse400CauseStackTrace) GetNativeMethodOk() (*bool, bool)` + +GetNativeMethodOk returns a tuple with the NativeMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNativeMethod + +`func (o *InlineResponse400CauseStackTrace) SetNativeMethod(v bool)` + +SetNativeMethod sets NativeMethod field to given value. + +### HasNativeMethod + +`func (o *InlineResponse400CauseStackTrace) HasNativeMethod() bool` + +HasNativeMethod returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400CauseSuppressed.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400CauseSuppressed.md new file mode 100644 index 00000000..a37f2e83 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400CauseSuppressed.md @@ -0,0 +1,112 @@ +# InlineResponse400CauseSuppressed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StackTrace** | Pointer to [**[]InlineResponse400CauseStackTrace**](InlineResponse400CauseStackTrace.md) | | [optional] +**Message** | Pointer to **string** | | [optional] +**LocalizedMessage** | Pointer to **string** | | [optional] + + +## Methods + +### NewInlineResponse400CauseSuppressed + +`func NewInlineResponse400CauseSuppressed() *InlineResponse400CauseSuppressed` + +NewInlineResponse400CauseSuppressed instantiates a new InlineResponse400CauseSuppressed object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400CauseSuppressedWithDefaults + +`func NewInlineResponse400CauseSuppressedWithDefaults() *InlineResponse400CauseSuppressed` + +NewInlineResponse400CauseSuppressedWithDefaults instantiates a new InlineResponse400CauseSuppressed object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetStackTrace + +`func (o *InlineResponse400CauseSuppressed) GetStackTrace() []InlineResponse400CauseStackTrace` + +GetStackTrace returns the StackTrace field if non-nil, zero value otherwise. + +### GetStackTraceOk + +`func (o *InlineResponse400CauseSuppressed) GetStackTraceOk() (*[]InlineResponse400CauseStackTrace, bool)` + +GetStackTraceOk returns a tuple with the StackTrace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackTrace + +`func (o *InlineResponse400CauseSuppressed) SetStackTrace(v []InlineResponse400CauseStackTrace)` + +SetStackTrace sets StackTrace field to given value. + +### HasStackTrace + +`func (o *InlineResponse400CauseSuppressed) HasStackTrace() bool` + +HasStackTrace returns a boolean if a field has been set. + + +### GetMessage + +`func (o *InlineResponse400CauseSuppressed) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *InlineResponse400CauseSuppressed) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *InlineResponse400CauseSuppressed) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *InlineResponse400CauseSuppressed) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +### GetLocalizedMessage + +`func (o *InlineResponse400CauseSuppressed) GetLocalizedMessage() string` + +GetLocalizedMessage returns the LocalizedMessage field if non-nil, zero value otherwise. + +### GetLocalizedMessageOk + +`func (o *InlineResponse400CauseSuppressed) GetLocalizedMessageOk() (*string, bool)` + +GetLocalizedMessageOk returns a tuple with the LocalizedMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalizedMessage + +`func (o *InlineResponse400CauseSuppressed) SetLocalizedMessage(v string)` + +SetLocalizedMessage sets LocalizedMessage field to given value. + +### HasLocalizedMessage + +`func (o *InlineResponse400CauseSuppressed) HasLocalizedMessage() bool` + +HasLocalizedMessage returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400Response.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400Response.md new file mode 100644 index 00000000..ecd2050a --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400Response.md @@ -0,0 +1,463 @@ +# InlineResponse400Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to **map[string][]map[string]interface{}** | | [optional] +**Entity** | Pointer to **map[string]interface{}** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**EntityTag** | Pointer to [**InlineResponse400ResponseEntityTag**](InlineResponse400ResponseEntityTag.md) | | [optional] +**Cookies** | Pointer to [**map[string]InlineResponse400ResponseCookies**](InlineResponse400ResponseCookies.md) | | [optional] +**AllowedMethods** | Pointer to **[]string** | | [optional] +**MediaType** | Pointer to [**InlineResponse400ResponseMediaType**](InlineResponse400ResponseMediaType.md) | | [optional] +**StringHeaders** | Pointer to **map[string][]string** | | [optional] +**StatusInfo** | Pointer to [**InlineResponse400ResponseStatusInfo**](InlineResponse400ResponseStatusInfo.md) | | [optional] +**Links** | Pointer to [**[]InlineResponse400ResponseLinks**](InlineResponse400ResponseLinks.md) | | [optional] +**Length** | Pointer to **int32** | | [optional] +**Language** | Pointer to [**InlineResponse400ResponseLanguage**](InlineResponse400ResponseLanguage.md) | | [optional] +**Location** | Pointer to **string** | | [optional] +**LastModified** | Pointer to **time.Time** | | [optional] +**Date** | Pointer to **time.Time** | | [optional] +**Headers** | Pointer to **map[string][]map[string]interface{}** | | [optional] + + +## Methods + +### NewInlineResponse400Response + +`func NewInlineResponse400Response() *InlineResponse400Response` + +NewInlineResponse400Response instantiates a new InlineResponse400Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400ResponseWithDefaults + +`func NewInlineResponse400ResponseWithDefaults() *InlineResponse400Response` + +NewInlineResponse400ResponseWithDefaults instantiates a new InlineResponse400Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetMetadata + +`func (o *InlineResponse400Response) GetMetadata() map[string][]map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *InlineResponse400Response) GetMetadataOk() (*map[string][]map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *InlineResponse400Response) SetMetadata(v map[string][]map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *InlineResponse400Response) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +### GetEntity + +`func (o *InlineResponse400Response) GetEntity() map[string]interface{}` + +GetEntity returns the Entity field if non-nil, zero value otherwise. + +### GetEntityOk + +`func (o *InlineResponse400Response) GetEntityOk() (*map[string]interface{}, bool)` + +GetEntityOk returns a tuple with the Entity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntity + +`func (o *InlineResponse400Response) SetEntity(v map[string]interface{})` + +SetEntity sets Entity field to given value. + +### HasEntity + +`func (o *InlineResponse400Response) HasEntity() bool` + +HasEntity returns a boolean if a field has been set. + + +### GetStatus + +`func (o *InlineResponse400Response) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InlineResponse400Response) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *InlineResponse400Response) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *InlineResponse400Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +### GetEntityTag + +`func (o *InlineResponse400Response) GetEntityTag() InlineResponse400ResponseEntityTag` + +GetEntityTag returns the EntityTag field if non-nil, zero value otherwise. + +### GetEntityTagOk + +`func (o *InlineResponse400Response) GetEntityTagOk() (*InlineResponse400ResponseEntityTag, bool)` + +GetEntityTagOk returns a tuple with the EntityTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityTag + +`func (o *InlineResponse400Response) SetEntityTag(v InlineResponse400ResponseEntityTag)` + +SetEntityTag sets EntityTag field to given value. + +### HasEntityTag + +`func (o *InlineResponse400Response) HasEntityTag() bool` + +HasEntityTag returns a boolean if a field has been set. + + +### GetCookies + +`func (o *InlineResponse400Response) GetCookies() map[string]InlineResponse400ResponseCookies` + +GetCookies returns the Cookies field if non-nil, zero value otherwise. + +### GetCookiesOk + +`func (o *InlineResponse400Response) GetCookiesOk() (*map[string]InlineResponse400ResponseCookies, bool)` + +GetCookiesOk returns a tuple with the Cookies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCookies + +`func (o *InlineResponse400Response) SetCookies(v map[string]InlineResponse400ResponseCookies)` + +SetCookies sets Cookies field to given value. + +### HasCookies + +`func (o *InlineResponse400Response) HasCookies() bool` + +HasCookies returns a boolean if a field has been set. + + +### GetAllowedMethods + +`func (o *InlineResponse400Response) GetAllowedMethods() []string` + +GetAllowedMethods returns the AllowedMethods field if non-nil, zero value otherwise. + +### GetAllowedMethodsOk + +`func (o *InlineResponse400Response) GetAllowedMethodsOk() (*[]string, bool)` + +GetAllowedMethodsOk returns a tuple with the AllowedMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedMethods + +`func (o *InlineResponse400Response) SetAllowedMethods(v []string)` + +SetAllowedMethods sets AllowedMethods field to given value. + +### HasAllowedMethods + +`func (o *InlineResponse400Response) HasAllowedMethods() bool` + +HasAllowedMethods returns a boolean if a field has been set. + + +### GetMediaType + +`func (o *InlineResponse400Response) GetMediaType() InlineResponse400ResponseMediaType` + +GetMediaType returns the MediaType field if non-nil, zero value otherwise. + +### GetMediaTypeOk + +`func (o *InlineResponse400Response) GetMediaTypeOk() (*InlineResponse400ResponseMediaType, bool)` + +GetMediaTypeOk returns a tuple with the MediaType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMediaType + +`func (o *InlineResponse400Response) SetMediaType(v InlineResponse400ResponseMediaType)` + +SetMediaType sets MediaType field to given value. + +### HasMediaType + +`func (o *InlineResponse400Response) HasMediaType() bool` + +HasMediaType returns a boolean if a field has been set. + + +### GetStringHeaders + +`func (o *InlineResponse400Response) GetStringHeaders() map[string][]string` + +GetStringHeaders returns the StringHeaders field if non-nil, zero value otherwise. + +### GetStringHeadersOk + +`func (o *InlineResponse400Response) GetStringHeadersOk() (*map[string][]string, bool)` + +GetStringHeadersOk returns a tuple with the StringHeaders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStringHeaders + +`func (o *InlineResponse400Response) SetStringHeaders(v map[string][]string)` + +SetStringHeaders sets StringHeaders field to given value. + +### HasStringHeaders + +`func (o *InlineResponse400Response) HasStringHeaders() bool` + +HasStringHeaders returns a boolean if a field has been set. + + +### GetStatusInfo + +`func (o *InlineResponse400Response) GetStatusInfo() InlineResponse400ResponseStatusInfo` + +GetStatusInfo returns the StatusInfo field if non-nil, zero value otherwise. + +### GetStatusInfoOk + +`func (o *InlineResponse400Response) GetStatusInfoOk() (*InlineResponse400ResponseStatusInfo, bool)` + +GetStatusInfoOk returns a tuple with the StatusInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusInfo + +`func (o *InlineResponse400Response) SetStatusInfo(v InlineResponse400ResponseStatusInfo)` + +SetStatusInfo sets StatusInfo field to given value. + +### HasStatusInfo + +`func (o *InlineResponse400Response) HasStatusInfo() bool` + +HasStatusInfo returns a boolean if a field has been set. + + +### GetLinks + +`func (o *InlineResponse400Response) GetLinks() []InlineResponse400ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *InlineResponse400Response) GetLinksOk() (*[]InlineResponse400ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *InlineResponse400Response) SetLinks(v []InlineResponse400ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *InlineResponse400Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + + +### GetLength + +`func (o *InlineResponse400Response) GetLength() int32` + +GetLength returns the Length field if non-nil, zero value otherwise. + +### GetLengthOk + +`func (o *InlineResponse400Response) GetLengthOk() (*int32, bool)` + +GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLength + +`func (o *InlineResponse400Response) SetLength(v int32)` + +SetLength sets Length field to given value. + +### HasLength + +`func (o *InlineResponse400Response) HasLength() bool` + +HasLength returns a boolean if a field has been set. + + +### GetLanguage + +`func (o *InlineResponse400Response) GetLanguage() InlineResponse400ResponseLanguage` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *InlineResponse400Response) GetLanguageOk() (*InlineResponse400ResponseLanguage, bool)` + +GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLanguage + +`func (o *InlineResponse400Response) SetLanguage(v InlineResponse400ResponseLanguage)` + +SetLanguage sets Language field to given value. + +### HasLanguage + +`func (o *InlineResponse400Response) HasLanguage() bool` + +HasLanguage returns a boolean if a field has been set. + + +### GetLocation + +`func (o *InlineResponse400Response) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *InlineResponse400Response) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *InlineResponse400Response) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *InlineResponse400Response) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + + +### GetLastModified + +`func (o *InlineResponse400Response) GetLastModified() time.Time` + +GetLastModified returns the LastModified field if non-nil, zero value otherwise. + +### GetLastModifiedOk + +`func (o *InlineResponse400Response) GetLastModifiedOk() (*time.Time, bool)` + +GetLastModifiedOk returns a tuple with the LastModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModified + +`func (o *InlineResponse400Response) SetLastModified(v time.Time)` + +SetLastModified sets LastModified field to given value. + +### HasLastModified + +`func (o *InlineResponse400Response) HasLastModified() bool` + +HasLastModified returns a boolean if a field has been set. + + +### GetDate + +`func (o *InlineResponse400Response) GetDate() time.Time` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *InlineResponse400Response) GetDateOk() (*time.Time, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *InlineResponse400Response) SetDate(v time.Time)` + +SetDate sets Date field to given value. + +### HasDate + +`func (o *InlineResponse400Response) HasDate() bool` + +HasDate returns a boolean if a field has been set. + + +### GetHeaders + +`func (o *InlineResponse400Response) GetHeaders() map[string][]map[string]interface{}` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *InlineResponse400Response) GetHeadersOk() (*map[string][]map[string]interface{}, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *InlineResponse400Response) SetHeaders(v map[string][]map[string]interface{})` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *InlineResponse400Response) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseCookies.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseCookies.md new file mode 100644 index 00000000..26411a79 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseCookies.md @@ -0,0 +1,301 @@ +# InlineResponse400ResponseCookies + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] +**Version** | Pointer to **int32** | | [optional] +**Path** | Pointer to **string** | | [optional] +**Domain** | Pointer to **string** | | [optional] +**Comment** | Pointer to **string** | | [optional] +**MaxAge** | Pointer to **int32** | | [optional] +**Expiry** | Pointer to **time.Time** | | [optional] +**Secure** | Pointer to **bool** | | [optional] +**HttpOnly** | Pointer to **bool** | | [optional] + + +## Methods + +### NewInlineResponse400ResponseCookies + +`func NewInlineResponse400ResponseCookies() *InlineResponse400ResponseCookies` + +NewInlineResponse400ResponseCookies instantiates a new InlineResponse400ResponseCookies object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400ResponseCookiesWithDefaults + +`func NewInlineResponse400ResponseCookiesWithDefaults() *InlineResponse400ResponseCookies` + +NewInlineResponse400ResponseCookiesWithDefaults instantiates a new InlineResponse400ResponseCookies object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetName + +`func (o *InlineResponse400ResponseCookies) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *InlineResponse400ResponseCookies) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *InlineResponse400ResponseCookies) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *InlineResponse400ResponseCookies) HasName() bool` + +HasName returns a boolean if a field has been set. + + +### GetValue + +`func (o *InlineResponse400ResponseCookies) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InlineResponse400ResponseCookies) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InlineResponse400ResponseCookies) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InlineResponse400ResponseCookies) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +### GetVersion + +`func (o *InlineResponse400ResponseCookies) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *InlineResponse400ResponseCookies) GetVersionOk() (*int32, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *InlineResponse400ResponseCookies) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *InlineResponse400ResponseCookies) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +### GetPath + +`func (o *InlineResponse400ResponseCookies) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *InlineResponse400ResponseCookies) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *InlineResponse400ResponseCookies) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *InlineResponse400ResponseCookies) HasPath() bool` + +HasPath returns a boolean if a field has been set. + + +### GetDomain + +`func (o *InlineResponse400ResponseCookies) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *InlineResponse400ResponseCookies) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *InlineResponse400ResponseCookies) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *InlineResponse400ResponseCookies) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + + +### GetComment + +`func (o *InlineResponse400ResponseCookies) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *InlineResponse400ResponseCookies) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *InlineResponse400ResponseCookies) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *InlineResponse400ResponseCookies) HasComment() bool` + +HasComment returns a boolean if a field has been set. + + +### GetMaxAge + +`func (o *InlineResponse400ResponseCookies) GetMaxAge() int32` + +GetMaxAge returns the MaxAge field if non-nil, zero value otherwise. + +### GetMaxAgeOk + +`func (o *InlineResponse400ResponseCookies) GetMaxAgeOk() (*int32, bool)` + +GetMaxAgeOk returns a tuple with the MaxAge field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxAge + +`func (o *InlineResponse400ResponseCookies) SetMaxAge(v int32)` + +SetMaxAge sets MaxAge field to given value. + +### HasMaxAge + +`func (o *InlineResponse400ResponseCookies) HasMaxAge() bool` + +HasMaxAge returns a boolean if a field has been set. + + +### GetExpiry + +`func (o *InlineResponse400ResponseCookies) GetExpiry() time.Time` + +GetExpiry returns the Expiry field if non-nil, zero value otherwise. + +### GetExpiryOk + +`func (o *InlineResponse400ResponseCookies) GetExpiryOk() (*time.Time, bool)` + +GetExpiryOk returns a tuple with the Expiry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiry + +`func (o *InlineResponse400ResponseCookies) SetExpiry(v time.Time)` + +SetExpiry sets Expiry field to given value. + +### HasExpiry + +`func (o *InlineResponse400ResponseCookies) HasExpiry() bool` + +HasExpiry returns a boolean if a field has been set. + + +### GetSecure + +`func (o *InlineResponse400ResponseCookies) GetSecure() bool` + +GetSecure returns the Secure field if non-nil, zero value otherwise. + +### GetSecureOk + +`func (o *InlineResponse400ResponseCookies) GetSecureOk() (*bool, bool)` + +GetSecureOk returns a tuple with the Secure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecure + +`func (o *InlineResponse400ResponseCookies) SetSecure(v bool)` + +SetSecure sets Secure field to given value. + +### HasSecure + +`func (o *InlineResponse400ResponseCookies) HasSecure() bool` + +HasSecure returns a boolean if a field has been set. + + +### GetHttpOnly + +`func (o *InlineResponse400ResponseCookies) GetHttpOnly() bool` + +GetHttpOnly returns the HttpOnly field if non-nil, zero value otherwise. + +### GetHttpOnlyOk + +`func (o *InlineResponse400ResponseCookies) GetHttpOnlyOk() (*bool, bool)` + +GetHttpOnlyOk returns a tuple with the HttpOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpOnly + +`func (o *InlineResponse400ResponseCookies) SetHttpOnly(v bool)` + +SetHttpOnly sets HttpOnly field to given value. + +### HasHttpOnly + +`func (o *InlineResponse400ResponseCookies) HasHttpOnly() bool` + +HasHttpOnly returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseEntityTag.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseEntityTag.md new file mode 100644 index 00000000..f25b88f0 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseEntityTag.md @@ -0,0 +1,85 @@ +# InlineResponse400ResponseEntityTag + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **string** | | [optional] +**Weak** | Pointer to **bool** | | [optional] + + +## Methods + +### NewInlineResponse400ResponseEntityTag + +`func NewInlineResponse400ResponseEntityTag() *InlineResponse400ResponseEntityTag` + +NewInlineResponse400ResponseEntityTag instantiates a new InlineResponse400ResponseEntityTag object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400ResponseEntityTagWithDefaults + +`func NewInlineResponse400ResponseEntityTagWithDefaults() *InlineResponse400ResponseEntityTag` + +NewInlineResponse400ResponseEntityTagWithDefaults instantiates a new InlineResponse400ResponseEntityTag object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetValue + +`func (o *InlineResponse400ResponseEntityTag) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InlineResponse400ResponseEntityTag) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InlineResponse400ResponseEntityTag) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InlineResponse400ResponseEntityTag) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +### GetWeak + +`func (o *InlineResponse400ResponseEntityTag) GetWeak() bool` + +GetWeak returns the Weak field if non-nil, zero value otherwise. + +### GetWeakOk + +`func (o *InlineResponse400ResponseEntityTag) GetWeakOk() (*bool, bool)` + +GetWeakOk returns a tuple with the Weak field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeak + +`func (o *InlineResponse400ResponseEntityTag) SetWeak(v bool)` + +SetWeak sets Weak field to given value. + +### HasWeak + +`func (o *InlineResponse400ResponseEntityTag) HasWeak() bool` + +HasWeak returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseLanguage.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseLanguage.md new file mode 100644 index 00000000..7bd3a413 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseLanguage.md @@ -0,0 +1,409 @@ +# InlineResponse400ResponseLanguage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | Pointer to **string** | | [optional] +**Script** | Pointer to **string** | | [optional] +**Country** | Pointer to **string** | | [optional] +**Variant** | Pointer to **string** | | [optional] +**ExtensionKeys** | Pointer to **[]string** | | [optional] +**UnicodeLocaleAttributes** | Pointer to **[]string** | | [optional] +**UnicodeLocaleKeys** | Pointer to **[]string** | | [optional] +**Iso3Language** | Pointer to **string** | | [optional] +**Iso3Country** | Pointer to **string** | | [optional] +**DisplayLanguage** | Pointer to **string** | | [optional] +**DisplayScript** | Pointer to **string** | | [optional] +**DisplayCountry** | Pointer to **string** | | [optional] +**DisplayVariant** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] + + +## Methods + +### NewInlineResponse400ResponseLanguage + +`func NewInlineResponse400ResponseLanguage() *InlineResponse400ResponseLanguage` + +NewInlineResponse400ResponseLanguage instantiates a new InlineResponse400ResponseLanguage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400ResponseLanguageWithDefaults + +`func NewInlineResponse400ResponseLanguageWithDefaults() *InlineResponse400ResponseLanguage` + +NewInlineResponse400ResponseLanguageWithDefaults instantiates a new InlineResponse400ResponseLanguage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetLanguage + +`func (o *InlineResponse400ResponseLanguage) GetLanguage() string` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *InlineResponse400ResponseLanguage) GetLanguageOk() (*string, bool)` + +GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLanguage + +`func (o *InlineResponse400ResponseLanguage) SetLanguage(v string)` + +SetLanguage sets Language field to given value. + +### HasLanguage + +`func (o *InlineResponse400ResponseLanguage) HasLanguage() bool` + +HasLanguage returns a boolean if a field has been set. + + +### GetScript + +`func (o *InlineResponse400ResponseLanguage) GetScript() string` + +GetScript returns the Script field if non-nil, zero value otherwise. + +### GetScriptOk + +`func (o *InlineResponse400ResponseLanguage) GetScriptOk() (*string, bool)` + +GetScriptOk returns a tuple with the Script field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScript + +`func (o *InlineResponse400ResponseLanguage) SetScript(v string)` + +SetScript sets Script field to given value. + +### HasScript + +`func (o *InlineResponse400ResponseLanguage) HasScript() bool` + +HasScript returns a boolean if a field has been set. + + +### GetCountry + +`func (o *InlineResponse400ResponseLanguage) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *InlineResponse400ResponseLanguage) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *InlineResponse400ResponseLanguage) SetCountry(v string)` + +SetCountry sets Country field to given value. + +### HasCountry + +`func (o *InlineResponse400ResponseLanguage) HasCountry() bool` + +HasCountry returns a boolean if a field has been set. + + +### GetVariant + +`func (o *InlineResponse400ResponseLanguage) GetVariant() string` + +GetVariant returns the Variant field if non-nil, zero value otherwise. + +### GetVariantOk + +`func (o *InlineResponse400ResponseLanguage) GetVariantOk() (*string, bool)` + +GetVariantOk returns a tuple with the Variant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVariant + +`func (o *InlineResponse400ResponseLanguage) SetVariant(v string)` + +SetVariant sets Variant field to given value. + +### HasVariant + +`func (o *InlineResponse400ResponseLanguage) HasVariant() bool` + +HasVariant returns a boolean if a field has been set. + + +### GetExtensionKeys + +`func (o *InlineResponse400ResponseLanguage) GetExtensionKeys() []string` + +GetExtensionKeys returns the ExtensionKeys field if non-nil, zero value otherwise. + +### GetExtensionKeysOk + +`func (o *InlineResponse400ResponseLanguage) GetExtensionKeysOk() (*[]string, bool)` + +GetExtensionKeysOk returns a tuple with the ExtensionKeys field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionKeys + +`func (o *InlineResponse400ResponseLanguage) SetExtensionKeys(v []string)` + +SetExtensionKeys sets ExtensionKeys field to given value. + +### HasExtensionKeys + +`func (o *InlineResponse400ResponseLanguage) HasExtensionKeys() bool` + +HasExtensionKeys returns a boolean if a field has been set. + + +### GetUnicodeLocaleAttributes + +`func (o *InlineResponse400ResponseLanguage) GetUnicodeLocaleAttributes() []string` + +GetUnicodeLocaleAttributes returns the UnicodeLocaleAttributes field if non-nil, zero value otherwise. + +### GetUnicodeLocaleAttributesOk + +`func (o *InlineResponse400ResponseLanguage) GetUnicodeLocaleAttributesOk() (*[]string, bool)` + +GetUnicodeLocaleAttributesOk returns a tuple with the UnicodeLocaleAttributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnicodeLocaleAttributes + +`func (o *InlineResponse400ResponseLanguage) SetUnicodeLocaleAttributes(v []string)` + +SetUnicodeLocaleAttributes sets UnicodeLocaleAttributes field to given value. + +### HasUnicodeLocaleAttributes + +`func (o *InlineResponse400ResponseLanguage) HasUnicodeLocaleAttributes() bool` + +HasUnicodeLocaleAttributes returns a boolean if a field has been set. + + +### GetUnicodeLocaleKeys + +`func (o *InlineResponse400ResponseLanguage) GetUnicodeLocaleKeys() []string` + +GetUnicodeLocaleKeys returns the UnicodeLocaleKeys field if non-nil, zero value otherwise. + +### GetUnicodeLocaleKeysOk + +`func (o *InlineResponse400ResponseLanguage) GetUnicodeLocaleKeysOk() (*[]string, bool)` + +GetUnicodeLocaleKeysOk returns a tuple with the UnicodeLocaleKeys field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnicodeLocaleKeys + +`func (o *InlineResponse400ResponseLanguage) SetUnicodeLocaleKeys(v []string)` + +SetUnicodeLocaleKeys sets UnicodeLocaleKeys field to given value. + +### HasUnicodeLocaleKeys + +`func (o *InlineResponse400ResponseLanguage) HasUnicodeLocaleKeys() bool` + +HasUnicodeLocaleKeys returns a boolean if a field has been set. + + +### GetIso3Language + +`func (o *InlineResponse400ResponseLanguage) GetIso3Language() string` + +GetIso3Language returns the Iso3Language field if non-nil, zero value otherwise. + +### GetIso3LanguageOk + +`func (o *InlineResponse400ResponseLanguage) GetIso3LanguageOk() (*string, bool)` + +GetIso3LanguageOk returns a tuple with the Iso3Language field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIso3Language + +`func (o *InlineResponse400ResponseLanguage) SetIso3Language(v string)` + +SetIso3Language sets Iso3Language field to given value. + +### HasIso3Language + +`func (o *InlineResponse400ResponseLanguage) HasIso3Language() bool` + +HasIso3Language returns a boolean if a field has been set. + + +### GetIso3Country + +`func (o *InlineResponse400ResponseLanguage) GetIso3Country() string` + +GetIso3Country returns the Iso3Country field if non-nil, zero value otherwise. + +### GetIso3CountryOk + +`func (o *InlineResponse400ResponseLanguage) GetIso3CountryOk() (*string, bool)` + +GetIso3CountryOk returns a tuple with the Iso3Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIso3Country + +`func (o *InlineResponse400ResponseLanguage) SetIso3Country(v string)` + +SetIso3Country sets Iso3Country field to given value. + +### HasIso3Country + +`func (o *InlineResponse400ResponseLanguage) HasIso3Country() bool` + +HasIso3Country returns a boolean if a field has been set. + + +### GetDisplayLanguage + +`func (o *InlineResponse400ResponseLanguage) GetDisplayLanguage() string` + +GetDisplayLanguage returns the DisplayLanguage field if non-nil, zero value otherwise. + +### GetDisplayLanguageOk + +`func (o *InlineResponse400ResponseLanguage) GetDisplayLanguageOk() (*string, bool)` + +GetDisplayLanguageOk returns a tuple with the DisplayLanguage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayLanguage + +`func (o *InlineResponse400ResponseLanguage) SetDisplayLanguage(v string)` + +SetDisplayLanguage sets DisplayLanguage field to given value. + +### HasDisplayLanguage + +`func (o *InlineResponse400ResponseLanguage) HasDisplayLanguage() bool` + +HasDisplayLanguage returns a boolean if a field has been set. + + +### GetDisplayScript + +`func (o *InlineResponse400ResponseLanguage) GetDisplayScript() string` + +GetDisplayScript returns the DisplayScript field if non-nil, zero value otherwise. + +### GetDisplayScriptOk + +`func (o *InlineResponse400ResponseLanguage) GetDisplayScriptOk() (*string, bool)` + +GetDisplayScriptOk returns a tuple with the DisplayScript field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayScript + +`func (o *InlineResponse400ResponseLanguage) SetDisplayScript(v string)` + +SetDisplayScript sets DisplayScript field to given value. + +### HasDisplayScript + +`func (o *InlineResponse400ResponseLanguage) HasDisplayScript() bool` + +HasDisplayScript returns a boolean if a field has been set. + + +### GetDisplayCountry + +`func (o *InlineResponse400ResponseLanguage) GetDisplayCountry() string` + +GetDisplayCountry returns the DisplayCountry field if non-nil, zero value otherwise. + +### GetDisplayCountryOk + +`func (o *InlineResponse400ResponseLanguage) GetDisplayCountryOk() (*string, bool)` + +GetDisplayCountryOk returns a tuple with the DisplayCountry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayCountry + +`func (o *InlineResponse400ResponseLanguage) SetDisplayCountry(v string)` + +SetDisplayCountry sets DisplayCountry field to given value. + +### HasDisplayCountry + +`func (o *InlineResponse400ResponseLanguage) HasDisplayCountry() bool` + +HasDisplayCountry returns a boolean if a field has been set. + + +### GetDisplayVariant + +`func (o *InlineResponse400ResponseLanguage) GetDisplayVariant() string` + +GetDisplayVariant returns the DisplayVariant field if non-nil, zero value otherwise. + +### GetDisplayVariantOk + +`func (o *InlineResponse400ResponseLanguage) GetDisplayVariantOk() (*string, bool)` + +GetDisplayVariantOk returns a tuple with the DisplayVariant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayVariant + +`func (o *InlineResponse400ResponseLanguage) SetDisplayVariant(v string)` + +SetDisplayVariant sets DisplayVariant field to given value. + +### HasDisplayVariant + +`func (o *InlineResponse400ResponseLanguage) HasDisplayVariant() bool` + +HasDisplayVariant returns a boolean if a field has been set. + + +### GetDisplayName + +`func (o *InlineResponse400ResponseLanguage) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *InlineResponse400ResponseLanguage) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *InlineResponse400ResponseLanguage) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *InlineResponse400ResponseLanguage) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseLinks.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseLinks.md new file mode 100644 index 00000000..66f234f6 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseLinks.md @@ -0,0 +1,220 @@ +# InlineResponse400ResponseLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UriBuilder** | Pointer to **map[string]interface{}** | | [optional] +**Params** | Pointer to **map[string]string** | | [optional] +**Title** | Pointer to **string** | | [optional] +**Uri** | Pointer to **string** | | [optional] +**Rel** | Pointer to **string** | | [optional] +**Rels** | Pointer to **[]string** | | [optional] +**Type** | Pointer to **string** | | [optional] + + +## Methods + +### NewInlineResponse400ResponseLinks + +`func NewInlineResponse400ResponseLinks() *InlineResponse400ResponseLinks` + +NewInlineResponse400ResponseLinks instantiates a new InlineResponse400ResponseLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400ResponseLinksWithDefaults + +`func NewInlineResponse400ResponseLinksWithDefaults() *InlineResponse400ResponseLinks` + +NewInlineResponse400ResponseLinksWithDefaults instantiates a new InlineResponse400ResponseLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetUriBuilder + +`func (o *InlineResponse400ResponseLinks) GetUriBuilder() map[string]interface{}` + +GetUriBuilder returns the UriBuilder field if non-nil, zero value otherwise. + +### GetUriBuilderOk + +`func (o *InlineResponse400ResponseLinks) GetUriBuilderOk() (*map[string]interface{}, bool)` + +GetUriBuilderOk returns a tuple with the UriBuilder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUriBuilder + +`func (o *InlineResponse400ResponseLinks) SetUriBuilder(v map[string]interface{})` + +SetUriBuilder sets UriBuilder field to given value. + +### HasUriBuilder + +`func (o *InlineResponse400ResponseLinks) HasUriBuilder() bool` + +HasUriBuilder returns a boolean if a field has been set. + + +### GetParams + +`func (o *InlineResponse400ResponseLinks) GetParams() map[string]string` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *InlineResponse400ResponseLinks) GetParamsOk() (*map[string]string, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *InlineResponse400ResponseLinks) SetParams(v map[string]string)` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *InlineResponse400ResponseLinks) HasParams() bool` + +HasParams returns a boolean if a field has been set. + + +### GetTitle + +`func (o *InlineResponse400ResponseLinks) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *InlineResponse400ResponseLinks) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *InlineResponse400ResponseLinks) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *InlineResponse400ResponseLinks) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +### GetUri + +`func (o *InlineResponse400ResponseLinks) GetUri() string` + +GetUri returns the Uri field if non-nil, zero value otherwise. + +### GetUriOk + +`func (o *InlineResponse400ResponseLinks) GetUriOk() (*string, bool)` + +GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUri + +`func (o *InlineResponse400ResponseLinks) SetUri(v string)` + +SetUri sets Uri field to given value. + +### HasUri + +`func (o *InlineResponse400ResponseLinks) HasUri() bool` + +HasUri returns a boolean if a field has been set. + + +### GetRel + +`func (o *InlineResponse400ResponseLinks) GetRel() string` + +GetRel returns the Rel field if non-nil, zero value otherwise. + +### GetRelOk + +`func (o *InlineResponse400ResponseLinks) GetRelOk() (*string, bool)` + +GetRelOk returns a tuple with the Rel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRel + +`func (o *InlineResponse400ResponseLinks) SetRel(v string)` + +SetRel sets Rel field to given value. + +### HasRel + +`func (o *InlineResponse400ResponseLinks) HasRel() bool` + +HasRel returns a boolean if a field has been set. + + +### GetRels + +`func (o *InlineResponse400ResponseLinks) GetRels() []string` + +GetRels returns the Rels field if non-nil, zero value otherwise. + +### GetRelsOk + +`func (o *InlineResponse400ResponseLinks) GetRelsOk() (*[]string, bool)` + +GetRelsOk returns a tuple with the Rels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRels + +`func (o *InlineResponse400ResponseLinks) SetRels(v []string)` + +SetRels sets Rels field to given value. + +### HasRels + +`func (o *InlineResponse400ResponseLinks) HasRels() bool` + +HasRels returns a boolean if a field has been set. + + +### GetType + +`func (o *InlineResponse400ResponseLinks) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *InlineResponse400ResponseLinks) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *InlineResponse400ResponseLinks) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *InlineResponse400ResponseLinks) HasType() bool` + +HasType returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseMediaType.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseMediaType.md new file mode 100644 index 00000000..102d5694 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseMediaType.md @@ -0,0 +1,166 @@ +# InlineResponse400ResponseMediaType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Subtype** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **map[string]string** | | [optional] +**WildcardType** | Pointer to **bool** | | [optional] +**WildcardSubtype** | Pointer to **bool** | | [optional] + + +## Methods + +### NewInlineResponse400ResponseMediaType + +`func NewInlineResponse400ResponseMediaType() *InlineResponse400ResponseMediaType` + +NewInlineResponse400ResponseMediaType instantiates a new InlineResponse400ResponseMediaType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400ResponseMediaTypeWithDefaults + +`func NewInlineResponse400ResponseMediaTypeWithDefaults() *InlineResponse400ResponseMediaType` + +NewInlineResponse400ResponseMediaTypeWithDefaults instantiates a new InlineResponse400ResponseMediaType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetType + +`func (o *InlineResponse400ResponseMediaType) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *InlineResponse400ResponseMediaType) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *InlineResponse400ResponseMediaType) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *InlineResponse400ResponseMediaType) HasType() bool` + +HasType returns a boolean if a field has been set. + + +### GetSubtype + +`func (o *InlineResponse400ResponseMediaType) GetSubtype() string` + +GetSubtype returns the Subtype field if non-nil, zero value otherwise. + +### GetSubtypeOk + +`func (o *InlineResponse400ResponseMediaType) GetSubtypeOk() (*string, bool)` + +GetSubtypeOk returns a tuple with the Subtype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubtype + +`func (o *InlineResponse400ResponseMediaType) SetSubtype(v string)` + +SetSubtype sets Subtype field to given value. + +### HasSubtype + +`func (o *InlineResponse400ResponseMediaType) HasSubtype() bool` + +HasSubtype returns a boolean if a field has been set. + + +### GetParameters + +`func (o *InlineResponse400ResponseMediaType) GetParameters() map[string]string` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *InlineResponse400ResponseMediaType) GetParametersOk() (*map[string]string, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *InlineResponse400ResponseMediaType) SetParameters(v map[string]string)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *InlineResponse400ResponseMediaType) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + + +### GetWildcardType + +`func (o *InlineResponse400ResponseMediaType) GetWildcardType() bool` + +GetWildcardType returns the WildcardType field if non-nil, zero value otherwise. + +### GetWildcardTypeOk + +`func (o *InlineResponse400ResponseMediaType) GetWildcardTypeOk() (*bool, bool)` + +GetWildcardTypeOk returns a tuple with the WildcardType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWildcardType + +`func (o *InlineResponse400ResponseMediaType) SetWildcardType(v bool)` + +SetWildcardType sets WildcardType field to given value. + +### HasWildcardType + +`func (o *InlineResponse400ResponseMediaType) HasWildcardType() bool` + +HasWildcardType returns a boolean if a field has been set. + + +### GetWildcardSubtype + +`func (o *InlineResponse400ResponseMediaType) GetWildcardSubtype() bool` + +GetWildcardSubtype returns the WildcardSubtype field if non-nil, zero value otherwise. + +### GetWildcardSubtypeOk + +`func (o *InlineResponse400ResponseMediaType) GetWildcardSubtypeOk() (*bool, bool)` + +GetWildcardSubtypeOk returns a tuple with the WildcardSubtype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWildcardSubtype + +`func (o *InlineResponse400ResponseMediaType) SetWildcardSubtype(v bool)` + +SetWildcardSubtype sets WildcardSubtype field to given value. + +### HasWildcardSubtype + +`func (o *InlineResponse400ResponseMediaType) HasWildcardSubtype() bool` + +HasWildcardSubtype returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseStatusInfo.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseStatusInfo.md new file mode 100644 index 00000000..dc52a5be --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse400ResponseStatusInfo.md @@ -0,0 +1,112 @@ +# InlineResponse400ResponseStatusInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReasonPhrase** | Pointer to **string** | | [optional] +**StatusCode** | Pointer to **int32** | | [optional] +**Family** | Pointer to **string** | | [optional] + + +## Methods + +### NewInlineResponse400ResponseStatusInfo + +`func NewInlineResponse400ResponseStatusInfo() *InlineResponse400ResponseStatusInfo` + +NewInlineResponse400ResponseStatusInfo instantiates a new InlineResponse400ResponseStatusInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400ResponseStatusInfoWithDefaults + +`func NewInlineResponse400ResponseStatusInfoWithDefaults() *InlineResponse400ResponseStatusInfo` + +NewInlineResponse400ResponseStatusInfoWithDefaults instantiates a new InlineResponse400ResponseStatusInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetReasonPhrase + +`func (o *InlineResponse400ResponseStatusInfo) GetReasonPhrase() string` + +GetReasonPhrase returns the ReasonPhrase field if non-nil, zero value otherwise. + +### GetReasonPhraseOk + +`func (o *InlineResponse400ResponseStatusInfo) GetReasonPhraseOk() (*string, bool)` + +GetReasonPhraseOk returns a tuple with the ReasonPhrase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReasonPhrase + +`func (o *InlineResponse400ResponseStatusInfo) SetReasonPhrase(v string)` + +SetReasonPhrase sets ReasonPhrase field to given value. + +### HasReasonPhrase + +`func (o *InlineResponse400ResponseStatusInfo) HasReasonPhrase() bool` + +HasReasonPhrase returns a boolean if a field has been set. + + +### GetStatusCode + +`func (o *InlineResponse400ResponseStatusInfo) GetStatusCode() int32` + +GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. + +### GetStatusCodeOk + +`func (o *InlineResponse400ResponseStatusInfo) GetStatusCodeOk() (*int32, bool)` + +GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusCode + +`func (o *InlineResponse400ResponseStatusInfo) SetStatusCode(v int32)` + +SetStatusCode sets StatusCode field to given value. + +### HasStatusCode + +`func (o *InlineResponse400ResponseStatusInfo) HasStatusCode() bool` + +HasStatusCode returns a boolean if a field has been set. + + +### GetFamily + +`func (o *InlineResponse400ResponseStatusInfo) GetFamily() string` + +GetFamily returns the Family field if non-nil, zero value otherwise. + +### GetFamilyOk + +`func (o *InlineResponse400ResponseStatusInfo) GetFamilyOk() (*string, bool)` + +GetFamilyOk returns a tuple with the Family field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamily + +`func (o *InlineResponse400ResponseStatusInfo) SetFamily(v string)` + +SetFamily sets Family field to given value. + +### HasFamily + +`func (o *InlineResponse400ResponseStatusInfo) HasFamily() bool` + +HasFamily returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/InlineResponse401.md b/serviceaccounts/apiv1internal/client/docs/InlineResponse401.md new file mode 100644 index 00000000..24b34f01 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/InlineResponse401.md @@ -0,0 +1,220 @@ +# InlineResponse401 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cause** | Pointer to [**InlineResponse400Cause**](InlineResponse400Cause.md) | | [optional] +**StackTrace** | Pointer to [**[]InlineResponse400CauseStackTrace**](InlineResponse400CauseStackTrace.md) | | [optional] +**Response** | Pointer to [**InlineResponse400Response**](InlineResponse400Response.md) | | [optional] +**Challenges** | Pointer to **[]map[string]interface{}** | | [optional] +**Message** | Pointer to **string** | | [optional] +**LocalizedMessage** | Pointer to **string** | | [optional] +**Suppressed** | Pointer to [**[]InlineResponse400CauseSuppressed**](InlineResponse400CauseSuppressed.md) | | [optional] + + +## Methods + +### NewInlineResponse401 + +`func NewInlineResponse401() *InlineResponse401` + +NewInlineResponse401 instantiates a new InlineResponse401 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse401WithDefaults + +`func NewInlineResponse401WithDefaults() *InlineResponse401` + +NewInlineResponse401WithDefaults instantiates a new InlineResponse401 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetCause + +`func (o *InlineResponse401) GetCause() InlineResponse400Cause` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *InlineResponse401) GetCauseOk() (*InlineResponse400Cause, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *InlineResponse401) SetCause(v InlineResponse400Cause)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *InlineResponse401) HasCause() bool` + +HasCause returns a boolean if a field has been set. + + +### GetStackTrace + +`func (o *InlineResponse401) GetStackTrace() []InlineResponse400CauseStackTrace` + +GetStackTrace returns the StackTrace field if non-nil, zero value otherwise. + +### GetStackTraceOk + +`func (o *InlineResponse401) GetStackTraceOk() (*[]InlineResponse400CauseStackTrace, bool)` + +GetStackTraceOk returns a tuple with the StackTrace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackTrace + +`func (o *InlineResponse401) SetStackTrace(v []InlineResponse400CauseStackTrace)` + +SetStackTrace sets StackTrace field to given value. + +### HasStackTrace + +`func (o *InlineResponse401) HasStackTrace() bool` + +HasStackTrace returns a boolean if a field has been set. + + +### GetResponse + +`func (o *InlineResponse401) GetResponse() InlineResponse400Response` + +GetResponse returns the Response field if non-nil, zero value otherwise. + +### GetResponseOk + +`func (o *InlineResponse401) GetResponseOk() (*InlineResponse400Response, bool)` + +GetResponseOk returns a tuple with the Response field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponse + +`func (o *InlineResponse401) SetResponse(v InlineResponse400Response)` + +SetResponse sets Response field to given value. + +### HasResponse + +`func (o *InlineResponse401) HasResponse() bool` + +HasResponse returns a boolean if a field has been set. + + +### GetChallenges + +`func (o *InlineResponse401) GetChallenges() []map[string]interface{}` + +GetChallenges returns the Challenges field if non-nil, zero value otherwise. + +### GetChallengesOk + +`func (o *InlineResponse401) GetChallengesOk() (*[]map[string]interface{}, bool)` + +GetChallengesOk returns a tuple with the Challenges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChallenges + +`func (o *InlineResponse401) SetChallenges(v []map[string]interface{})` + +SetChallenges sets Challenges field to given value. + +### HasChallenges + +`func (o *InlineResponse401) HasChallenges() bool` + +HasChallenges returns a boolean if a field has been set. + + +### GetMessage + +`func (o *InlineResponse401) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *InlineResponse401) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *InlineResponse401) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *InlineResponse401) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +### GetLocalizedMessage + +`func (o *InlineResponse401) GetLocalizedMessage() string` + +GetLocalizedMessage returns the LocalizedMessage field if non-nil, zero value otherwise. + +### GetLocalizedMessageOk + +`func (o *InlineResponse401) GetLocalizedMessageOk() (*string, bool)` + +GetLocalizedMessageOk returns a tuple with the LocalizedMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalizedMessage + +`func (o *InlineResponse401) SetLocalizedMessage(v string)` + +SetLocalizedMessage sets LocalizedMessage field to given value. + +### HasLocalizedMessage + +`func (o *InlineResponse401) HasLocalizedMessage() bool` + +HasLocalizedMessage returns a boolean if a field has been set. + + +### GetSuppressed + +`func (o *InlineResponse401) GetSuppressed() []InlineResponse400CauseSuppressed` + +GetSuppressed returns the Suppressed field if non-nil, zero value otherwise. + +### GetSuppressedOk + +`func (o *InlineResponse401) GetSuppressedOk() (*[]InlineResponse400CauseSuppressed, bool)` + +GetSuppressedOk returns a tuple with the Suppressed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuppressed + +`func (o *InlineResponse401) SetSuppressed(v []InlineResponse400CauseSuppressed)` + +SetSuppressed sets Suppressed field to given value. + +### HasSuppressed + +`func (o *InlineResponse401) HasSuppressed() bool` + +HasSuppressed returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/ServiceAccountCreateRequestData.md b/serviceaccounts/apiv1internal/client/docs/ServiceAccountCreateRequestData.md new file mode 100644 index 00000000..f6d70006 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/ServiceAccountCreateRequestData.md @@ -0,0 +1,75 @@ +# ServiceAccountCreateRequestData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | **string** | | + + +## Methods + +### NewServiceAccountCreateRequestData + +`func NewServiceAccountCreateRequestData(name string, description string, ) *ServiceAccountCreateRequestData` + +NewServiceAccountCreateRequestData instantiates a new ServiceAccountCreateRequestData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceAccountCreateRequestDataWithDefaults + +`func NewServiceAccountCreateRequestDataWithDefaults() *ServiceAccountCreateRequestData` + +NewServiceAccountCreateRequestDataWithDefaults instantiates a new ServiceAccountCreateRequestData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetName + +`func (o *ServiceAccountCreateRequestData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountCreateRequestData) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceAccountCreateRequestData) SetName(v string)` + +SetName sets Name field to given value. + + + +### GetDescription + +`func (o *ServiceAccountCreateRequestData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountCreateRequestData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceAccountCreateRequestData) SetDescription(v string)` + +SetDescription sets Description field to given value. + + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/ServiceAccountData.md b/serviceaccounts/apiv1internal/client/docs/ServiceAccountData.md new file mode 100644 index 00000000..9e2258ad --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/ServiceAccountData.md @@ -0,0 +1,220 @@ +# ServiceAccountData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**Secret** | Pointer to **string** | Provided during creation and resetting of service account credentials. | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**OwnerId** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **int64** | | [optional] + + +## Methods + +### NewServiceAccountData + +`func NewServiceAccountData() *ServiceAccountData` + +NewServiceAccountData instantiates a new ServiceAccountData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceAccountDataWithDefaults + +`func NewServiceAccountDataWithDefaults() *ServiceAccountData` + +NewServiceAccountDataWithDefaults instantiates a new ServiceAccountData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetId + +`func (o *ServiceAccountData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ServiceAccountData) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ServiceAccountData) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ServiceAccountData) HasId() bool` + +HasId returns a boolean if a field has been set. + + +### GetClientId + +`func (o *ServiceAccountData) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ServiceAccountData) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ServiceAccountData) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ServiceAccountData) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + + +### GetSecret + +`func (o *ServiceAccountData) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *ServiceAccountData) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *ServiceAccountData) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *ServiceAccountData) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + + +### GetName + +`func (o *ServiceAccountData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountData) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceAccountData) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceAccountData) HasName() bool` + +HasName returns a boolean if a field has been set. + + +### GetDescription + +`func (o *ServiceAccountData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceAccountData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountData) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +### GetOwnerId + +`func (o *ServiceAccountData) GetOwnerId() string` + +GetOwnerId returns the OwnerId field if non-nil, zero value otherwise. + +### GetOwnerIdOk + +`func (o *ServiceAccountData) GetOwnerIdOk() (*string, bool)` + +GetOwnerIdOk returns a tuple with the OwnerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerId + +`func (o *ServiceAccountData) SetOwnerId(v string)` + +SetOwnerId sets OwnerId field to given value. + +### HasOwnerId + +`func (o *ServiceAccountData) HasOwnerId() bool` + +HasOwnerId returns a boolean if a field has been set. + + +### GetCreatedAt + +`func (o *ServiceAccountData) GetCreatedAt() int64` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceAccountData) GetCreatedAtOk() (*int64, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceAccountData) SetCreatedAt(v int64)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceAccountData) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/ServiceAccountRequestData.md b/serviceaccounts/apiv1internal/client/docs/ServiceAccountRequestData.md new file mode 100644 index 00000000..51772f4b --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/ServiceAccountRequestData.md @@ -0,0 +1,85 @@ +# ServiceAccountRequestData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + + +## Methods + +### NewServiceAccountRequestData + +`func NewServiceAccountRequestData() *ServiceAccountRequestData` + +NewServiceAccountRequestData instantiates a new ServiceAccountRequestData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceAccountRequestDataWithDefaults + +`func NewServiceAccountRequestDataWithDefaults() *ServiceAccountRequestData` + +NewServiceAccountRequestDataWithDefaults instantiates a new ServiceAccountRequestData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +### GetName + +`func (o *ServiceAccountRequestData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountRequestData) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceAccountRequestData) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceAccountRequestData) HasName() bool` + +HasName returns a boolean if a field has been set. + + +### GetDescription + +`func (o *ServiceAccountRequestData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountRequestData) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceAccountRequestData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountRequestData) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/docs/ServiceAccountsApi.md b/serviceaccounts/apiv1internal/client/docs/ServiceAccountsApi.md new file mode 100644 index 00000000..6bdaf890 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/docs/ServiceAccountsApi.md @@ -0,0 +1,150 @@ +# \ServiceaccountsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetServiceAccount**](ServiceaccountsApi.md#GetServiceAccount) | **Get** /apis/service_accounts/v1/{id} | Get service account by id +[**ResetServiceAccountSecret**](ServiceaccountsApi.md#ResetServiceAccountSecret) | **Post** /apis/service_accounts/v1/{id}/resetSecret | Reset service account secret by id + + + +## GetServiceAccount + +> ServiceAccountData GetServiceAccount(ctx, id).Execute() + +Get service account by id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ServiceaccountsApi.GetServiceAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceaccountsApi.GetServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceAccount`: ServiceAccountData + fmt.Fprintf(os.Stdout, "Response from `ServiceaccountsApi.GetServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceAccountData**](ServiceAccountData.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ResetServiceAccountSecret + +> ServiceAccountData ResetServiceAccountSecret(ctx, id).Execute() + +Reset service account secret by id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ServiceaccountsApi.ResetServiceAccountSecret(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceaccountsApi.ResetServiceAccountSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResetServiceAccountSecret`: ServiceAccountData + fmt.Fprintf(os.Stdout, "Response from `ServiceaccountsApi.ResetServiceAccountSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResetServiceAccountSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceAccountData**](ServiceAccountData.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/serviceaccounts/apiv1internal/client/model_error.go b/serviceaccounts/apiv1internal/client/model_error.go new file mode 100644 index 00000000..f9efcde4 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_error.go @@ -0,0 +1,116 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// Error struct for Error +type Error struct { + + // The cause of the Error. + Error string `json:"error"` + +} + +// NewError instantiates a new Error object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewError(error_ string) *Error { + this := Error{} + this.Error = error_ + return &this +} + +// NewErrorWithDefaults instantiates a new Error object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorWithDefaults() *Error { + this := Error{} + + + return &this +} + + +// GetError returns the Error field value +func (o *Error) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *Error) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *Error) SetError(v string) { + o.Error = v +} + + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if true { + toSerialize["error"] = o.Error + } + + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400.go b/serviceaccounts/apiv1internal/client/model_inline_response_400.go new file mode 100644 index 00000000..08216d0e --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400.go @@ -0,0 +1,322 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400 struct for InlineResponse400 +type InlineResponse400 struct { + + Cause *InlineResponse400Cause `json:"cause,omitempty"` + + StackTrace *[]InlineResponse400CauseStackTrace `json:"stackTrace,omitempty"` + + Response *InlineResponse400Response `json:"response,omitempty"` + + Message *string `json:"message,omitempty"` + + LocalizedMessage *string `json:"localizedMessage,omitempty"` + + Suppressed *[]InlineResponse400CauseSuppressed `json:"suppressed,omitempty"` + +} + +// NewInlineResponse400 instantiates a new InlineResponse400 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400() *InlineResponse400 { + this := InlineResponse400{} + return &this +} + +// NewInlineResponse400WithDefaults instantiates a new InlineResponse400 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400WithDefaults() *InlineResponse400 { + this := InlineResponse400{} + + + + + + + + return &this +} + + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *InlineResponse400) GetCause() InlineResponse400Cause { + if o == nil || o.Cause == nil { + var ret InlineResponse400Cause + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400) GetCauseOk() (*InlineResponse400Cause, bool) { + if o == nil || o.Cause == nil { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *InlineResponse400) HasCause() bool { + if o != nil && o.Cause != nil { + return true + } + + return false +} + +// SetCause gets a reference to the given InlineResponse400Cause and assigns it to the Cause field. +func (o *InlineResponse400) SetCause(v InlineResponse400Cause) { + o.Cause = &v +} + + +// GetStackTrace returns the StackTrace field value if set, zero value otherwise. +func (o *InlineResponse400) GetStackTrace() []InlineResponse400CauseStackTrace { + if o == nil || o.StackTrace == nil { + var ret []InlineResponse400CauseStackTrace + return ret + } + return *o.StackTrace +} + +// GetStackTraceOk returns a tuple with the StackTrace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400) GetStackTraceOk() (*[]InlineResponse400CauseStackTrace, bool) { + if o == nil || o.StackTrace == nil { + return nil, false + } + return o.StackTrace, true +} + +// HasStackTrace returns a boolean if a field has been set. +func (o *InlineResponse400) HasStackTrace() bool { + if o != nil && o.StackTrace != nil { + return true + } + + return false +} + +// SetStackTrace gets a reference to the given []InlineResponse400CauseStackTrace and assigns it to the StackTrace field. +func (o *InlineResponse400) SetStackTrace(v []InlineResponse400CauseStackTrace) { + o.StackTrace = &v +} + + +// GetResponse returns the Response field value if set, zero value otherwise. +func (o *InlineResponse400) GetResponse() InlineResponse400Response { + if o == nil || o.Response == nil { + var ret InlineResponse400Response + return ret + } + return *o.Response +} + +// GetResponseOk returns a tuple with the Response field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400) GetResponseOk() (*InlineResponse400Response, bool) { + if o == nil || o.Response == nil { + return nil, false + } + return o.Response, true +} + +// HasResponse returns a boolean if a field has been set. +func (o *InlineResponse400) HasResponse() bool { + if o != nil && o.Response != nil { + return true + } + + return false +} + +// SetResponse gets a reference to the given InlineResponse400Response and assigns it to the Response field. +func (o *InlineResponse400) SetResponse(v InlineResponse400Response) { + o.Response = &v +} + + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *InlineResponse400) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *InlineResponse400) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *InlineResponse400) SetMessage(v string) { + o.Message = &v +} + + +// GetLocalizedMessage returns the LocalizedMessage field value if set, zero value otherwise. +func (o *InlineResponse400) GetLocalizedMessage() string { + if o == nil || o.LocalizedMessage == nil { + var ret string + return ret + } + return *o.LocalizedMessage +} + +// GetLocalizedMessageOk returns a tuple with the LocalizedMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400) GetLocalizedMessageOk() (*string, bool) { + if o == nil || o.LocalizedMessage == nil { + return nil, false + } + return o.LocalizedMessage, true +} + +// HasLocalizedMessage returns a boolean if a field has been set. +func (o *InlineResponse400) HasLocalizedMessage() bool { + if o != nil && o.LocalizedMessage != nil { + return true + } + + return false +} + +// SetLocalizedMessage gets a reference to the given string and assigns it to the LocalizedMessage field. +func (o *InlineResponse400) SetLocalizedMessage(v string) { + o.LocalizedMessage = &v +} + + +// GetSuppressed returns the Suppressed field value if set, zero value otherwise. +func (o *InlineResponse400) GetSuppressed() []InlineResponse400CauseSuppressed { + if o == nil || o.Suppressed == nil { + var ret []InlineResponse400CauseSuppressed + return ret + } + return *o.Suppressed +} + +// GetSuppressedOk returns a tuple with the Suppressed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400) GetSuppressedOk() (*[]InlineResponse400CauseSuppressed, bool) { + if o == nil || o.Suppressed == nil { + return nil, false + } + return o.Suppressed, true +} + +// HasSuppressed returns a boolean if a field has been set. +func (o *InlineResponse400) HasSuppressed() bool { + if o != nil && o.Suppressed != nil { + return true + } + + return false +} + +// SetSuppressed gets a reference to the given []InlineResponse400CauseSuppressed and assigns it to the Suppressed field. +func (o *InlineResponse400) SetSuppressed(v []InlineResponse400CauseSuppressed) { + o.Suppressed = &v +} + + +func (o InlineResponse400) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Cause != nil { + toSerialize["cause"] = o.Cause + } + + if o.StackTrace != nil { + toSerialize["stackTrace"] = o.StackTrace + } + + if o.Response != nil { + toSerialize["response"] = o.Response + } + + if o.Message != nil { + toSerialize["message"] = o.Message + } + + if o.LocalizedMessage != nil { + toSerialize["localizedMessage"] = o.LocalizedMessage + } + + if o.Suppressed != nil { + toSerialize["suppressed"] = o.Suppressed + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400 struct { + value *InlineResponse400 + isSet bool +} + +func (v NullableInlineResponse400) Get() *InlineResponse400 { + return v.value +} + +func (v *NullableInlineResponse400) Set(val *InlineResponse400) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400(val *InlineResponse400) *NullableInlineResponse400 { + return &NullableInlineResponse400{value: val, isSet: true} +} + +func (v NullableInlineResponse400) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_cause.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_cause.go new file mode 100644 index 00000000..4751b450 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_cause.go @@ -0,0 +1,242 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400Cause struct for InlineResponse400Cause +type InlineResponse400Cause struct { + + StackTrace *[]InlineResponse400CauseStackTrace `json:"stackTrace,omitempty"` + + Message *string `json:"message,omitempty"` + + LocalizedMessage *string `json:"localizedMessage,omitempty"` + + Suppressed *[]InlineResponse400CauseSuppressed `json:"suppressed,omitempty"` + +} + +// NewInlineResponse400Cause instantiates a new InlineResponse400Cause object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400Cause() *InlineResponse400Cause { + this := InlineResponse400Cause{} + return &this +} + +// NewInlineResponse400CauseWithDefaults instantiates a new InlineResponse400Cause object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400CauseWithDefaults() *InlineResponse400Cause { + this := InlineResponse400Cause{} + + + + + + return &this +} + + +// GetStackTrace returns the StackTrace field value if set, zero value otherwise. +func (o *InlineResponse400Cause) GetStackTrace() []InlineResponse400CauseStackTrace { + if o == nil || o.StackTrace == nil { + var ret []InlineResponse400CauseStackTrace + return ret + } + return *o.StackTrace +} + +// GetStackTraceOk returns a tuple with the StackTrace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Cause) GetStackTraceOk() (*[]InlineResponse400CauseStackTrace, bool) { + if o == nil || o.StackTrace == nil { + return nil, false + } + return o.StackTrace, true +} + +// HasStackTrace returns a boolean if a field has been set. +func (o *InlineResponse400Cause) HasStackTrace() bool { + if o != nil && o.StackTrace != nil { + return true + } + + return false +} + +// SetStackTrace gets a reference to the given []InlineResponse400CauseStackTrace and assigns it to the StackTrace field. +func (o *InlineResponse400Cause) SetStackTrace(v []InlineResponse400CauseStackTrace) { + o.StackTrace = &v +} + + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *InlineResponse400Cause) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Cause) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *InlineResponse400Cause) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *InlineResponse400Cause) SetMessage(v string) { + o.Message = &v +} + + +// GetLocalizedMessage returns the LocalizedMessage field value if set, zero value otherwise. +func (o *InlineResponse400Cause) GetLocalizedMessage() string { + if o == nil || o.LocalizedMessage == nil { + var ret string + return ret + } + return *o.LocalizedMessage +} + +// GetLocalizedMessageOk returns a tuple with the LocalizedMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Cause) GetLocalizedMessageOk() (*string, bool) { + if o == nil || o.LocalizedMessage == nil { + return nil, false + } + return o.LocalizedMessage, true +} + +// HasLocalizedMessage returns a boolean if a field has been set. +func (o *InlineResponse400Cause) HasLocalizedMessage() bool { + if o != nil && o.LocalizedMessage != nil { + return true + } + + return false +} + +// SetLocalizedMessage gets a reference to the given string and assigns it to the LocalizedMessage field. +func (o *InlineResponse400Cause) SetLocalizedMessage(v string) { + o.LocalizedMessage = &v +} + + +// GetSuppressed returns the Suppressed field value if set, zero value otherwise. +func (o *InlineResponse400Cause) GetSuppressed() []InlineResponse400CauseSuppressed { + if o == nil || o.Suppressed == nil { + var ret []InlineResponse400CauseSuppressed + return ret + } + return *o.Suppressed +} + +// GetSuppressedOk returns a tuple with the Suppressed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Cause) GetSuppressedOk() (*[]InlineResponse400CauseSuppressed, bool) { + if o == nil || o.Suppressed == nil { + return nil, false + } + return o.Suppressed, true +} + +// HasSuppressed returns a boolean if a field has been set. +func (o *InlineResponse400Cause) HasSuppressed() bool { + if o != nil && o.Suppressed != nil { + return true + } + + return false +} + +// SetSuppressed gets a reference to the given []InlineResponse400CauseSuppressed and assigns it to the Suppressed field. +func (o *InlineResponse400Cause) SetSuppressed(v []InlineResponse400CauseSuppressed) { + o.Suppressed = &v +} + + +func (o InlineResponse400Cause) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.StackTrace != nil { + toSerialize["stackTrace"] = o.StackTrace + } + + if o.Message != nil { + toSerialize["message"] = o.Message + } + + if o.LocalizedMessage != nil { + toSerialize["localizedMessage"] = o.LocalizedMessage + } + + if o.Suppressed != nil { + toSerialize["suppressed"] = o.Suppressed + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400Cause struct { + value *InlineResponse400Cause + isSet bool +} + +func (v NullableInlineResponse400Cause) Get() *InlineResponse400Cause { + return v.value +} + +func (v *NullableInlineResponse400Cause) Set(val *InlineResponse400Cause) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400Cause) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400Cause) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400Cause(val *InlineResponse400Cause) *NullableInlineResponse400Cause { + return &NullableInlineResponse400Cause{value: val, isSet: true} +} + +func (v NullableInlineResponse400Cause) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400Cause) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_cause_stack_trace.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_cause_stack_trace.go new file mode 100644 index 00000000..77b4da88 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_cause_stack_trace.go @@ -0,0 +1,282 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400CauseStackTrace struct for InlineResponse400CauseStackTrace +type InlineResponse400CauseStackTrace struct { + + MethodName *string `json:"methodName,omitempty"` + + FileName *string `json:"fileName,omitempty"` + + LineNumber *int32 `json:"lineNumber,omitempty"` + + ClassName *string `json:"className,omitempty"` + + NativeMethod *bool `json:"nativeMethod,omitempty"` + +} + +// NewInlineResponse400CauseStackTrace instantiates a new InlineResponse400CauseStackTrace object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400CauseStackTrace() *InlineResponse400CauseStackTrace { + this := InlineResponse400CauseStackTrace{} + return &this +} + +// NewInlineResponse400CauseStackTraceWithDefaults instantiates a new InlineResponse400CauseStackTrace object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400CauseStackTraceWithDefaults() *InlineResponse400CauseStackTrace { + this := InlineResponse400CauseStackTrace{} + + + + + + + return &this +} + + +// GetMethodName returns the MethodName field value if set, zero value otherwise. +func (o *InlineResponse400CauseStackTrace) GetMethodName() string { + if o == nil || o.MethodName == nil { + var ret string + return ret + } + return *o.MethodName +} + +// GetMethodNameOk returns a tuple with the MethodName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400CauseStackTrace) GetMethodNameOk() (*string, bool) { + if o == nil || o.MethodName == nil { + return nil, false + } + return o.MethodName, true +} + +// HasMethodName returns a boolean if a field has been set. +func (o *InlineResponse400CauseStackTrace) HasMethodName() bool { + if o != nil && o.MethodName != nil { + return true + } + + return false +} + +// SetMethodName gets a reference to the given string and assigns it to the MethodName field. +func (o *InlineResponse400CauseStackTrace) SetMethodName(v string) { + o.MethodName = &v +} + + +// GetFileName returns the FileName field value if set, zero value otherwise. +func (o *InlineResponse400CauseStackTrace) GetFileName() string { + if o == nil || o.FileName == nil { + var ret string + return ret + } + return *o.FileName +} + +// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400CauseStackTrace) GetFileNameOk() (*string, bool) { + if o == nil || o.FileName == nil { + return nil, false + } + return o.FileName, true +} + +// HasFileName returns a boolean if a field has been set. +func (o *InlineResponse400CauseStackTrace) HasFileName() bool { + if o != nil && o.FileName != nil { + return true + } + + return false +} + +// SetFileName gets a reference to the given string and assigns it to the FileName field. +func (o *InlineResponse400CauseStackTrace) SetFileName(v string) { + o.FileName = &v +} + + +// GetLineNumber returns the LineNumber field value if set, zero value otherwise. +func (o *InlineResponse400CauseStackTrace) GetLineNumber() int32 { + if o == nil || o.LineNumber == nil { + var ret int32 + return ret + } + return *o.LineNumber +} + +// GetLineNumberOk returns a tuple with the LineNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400CauseStackTrace) GetLineNumberOk() (*int32, bool) { + if o == nil || o.LineNumber == nil { + return nil, false + } + return o.LineNumber, true +} + +// HasLineNumber returns a boolean if a field has been set. +func (o *InlineResponse400CauseStackTrace) HasLineNumber() bool { + if o != nil && o.LineNumber != nil { + return true + } + + return false +} + +// SetLineNumber gets a reference to the given int32 and assigns it to the LineNumber field. +func (o *InlineResponse400CauseStackTrace) SetLineNumber(v int32) { + o.LineNumber = &v +} + + +// GetClassName returns the ClassName field value if set, zero value otherwise. +func (o *InlineResponse400CauseStackTrace) GetClassName() string { + if o == nil || o.ClassName == nil { + var ret string + return ret + } + return *o.ClassName +} + +// GetClassNameOk returns a tuple with the ClassName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400CauseStackTrace) GetClassNameOk() (*string, bool) { + if o == nil || o.ClassName == nil { + return nil, false + } + return o.ClassName, true +} + +// HasClassName returns a boolean if a field has been set. +func (o *InlineResponse400CauseStackTrace) HasClassName() bool { + if o != nil && o.ClassName != nil { + return true + } + + return false +} + +// SetClassName gets a reference to the given string and assigns it to the ClassName field. +func (o *InlineResponse400CauseStackTrace) SetClassName(v string) { + o.ClassName = &v +} + + +// GetNativeMethod returns the NativeMethod field value if set, zero value otherwise. +func (o *InlineResponse400CauseStackTrace) GetNativeMethod() bool { + if o == nil || o.NativeMethod == nil { + var ret bool + return ret + } + return *o.NativeMethod +} + +// GetNativeMethodOk returns a tuple with the NativeMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400CauseStackTrace) GetNativeMethodOk() (*bool, bool) { + if o == nil || o.NativeMethod == nil { + return nil, false + } + return o.NativeMethod, true +} + +// HasNativeMethod returns a boolean if a field has been set. +func (o *InlineResponse400CauseStackTrace) HasNativeMethod() bool { + if o != nil && o.NativeMethod != nil { + return true + } + + return false +} + +// SetNativeMethod gets a reference to the given bool and assigns it to the NativeMethod field. +func (o *InlineResponse400CauseStackTrace) SetNativeMethod(v bool) { + o.NativeMethod = &v +} + + +func (o InlineResponse400CauseStackTrace) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.MethodName != nil { + toSerialize["methodName"] = o.MethodName + } + + if o.FileName != nil { + toSerialize["fileName"] = o.FileName + } + + if o.LineNumber != nil { + toSerialize["lineNumber"] = o.LineNumber + } + + if o.ClassName != nil { + toSerialize["className"] = o.ClassName + } + + if o.NativeMethod != nil { + toSerialize["nativeMethod"] = o.NativeMethod + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400CauseStackTrace struct { + value *InlineResponse400CauseStackTrace + isSet bool +} + +func (v NullableInlineResponse400CauseStackTrace) Get() *InlineResponse400CauseStackTrace { + return v.value +} + +func (v *NullableInlineResponse400CauseStackTrace) Set(val *InlineResponse400CauseStackTrace) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400CauseStackTrace) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400CauseStackTrace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400CauseStackTrace(val *InlineResponse400CauseStackTrace) *NullableInlineResponse400CauseStackTrace { + return &NullableInlineResponse400CauseStackTrace{value: val, isSet: true} +} + +func (v NullableInlineResponse400CauseStackTrace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400CauseStackTrace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_cause_suppressed.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_cause_suppressed.go new file mode 100644 index 00000000..de600759 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_cause_suppressed.go @@ -0,0 +1,202 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400CauseSuppressed struct for InlineResponse400CauseSuppressed +type InlineResponse400CauseSuppressed struct { + + StackTrace *[]InlineResponse400CauseStackTrace `json:"stackTrace,omitempty"` + + Message *string `json:"message,omitempty"` + + LocalizedMessage *string `json:"localizedMessage,omitempty"` + +} + +// NewInlineResponse400CauseSuppressed instantiates a new InlineResponse400CauseSuppressed object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400CauseSuppressed() *InlineResponse400CauseSuppressed { + this := InlineResponse400CauseSuppressed{} + return &this +} + +// NewInlineResponse400CauseSuppressedWithDefaults instantiates a new InlineResponse400CauseSuppressed object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400CauseSuppressedWithDefaults() *InlineResponse400CauseSuppressed { + this := InlineResponse400CauseSuppressed{} + + + + + return &this +} + + +// GetStackTrace returns the StackTrace field value if set, zero value otherwise. +func (o *InlineResponse400CauseSuppressed) GetStackTrace() []InlineResponse400CauseStackTrace { + if o == nil || o.StackTrace == nil { + var ret []InlineResponse400CauseStackTrace + return ret + } + return *o.StackTrace +} + +// GetStackTraceOk returns a tuple with the StackTrace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400CauseSuppressed) GetStackTraceOk() (*[]InlineResponse400CauseStackTrace, bool) { + if o == nil || o.StackTrace == nil { + return nil, false + } + return o.StackTrace, true +} + +// HasStackTrace returns a boolean if a field has been set. +func (o *InlineResponse400CauseSuppressed) HasStackTrace() bool { + if o != nil && o.StackTrace != nil { + return true + } + + return false +} + +// SetStackTrace gets a reference to the given []InlineResponse400CauseStackTrace and assigns it to the StackTrace field. +func (o *InlineResponse400CauseSuppressed) SetStackTrace(v []InlineResponse400CauseStackTrace) { + o.StackTrace = &v +} + + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *InlineResponse400CauseSuppressed) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400CauseSuppressed) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *InlineResponse400CauseSuppressed) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *InlineResponse400CauseSuppressed) SetMessage(v string) { + o.Message = &v +} + + +// GetLocalizedMessage returns the LocalizedMessage field value if set, zero value otherwise. +func (o *InlineResponse400CauseSuppressed) GetLocalizedMessage() string { + if o == nil || o.LocalizedMessage == nil { + var ret string + return ret + } + return *o.LocalizedMessage +} + +// GetLocalizedMessageOk returns a tuple with the LocalizedMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400CauseSuppressed) GetLocalizedMessageOk() (*string, bool) { + if o == nil || o.LocalizedMessage == nil { + return nil, false + } + return o.LocalizedMessage, true +} + +// HasLocalizedMessage returns a boolean if a field has been set. +func (o *InlineResponse400CauseSuppressed) HasLocalizedMessage() bool { + if o != nil && o.LocalizedMessage != nil { + return true + } + + return false +} + +// SetLocalizedMessage gets a reference to the given string and assigns it to the LocalizedMessage field. +func (o *InlineResponse400CauseSuppressed) SetLocalizedMessage(v string) { + o.LocalizedMessage = &v +} + + +func (o InlineResponse400CauseSuppressed) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.StackTrace != nil { + toSerialize["stackTrace"] = o.StackTrace + } + + if o.Message != nil { + toSerialize["message"] = o.Message + } + + if o.LocalizedMessage != nil { + toSerialize["localizedMessage"] = o.LocalizedMessage + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400CauseSuppressed struct { + value *InlineResponse400CauseSuppressed + isSet bool +} + +func (v NullableInlineResponse400CauseSuppressed) Get() *InlineResponse400CauseSuppressed { + return v.value +} + +func (v *NullableInlineResponse400CauseSuppressed) Set(val *InlineResponse400CauseSuppressed) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400CauseSuppressed) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400CauseSuppressed) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400CauseSuppressed(val *InlineResponse400CauseSuppressed) *NullableInlineResponse400CauseSuppressed { + return &NullableInlineResponse400CauseSuppressed{value: val, isSet: true} +} + +func (v NullableInlineResponse400CauseSuppressed) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400CauseSuppressed) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_response.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_response.go new file mode 100644 index 00000000..52b1539e --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_response.go @@ -0,0 +1,723 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" + "time" +) + +// InlineResponse400Response struct for InlineResponse400Response +type InlineResponse400Response struct { + + Metadata *map[string][]map[string]interface{} `json:"metadata,omitempty"` + + Entity *map[string]interface{} `json:"entity,omitempty"` + + Status *int32 `json:"status,omitempty"` + + EntityTag *InlineResponse400ResponseEntityTag `json:"entityTag,omitempty"` + + Cookies *map[string]InlineResponse400ResponseCookies `json:"cookies,omitempty"` + + AllowedMethods *[]string `json:"allowedMethods,omitempty"` + + MediaType *InlineResponse400ResponseMediaType `json:"mediaType,omitempty"` + + StringHeaders *map[string][]string `json:"stringHeaders,omitempty"` + + StatusInfo *InlineResponse400ResponseStatusInfo `json:"statusInfo,omitempty"` + + Links *[]InlineResponse400ResponseLinks `json:"links,omitempty"` + + Length *int32 `json:"length,omitempty"` + + Language *InlineResponse400ResponseLanguage `json:"language,omitempty"` + + Location *string `json:"location,omitempty"` + + LastModified *time.Time `json:"lastModified,omitempty"` + + Date *time.Time `json:"date,omitempty"` + + Headers *map[string][]map[string]interface{} `json:"headers,omitempty"` + +} + +// NewInlineResponse400Response instantiates a new InlineResponse400Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400Response() *InlineResponse400Response { + this := InlineResponse400Response{} + return &this +} + +// NewInlineResponse400ResponseWithDefaults instantiates a new InlineResponse400Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400ResponseWithDefaults() *InlineResponse400Response { + this := InlineResponse400Response{} + + + + + + + + + + + + + + + + + + return &this +} + + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetMetadata() map[string][]map[string]interface{} { + if o == nil || o.Metadata == nil { + var ret map[string][]map[string]interface{} + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetMetadataOk() (*map[string][]map[string]interface{}, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string][]map[string]interface{} and assigns it to the Metadata field. +func (o *InlineResponse400Response) SetMetadata(v map[string][]map[string]interface{}) { + o.Metadata = &v +} + + +// GetEntity returns the Entity field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetEntity() map[string]interface{} { + if o == nil || o.Entity == nil { + var ret map[string]interface{} + return ret + } + return *o.Entity +} + +// GetEntityOk returns a tuple with the Entity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetEntityOk() (*map[string]interface{}, bool) { + if o == nil || o.Entity == nil { + return nil, false + } + return o.Entity, true +} + +// HasEntity returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasEntity() bool { + if o != nil && o.Entity != nil { + return true + } + + return false +} + +// SetEntity gets a reference to the given map[string]interface{} and assigns it to the Entity field. +func (o *InlineResponse400Response) SetEntity(v map[string]interface{}) { + o.Entity = &v +} + + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetStatus() int32 { + if o == nil || o.Status == nil { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetStatusOk() (*int32, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *InlineResponse400Response) SetStatus(v int32) { + o.Status = &v +} + + +// GetEntityTag returns the EntityTag field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetEntityTag() InlineResponse400ResponseEntityTag { + if o == nil || o.EntityTag == nil { + var ret InlineResponse400ResponseEntityTag + return ret + } + return *o.EntityTag +} + +// GetEntityTagOk returns a tuple with the EntityTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetEntityTagOk() (*InlineResponse400ResponseEntityTag, bool) { + if o == nil || o.EntityTag == nil { + return nil, false + } + return o.EntityTag, true +} + +// HasEntityTag returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasEntityTag() bool { + if o != nil && o.EntityTag != nil { + return true + } + + return false +} + +// SetEntityTag gets a reference to the given InlineResponse400ResponseEntityTag and assigns it to the EntityTag field. +func (o *InlineResponse400Response) SetEntityTag(v InlineResponse400ResponseEntityTag) { + o.EntityTag = &v +} + + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetCookies() map[string]InlineResponse400ResponseCookies { + if o == nil || o.Cookies == nil { + var ret map[string]InlineResponse400ResponseCookies + return ret + } + return *o.Cookies +} + +// GetCookiesOk returns a tuple with the Cookies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetCookiesOk() (*map[string]InlineResponse400ResponseCookies, bool) { + if o == nil || o.Cookies == nil { + return nil, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasCookies() bool { + if o != nil && o.Cookies != nil { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]InlineResponse400ResponseCookies and assigns it to the Cookies field. +func (o *InlineResponse400Response) SetCookies(v map[string]InlineResponse400ResponseCookies) { + o.Cookies = &v +} + + +// GetAllowedMethods returns the AllowedMethods field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetAllowedMethods() []string { + if o == nil || o.AllowedMethods == nil { + var ret []string + return ret + } + return *o.AllowedMethods +} + +// GetAllowedMethodsOk returns a tuple with the AllowedMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetAllowedMethodsOk() (*[]string, bool) { + if o == nil || o.AllowedMethods == nil { + return nil, false + } + return o.AllowedMethods, true +} + +// HasAllowedMethods returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasAllowedMethods() bool { + if o != nil && o.AllowedMethods != nil { + return true + } + + return false +} + +// SetAllowedMethods gets a reference to the given []string and assigns it to the AllowedMethods field. +func (o *InlineResponse400Response) SetAllowedMethods(v []string) { + o.AllowedMethods = &v +} + + +// GetMediaType returns the MediaType field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetMediaType() InlineResponse400ResponseMediaType { + if o == nil || o.MediaType == nil { + var ret InlineResponse400ResponseMediaType + return ret + } + return *o.MediaType +} + +// GetMediaTypeOk returns a tuple with the MediaType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetMediaTypeOk() (*InlineResponse400ResponseMediaType, bool) { + if o == nil || o.MediaType == nil { + return nil, false + } + return o.MediaType, true +} + +// HasMediaType returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasMediaType() bool { + if o != nil && o.MediaType != nil { + return true + } + + return false +} + +// SetMediaType gets a reference to the given InlineResponse400ResponseMediaType and assigns it to the MediaType field. +func (o *InlineResponse400Response) SetMediaType(v InlineResponse400ResponseMediaType) { + o.MediaType = &v +} + + +// GetStringHeaders returns the StringHeaders field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetStringHeaders() map[string][]string { + if o == nil || o.StringHeaders == nil { + var ret map[string][]string + return ret + } + return *o.StringHeaders +} + +// GetStringHeadersOk returns a tuple with the StringHeaders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetStringHeadersOk() (*map[string][]string, bool) { + if o == nil || o.StringHeaders == nil { + return nil, false + } + return o.StringHeaders, true +} + +// HasStringHeaders returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasStringHeaders() bool { + if o != nil && o.StringHeaders != nil { + return true + } + + return false +} + +// SetStringHeaders gets a reference to the given map[string][]string and assigns it to the StringHeaders field. +func (o *InlineResponse400Response) SetStringHeaders(v map[string][]string) { + o.StringHeaders = &v +} + + +// GetStatusInfo returns the StatusInfo field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetStatusInfo() InlineResponse400ResponseStatusInfo { + if o == nil || o.StatusInfo == nil { + var ret InlineResponse400ResponseStatusInfo + return ret + } + return *o.StatusInfo +} + +// GetStatusInfoOk returns a tuple with the StatusInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetStatusInfoOk() (*InlineResponse400ResponseStatusInfo, bool) { + if o == nil || o.StatusInfo == nil { + return nil, false + } + return o.StatusInfo, true +} + +// HasStatusInfo returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasStatusInfo() bool { + if o != nil && o.StatusInfo != nil { + return true + } + + return false +} + +// SetStatusInfo gets a reference to the given InlineResponse400ResponseStatusInfo and assigns it to the StatusInfo field. +func (o *InlineResponse400Response) SetStatusInfo(v InlineResponse400ResponseStatusInfo) { + o.StatusInfo = &v +} + + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetLinks() []InlineResponse400ResponseLinks { + if o == nil || o.Links == nil { + var ret []InlineResponse400ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetLinksOk() (*[]InlineResponse400ResponseLinks, bool) { + if o == nil || o.Links == nil { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasLinks() bool { + if o != nil && o.Links != nil { + return true + } + + return false +} + +// SetLinks gets a reference to the given []InlineResponse400ResponseLinks and assigns it to the Links field. +func (o *InlineResponse400Response) SetLinks(v []InlineResponse400ResponseLinks) { + o.Links = &v +} + + +// GetLength returns the Length field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetLength() int32 { + if o == nil || o.Length == nil { + var ret int32 + return ret + } + return *o.Length +} + +// GetLengthOk returns a tuple with the Length field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetLengthOk() (*int32, bool) { + if o == nil || o.Length == nil { + return nil, false + } + return o.Length, true +} + +// HasLength returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasLength() bool { + if o != nil && o.Length != nil { + return true + } + + return false +} + +// SetLength gets a reference to the given int32 and assigns it to the Length field. +func (o *InlineResponse400Response) SetLength(v int32) { + o.Length = &v +} + + +// GetLanguage returns the Language field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetLanguage() InlineResponse400ResponseLanguage { + if o == nil || o.Language == nil { + var ret InlineResponse400ResponseLanguage + return ret + } + return *o.Language +} + +// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetLanguageOk() (*InlineResponse400ResponseLanguage, bool) { + if o == nil || o.Language == nil { + return nil, false + } + return o.Language, true +} + +// HasLanguage returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasLanguage() bool { + if o != nil && o.Language != nil { + return true + } + + return false +} + +// SetLanguage gets a reference to the given InlineResponse400ResponseLanguage and assigns it to the Language field. +func (o *InlineResponse400Response) SetLanguage(v InlineResponse400ResponseLanguage) { + o.Language = &v +} + + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetLocation() string { + if o == nil || o.Location == nil { + var ret string + return ret + } + return *o.Location +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetLocationOk() (*string, bool) { + if o == nil || o.Location == nil { + return nil, false + } + return o.Location, true +} + +// HasLocation returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasLocation() bool { + if o != nil && o.Location != nil { + return true + } + + return false +} + +// SetLocation gets a reference to the given string and assigns it to the Location field. +func (o *InlineResponse400Response) SetLocation(v string) { + o.Location = &v +} + + +// GetLastModified returns the LastModified field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetLastModified() time.Time { + if o == nil || o.LastModified == nil { + var ret time.Time + return ret + } + return *o.LastModified +} + +// GetLastModifiedOk returns a tuple with the LastModified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetLastModifiedOk() (*time.Time, bool) { + if o == nil || o.LastModified == nil { + return nil, false + } + return o.LastModified, true +} + +// HasLastModified returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasLastModified() bool { + if o != nil && o.LastModified != nil { + return true + } + + return false +} + +// SetLastModified gets a reference to the given time.Time and assigns it to the LastModified field. +func (o *InlineResponse400Response) SetLastModified(v time.Time) { + o.LastModified = &v +} + + +// GetDate returns the Date field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetDate() time.Time { + if o == nil || o.Date == nil { + var ret time.Time + return ret + } + return *o.Date +} + +// GetDateOk returns a tuple with the Date field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetDateOk() (*time.Time, bool) { + if o == nil || o.Date == nil { + return nil, false + } + return o.Date, true +} + +// HasDate returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasDate() bool { + if o != nil && o.Date != nil { + return true + } + + return false +} + +// SetDate gets a reference to the given time.Time and assigns it to the Date field. +func (o *InlineResponse400Response) SetDate(v time.Time) { + o.Date = &v +} + + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *InlineResponse400Response) GetHeaders() map[string][]map[string]interface{} { + if o == nil || o.Headers == nil { + var ret map[string][]map[string]interface{} + return ret + } + return *o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400Response) GetHeadersOk() (*map[string][]map[string]interface{}, bool) { + if o == nil || o.Headers == nil { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *InlineResponse400Response) HasHeaders() bool { + if o != nil && o.Headers != nil { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string][]map[string]interface{} and assigns it to the Headers field. +func (o *InlineResponse400Response) SetHeaders(v map[string][]map[string]interface{}) { + o.Headers = &v +} + + +func (o InlineResponse400Response) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + + if o.Entity != nil { + toSerialize["entity"] = o.Entity + } + + if o.Status != nil { + toSerialize["status"] = o.Status + } + + if o.EntityTag != nil { + toSerialize["entityTag"] = o.EntityTag + } + + if o.Cookies != nil { + toSerialize["cookies"] = o.Cookies + } + + if o.AllowedMethods != nil { + toSerialize["allowedMethods"] = o.AllowedMethods + } + + if o.MediaType != nil { + toSerialize["mediaType"] = o.MediaType + } + + if o.StringHeaders != nil { + toSerialize["stringHeaders"] = o.StringHeaders + } + + if o.StatusInfo != nil { + toSerialize["statusInfo"] = o.StatusInfo + } + + if o.Links != nil { + toSerialize["links"] = o.Links + } + + if o.Length != nil { + toSerialize["length"] = o.Length + } + + if o.Language != nil { + toSerialize["language"] = o.Language + } + + if o.Location != nil { + toSerialize["location"] = o.Location + } + + if o.LastModified != nil { + toSerialize["lastModified"] = o.LastModified + } + + if o.Date != nil { + toSerialize["date"] = o.Date + } + + if o.Headers != nil { + toSerialize["headers"] = o.Headers + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400Response struct { + value *InlineResponse400Response + isSet bool +} + +func (v NullableInlineResponse400Response) Get() *InlineResponse400Response { + return v.value +} + +func (v *NullableInlineResponse400Response) Set(val *InlineResponse400Response) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400Response(val *InlineResponse400Response) *NullableInlineResponse400Response { + return &NullableInlineResponse400Response{value: val, isSet: true} +} + +func (v NullableInlineResponse400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_response_cookies.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_cookies.go new file mode 100644 index 00000000..8312bce2 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_cookies.go @@ -0,0 +1,483 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" + "time" +) + +// InlineResponse400ResponseCookies struct for InlineResponse400ResponseCookies +type InlineResponse400ResponseCookies struct { + + Name *string `json:"name,omitempty"` + + Value *string `json:"value,omitempty"` + + Version *int32 `json:"version,omitempty"` + + Path *string `json:"path,omitempty"` + + Domain *string `json:"domain,omitempty"` + + Comment *string `json:"comment,omitempty"` + + MaxAge *int32 `json:"maxAge,omitempty"` + + Expiry *time.Time `json:"expiry,omitempty"` + + Secure *bool `json:"secure,omitempty"` + + HttpOnly *bool `json:"httpOnly,omitempty"` + +} + +// NewInlineResponse400ResponseCookies instantiates a new InlineResponse400ResponseCookies object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400ResponseCookies() *InlineResponse400ResponseCookies { + this := InlineResponse400ResponseCookies{} + return &this +} + +// NewInlineResponse400ResponseCookiesWithDefaults instantiates a new InlineResponse400ResponseCookies object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400ResponseCookiesWithDefaults() *InlineResponse400ResponseCookies { + this := InlineResponse400ResponseCookies{} + + + + + + + + + + + + return &this +} + + +// GetName returns the Name field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *InlineResponse400ResponseCookies) SetName(v string) { + o.Name = &v +} + + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetValue() string { + if o == nil || o.Value == nil { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetValueOk() (*string, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *InlineResponse400ResponseCookies) SetValue(v string) { + o.Value = &v +} + + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetVersion() int32 { + if o == nil || o.Version == nil { + var ret int32 + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetVersionOk() (*int32, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *InlineResponse400ResponseCookies) SetVersion(v int32) { + o.Version = &v +} + + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetPath() string { + if o == nil || o.Path == nil { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetPathOk() (*string, bool) { + if o == nil || o.Path == nil { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasPath() bool { + if o != nil && o.Path != nil { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *InlineResponse400ResponseCookies) SetPath(v string) { + o.Path = &v +} + + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetDomain() string { + if o == nil || o.Domain == nil { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetDomainOk() (*string, bool) { + if o == nil || o.Domain == nil { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasDomain() bool { + if o != nil && o.Domain != nil { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *InlineResponse400ResponseCookies) SetDomain(v string) { + o.Domain = &v +} + + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetComment() string { + if o == nil || o.Comment == nil { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetCommentOk() (*string, bool) { + if o == nil || o.Comment == nil { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasComment() bool { + if o != nil && o.Comment != nil { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *InlineResponse400ResponseCookies) SetComment(v string) { + o.Comment = &v +} + + +// GetMaxAge returns the MaxAge field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetMaxAge() int32 { + if o == nil || o.MaxAge == nil { + var ret int32 + return ret + } + return *o.MaxAge +} + +// GetMaxAgeOk returns a tuple with the MaxAge field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetMaxAgeOk() (*int32, bool) { + if o == nil || o.MaxAge == nil { + return nil, false + } + return o.MaxAge, true +} + +// HasMaxAge returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasMaxAge() bool { + if o != nil && o.MaxAge != nil { + return true + } + + return false +} + +// SetMaxAge gets a reference to the given int32 and assigns it to the MaxAge field. +func (o *InlineResponse400ResponseCookies) SetMaxAge(v int32) { + o.MaxAge = &v +} + + +// GetExpiry returns the Expiry field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetExpiry() time.Time { + if o == nil || o.Expiry == nil { + var ret time.Time + return ret + } + return *o.Expiry +} + +// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetExpiryOk() (*time.Time, bool) { + if o == nil || o.Expiry == nil { + return nil, false + } + return o.Expiry, true +} + +// HasExpiry returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasExpiry() bool { + if o != nil && o.Expiry != nil { + return true + } + + return false +} + +// SetExpiry gets a reference to the given time.Time and assigns it to the Expiry field. +func (o *InlineResponse400ResponseCookies) SetExpiry(v time.Time) { + o.Expiry = &v +} + + +// GetSecure returns the Secure field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetSecure() bool { + if o == nil || o.Secure == nil { + var ret bool + return ret + } + return *o.Secure +} + +// GetSecureOk returns a tuple with the Secure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetSecureOk() (*bool, bool) { + if o == nil || o.Secure == nil { + return nil, false + } + return o.Secure, true +} + +// HasSecure returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasSecure() bool { + if o != nil && o.Secure != nil { + return true + } + + return false +} + +// SetSecure gets a reference to the given bool and assigns it to the Secure field. +func (o *InlineResponse400ResponseCookies) SetSecure(v bool) { + o.Secure = &v +} + + +// GetHttpOnly returns the HttpOnly field value if set, zero value otherwise. +func (o *InlineResponse400ResponseCookies) GetHttpOnly() bool { + if o == nil || o.HttpOnly == nil { + var ret bool + return ret + } + return *o.HttpOnly +} + +// GetHttpOnlyOk returns a tuple with the HttpOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseCookies) GetHttpOnlyOk() (*bool, bool) { + if o == nil || o.HttpOnly == nil { + return nil, false + } + return o.HttpOnly, true +} + +// HasHttpOnly returns a boolean if a field has been set. +func (o *InlineResponse400ResponseCookies) HasHttpOnly() bool { + if o != nil && o.HttpOnly != nil { + return true + } + + return false +} + +// SetHttpOnly gets a reference to the given bool and assigns it to the HttpOnly field. +func (o *InlineResponse400ResponseCookies) SetHttpOnly(v bool) { + o.HttpOnly = &v +} + + +func (o InlineResponse400ResponseCookies) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Name != nil { + toSerialize["name"] = o.Name + } + + if o.Value != nil { + toSerialize["value"] = o.Value + } + + if o.Version != nil { + toSerialize["version"] = o.Version + } + + if o.Path != nil { + toSerialize["path"] = o.Path + } + + if o.Domain != nil { + toSerialize["domain"] = o.Domain + } + + if o.Comment != nil { + toSerialize["comment"] = o.Comment + } + + if o.MaxAge != nil { + toSerialize["maxAge"] = o.MaxAge + } + + if o.Expiry != nil { + toSerialize["expiry"] = o.Expiry + } + + if o.Secure != nil { + toSerialize["secure"] = o.Secure + } + + if o.HttpOnly != nil { + toSerialize["httpOnly"] = o.HttpOnly + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400ResponseCookies struct { + value *InlineResponse400ResponseCookies + isSet bool +} + +func (v NullableInlineResponse400ResponseCookies) Get() *InlineResponse400ResponseCookies { + return v.value +} + +func (v *NullableInlineResponse400ResponseCookies) Set(val *InlineResponse400ResponseCookies) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400ResponseCookies) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400ResponseCookies) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400ResponseCookies(val *InlineResponse400ResponseCookies) *NullableInlineResponse400ResponseCookies { + return &NullableInlineResponse400ResponseCookies{value: val, isSet: true} +} + +func (v NullableInlineResponse400ResponseCookies) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400ResponseCookies) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_response_entity_tag.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_entity_tag.go new file mode 100644 index 00000000..2c9eb882 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_entity_tag.go @@ -0,0 +1,162 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400ResponseEntityTag struct for InlineResponse400ResponseEntityTag +type InlineResponse400ResponseEntityTag struct { + + Value *string `json:"value,omitempty"` + + Weak *bool `json:"weak,omitempty"` + +} + +// NewInlineResponse400ResponseEntityTag instantiates a new InlineResponse400ResponseEntityTag object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400ResponseEntityTag() *InlineResponse400ResponseEntityTag { + this := InlineResponse400ResponseEntityTag{} + return &this +} + +// NewInlineResponse400ResponseEntityTagWithDefaults instantiates a new InlineResponse400ResponseEntityTag object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400ResponseEntityTagWithDefaults() *InlineResponse400ResponseEntityTag { + this := InlineResponse400ResponseEntityTag{} + + + + return &this +} + + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InlineResponse400ResponseEntityTag) GetValue() string { + if o == nil || o.Value == nil { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseEntityTag) GetValueOk() (*string, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InlineResponse400ResponseEntityTag) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *InlineResponse400ResponseEntityTag) SetValue(v string) { + o.Value = &v +} + + +// GetWeak returns the Weak field value if set, zero value otherwise. +func (o *InlineResponse400ResponseEntityTag) GetWeak() bool { + if o == nil || o.Weak == nil { + var ret bool + return ret + } + return *o.Weak +} + +// GetWeakOk returns a tuple with the Weak field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseEntityTag) GetWeakOk() (*bool, bool) { + if o == nil || o.Weak == nil { + return nil, false + } + return o.Weak, true +} + +// HasWeak returns a boolean if a field has been set. +func (o *InlineResponse400ResponseEntityTag) HasWeak() bool { + if o != nil && o.Weak != nil { + return true + } + + return false +} + +// SetWeak gets a reference to the given bool and assigns it to the Weak field. +func (o *InlineResponse400ResponseEntityTag) SetWeak(v bool) { + o.Weak = &v +} + + +func (o InlineResponse400ResponseEntityTag) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Value != nil { + toSerialize["value"] = o.Value + } + + if o.Weak != nil { + toSerialize["weak"] = o.Weak + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400ResponseEntityTag struct { + value *InlineResponse400ResponseEntityTag + isSet bool +} + +func (v NullableInlineResponse400ResponseEntityTag) Get() *InlineResponse400ResponseEntityTag { + return v.value +} + +func (v *NullableInlineResponse400ResponseEntityTag) Set(val *InlineResponse400ResponseEntityTag) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400ResponseEntityTag) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400ResponseEntityTag) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400ResponseEntityTag(val *InlineResponse400ResponseEntityTag) *NullableInlineResponse400ResponseEntityTag { + return &NullableInlineResponse400ResponseEntityTag{value: val, isSet: true} +} + +func (v NullableInlineResponse400ResponseEntityTag) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400ResponseEntityTag) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_response_language.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_language.go new file mode 100644 index 00000000..53e4a5da --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_language.go @@ -0,0 +1,642 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400ResponseLanguage struct for InlineResponse400ResponseLanguage +type InlineResponse400ResponseLanguage struct { + + Language *string `json:"language,omitempty"` + + Script *string `json:"script,omitempty"` + + Country *string `json:"country,omitempty"` + + Variant *string `json:"variant,omitempty"` + + ExtensionKeys *[]string `json:"extensionKeys,omitempty"` + + UnicodeLocaleAttributes *[]string `json:"unicodeLocaleAttributes,omitempty"` + + UnicodeLocaleKeys *[]string `json:"unicodeLocaleKeys,omitempty"` + + Iso3Language *string `json:"iso3Language,omitempty"` + + Iso3Country *string `json:"iso3Country,omitempty"` + + DisplayLanguage *string `json:"displayLanguage,omitempty"` + + DisplayScript *string `json:"displayScript,omitempty"` + + DisplayCountry *string `json:"displayCountry,omitempty"` + + DisplayVariant *string `json:"displayVariant,omitempty"` + + DisplayName *string `json:"displayName,omitempty"` + +} + +// NewInlineResponse400ResponseLanguage instantiates a new InlineResponse400ResponseLanguage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400ResponseLanguage() *InlineResponse400ResponseLanguage { + this := InlineResponse400ResponseLanguage{} + return &this +} + +// NewInlineResponse400ResponseLanguageWithDefaults instantiates a new InlineResponse400ResponseLanguage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400ResponseLanguageWithDefaults() *InlineResponse400ResponseLanguage { + this := InlineResponse400ResponseLanguage{} + + + + + + + + + + + + + + + + return &this +} + + +// GetLanguage returns the Language field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetLanguage() string { + if o == nil || o.Language == nil { + var ret string + return ret + } + return *o.Language +} + +// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetLanguageOk() (*string, bool) { + if o == nil || o.Language == nil { + return nil, false + } + return o.Language, true +} + +// HasLanguage returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasLanguage() bool { + if o != nil && o.Language != nil { + return true + } + + return false +} + +// SetLanguage gets a reference to the given string and assigns it to the Language field. +func (o *InlineResponse400ResponseLanguage) SetLanguage(v string) { + o.Language = &v +} + + +// GetScript returns the Script field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetScript() string { + if o == nil || o.Script == nil { + var ret string + return ret + } + return *o.Script +} + +// GetScriptOk returns a tuple with the Script field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetScriptOk() (*string, bool) { + if o == nil || o.Script == nil { + return nil, false + } + return o.Script, true +} + +// HasScript returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasScript() bool { + if o != nil && o.Script != nil { + return true + } + + return false +} + +// SetScript gets a reference to the given string and assigns it to the Script field. +func (o *InlineResponse400ResponseLanguage) SetScript(v string) { + o.Script = &v +} + + +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetCountry() string { + if o == nil || o.Country == nil { + var ret string + return ret + } + return *o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetCountryOk() (*string, bool) { + if o == nil || o.Country == nil { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasCountry() bool { + if o != nil && o.Country != nil { + return true + } + + return false +} + +// SetCountry gets a reference to the given string and assigns it to the Country field. +func (o *InlineResponse400ResponseLanguage) SetCountry(v string) { + o.Country = &v +} + + +// GetVariant returns the Variant field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetVariant() string { + if o == nil || o.Variant == nil { + var ret string + return ret + } + return *o.Variant +} + +// GetVariantOk returns a tuple with the Variant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetVariantOk() (*string, bool) { + if o == nil || o.Variant == nil { + return nil, false + } + return o.Variant, true +} + +// HasVariant returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasVariant() bool { + if o != nil && o.Variant != nil { + return true + } + + return false +} + +// SetVariant gets a reference to the given string and assigns it to the Variant field. +func (o *InlineResponse400ResponseLanguage) SetVariant(v string) { + o.Variant = &v +} + + +// GetExtensionKeys returns the ExtensionKeys field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetExtensionKeys() []string { + if o == nil || o.ExtensionKeys == nil { + var ret []string + return ret + } + return *o.ExtensionKeys +} + +// GetExtensionKeysOk returns a tuple with the ExtensionKeys field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetExtensionKeysOk() (*[]string, bool) { + if o == nil || o.ExtensionKeys == nil { + return nil, false + } + return o.ExtensionKeys, true +} + +// HasExtensionKeys returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasExtensionKeys() bool { + if o != nil && o.ExtensionKeys != nil { + return true + } + + return false +} + +// SetExtensionKeys gets a reference to the given []string and assigns it to the ExtensionKeys field. +func (o *InlineResponse400ResponseLanguage) SetExtensionKeys(v []string) { + o.ExtensionKeys = &v +} + + +// GetUnicodeLocaleAttributes returns the UnicodeLocaleAttributes field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetUnicodeLocaleAttributes() []string { + if o == nil || o.UnicodeLocaleAttributes == nil { + var ret []string + return ret + } + return *o.UnicodeLocaleAttributes +} + +// GetUnicodeLocaleAttributesOk returns a tuple with the UnicodeLocaleAttributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetUnicodeLocaleAttributesOk() (*[]string, bool) { + if o == nil || o.UnicodeLocaleAttributes == nil { + return nil, false + } + return o.UnicodeLocaleAttributes, true +} + +// HasUnicodeLocaleAttributes returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasUnicodeLocaleAttributes() bool { + if o != nil && o.UnicodeLocaleAttributes != nil { + return true + } + + return false +} + +// SetUnicodeLocaleAttributes gets a reference to the given []string and assigns it to the UnicodeLocaleAttributes field. +func (o *InlineResponse400ResponseLanguage) SetUnicodeLocaleAttributes(v []string) { + o.UnicodeLocaleAttributes = &v +} + + +// GetUnicodeLocaleKeys returns the UnicodeLocaleKeys field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetUnicodeLocaleKeys() []string { + if o == nil || o.UnicodeLocaleKeys == nil { + var ret []string + return ret + } + return *o.UnicodeLocaleKeys +} + +// GetUnicodeLocaleKeysOk returns a tuple with the UnicodeLocaleKeys field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetUnicodeLocaleKeysOk() (*[]string, bool) { + if o == nil || o.UnicodeLocaleKeys == nil { + return nil, false + } + return o.UnicodeLocaleKeys, true +} + +// HasUnicodeLocaleKeys returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasUnicodeLocaleKeys() bool { + if o != nil && o.UnicodeLocaleKeys != nil { + return true + } + + return false +} + +// SetUnicodeLocaleKeys gets a reference to the given []string and assigns it to the UnicodeLocaleKeys field. +func (o *InlineResponse400ResponseLanguage) SetUnicodeLocaleKeys(v []string) { + o.UnicodeLocaleKeys = &v +} + + +// GetIso3Language returns the Iso3Language field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetIso3Language() string { + if o == nil || o.Iso3Language == nil { + var ret string + return ret + } + return *o.Iso3Language +} + +// GetIso3LanguageOk returns a tuple with the Iso3Language field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetIso3LanguageOk() (*string, bool) { + if o == nil || o.Iso3Language == nil { + return nil, false + } + return o.Iso3Language, true +} + +// HasIso3Language returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasIso3Language() bool { + if o != nil && o.Iso3Language != nil { + return true + } + + return false +} + +// SetIso3Language gets a reference to the given string and assigns it to the Iso3Language field. +func (o *InlineResponse400ResponseLanguage) SetIso3Language(v string) { + o.Iso3Language = &v +} + + +// GetIso3Country returns the Iso3Country field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetIso3Country() string { + if o == nil || o.Iso3Country == nil { + var ret string + return ret + } + return *o.Iso3Country +} + +// GetIso3CountryOk returns a tuple with the Iso3Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetIso3CountryOk() (*string, bool) { + if o == nil || o.Iso3Country == nil { + return nil, false + } + return o.Iso3Country, true +} + +// HasIso3Country returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasIso3Country() bool { + if o != nil && o.Iso3Country != nil { + return true + } + + return false +} + +// SetIso3Country gets a reference to the given string and assigns it to the Iso3Country field. +func (o *InlineResponse400ResponseLanguage) SetIso3Country(v string) { + o.Iso3Country = &v +} + + +// GetDisplayLanguage returns the DisplayLanguage field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetDisplayLanguage() string { + if o == nil || o.DisplayLanguage == nil { + var ret string + return ret + } + return *o.DisplayLanguage +} + +// GetDisplayLanguageOk returns a tuple with the DisplayLanguage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetDisplayLanguageOk() (*string, bool) { + if o == nil || o.DisplayLanguage == nil { + return nil, false + } + return o.DisplayLanguage, true +} + +// HasDisplayLanguage returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasDisplayLanguage() bool { + if o != nil && o.DisplayLanguage != nil { + return true + } + + return false +} + +// SetDisplayLanguage gets a reference to the given string and assigns it to the DisplayLanguage field. +func (o *InlineResponse400ResponseLanguage) SetDisplayLanguage(v string) { + o.DisplayLanguage = &v +} + + +// GetDisplayScript returns the DisplayScript field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetDisplayScript() string { + if o == nil || o.DisplayScript == nil { + var ret string + return ret + } + return *o.DisplayScript +} + +// GetDisplayScriptOk returns a tuple with the DisplayScript field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetDisplayScriptOk() (*string, bool) { + if o == nil || o.DisplayScript == nil { + return nil, false + } + return o.DisplayScript, true +} + +// HasDisplayScript returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasDisplayScript() bool { + if o != nil && o.DisplayScript != nil { + return true + } + + return false +} + +// SetDisplayScript gets a reference to the given string and assigns it to the DisplayScript field. +func (o *InlineResponse400ResponseLanguage) SetDisplayScript(v string) { + o.DisplayScript = &v +} + + +// GetDisplayCountry returns the DisplayCountry field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetDisplayCountry() string { + if o == nil || o.DisplayCountry == nil { + var ret string + return ret + } + return *o.DisplayCountry +} + +// GetDisplayCountryOk returns a tuple with the DisplayCountry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetDisplayCountryOk() (*string, bool) { + if o == nil || o.DisplayCountry == nil { + return nil, false + } + return o.DisplayCountry, true +} + +// HasDisplayCountry returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasDisplayCountry() bool { + if o != nil && o.DisplayCountry != nil { + return true + } + + return false +} + +// SetDisplayCountry gets a reference to the given string and assigns it to the DisplayCountry field. +func (o *InlineResponse400ResponseLanguage) SetDisplayCountry(v string) { + o.DisplayCountry = &v +} + + +// GetDisplayVariant returns the DisplayVariant field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetDisplayVariant() string { + if o == nil || o.DisplayVariant == nil { + var ret string + return ret + } + return *o.DisplayVariant +} + +// GetDisplayVariantOk returns a tuple with the DisplayVariant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetDisplayVariantOk() (*string, bool) { + if o == nil || o.DisplayVariant == nil { + return nil, false + } + return o.DisplayVariant, true +} + +// HasDisplayVariant returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasDisplayVariant() bool { + if o != nil && o.DisplayVariant != nil { + return true + } + + return false +} + +// SetDisplayVariant gets a reference to the given string and assigns it to the DisplayVariant field. +func (o *InlineResponse400ResponseLanguage) SetDisplayVariant(v string) { + o.DisplayVariant = &v +} + + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLanguage) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLanguage) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLanguage) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *InlineResponse400ResponseLanguage) SetDisplayName(v string) { + o.DisplayName = &v +} + + +func (o InlineResponse400ResponseLanguage) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Language != nil { + toSerialize["language"] = o.Language + } + + if o.Script != nil { + toSerialize["script"] = o.Script + } + + if o.Country != nil { + toSerialize["country"] = o.Country + } + + if o.Variant != nil { + toSerialize["variant"] = o.Variant + } + + if o.ExtensionKeys != nil { + toSerialize["extensionKeys"] = o.ExtensionKeys + } + + if o.UnicodeLocaleAttributes != nil { + toSerialize["unicodeLocaleAttributes"] = o.UnicodeLocaleAttributes + } + + if o.UnicodeLocaleKeys != nil { + toSerialize["unicodeLocaleKeys"] = o.UnicodeLocaleKeys + } + + if o.Iso3Language != nil { + toSerialize["iso3Language"] = o.Iso3Language + } + + if o.Iso3Country != nil { + toSerialize["iso3Country"] = o.Iso3Country + } + + if o.DisplayLanguage != nil { + toSerialize["displayLanguage"] = o.DisplayLanguage + } + + if o.DisplayScript != nil { + toSerialize["displayScript"] = o.DisplayScript + } + + if o.DisplayCountry != nil { + toSerialize["displayCountry"] = o.DisplayCountry + } + + if o.DisplayVariant != nil { + toSerialize["displayVariant"] = o.DisplayVariant + } + + if o.DisplayName != nil { + toSerialize["displayName"] = o.DisplayName + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400ResponseLanguage struct { + value *InlineResponse400ResponseLanguage + isSet bool +} + +func (v NullableInlineResponse400ResponseLanguage) Get() *InlineResponse400ResponseLanguage { + return v.value +} + +func (v *NullableInlineResponse400ResponseLanguage) Set(val *InlineResponse400ResponseLanguage) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400ResponseLanguage) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400ResponseLanguage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400ResponseLanguage(val *InlineResponse400ResponseLanguage) *NullableInlineResponse400ResponseLanguage { + return &NullableInlineResponse400ResponseLanguage{value: val, isSet: true} +} + +func (v NullableInlineResponse400ResponseLanguage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400ResponseLanguage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_response_links.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_links.go new file mode 100644 index 00000000..5d7f185e --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_links.go @@ -0,0 +1,362 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400ResponseLinks struct for InlineResponse400ResponseLinks +type InlineResponse400ResponseLinks struct { + + UriBuilder *map[string]interface{} `json:"uriBuilder,omitempty"` + + Params *map[string]string `json:"params,omitempty"` + + Title *string `json:"title,omitempty"` + + Uri *string `json:"uri,omitempty"` + + Rel *string `json:"rel,omitempty"` + + Rels *[]string `json:"rels,omitempty"` + + Type *string `json:"type,omitempty"` + +} + +// NewInlineResponse400ResponseLinks instantiates a new InlineResponse400ResponseLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400ResponseLinks() *InlineResponse400ResponseLinks { + this := InlineResponse400ResponseLinks{} + return &this +} + +// NewInlineResponse400ResponseLinksWithDefaults instantiates a new InlineResponse400ResponseLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400ResponseLinksWithDefaults() *InlineResponse400ResponseLinks { + this := InlineResponse400ResponseLinks{} + + + + + + + + + return &this +} + + +// GetUriBuilder returns the UriBuilder field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLinks) GetUriBuilder() map[string]interface{} { + if o == nil || o.UriBuilder == nil { + var ret map[string]interface{} + return ret + } + return *o.UriBuilder +} + +// GetUriBuilderOk returns a tuple with the UriBuilder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLinks) GetUriBuilderOk() (*map[string]interface{}, bool) { + if o == nil || o.UriBuilder == nil { + return nil, false + } + return o.UriBuilder, true +} + +// HasUriBuilder returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLinks) HasUriBuilder() bool { + if o != nil && o.UriBuilder != nil { + return true + } + + return false +} + +// SetUriBuilder gets a reference to the given map[string]interface{} and assigns it to the UriBuilder field. +func (o *InlineResponse400ResponseLinks) SetUriBuilder(v map[string]interface{}) { + o.UriBuilder = &v +} + + +// GetParams returns the Params field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLinks) GetParams() map[string]string { + if o == nil || o.Params == nil { + var ret map[string]string + return ret + } + return *o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLinks) GetParamsOk() (*map[string]string, bool) { + if o == nil || o.Params == nil { + return nil, false + } + return o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLinks) HasParams() bool { + if o != nil && o.Params != nil { + return true + } + + return false +} + +// SetParams gets a reference to the given map[string]string and assigns it to the Params field. +func (o *InlineResponse400ResponseLinks) SetParams(v map[string]string) { + o.Params = &v +} + + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLinks) GetTitle() string { + if o == nil || o.Title == nil { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLinks) GetTitleOk() (*string, bool) { + if o == nil || o.Title == nil { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLinks) HasTitle() bool { + if o != nil && o.Title != nil { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *InlineResponse400ResponseLinks) SetTitle(v string) { + o.Title = &v +} + + +// GetUri returns the Uri field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLinks) GetUri() string { + if o == nil || o.Uri == nil { + var ret string + return ret + } + return *o.Uri +} + +// GetUriOk returns a tuple with the Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLinks) GetUriOk() (*string, bool) { + if o == nil || o.Uri == nil { + return nil, false + } + return o.Uri, true +} + +// HasUri returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLinks) HasUri() bool { + if o != nil && o.Uri != nil { + return true + } + + return false +} + +// SetUri gets a reference to the given string and assigns it to the Uri field. +func (o *InlineResponse400ResponseLinks) SetUri(v string) { + o.Uri = &v +} + + +// GetRel returns the Rel field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLinks) GetRel() string { + if o == nil || o.Rel == nil { + var ret string + return ret + } + return *o.Rel +} + +// GetRelOk returns a tuple with the Rel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLinks) GetRelOk() (*string, bool) { + if o == nil || o.Rel == nil { + return nil, false + } + return o.Rel, true +} + +// HasRel returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLinks) HasRel() bool { + if o != nil && o.Rel != nil { + return true + } + + return false +} + +// SetRel gets a reference to the given string and assigns it to the Rel field. +func (o *InlineResponse400ResponseLinks) SetRel(v string) { + o.Rel = &v +} + + +// GetRels returns the Rels field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLinks) GetRels() []string { + if o == nil || o.Rels == nil { + var ret []string + return ret + } + return *o.Rels +} + +// GetRelsOk returns a tuple with the Rels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLinks) GetRelsOk() (*[]string, bool) { + if o == nil || o.Rels == nil { + return nil, false + } + return o.Rels, true +} + +// HasRels returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLinks) HasRels() bool { + if o != nil && o.Rels != nil { + return true + } + + return false +} + +// SetRels gets a reference to the given []string and assigns it to the Rels field. +func (o *InlineResponse400ResponseLinks) SetRels(v []string) { + o.Rels = &v +} + + +// GetType returns the Type field value if set, zero value otherwise. +func (o *InlineResponse400ResponseLinks) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseLinks) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *InlineResponse400ResponseLinks) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *InlineResponse400ResponseLinks) SetType(v string) { + o.Type = &v +} + + +func (o InlineResponse400ResponseLinks) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.UriBuilder != nil { + toSerialize["uriBuilder"] = o.UriBuilder + } + + if o.Params != nil { + toSerialize["params"] = o.Params + } + + if o.Title != nil { + toSerialize["title"] = o.Title + } + + if o.Uri != nil { + toSerialize["uri"] = o.Uri + } + + if o.Rel != nil { + toSerialize["rel"] = o.Rel + } + + if o.Rels != nil { + toSerialize["rels"] = o.Rels + } + + if o.Type != nil { + toSerialize["type"] = o.Type + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400ResponseLinks struct { + value *InlineResponse400ResponseLinks + isSet bool +} + +func (v NullableInlineResponse400ResponseLinks) Get() *InlineResponse400ResponseLinks { + return v.value +} + +func (v *NullableInlineResponse400ResponseLinks) Set(val *InlineResponse400ResponseLinks) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400ResponseLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400ResponseLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400ResponseLinks(val *InlineResponse400ResponseLinks) *NullableInlineResponse400ResponseLinks { + return &NullableInlineResponse400ResponseLinks{value: val, isSet: true} +} + +func (v NullableInlineResponse400ResponseLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400ResponseLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_response_media_type.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_media_type.go new file mode 100644 index 00000000..98e725da --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_media_type.go @@ -0,0 +1,282 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400ResponseMediaType struct for InlineResponse400ResponseMediaType +type InlineResponse400ResponseMediaType struct { + + Type *string `json:"type,omitempty"` + + Subtype *string `json:"subtype,omitempty"` + + Parameters *map[string]string `json:"parameters,omitempty"` + + WildcardType *bool `json:"wildcardType,omitempty"` + + WildcardSubtype *bool `json:"wildcardSubtype,omitempty"` + +} + +// NewInlineResponse400ResponseMediaType instantiates a new InlineResponse400ResponseMediaType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400ResponseMediaType() *InlineResponse400ResponseMediaType { + this := InlineResponse400ResponseMediaType{} + return &this +} + +// NewInlineResponse400ResponseMediaTypeWithDefaults instantiates a new InlineResponse400ResponseMediaType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400ResponseMediaTypeWithDefaults() *InlineResponse400ResponseMediaType { + this := InlineResponse400ResponseMediaType{} + + + + + + + return &this +} + + +// GetType returns the Type field value if set, zero value otherwise. +func (o *InlineResponse400ResponseMediaType) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseMediaType) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *InlineResponse400ResponseMediaType) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *InlineResponse400ResponseMediaType) SetType(v string) { + o.Type = &v +} + + +// GetSubtype returns the Subtype field value if set, zero value otherwise. +func (o *InlineResponse400ResponseMediaType) GetSubtype() string { + if o == nil || o.Subtype == nil { + var ret string + return ret + } + return *o.Subtype +} + +// GetSubtypeOk returns a tuple with the Subtype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseMediaType) GetSubtypeOk() (*string, bool) { + if o == nil || o.Subtype == nil { + return nil, false + } + return o.Subtype, true +} + +// HasSubtype returns a boolean if a field has been set. +func (o *InlineResponse400ResponseMediaType) HasSubtype() bool { + if o != nil && o.Subtype != nil { + return true + } + + return false +} + +// SetSubtype gets a reference to the given string and assigns it to the Subtype field. +func (o *InlineResponse400ResponseMediaType) SetSubtype(v string) { + o.Subtype = &v +} + + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *InlineResponse400ResponseMediaType) GetParameters() map[string]string { + if o == nil || o.Parameters == nil { + var ret map[string]string + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseMediaType) GetParametersOk() (*map[string]string, bool) { + if o == nil || o.Parameters == nil { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *InlineResponse400ResponseMediaType) HasParameters() bool { + if o != nil && o.Parameters != nil { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field. +func (o *InlineResponse400ResponseMediaType) SetParameters(v map[string]string) { + o.Parameters = &v +} + + +// GetWildcardType returns the WildcardType field value if set, zero value otherwise. +func (o *InlineResponse400ResponseMediaType) GetWildcardType() bool { + if o == nil || o.WildcardType == nil { + var ret bool + return ret + } + return *o.WildcardType +} + +// GetWildcardTypeOk returns a tuple with the WildcardType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseMediaType) GetWildcardTypeOk() (*bool, bool) { + if o == nil || o.WildcardType == nil { + return nil, false + } + return o.WildcardType, true +} + +// HasWildcardType returns a boolean if a field has been set. +func (o *InlineResponse400ResponseMediaType) HasWildcardType() bool { + if o != nil && o.WildcardType != nil { + return true + } + + return false +} + +// SetWildcardType gets a reference to the given bool and assigns it to the WildcardType field. +func (o *InlineResponse400ResponseMediaType) SetWildcardType(v bool) { + o.WildcardType = &v +} + + +// GetWildcardSubtype returns the WildcardSubtype field value if set, zero value otherwise. +func (o *InlineResponse400ResponseMediaType) GetWildcardSubtype() bool { + if o == nil || o.WildcardSubtype == nil { + var ret bool + return ret + } + return *o.WildcardSubtype +} + +// GetWildcardSubtypeOk returns a tuple with the WildcardSubtype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseMediaType) GetWildcardSubtypeOk() (*bool, bool) { + if o == nil || o.WildcardSubtype == nil { + return nil, false + } + return o.WildcardSubtype, true +} + +// HasWildcardSubtype returns a boolean if a field has been set. +func (o *InlineResponse400ResponseMediaType) HasWildcardSubtype() bool { + if o != nil && o.WildcardSubtype != nil { + return true + } + + return false +} + +// SetWildcardSubtype gets a reference to the given bool and assigns it to the WildcardSubtype field. +func (o *InlineResponse400ResponseMediaType) SetWildcardSubtype(v bool) { + o.WildcardSubtype = &v +} + + +func (o InlineResponse400ResponseMediaType) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Type != nil { + toSerialize["type"] = o.Type + } + + if o.Subtype != nil { + toSerialize["subtype"] = o.Subtype + } + + if o.Parameters != nil { + toSerialize["parameters"] = o.Parameters + } + + if o.WildcardType != nil { + toSerialize["wildcardType"] = o.WildcardType + } + + if o.WildcardSubtype != nil { + toSerialize["wildcardSubtype"] = o.WildcardSubtype + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400ResponseMediaType struct { + value *InlineResponse400ResponseMediaType + isSet bool +} + +func (v NullableInlineResponse400ResponseMediaType) Get() *InlineResponse400ResponseMediaType { + return v.value +} + +func (v *NullableInlineResponse400ResponseMediaType) Set(val *InlineResponse400ResponseMediaType) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400ResponseMediaType) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400ResponseMediaType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400ResponseMediaType(val *InlineResponse400ResponseMediaType) *NullableInlineResponse400ResponseMediaType { + return &NullableInlineResponse400ResponseMediaType{value: val, isSet: true} +} + +func (v NullableInlineResponse400ResponseMediaType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400ResponseMediaType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_400_response_status_info.go b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_status_info.go new file mode 100644 index 00000000..c4392a0f --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_400_response_status_info.go @@ -0,0 +1,202 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse400ResponseStatusInfo struct for InlineResponse400ResponseStatusInfo +type InlineResponse400ResponseStatusInfo struct { + + ReasonPhrase *string `json:"reasonPhrase,omitempty"` + + StatusCode *int32 `json:"statusCode,omitempty"` + + Family *string `json:"family,omitempty"` + +} + +// NewInlineResponse400ResponseStatusInfo instantiates a new InlineResponse400ResponseStatusInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400ResponseStatusInfo() *InlineResponse400ResponseStatusInfo { + this := InlineResponse400ResponseStatusInfo{} + return &this +} + +// NewInlineResponse400ResponseStatusInfoWithDefaults instantiates a new InlineResponse400ResponseStatusInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400ResponseStatusInfoWithDefaults() *InlineResponse400ResponseStatusInfo { + this := InlineResponse400ResponseStatusInfo{} + + + + + return &this +} + + +// GetReasonPhrase returns the ReasonPhrase field value if set, zero value otherwise. +func (o *InlineResponse400ResponseStatusInfo) GetReasonPhrase() string { + if o == nil || o.ReasonPhrase == nil { + var ret string + return ret + } + return *o.ReasonPhrase +} + +// GetReasonPhraseOk returns a tuple with the ReasonPhrase field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseStatusInfo) GetReasonPhraseOk() (*string, bool) { + if o == nil || o.ReasonPhrase == nil { + return nil, false + } + return o.ReasonPhrase, true +} + +// HasReasonPhrase returns a boolean if a field has been set. +func (o *InlineResponse400ResponseStatusInfo) HasReasonPhrase() bool { + if o != nil && o.ReasonPhrase != nil { + return true + } + + return false +} + +// SetReasonPhrase gets a reference to the given string and assigns it to the ReasonPhrase field. +func (o *InlineResponse400ResponseStatusInfo) SetReasonPhrase(v string) { + o.ReasonPhrase = &v +} + + +// GetStatusCode returns the StatusCode field value if set, zero value otherwise. +func (o *InlineResponse400ResponseStatusInfo) GetStatusCode() int32 { + if o == nil || o.StatusCode == nil { + var ret int32 + return ret + } + return *o.StatusCode +} + +// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseStatusInfo) GetStatusCodeOk() (*int32, bool) { + if o == nil || o.StatusCode == nil { + return nil, false + } + return o.StatusCode, true +} + +// HasStatusCode returns a boolean if a field has been set. +func (o *InlineResponse400ResponseStatusInfo) HasStatusCode() bool { + if o != nil && o.StatusCode != nil { + return true + } + + return false +} + +// SetStatusCode gets a reference to the given int32 and assigns it to the StatusCode field. +func (o *InlineResponse400ResponseStatusInfo) SetStatusCode(v int32) { + o.StatusCode = &v +} + + +// GetFamily returns the Family field value if set, zero value otherwise. +func (o *InlineResponse400ResponseStatusInfo) GetFamily() string { + if o == nil || o.Family == nil { + var ret string + return ret + } + return *o.Family +} + +// GetFamilyOk returns a tuple with the Family field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse400ResponseStatusInfo) GetFamilyOk() (*string, bool) { + if o == nil || o.Family == nil { + return nil, false + } + return o.Family, true +} + +// HasFamily returns a boolean if a field has been set. +func (o *InlineResponse400ResponseStatusInfo) HasFamily() bool { + if o != nil && o.Family != nil { + return true + } + + return false +} + +// SetFamily gets a reference to the given string and assigns it to the Family field. +func (o *InlineResponse400ResponseStatusInfo) SetFamily(v string) { + o.Family = &v +} + + +func (o InlineResponse400ResponseStatusInfo) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.ReasonPhrase != nil { + toSerialize["reasonPhrase"] = o.ReasonPhrase + } + + if o.StatusCode != nil { + toSerialize["statusCode"] = o.StatusCode + } + + if o.Family != nil { + toSerialize["family"] = o.Family + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse400ResponseStatusInfo struct { + value *InlineResponse400ResponseStatusInfo + isSet bool +} + +func (v NullableInlineResponse400ResponseStatusInfo) Get() *InlineResponse400ResponseStatusInfo { + return v.value +} + +func (v *NullableInlineResponse400ResponseStatusInfo) Set(val *InlineResponse400ResponseStatusInfo) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse400ResponseStatusInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse400ResponseStatusInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse400ResponseStatusInfo(val *InlineResponse400ResponseStatusInfo) *NullableInlineResponse400ResponseStatusInfo { + return &NullableInlineResponse400ResponseStatusInfo{value: val, isSet: true} +} + +func (v NullableInlineResponse400ResponseStatusInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse400ResponseStatusInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_inline_response_401.go b/serviceaccounts/apiv1internal/client/model_inline_response_401.go new file mode 100644 index 00000000..07e720b8 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_inline_response_401.go @@ -0,0 +1,362 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// InlineResponse401 struct for InlineResponse401 +type InlineResponse401 struct { + + Cause *InlineResponse400Cause `json:"cause,omitempty"` + + StackTrace *[]InlineResponse400CauseStackTrace `json:"stackTrace,omitempty"` + + Response *InlineResponse400Response `json:"response,omitempty"` + + Challenges *[]map[string]interface{} `json:"challenges,omitempty"` + + Message *string `json:"message,omitempty"` + + LocalizedMessage *string `json:"localizedMessage,omitempty"` + + Suppressed *[]InlineResponse400CauseSuppressed `json:"suppressed,omitempty"` + +} + +// NewInlineResponse401 instantiates a new InlineResponse401 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse401() *InlineResponse401 { + this := InlineResponse401{} + return &this +} + +// NewInlineResponse401WithDefaults instantiates a new InlineResponse401 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse401WithDefaults() *InlineResponse401 { + this := InlineResponse401{} + + + + + + + + + return &this +} + + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *InlineResponse401) GetCause() InlineResponse400Cause { + if o == nil || o.Cause == nil { + var ret InlineResponse400Cause + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse401) GetCauseOk() (*InlineResponse400Cause, bool) { + if o == nil || o.Cause == nil { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *InlineResponse401) HasCause() bool { + if o != nil && o.Cause != nil { + return true + } + + return false +} + +// SetCause gets a reference to the given InlineResponse400Cause and assigns it to the Cause field. +func (o *InlineResponse401) SetCause(v InlineResponse400Cause) { + o.Cause = &v +} + + +// GetStackTrace returns the StackTrace field value if set, zero value otherwise. +func (o *InlineResponse401) GetStackTrace() []InlineResponse400CauseStackTrace { + if o == nil || o.StackTrace == nil { + var ret []InlineResponse400CauseStackTrace + return ret + } + return *o.StackTrace +} + +// GetStackTraceOk returns a tuple with the StackTrace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse401) GetStackTraceOk() (*[]InlineResponse400CauseStackTrace, bool) { + if o == nil || o.StackTrace == nil { + return nil, false + } + return o.StackTrace, true +} + +// HasStackTrace returns a boolean if a field has been set. +func (o *InlineResponse401) HasStackTrace() bool { + if o != nil && o.StackTrace != nil { + return true + } + + return false +} + +// SetStackTrace gets a reference to the given []InlineResponse400CauseStackTrace and assigns it to the StackTrace field. +func (o *InlineResponse401) SetStackTrace(v []InlineResponse400CauseStackTrace) { + o.StackTrace = &v +} + + +// GetResponse returns the Response field value if set, zero value otherwise. +func (o *InlineResponse401) GetResponse() InlineResponse400Response { + if o == nil || o.Response == nil { + var ret InlineResponse400Response + return ret + } + return *o.Response +} + +// GetResponseOk returns a tuple with the Response field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse401) GetResponseOk() (*InlineResponse400Response, bool) { + if o == nil || o.Response == nil { + return nil, false + } + return o.Response, true +} + +// HasResponse returns a boolean if a field has been set. +func (o *InlineResponse401) HasResponse() bool { + if o != nil && o.Response != nil { + return true + } + + return false +} + +// SetResponse gets a reference to the given InlineResponse400Response and assigns it to the Response field. +func (o *InlineResponse401) SetResponse(v InlineResponse400Response) { + o.Response = &v +} + + +// GetChallenges returns the Challenges field value if set, zero value otherwise. +func (o *InlineResponse401) GetChallenges() []map[string]interface{} { + if o == nil || o.Challenges == nil { + var ret []map[string]interface{} + return ret + } + return *o.Challenges +} + +// GetChallengesOk returns a tuple with the Challenges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse401) GetChallengesOk() (*[]map[string]interface{}, bool) { + if o == nil || o.Challenges == nil { + return nil, false + } + return o.Challenges, true +} + +// HasChallenges returns a boolean if a field has been set. +func (o *InlineResponse401) HasChallenges() bool { + if o != nil && o.Challenges != nil { + return true + } + + return false +} + +// SetChallenges gets a reference to the given []map[string]interface{} and assigns it to the Challenges field. +func (o *InlineResponse401) SetChallenges(v []map[string]interface{}) { + o.Challenges = &v +} + + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *InlineResponse401) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse401) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *InlineResponse401) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *InlineResponse401) SetMessage(v string) { + o.Message = &v +} + + +// GetLocalizedMessage returns the LocalizedMessage field value if set, zero value otherwise. +func (o *InlineResponse401) GetLocalizedMessage() string { + if o == nil || o.LocalizedMessage == nil { + var ret string + return ret + } + return *o.LocalizedMessage +} + +// GetLocalizedMessageOk returns a tuple with the LocalizedMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse401) GetLocalizedMessageOk() (*string, bool) { + if o == nil || o.LocalizedMessage == nil { + return nil, false + } + return o.LocalizedMessage, true +} + +// HasLocalizedMessage returns a boolean if a field has been set. +func (o *InlineResponse401) HasLocalizedMessage() bool { + if o != nil && o.LocalizedMessage != nil { + return true + } + + return false +} + +// SetLocalizedMessage gets a reference to the given string and assigns it to the LocalizedMessage field. +func (o *InlineResponse401) SetLocalizedMessage(v string) { + o.LocalizedMessage = &v +} + + +// GetSuppressed returns the Suppressed field value if set, zero value otherwise. +func (o *InlineResponse401) GetSuppressed() []InlineResponse400CauseSuppressed { + if o == nil || o.Suppressed == nil { + var ret []InlineResponse400CauseSuppressed + return ret + } + return *o.Suppressed +} + +// GetSuppressedOk returns a tuple with the Suppressed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse401) GetSuppressedOk() (*[]InlineResponse400CauseSuppressed, bool) { + if o == nil || o.Suppressed == nil { + return nil, false + } + return o.Suppressed, true +} + +// HasSuppressed returns a boolean if a field has been set. +func (o *InlineResponse401) HasSuppressed() bool { + if o != nil && o.Suppressed != nil { + return true + } + + return false +} + +// SetSuppressed gets a reference to the given []InlineResponse400CauseSuppressed and assigns it to the Suppressed field. +func (o *InlineResponse401) SetSuppressed(v []InlineResponse400CauseSuppressed) { + o.Suppressed = &v +} + + +func (o InlineResponse401) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Cause != nil { + toSerialize["cause"] = o.Cause + } + + if o.StackTrace != nil { + toSerialize["stackTrace"] = o.StackTrace + } + + if o.Response != nil { + toSerialize["response"] = o.Response + } + + if o.Challenges != nil { + toSerialize["challenges"] = o.Challenges + } + + if o.Message != nil { + toSerialize["message"] = o.Message + } + + if o.LocalizedMessage != nil { + toSerialize["localizedMessage"] = o.LocalizedMessage + } + + if o.Suppressed != nil { + toSerialize["suppressed"] = o.Suppressed + } + + return json.Marshal(toSerialize) +} + +type NullableInlineResponse401 struct { + value *InlineResponse401 + isSet bool +} + +func (v NullableInlineResponse401) Get() *InlineResponse401 { + return v.value +} + +func (v *NullableInlineResponse401) Set(val *InlineResponse401) { + v.value = val + v.isSet = true +} + +func (v NullableInlineResponse401) IsSet() bool { + return v.isSet +} + +func (v *NullableInlineResponse401) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInlineResponse401(val *InlineResponse401) *NullableInlineResponse401 { + return &NullableInlineResponse401{value: val, isSet: true} +} + +func (v NullableInlineResponse401) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInlineResponse401) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_service_account_create_request_data.go b/serviceaccounts/apiv1internal/client/model_service_account_create_request_data.go new file mode 100644 index 00000000..be427ad6 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_service_account_create_request_data.go @@ -0,0 +1,148 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// ServiceAccountCreateRequestData struct for ServiceAccountCreateRequestData +type ServiceAccountCreateRequestData struct { + + Name string `json:"name"` + + Description string `json:"description"` + +} + +// NewServiceAccountCreateRequestData instantiates a new ServiceAccountCreateRequestData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceAccountCreateRequestData(name string, description string) *ServiceAccountCreateRequestData { + this := ServiceAccountCreateRequestData{} + this.Name = name + this.Description = description + return &this +} + +// NewServiceAccountCreateRequestDataWithDefaults instantiates a new ServiceAccountCreateRequestData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceAccountCreateRequestDataWithDefaults() *ServiceAccountCreateRequestData { + this := ServiceAccountCreateRequestData{} + + + + return &this +} + + +// GetName returns the Name field value +func (o *ServiceAccountCreateRequestData) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ServiceAccountCreateRequestData) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ServiceAccountCreateRequestData) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value +func (o *ServiceAccountCreateRequestData) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ServiceAccountCreateRequestData) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ServiceAccountCreateRequestData) SetDescription(v string) { + o.Description = v +} + + +func (o ServiceAccountCreateRequestData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if true { + toSerialize["name"] = o.Name + } + + if true { + toSerialize["description"] = o.Description + } + + return json.Marshal(toSerialize) +} + +type NullableServiceAccountCreateRequestData struct { + value *ServiceAccountCreateRequestData + isSet bool +} + +func (v NullableServiceAccountCreateRequestData) Get() *ServiceAccountCreateRequestData { + return v.value +} + +func (v *NullableServiceAccountCreateRequestData) Set(val *ServiceAccountCreateRequestData) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountCreateRequestData) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountCreateRequestData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountCreateRequestData(val *ServiceAccountCreateRequestData) *NullableServiceAccountCreateRequestData { + return &NullableServiceAccountCreateRequestData{value: val, isSet: true} +} + +func (v NullableServiceAccountCreateRequestData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountCreateRequestData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_service_account_data.go b/serviceaccounts/apiv1internal/client/model_service_account_data.go new file mode 100644 index 00000000..0e1c286d --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_service_account_data.go @@ -0,0 +1,363 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// ServiceAccountData struct for ServiceAccountData +type ServiceAccountData struct { + + Id *string `json:"id,omitempty"` + + ClientId *string `json:"clientId,omitempty"` + + // Provided during creation and resetting of service account credentials. + Secret *string `json:"secret,omitempty"` + + Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + + OwnerId *string `json:"ownerId,omitempty"` + + CreatedAt *int64 `json:"createdAt,omitempty"` + +} + +// NewServiceAccountData instantiates a new ServiceAccountData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceAccountData() *ServiceAccountData { + this := ServiceAccountData{} + return &this +} + +// NewServiceAccountDataWithDefaults instantiates a new ServiceAccountData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceAccountDataWithDefaults() *ServiceAccountData { + this := ServiceAccountData{} + + + + + + + + + return &this +} + + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ServiceAccountData) GetId() string { + if o == nil || o.Id == nil { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ServiceAccountData) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ServiceAccountData) SetId(v string) { + o.Id = &v +} + + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccountData) GetClientId() string { + if o == nil || o.ClientId == nil { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccountData) HasClientId() bool { + if o != nil && o.ClientId != nil { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccountData) SetClientId(v string) { + o.ClientId = &v +} + + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *ServiceAccountData) GetSecret() string { + if o == nil || o.Secret == nil { + var ret string + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetSecretOk() (*string, bool) { + if o == nil || o.Secret == nil { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *ServiceAccountData) HasSecret() bool { + if o != nil && o.Secret != nil { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *ServiceAccountData) SetSecret(v string) { + o.Secret = &v +} + + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceAccountData) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceAccountData) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceAccountData) SetName(v string) { + o.Name = &v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountData) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountData) SetDescription(v string) { + o.Description = &v +} + + +// GetOwnerId returns the OwnerId field value if set, zero value otherwise. +func (o *ServiceAccountData) GetOwnerId() string { + if o == nil || o.OwnerId == nil { + var ret string + return ret + } + return *o.OwnerId +} + +// GetOwnerIdOk returns a tuple with the OwnerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetOwnerIdOk() (*string, bool) { + if o == nil || o.OwnerId == nil { + return nil, false + } + return o.OwnerId, true +} + +// HasOwnerId returns a boolean if a field has been set. +func (o *ServiceAccountData) HasOwnerId() bool { + if o != nil && o.OwnerId != nil { + return true + } + + return false +} + +// SetOwnerId gets a reference to the given string and assigns it to the OwnerId field. +func (o *ServiceAccountData) SetOwnerId(v string) { + o.OwnerId = &v +} + + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceAccountData) GetCreatedAt() int64 { + if o == nil || o.CreatedAt == nil { + var ret int64 + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetCreatedAtOk() (*int64, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceAccountData) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field. +func (o *ServiceAccountData) SetCreatedAt(v int64) { + o.CreatedAt = &v +} + + +func (o ServiceAccountData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Id != nil { + toSerialize["id"] = o.Id + } + + if o.ClientId != nil { + toSerialize["clientId"] = o.ClientId + } + + if o.Secret != nil { + toSerialize["secret"] = o.Secret + } + + if o.Name != nil { + toSerialize["name"] = o.Name + } + + if o.Description != nil { + toSerialize["description"] = o.Description + } + + if o.OwnerId != nil { + toSerialize["ownerId"] = o.OwnerId + } + + if o.CreatedAt != nil { + toSerialize["createdAt"] = o.CreatedAt + } + + return json.Marshal(toSerialize) +} + +type NullableServiceAccountData struct { + value *ServiceAccountData + isSet bool +} + +func (v NullableServiceAccountData) Get() *ServiceAccountData { + return v.value +} + +func (v *NullableServiceAccountData) Set(val *ServiceAccountData) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountData) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountData(val *ServiceAccountData) *NullableServiceAccountData { + return &NullableServiceAccountData{value: val, isSet: true} +} + +func (v NullableServiceAccountData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/model_service_account_request_data.go b/serviceaccounts/apiv1internal/client/model_service_account_request_data.go new file mode 100644 index 00000000..fcae4f8f --- /dev/null +++ b/serviceaccounts/apiv1internal/client/model_service_account_request_data.go @@ -0,0 +1,162 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// ServiceAccountRequestData struct for ServiceAccountRequestData +type ServiceAccountRequestData struct { + + Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + +} + +// NewServiceAccountRequestData instantiates a new ServiceAccountRequestData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceAccountRequestData() *ServiceAccountRequestData { + this := ServiceAccountRequestData{} + return &this +} + +// NewServiceAccountRequestDataWithDefaults instantiates a new ServiceAccountRequestData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceAccountRequestDataWithDefaults() *ServiceAccountRequestData { + this := ServiceAccountRequestData{} + + + + return &this +} + + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceAccountRequestData) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountRequestData) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceAccountRequestData) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceAccountRequestData) SetName(v string) { + o.Name = &v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountRequestData) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountRequestData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountRequestData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountRequestData) SetDescription(v string) { + o.Description = &v +} + + +func (o ServiceAccountRequestData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + + if o.Name != nil { + toSerialize["name"] = o.Name + } + + if o.Description != nil { + toSerialize["description"] = o.Description + } + + return json.Marshal(toSerialize) +} + +type NullableServiceAccountRequestData struct { + value *ServiceAccountRequestData + isSet bool +} + +func (v NullableServiceAccountRequestData) Get() *ServiceAccountRequestData { + return v.value +} + +func (v *NullableServiceAccountRequestData) Set(val *ServiceAccountRequestData) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountRequestData) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountRequestData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountRequestData(val *ServiceAccountRequestData) *NullableServiceAccountRequestData { + return &NullableServiceAccountRequestData{value: val, isSet: true} +} + +func (v NullableServiceAccountRequestData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountRequestData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/serviceaccounts/apiv1internal/client/response.go b/serviceaccounts/apiv1internal/client/response.go new file mode 100644 index 00000000..ee704107 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/response.go @@ -0,0 +1,47 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/serviceaccounts/apiv1internal/client/serviceaccounts_api_mock.go b/serviceaccounts/apiv1internal/client/serviceaccounts_api_mock.go new file mode 100644 index 00000000..b1eb38a0 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/serviceaccounts_api_mock.go @@ -0,0 +1,216 @@ +// Code generated by moq; DO NOT EDIT. +// github.com/matryer/moq + +package serviceaccountsclient + +import ( + _context "context" + _nethttp "net/http" + "sync" +) + +// Ensure, that ServiceaccountsApiMock does implement ServiceaccountsApi. +// If this is not the case, regenerate this file with moq. +var _ ServiceaccountsApi = &ServiceaccountsApiMock{} + +// ServiceaccountsApiMock is a mock implementation of ServiceaccountsApi. +// +// func TestSomethingThatUsesServiceaccountsApi(t *testing.T) { +// +// // make and configure a mocked ServiceaccountsApi +// mockedServiceaccountsApi := &ServiceaccountsApiMock{ +// GetServiceAccountFunc: func(ctx _context.Context, id string) ApiGetServiceAccountRequest { +// panic("mock out the GetServiceAccount method") +// }, +// GetServiceAccountExecuteFunc: func(r ApiGetServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) { +// panic("mock out the GetServiceAccountExecute method") +// }, +// ResetServiceAccountSecretFunc: func(ctx _context.Context, id string) ApiResetServiceAccountSecretRequest { +// panic("mock out the ResetServiceAccountSecret method") +// }, +// ResetServiceAccountSecretExecuteFunc: func(r ApiResetServiceAccountSecretRequest) (ServiceAccountData, *_nethttp.Response, error) { +// panic("mock out the ResetServiceAccountSecretExecute method") +// }, +// } +// +// // use mockedServiceaccountsApi in code that requires ServiceaccountsApi +// // and then make assertions. +// +// } +type ServiceaccountsApiMock struct { + // GetServiceAccountFunc mocks the GetServiceAccount method. + GetServiceAccountFunc func(ctx _context.Context, id string) ApiGetServiceAccountRequest + + // GetServiceAccountExecuteFunc mocks the GetServiceAccountExecute method. + GetServiceAccountExecuteFunc func(r ApiGetServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) + + // ResetServiceAccountSecretFunc mocks the ResetServiceAccountSecret method. + ResetServiceAccountSecretFunc func(ctx _context.Context, id string) ApiResetServiceAccountSecretRequest + + // ResetServiceAccountSecretExecuteFunc mocks the ResetServiceAccountSecretExecute method. + ResetServiceAccountSecretExecuteFunc func(r ApiResetServiceAccountSecretRequest) (ServiceAccountData, *_nethttp.Response, error) + + // calls tracks calls to the methods. + calls struct { + // GetServiceAccount holds details about calls to the GetServiceAccount method. + GetServiceAccount []struct { + // Ctx is the ctx argument value. + Ctx _context.Context + // ID is the id argument value. + ID string + } + // GetServiceAccountExecute holds details about calls to the GetServiceAccountExecute method. + GetServiceAccountExecute []struct { + // R is the r argument value. + R ApiGetServiceAccountRequest + } + // ResetServiceAccountSecret holds details about calls to the ResetServiceAccountSecret method. + ResetServiceAccountSecret []struct { + // Ctx is the ctx argument value. + Ctx _context.Context + // ID is the id argument value. + ID string + } + // ResetServiceAccountSecretExecute holds details about calls to the ResetServiceAccountSecretExecute method. + ResetServiceAccountSecretExecute []struct { + // R is the r argument value. + R ApiResetServiceAccountSecretRequest + } + } + lockGetServiceAccount sync.RWMutex + lockGetServiceAccountExecute sync.RWMutex + lockResetServiceAccountSecret sync.RWMutex + lockResetServiceAccountSecretExecute sync.RWMutex +} + +// GetServiceAccount calls GetServiceAccountFunc. +func (mock *ServiceaccountsApiMock) GetServiceAccount(ctx _context.Context, id string) ApiGetServiceAccountRequest { + if mock.GetServiceAccountFunc == nil { + panic("ServiceaccountsApiMock.GetServiceAccountFunc: method is nil but ServiceaccountsApi.GetServiceAccount was just called") + } + callInfo := struct { + Ctx _context.Context + ID string + }{ + Ctx: ctx, + ID: id, + } + mock.lockGetServiceAccount.Lock() + mock.calls.GetServiceAccount = append(mock.calls.GetServiceAccount, callInfo) + mock.lockGetServiceAccount.Unlock() + return mock.GetServiceAccountFunc(ctx, id) +} + +// GetServiceAccountCalls gets all the calls that were made to GetServiceAccount. +// Check the length with: +// len(mockedServiceaccountsApi.GetServiceAccountCalls()) +func (mock *ServiceaccountsApiMock) GetServiceAccountCalls() []struct { + Ctx _context.Context + ID string +} { + var calls []struct { + Ctx _context.Context + ID string + } + mock.lockGetServiceAccount.RLock() + calls = mock.calls.GetServiceAccount + mock.lockGetServiceAccount.RUnlock() + return calls +} + +// GetServiceAccountExecute calls GetServiceAccountExecuteFunc. +func (mock *ServiceaccountsApiMock) GetServiceAccountExecute(r ApiGetServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) { + if mock.GetServiceAccountExecuteFunc == nil { + panic("ServiceaccountsApiMock.GetServiceAccountExecuteFunc: method is nil but ServiceaccountsApi.GetServiceAccountExecute was just called") + } + callInfo := struct { + R ApiGetServiceAccountRequest + }{ + R: r, + } + mock.lockGetServiceAccountExecute.Lock() + mock.calls.GetServiceAccountExecute = append(mock.calls.GetServiceAccountExecute, callInfo) + mock.lockGetServiceAccountExecute.Unlock() + return mock.GetServiceAccountExecuteFunc(r) +} + +// GetServiceAccountExecuteCalls gets all the calls that were made to GetServiceAccountExecute. +// Check the length with: +// len(mockedServiceaccountsApi.GetServiceAccountExecuteCalls()) +func (mock *ServiceaccountsApiMock) GetServiceAccountExecuteCalls() []struct { + R ApiGetServiceAccountRequest +} { + var calls []struct { + R ApiGetServiceAccountRequest + } + mock.lockGetServiceAccountExecute.RLock() + calls = mock.calls.GetServiceAccountExecute + mock.lockGetServiceAccountExecute.RUnlock() + return calls +} + +// ResetServiceAccountSecret calls ResetServiceAccountSecretFunc. +func (mock *ServiceaccountsApiMock) ResetServiceAccountSecret(ctx _context.Context, id string) ApiResetServiceAccountSecretRequest { + if mock.ResetServiceAccountSecretFunc == nil { + panic("ServiceaccountsApiMock.ResetServiceAccountSecretFunc: method is nil but ServiceaccountsApi.ResetServiceAccountSecret was just called") + } + callInfo := struct { + Ctx _context.Context + ID string + }{ + Ctx: ctx, + ID: id, + } + mock.lockResetServiceAccountSecret.Lock() + mock.calls.ResetServiceAccountSecret = append(mock.calls.ResetServiceAccountSecret, callInfo) + mock.lockResetServiceAccountSecret.Unlock() + return mock.ResetServiceAccountSecretFunc(ctx, id) +} + +// ResetServiceAccountSecretCalls gets all the calls that were made to ResetServiceAccountSecret. +// Check the length with: +// len(mockedServiceaccountsApi.ResetServiceAccountSecretCalls()) +func (mock *ServiceaccountsApiMock) ResetServiceAccountSecretCalls() []struct { + Ctx _context.Context + ID string +} { + var calls []struct { + Ctx _context.Context + ID string + } + mock.lockResetServiceAccountSecret.RLock() + calls = mock.calls.ResetServiceAccountSecret + mock.lockResetServiceAccountSecret.RUnlock() + return calls +} + +// ResetServiceAccountSecretExecute calls ResetServiceAccountSecretExecuteFunc. +func (mock *ServiceaccountsApiMock) ResetServiceAccountSecretExecute(r ApiResetServiceAccountSecretRequest) (ServiceAccountData, *_nethttp.Response, error) { + if mock.ResetServiceAccountSecretExecuteFunc == nil { + panic("ServiceaccountsApiMock.ResetServiceAccountSecretExecuteFunc: method is nil but ServiceaccountsApi.ResetServiceAccountSecretExecute was just called") + } + callInfo := struct { + R ApiResetServiceAccountSecretRequest + }{ + R: r, + } + mock.lockResetServiceAccountSecretExecute.Lock() + mock.calls.ResetServiceAccountSecretExecute = append(mock.calls.ResetServiceAccountSecretExecute, callInfo) + mock.lockResetServiceAccountSecretExecute.Unlock() + return mock.ResetServiceAccountSecretExecuteFunc(r) +} + +// ResetServiceAccountSecretExecuteCalls gets all the calls that were made to ResetServiceAccountSecretExecute. +// Check the length with: +// len(mockedServiceaccountsApi.ResetServiceAccountSecretExecuteCalls()) +func (mock *ServiceaccountsApiMock) ResetServiceAccountSecretExecuteCalls() []struct { + R ApiResetServiceAccountSecretRequest +} { + var calls []struct { + R ApiResetServiceAccountSecretRequest + } + mock.lockResetServiceAccountSecretExecute.RLock() + calls = mock.calls.ResetServiceAccountSecretExecute + mock.lockResetServiceAccountSecretExecute.RUnlock() + return calls +} diff --git a/serviceaccounts/apiv1internal/client/utils.go b/serviceaccounts/apiv1internal/client/utils.go new file mode 100644 index 00000000..f4810b39 --- /dev/null +++ b/serviceaccounts/apiv1internal/client/utils.go @@ -0,0 +1,328 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 1.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +}