diff --git a/pkg/api/escape/assets.go b/pkg/api/escape/assets.go index 55571e5d..a40395bb 100644 --- a/pkg/api/escape/assets.go +++ b/pkg/api/escape/assets.go @@ -55,7 +55,7 @@ func ListAssets(ctx context.Context, next string, filters *ListAssetsFilters) ([ } // GetAsset gets an asset by ID -func GetAsset(ctx context.Context, id string) (*v3.AssetDetailed, error) { +func GetAsset(ctx context.Context, id string) (*v3.GetAsset200Response, error) { client, err := newAPIV3Client() if err != nil { return nil, fmt.Errorf("unable to init client: %w", err) diff --git a/pkg/api/escape/issues.go b/pkg/api/escape/issues.go index 7b171c38..39471c4c 100644 --- a/pkg/api/escape/issues.go +++ b/pkg/api/escape/issues.go @@ -27,7 +27,7 @@ type ListIssuesFilters struct { } // GetIssue gets an issue by ID -func GetIssue(ctx context.Context, issueID string) (*v3.IssueDetailed, error) { +func GetIssue(ctx context.Context, issueID string) (*v3.GetIssue200Response, error) { client, err := newAPIV3Client() if err != nil { return nil, fmt.Errorf("unable to init client: %w", err) diff --git a/pkg/api/escape/locations.go b/pkg/api/escape/locations.go index 9ba3c833..c3189e7d 100644 --- a/pkg/api/escape/locations.go +++ b/pkg/api/escape/locations.go @@ -46,7 +46,7 @@ func ListLocations(ctx context.Context, next string, filters *ListLocationsFilte } // GetLocation gets a location by ID -func GetLocation(ctx context.Context, id string) (*v3.LocationDetailed, error) { +func GetLocation(ctx context.Context, id string) (*v3.CreateLocation200Response, error) { client, err := newAPIV3Client() if err != nil { return nil, fmt.Errorf("unable to init client: %w", err) diff --git a/pkg/api/escape/scan_watch.go b/pkg/api/escape/scan_watch.go index cb31c71d..52c4ba03 100644 --- a/pkg/api/escape/scan_watch.go +++ b/pkg/api/escape/scan_watch.go @@ -15,12 +15,12 @@ const ( ) // WatchScan watches scans status and logs -func WatchScan(ctx context.Context, scanID string) (chan *v3.ScanDetailed1, error) { +func WatchScan(ctx context.Context, scanID string) (chan *v3.StartScan200Response, error) { client, err := newAPIV3Client() if err != nil { return nil, fmt.Errorf("unable to init client: %w", err) } - ch := make(chan *v3.ScanDetailed1) + ch := make(chan *v3.StartScan200Response) go func() { defer close(ch) tries := 0 diff --git a/pkg/api/escape/scans.go b/pkg/api/escape/scans.go index 7f911e1e..3b4b681a 100644 --- a/pkg/api/escape/scans.go +++ b/pkg/api/escape/scans.go @@ -22,7 +22,7 @@ type ListScansFilters struct { } // ListScans lists all scans for an application -func ListScans(ctx context.Context, next string, filters *ListScansFilters) ([]v3.ScanSummarized1, *string, error) { +func ListScans(ctx context.Context, next string, filters *ListScansFilters) ([]v3.ScanSummarized2, *string, error) { client, err := newAPIV3Client() if err != nil { return nil, nil, fmt.Errorf("unable to init client: %w", err) @@ -66,7 +66,7 @@ func ListScans(ctx context.Context, next string, filters *ListScansFilters) ([]v } // GetScan returns a scan by its ID -func GetScan(ctx context.Context, scanID string) (*v3.ScanDetailed1, error) { +func GetScan(ctx context.Context, scanID string) (*v3.StartScan200Response, error) { client, err := newAPIV3Client() if err != nil { return nil, fmt.Errorf("unable to init client: %w", err) @@ -110,7 +110,7 @@ func StartScan( configurationOverride map[string]interface{}, additionalProperties map[string]interface{}, initiator v3.ENUMPROPERTIESDATAITEMSPROPERTIESINITIATORSITEMS, -) (*v3.ScanDetailed1, error) { +) (*v3.StartScan200Response, error) { client, err := newAPIV3Client() if err != nil { return nil, fmt.Errorf("unable to init client: %w", err) diff --git a/pkg/api/escape/tags.go b/pkg/api/escape/tags.go index f3b35ead..591a60ba 100644 --- a/pkg/api/escape/tags.go +++ b/pkg/api/escape/tags.go @@ -22,7 +22,7 @@ func ListTags(ctx context.Context) ([]v3.TagDetail, error) { } // CreateTag creates a tag -func CreateTag(ctx context.Context, name string, color string) (*v3.TagDetail, error) { +func CreateTag(ctx context.Context, name string, color string) (*v3.CreateTag200Response, error) { client, err := newAPIV3Client() if err != nil { return nil, fmt.Errorf("unable to init client: %w", err) diff --git a/pkg/api/v3/api_assets.go b/pkg/api/v3/api_assets.go index 1c606b2c..decd43c0 100644 --- a/pkg/api/v3/api_assets.go +++ b/pkg/api/v3/api_assets.go @@ -22,165 +22,32 @@ import ( // AssetsAPIService AssetsAPI service type AssetsAPIService service -type ApiCreateAssetAKAMAIACCOUNTRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetAKAMAIACCOUNTRequest *CreateAssetAKAMAIACCOUNTRequest -} - -// Body of the request to create an asset -func (r ApiCreateAssetAKAMAIACCOUNTRequest) CreateAssetAKAMAIACCOUNTRequest(createAssetAKAMAIACCOUNTRequest CreateAssetAKAMAIACCOUNTRequest) ApiCreateAssetAKAMAIACCOUNTRequest { - r.createAssetAKAMAIACCOUNTRequest = &createAssetAKAMAIACCOUNTRequest - return r -} - -func (r ApiCreateAssetAKAMAIACCOUNTRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetAKAMAIACCOUNTExecute(r) -} - -/* -CreateAssetAKAMAIACCOUNT Create asset akamai-account - -Create a akamai-account - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetAKAMAIACCOUNTRequest -*/ -func (a *AssetsAPIService) CreateAssetAKAMAIACCOUNT(ctx context.Context) ApiCreateAssetAKAMAIACCOUNTRequest { - return ApiCreateAssetAKAMAIACCOUNTRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetAKAMAIACCOUNTExecute(r ApiCreateAssetAKAMAIACCOUNTRequest) (*AssetDetailed, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetAKAMAIACCOUNT") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/assets/akamai-account" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // 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.createAssetAKAMAIACCOUNTRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiCreateAssetAWSACCOUNTRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetAWSACCOUNTRequest *CreateAssetAWSACCOUNTRequest +type ApiCreateAssetAWSLAMBDARequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetAWSLAMBDARequest *CreateAssetAWSLAMBDARequest } // Body of the request to create an asset -func (r ApiCreateAssetAWSACCOUNTRequest) CreateAssetAWSACCOUNTRequest(createAssetAWSACCOUNTRequest CreateAssetAWSACCOUNTRequest) ApiCreateAssetAWSACCOUNTRequest { - r.createAssetAWSACCOUNTRequest = &createAssetAWSACCOUNTRequest +func (r ApiCreateAssetAWSLAMBDARequest) CreateAssetAWSLAMBDARequest(createAssetAWSLAMBDARequest CreateAssetAWSLAMBDARequest) ApiCreateAssetAWSLAMBDARequest { + r.createAssetAWSLAMBDARequest = &createAssetAWSLAMBDARequest return r } -func (r ApiCreateAssetAWSACCOUNTRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetAWSACCOUNTExecute(r) +func (r ApiCreateAssetAWSLAMBDARequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetAWSLAMBDAExecute(r) } /* -CreateAssetAWSACCOUNT Create asset aws-account +CreateAssetAWSLAMBDA Create asset aws-lambda -Create a aws-account +Create a aws-lambda @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetAWSACCOUNTRequest + @return ApiCreateAssetAWSLAMBDARequest */ -func (a *AssetsAPIService) CreateAssetAWSACCOUNT(ctx context.Context) ApiCreateAssetAWSACCOUNTRequest { - return ApiCreateAssetAWSACCOUNTRequest{ +func (a *AssetsAPIService) CreateAssetAWSLAMBDA(ctx context.Context) ApiCreateAssetAWSLAMBDARequest { + return ApiCreateAssetAWSLAMBDARequest{ ApiService: a, ctx: ctx, } @@ -188,21 +55,21 @@ func (a *AssetsAPIService) CreateAssetAWSACCOUNT(ctx context.Context) ApiCreateA // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetAWSACCOUNTExecute(r ApiCreateAssetAWSACCOUNTRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetAWSLAMBDAExecute(r ApiCreateAssetAWSLAMBDARequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetAWSACCOUNT") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetAWSLAMBDA") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/aws-account" + localVarPath := localBasePath + "/assets/aws-lambda" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -226,7 +93,7 @@ func (a *AssetsAPIService) CreateAssetAWSACCOUNTExecute(r ApiCreateAssetAWSACCOU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetAWSACCOUNTRequest + localVarPostBody = r.createAssetAWSLAMBDARequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -300,7 +167,7 @@ func (r ApiCreateAssetAZURETENANTRequest) CreateAssetAZURETENANTRequest(createAs return r } -func (r ApiCreateAssetAZURETENANTRequest) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiCreateAssetAZURETENANTRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.CreateAssetAZURETENANTExecute(r) } @@ -321,13 +188,13 @@ func (a *AssetsAPIService) CreateAssetAZURETENANT(ctx context.Context) ApiCreate // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetAZURETENANTExecute(r ApiCreateAssetAZURETENANTRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetAZURETENANTExecute(r ApiCreateAssetAZURETENANTRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetAZURETENANT") @@ -421,32 +288,32 @@ func (a *AssetsAPIService) CreateAssetAZURETENANTExecute(r ApiCreateAssetAZURETE return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetCLOUDFLAREACCOUNTRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetCLOUDFLAREACCOUNTRequest *CreateAssetCLOUDFLAREACCOUNTRequest +type ApiCreateAssetBITBUCKETREPOSITORYRequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetBITBUCKETREPOSITORYRequest *CreateAssetBITBUCKETREPOSITORYRequest } // Body of the request to create an asset -func (r ApiCreateAssetCLOUDFLAREACCOUNTRequest) CreateAssetCLOUDFLAREACCOUNTRequest(createAssetCLOUDFLAREACCOUNTRequest CreateAssetCLOUDFLAREACCOUNTRequest) ApiCreateAssetCLOUDFLAREACCOUNTRequest { - r.createAssetCLOUDFLAREACCOUNTRequest = &createAssetCLOUDFLAREACCOUNTRequest +func (r ApiCreateAssetBITBUCKETREPOSITORYRequest) CreateAssetBITBUCKETREPOSITORYRequest(createAssetBITBUCKETREPOSITORYRequest CreateAssetBITBUCKETREPOSITORYRequest) ApiCreateAssetBITBUCKETREPOSITORYRequest { + r.createAssetBITBUCKETREPOSITORYRequest = &createAssetBITBUCKETREPOSITORYRequest return r } -func (r ApiCreateAssetCLOUDFLAREACCOUNTRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetCLOUDFLAREACCOUNTExecute(r) +func (r ApiCreateAssetBITBUCKETREPOSITORYRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetBITBUCKETREPOSITORYExecute(r) } /* -CreateAssetCLOUDFLAREACCOUNT Create asset cloudflare-account +CreateAssetBITBUCKETREPOSITORY Create asset bitbucket-repository -Create a cloudflare-account +Create a bitbucket-repository @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetCLOUDFLAREACCOUNTRequest + @return ApiCreateAssetBITBUCKETREPOSITORYRequest */ -func (a *AssetsAPIService) CreateAssetCLOUDFLAREACCOUNT(ctx context.Context) ApiCreateAssetCLOUDFLAREACCOUNTRequest { - return ApiCreateAssetCLOUDFLAREACCOUNTRequest{ +func (a *AssetsAPIService) CreateAssetBITBUCKETREPOSITORY(ctx context.Context) ApiCreateAssetBITBUCKETREPOSITORYRequest { + return ApiCreateAssetBITBUCKETREPOSITORYRequest{ ApiService: a, ctx: ctx, } @@ -454,21 +321,21 @@ func (a *AssetsAPIService) CreateAssetCLOUDFLAREACCOUNT(ctx context.Context) Api // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetCLOUDFLAREACCOUNTExecute(r ApiCreateAssetCLOUDFLAREACCOUNTRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetBITBUCKETREPOSITORYExecute(r ApiCreateAssetBITBUCKETREPOSITORYRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetCLOUDFLAREACCOUNT") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetBITBUCKETREPOSITORY") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/cloudflare-account" + localVarPath := localBasePath + "/assets/bitbucket-repository" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -492,7 +359,7 @@ func (a *AssetsAPIService) CreateAssetCLOUDFLAREACCOUNTExecute(r ApiCreateAssetC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetCLOUDFLAREACCOUNTRequest + localVarPostBody = r.createAssetBITBUCKETREPOSITORYRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -566,7 +433,7 @@ func (r ApiCreateAssetCODEPROJECTRequest) CreateAssetCODEPROJECTRequest(createAs return r } -func (r ApiCreateAssetCODEPROJECTRequest) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiCreateAssetCODEPROJECTRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.CreateAssetCODEPROJECTExecute(r) } @@ -587,13 +454,13 @@ func (a *AssetsAPIService) CreateAssetCODEPROJECT(ctx context.Context) ApiCreate // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetCODEPROJECTExecute(r ApiCreateAssetCODEPROJECTRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetCODEPROJECTExecute(r ApiCreateAssetCODEPROJECTRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetCODEPROJECT") @@ -688,430 +555,31 @@ func (a *AssetsAPIService) CreateAssetCODEPROJECTExecute(r ApiCreateAssetCODEPRO } type ApiCreateAssetDNSRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetDNSRequest *CreateAssetDNSRequest -} - -// Body of the request to create an asset -func (r ApiCreateAssetDNSRequest) CreateAssetDNSRequest(createAssetDNSRequest CreateAssetDNSRequest) ApiCreateAssetDNSRequest { - r.createAssetDNSRequest = &createAssetDNSRequest - return r -} - -func (r ApiCreateAssetDNSRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetDNSExecute(r) -} - -/* -CreateAssetDNS Create asset dns - -Create a dns - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetDNSRequest -*/ -func (a *AssetsAPIService) CreateAssetDNS(ctx context.Context) ApiCreateAssetDNSRequest { - return ApiCreateAssetDNSRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetDNSExecute(r ApiCreateAssetDNSRequest) (*AssetDetailed, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetDNS") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/assets/dns" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // 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.createAssetDNSRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiCreateAssetGCPPROJECTRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetGCPPROJECTRequest *CreateAssetGCPPROJECTRequest -} - -// Body of the request to create an asset -func (r ApiCreateAssetGCPPROJECTRequest) CreateAssetGCPPROJECTRequest(createAssetGCPPROJECTRequest CreateAssetGCPPROJECTRequest) ApiCreateAssetGCPPROJECTRequest { - r.createAssetGCPPROJECTRequest = &createAssetGCPPROJECTRequest - return r -} - -func (r ApiCreateAssetGCPPROJECTRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetGCPPROJECTExecute(r) -} - -/* -CreateAssetGCPPROJECT Create asset gcp-project - -Create a gcp-project - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGCPPROJECTRequest -*/ -func (a *AssetsAPIService) CreateAssetGCPPROJECT(ctx context.Context) ApiCreateAssetGCPPROJECTRequest { - return ApiCreateAssetGCPPROJECTRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetGCPPROJECTExecute(r ApiCreateAssetGCPPROJECTRequest) (*AssetDetailed, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGCPPROJECT") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/assets/gcp-project" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // 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.createAssetGCPPROJECTRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiCreateAssetGITHUBORGANIZATIONRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetGITHUBORGANIZATIONRequest *CreateAssetGITHUBORGANIZATIONRequest -} - -// Body of the request to create an asset -func (r ApiCreateAssetGITHUBORGANIZATIONRequest) CreateAssetGITHUBORGANIZATIONRequest(createAssetGITHUBORGANIZATIONRequest CreateAssetGITHUBORGANIZATIONRequest) ApiCreateAssetGITHUBORGANIZATIONRequest { - r.createAssetGITHUBORGANIZATIONRequest = &createAssetGITHUBORGANIZATIONRequest - return r -} - -func (r ApiCreateAssetGITHUBORGANIZATIONRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetGITHUBORGANIZATIONExecute(r) -} - -/* -CreateAssetGITHUBORGANIZATION Create asset github-organization - -Create a github-organization - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGITHUBORGANIZATIONRequest -*/ -func (a *AssetsAPIService) CreateAssetGITHUBORGANIZATION(ctx context.Context) ApiCreateAssetGITHUBORGANIZATIONRequest { - return ApiCreateAssetGITHUBORGANIZATIONRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetGITHUBORGANIZATIONExecute(r ApiCreateAssetGITHUBORGANIZATIONRequest) (*AssetDetailed, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITHUBORGANIZATION") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/assets/github-organization" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // 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.createAssetGITHUBORGANIZATIONRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiCreateAssetGITHUBREPOSITORYRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetGITHUBREPOSITORYRequest *CreateAssetGITHUBREPOSITORYRequest + ctx context.Context + ApiService *AssetsAPIService + createAssetDNSRequest *CreateAssetDNSRequest } // Body of the request to create an asset -func (r ApiCreateAssetGITHUBREPOSITORYRequest) CreateAssetGITHUBREPOSITORYRequest(createAssetGITHUBREPOSITORYRequest CreateAssetGITHUBREPOSITORYRequest) ApiCreateAssetGITHUBREPOSITORYRequest { - r.createAssetGITHUBREPOSITORYRequest = &createAssetGITHUBREPOSITORYRequest +func (r ApiCreateAssetDNSRequest) CreateAssetDNSRequest(createAssetDNSRequest CreateAssetDNSRequest) ApiCreateAssetDNSRequest { + r.createAssetDNSRequest = &createAssetDNSRequest return r } -func (r ApiCreateAssetGITHUBREPOSITORYRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetGITHUBREPOSITORYExecute(r) +func (r ApiCreateAssetDNSRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetDNSExecute(r) } /* -CreateAssetGITHUBREPOSITORY Create asset github-repository +CreateAssetDNS Create asset dns -Create a github-repository +Create a dns @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGITHUBREPOSITORYRequest + @return ApiCreateAssetDNSRequest */ -func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORY(ctx context.Context) ApiCreateAssetGITHUBREPOSITORYRequest { - return ApiCreateAssetGITHUBREPOSITORYRequest{ +func (a *AssetsAPIService) CreateAssetDNS(ctx context.Context) ApiCreateAssetDNSRequest { + return ApiCreateAssetDNSRequest{ ApiService: a, ctx: ctx, } @@ -1119,21 +587,21 @@ func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORY(ctx context.Context) ApiC // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORYExecute(r ApiCreateAssetGITHUBREPOSITORYRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetDNSExecute(r ApiCreateAssetDNSRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITHUBREPOSITORY") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetDNS") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/github-repository" + localVarPath := localBasePath + "/assets/dns" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1157,7 +625,7 @@ func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORYExecute(r ApiCreateAssetGI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetGITHUBREPOSITORYRequest + localVarPostBody = r.createAssetDNSRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -1219,32 +687,32 @@ func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORYExecute(r ApiCreateAssetGI return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetGITLABGROUPRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetGITLABGROUPRequest *CreateAssetGITLABGROUPRequest +type ApiCreateAssetGITHUBREPOSITORYRequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetGITHUBREPOSITORYRequest *CreateAssetGITHUBREPOSITORYRequest } // Body of the request to create an asset -func (r ApiCreateAssetGITLABGROUPRequest) CreateAssetGITLABGROUPRequest(createAssetGITLABGROUPRequest CreateAssetGITLABGROUPRequest) ApiCreateAssetGITLABGROUPRequest { - r.createAssetGITLABGROUPRequest = &createAssetGITLABGROUPRequest +func (r ApiCreateAssetGITHUBREPOSITORYRequest) CreateAssetGITHUBREPOSITORYRequest(createAssetGITHUBREPOSITORYRequest CreateAssetGITHUBREPOSITORYRequest) ApiCreateAssetGITHUBREPOSITORYRequest { + r.createAssetGITHUBREPOSITORYRequest = &createAssetGITHUBREPOSITORYRequest return r } -func (r ApiCreateAssetGITLABGROUPRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetGITLABGROUPExecute(r) +func (r ApiCreateAssetGITHUBREPOSITORYRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetGITHUBREPOSITORYExecute(r) } /* -CreateAssetGITLABGROUP Create asset gitlab-group +CreateAssetGITHUBREPOSITORY Create asset github-repository -Create a gitlab-group +Create a github-repository @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGITLABGROUPRequest + @return ApiCreateAssetGITHUBREPOSITORYRequest */ -func (a *AssetsAPIService) CreateAssetGITLABGROUP(ctx context.Context) ApiCreateAssetGITLABGROUPRequest { - return ApiCreateAssetGITLABGROUPRequest{ +func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORY(ctx context.Context) ApiCreateAssetGITHUBREPOSITORYRequest { + return ApiCreateAssetGITHUBREPOSITORYRequest{ ApiService: a, ctx: ctx, } @@ -1252,21 +720,21 @@ func (a *AssetsAPIService) CreateAssetGITLABGROUP(ctx context.Context) ApiCreate // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetGITLABGROUPExecute(r ApiCreateAssetGITLABGROUPRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORYExecute(r ApiCreateAssetGITHUBREPOSITORYRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITLABGROUP") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITHUBREPOSITORY") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/gitlab-group" + localVarPath := localBasePath + "/assets/github-repository" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1290,7 +758,7 @@ func (a *AssetsAPIService) CreateAssetGITLABGROUPExecute(r ApiCreateAssetGITLABG localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetGITLABGROUPRequest + localVarPostBody = r.createAssetGITHUBREPOSITORYRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -1364,7 +832,7 @@ func (r ApiCreateAssetGITLABREPOSITORYRequest) CreateAssetGITLABREPOSITORYReques return r } -func (r ApiCreateAssetGITLABREPOSITORYRequest) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiCreateAssetGITLABREPOSITORYRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.CreateAssetGITLABREPOSITORYExecute(r) } @@ -1385,13 +853,13 @@ func (a *AssetsAPIService) CreateAssetGITLABREPOSITORY(ctx context.Context) ApiC // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetGITLABREPOSITORYExecute(r ApiCreateAssetGITLABREPOSITORYRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetGITLABREPOSITORYExecute(r ApiCreateAssetGITLABREPOSITORYRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITLABREPOSITORY") @@ -1497,7 +965,7 @@ func (r ApiCreateAssetGRAPHQLRequest) CreateAssetGRAPHQLRequest(createAssetGRAPH return r } -func (r ApiCreateAssetGRAPHQLRequest) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiCreateAssetGRAPHQLRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.CreateAssetGRAPHQLExecute(r) } @@ -1518,13 +986,13 @@ func (a *AssetsAPIService) CreateAssetGRAPHQL(ctx context.Context) ApiCreateAsse // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetGRAPHQLExecute(r ApiCreateAssetGRAPHQLRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetGRAPHQLExecute(r ApiCreateAssetGRAPHQLRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGRAPHQL") @@ -1630,7 +1098,7 @@ func (r ApiCreateAssetGRPCRequest) CreateAssetGRPCRequest(createAssetGRPCRequest return r } -func (r ApiCreateAssetGRPCRequest) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiCreateAssetGRPCRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.CreateAssetGRPCExecute(r) } @@ -1651,13 +1119,13 @@ func (a *AssetsAPIService) CreateAssetGRPC(ctx context.Context) ApiCreateAssetGR // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetGRPCExecute(r ApiCreateAssetGRPCRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetGRPCExecute(r ApiCreateAssetGRPCRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGRPC") @@ -1763,7 +1231,7 @@ func (r ApiCreateAssetIPV4Request) CreateAssetIPV4Request(createAssetIPV4Request return r } -func (r ApiCreateAssetIPV4Request) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiCreateAssetIPV4Request) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.CreateAssetIPV4Execute(r) } @@ -1784,13 +1252,13 @@ func (a *AssetsAPIService) CreateAssetIPV4(ctx context.Context) ApiCreateAssetIP // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetIPV4Execute(r ApiCreateAssetIPV4Request) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetIPV4Execute(r ApiCreateAssetIPV4Request) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetIPV4") @@ -1896,7 +1364,7 @@ func (r ApiCreateAssetIPV4RANGERequest) CreateAssetIPV4RANGERequest(createAssetI return r } -func (r ApiCreateAssetIPV4RANGERequest) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiCreateAssetIPV4RANGERequest) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.CreateAssetIPV4RANGEExecute(r) } @@ -1917,13 +1385,13 @@ func (a *AssetsAPIService) CreateAssetIPV4RANGE(ctx context.Context) ApiCreateAs // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetIPV4RANGEExecute(r ApiCreateAssetIPV4RANGERequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetIPV4RANGEExecute(r ApiCreateAssetIPV4RANGERequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetIPV4RANGE") @@ -2029,7 +1497,7 @@ func (r ApiCreateAssetIPV6Request) CreateAssetIPV6Request(createAssetIPV6Request return r } -func (r ApiCreateAssetIPV6Request) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiCreateAssetIPV6Request) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.CreateAssetIPV6Execute(r) } @@ -2050,13 +1518,13 @@ func (a *AssetsAPIService) CreateAssetIPV6(ctx context.Context) ApiCreateAssetIP // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetIPV6Execute(r ApiCreateAssetIPV6Request) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetIPV6Execute(r ApiCreateAssetIPV6Request) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetIPV6") @@ -2150,32 +1618,32 @@ func (a *AssetsAPIService) CreateAssetIPV6Execute(r ApiCreateAssetIPV6Request) ( return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetKUBERNETESCLUSTERRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetKUBERNETESCLUSTERRequest *CreateAssetKUBERNETESCLUSTERRequest +type ApiCreateAssetMCPRequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetMCPRequest *CreateAssetMCPRequest } // Body of the request to create an asset -func (r ApiCreateAssetKUBERNETESCLUSTERRequest) CreateAssetKUBERNETESCLUSTERRequest(createAssetKUBERNETESCLUSTERRequest CreateAssetKUBERNETESCLUSTERRequest) ApiCreateAssetKUBERNETESCLUSTERRequest { - r.createAssetKUBERNETESCLUSTERRequest = &createAssetKUBERNETESCLUSTERRequest +func (r ApiCreateAssetMCPRequest) CreateAssetMCPRequest(createAssetMCPRequest CreateAssetMCPRequest) ApiCreateAssetMCPRequest { + r.createAssetMCPRequest = &createAssetMCPRequest return r } -func (r ApiCreateAssetKUBERNETESCLUSTERRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetKUBERNETESCLUSTERExecute(r) +func (r ApiCreateAssetMCPRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetMCPExecute(r) } /* -CreateAssetKUBERNETESCLUSTER Create asset kubernetes-cluster +CreateAssetMCP Create asset mcp -Create a kubernetes-cluster +Create a mcp @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetKUBERNETESCLUSTERRequest + @return ApiCreateAssetMCPRequest */ -func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTER(ctx context.Context) ApiCreateAssetKUBERNETESCLUSTERRequest { - return ApiCreateAssetKUBERNETESCLUSTERRequest{ +func (a *AssetsAPIService) CreateAssetMCP(ctx context.Context) ApiCreateAssetMCPRequest { + return ApiCreateAssetMCPRequest{ ApiService: a, ctx: ctx, } @@ -2183,21 +1651,21 @@ func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTER(ctx context.Context) Api // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTERExecute(r ApiCreateAssetKUBERNETESCLUSTERRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetMCPExecute(r ApiCreateAssetMCPRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetKUBERNETESCLUSTER") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetMCP") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/kubernetes-cluster" + localVarPath := localBasePath + "/assets/mcp" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2221,7 +1689,7 @@ func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTERExecute(r ApiCreateAssetK localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetKUBERNETESCLUSTERRequest + localVarPostBody = r.createAssetMCPRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2283,32 +1751,32 @@ func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTERExecute(r ApiCreateAssetK return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetMCPRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetMCPRequest *CreateAssetMCPRequest +type ApiCreateAssetPACKAGERequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetPACKAGERequest *CreateAssetPACKAGERequest } // Body of the request to create an asset -func (r ApiCreateAssetMCPRequest) CreateAssetMCPRequest(createAssetMCPRequest CreateAssetMCPRequest) ApiCreateAssetMCPRequest { - r.createAssetMCPRequest = &createAssetMCPRequest +func (r ApiCreateAssetPACKAGERequest) CreateAssetPACKAGERequest(createAssetPACKAGERequest CreateAssetPACKAGERequest) ApiCreateAssetPACKAGERequest { + r.createAssetPACKAGERequest = &createAssetPACKAGERequest return r } -func (r ApiCreateAssetMCPRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetMCPExecute(r) +func (r ApiCreateAssetPACKAGERequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetPACKAGEExecute(r) } /* -CreateAssetMCP Create asset mcp +CreateAssetPACKAGE Create asset package -Create a mcp +Create a package @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetMCPRequest + @return ApiCreateAssetPACKAGERequest */ -func (a *AssetsAPIService) CreateAssetMCP(ctx context.Context) ApiCreateAssetMCPRequest { - return ApiCreateAssetMCPRequest{ +func (a *AssetsAPIService) CreateAssetPACKAGE(ctx context.Context) ApiCreateAssetPACKAGERequest { + return ApiCreateAssetPACKAGERequest{ ApiService: a, ctx: ctx, } @@ -2316,21 +1784,21 @@ func (a *AssetsAPIService) CreateAssetMCP(ctx context.Context) ApiCreateAssetMCP // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetMCPExecute(r ApiCreateAssetMCPRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetPACKAGEExecute(r ApiCreateAssetPACKAGERequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetMCP") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetPACKAGE") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/mcp" + localVarPath := localBasePath + "/assets/package" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2354,7 +1822,7 @@ func (a *AssetsAPIService) CreateAssetMCPExecute(r ApiCreateAssetMCPRequest) (*A localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetMCPRequest + localVarPostBody = r.createAssetPACKAGERequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2416,32 +1884,32 @@ func (a *AssetsAPIService) CreateAssetMCPExecute(r ApiCreateAssetMCPRequest) (*A return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetPOSTMANORGANIZATIONRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetPOSTMANORGANIZATIONRequest *CreateAssetPOSTMANORGANIZATIONRequest +type ApiCreateAssetRESTRequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetRESTRequest *CreateAssetRESTRequest } // Body of the request to create an asset -func (r ApiCreateAssetPOSTMANORGANIZATIONRequest) CreateAssetPOSTMANORGANIZATIONRequest(createAssetPOSTMANORGANIZATIONRequest CreateAssetPOSTMANORGANIZATIONRequest) ApiCreateAssetPOSTMANORGANIZATIONRequest { - r.createAssetPOSTMANORGANIZATIONRequest = &createAssetPOSTMANORGANIZATIONRequest +func (r ApiCreateAssetRESTRequest) CreateAssetRESTRequest(createAssetRESTRequest CreateAssetRESTRequest) ApiCreateAssetRESTRequest { + r.createAssetRESTRequest = &createAssetRESTRequest return r } -func (r ApiCreateAssetPOSTMANORGANIZATIONRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetPOSTMANORGANIZATIONExecute(r) +func (r ApiCreateAssetRESTRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetRESTExecute(r) } /* -CreateAssetPOSTMANORGANIZATION Create asset postman-organization +CreateAssetREST Create asset rest -Create a postman-organization +Create a rest @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetPOSTMANORGANIZATIONRequest + @return ApiCreateAssetRESTRequest */ -func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATION(ctx context.Context) ApiCreateAssetPOSTMANORGANIZATIONRequest { - return ApiCreateAssetPOSTMANORGANIZATIONRequest{ +func (a *AssetsAPIService) CreateAssetREST(ctx context.Context) ApiCreateAssetRESTRequest { + return ApiCreateAssetRESTRequest{ ApiService: a, ctx: ctx, } @@ -2449,21 +1917,21 @@ func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATION(ctx context.Context) A // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATIONExecute(r ApiCreateAssetPOSTMANORGANIZATIONRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetRESTExecute(r ApiCreateAssetRESTRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetPOSTMANORGANIZATION") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetREST") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/postman-organization" + localVarPath := localBasePath + "/assets/rest" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2487,7 +1955,7 @@ func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATIONExecute(r ApiCreateAsse localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetPOSTMANORGANIZATIONRequest + localVarPostBody = r.createAssetRESTRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2549,32 +2017,32 @@ func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATIONExecute(r ApiCreateAsse return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetRESTRequest struct { +type ApiCreateAssetSOAPRequest struct { ctx context.Context ApiService *AssetsAPIService - createAssetRESTRequest *CreateAssetRESTRequest + createAssetSOAPRequest *CreateAssetSOAPRequest } // Body of the request to create an asset -func (r ApiCreateAssetRESTRequest) CreateAssetRESTRequest(createAssetRESTRequest CreateAssetRESTRequest) ApiCreateAssetRESTRequest { - r.createAssetRESTRequest = &createAssetRESTRequest +func (r ApiCreateAssetSOAPRequest) CreateAssetSOAPRequest(createAssetSOAPRequest CreateAssetSOAPRequest) ApiCreateAssetSOAPRequest { + r.createAssetSOAPRequest = &createAssetSOAPRequest return r } -func (r ApiCreateAssetRESTRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetRESTExecute(r) +func (r ApiCreateAssetSOAPRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetSOAPExecute(r) } /* -CreateAssetREST Create asset rest +CreateAssetSOAP Create asset soap -Create a rest +Create a soap @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetRESTRequest + @return ApiCreateAssetSOAPRequest */ -func (a *AssetsAPIService) CreateAssetREST(ctx context.Context) ApiCreateAssetRESTRequest { - return ApiCreateAssetRESTRequest{ +func (a *AssetsAPIService) CreateAssetSOAP(ctx context.Context) ApiCreateAssetSOAPRequest { + return ApiCreateAssetSOAPRequest{ ApiService: a, ctx: ctx, } @@ -2582,21 +2050,21 @@ func (a *AssetsAPIService) CreateAssetREST(ctx context.Context) ApiCreateAssetRE // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetRESTExecute(r ApiCreateAssetRESTRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetSOAPExecute(r ApiCreateAssetSOAPRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetREST") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetSOAP") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/rest" + localVarPath := localBasePath + "/assets/soap" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2620,7 +2088,7 @@ func (a *AssetsAPIService) CreateAssetRESTExecute(r ApiCreateAssetRESTRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetRESTRequest + localVarPostBody = r.createAssetSOAPRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2682,63 +2150,32 @@ func (a *AssetsAPIService) CreateAssetRESTExecute(r ApiCreateAssetRESTRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetSchemaRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetSchemaRequest *CreateAssetSchemaRequest +type ApiCreateAssetSOFTWARERequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetSOFTWARERequest *CreateAssetSOFTWARERequest } -// Body of the request to create a schema asset -func (r ApiCreateAssetSchemaRequest) CreateAssetSchemaRequest(createAssetSchemaRequest CreateAssetSchemaRequest) ApiCreateAssetSchemaRequest { - r.createAssetSchemaRequest = &createAssetSchemaRequest +// Body of the request to create an asset +func (r ApiCreateAssetSOFTWARERequest) CreateAssetSOFTWARERequest(createAssetSOFTWARERequest CreateAssetSOFTWARERequest) ApiCreateAssetSOFTWARERequest { + r.createAssetSOFTWARERequest = &createAssetSOFTWARERequest return r } -func (r ApiCreateAssetSchemaRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetSchemaExecute(r) +func (r ApiCreateAssetSOFTWARERequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetSOFTWAREExecute(r) } /* -CreateAssetSchema Create asset schema - -Create a schema asset. - -The schema data can either be fetched from a URL or uploaded from a file. - -**Fetch example:** -```json - - { - "asset_type": "SCHEMA", - "fetch": { - "url": "https://api.example.com/v1" - } - } +CreateAssetSOFTWARE Create asset software -``` - -**Upload example:** - -The file should first be uploaded to the Escape Platform using the [upload endpoint](/v3/#tag/upload/post/upload/signed-url). - -The upload endpoint returns an `id` that should be used in the `temporaryObjectKey` field. - -```json - - { - "asset_type": "SCHEMA", - "upload": { - "temporaryObjectKey": "00000000-0000-0000-0000-000000000000" - } - } - -``` +Create a software @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetSchemaRequest + @return ApiCreateAssetSOFTWARERequest */ -func (a *AssetsAPIService) CreateAssetSchema(ctx context.Context) ApiCreateAssetSchemaRequest { - return ApiCreateAssetSchemaRequest{ +func (a *AssetsAPIService) CreateAssetSOFTWARE(ctx context.Context) ApiCreateAssetSOFTWARERequest { + return ApiCreateAssetSOFTWARERequest{ ApiService: a, ctx: ctx, } @@ -2746,21 +2183,21 @@ func (a *AssetsAPIService) CreateAssetSchema(ctx context.Context) ApiCreateAsset // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetSchemaExecute(r ApiCreateAssetSchemaRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetSOFTWAREExecute(r ApiCreateAssetSOFTWARERequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetSchema") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetSOFTWARE") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/schema" + localVarPath := localBasePath + "/assets/software" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2784,7 +2221,7 @@ func (a *AssetsAPIService) CreateAssetSchemaExecute(r ApiCreateAssetSchemaReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetSchemaRequest + localVarPostBody = r.createAssetSOFTWARERequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2846,32 +2283,63 @@ func (a *AssetsAPIService) CreateAssetSchemaExecute(r ApiCreateAssetSchemaReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetWEBAPPRequest struct { +type ApiCreateAssetSchemaRequest struct { ctx context.Context ApiService *AssetsAPIService - createAssetWEBAPPRequest *CreateAssetWEBAPPRequest + createAssetSchemaRequest *CreateAssetSchemaRequest } -// Body of the request to create an asset -func (r ApiCreateAssetWEBAPPRequest) CreateAssetWEBAPPRequest(createAssetWEBAPPRequest CreateAssetWEBAPPRequest) ApiCreateAssetWEBAPPRequest { - r.createAssetWEBAPPRequest = &createAssetWEBAPPRequest +// Body of the request to create a schema asset +func (r ApiCreateAssetSchemaRequest) CreateAssetSchemaRequest(createAssetSchemaRequest CreateAssetSchemaRequest) ApiCreateAssetSchemaRequest { + r.createAssetSchemaRequest = &createAssetSchemaRequest return r } -func (r ApiCreateAssetWEBAPPRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetWEBAPPExecute(r) +func (r ApiCreateAssetSchemaRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetSchemaExecute(r) } /* -CreateAssetWEBAPP Create asset webapp +CreateAssetSchema Create asset schema -Create a webapp +Create a schema asset. + +The schema data can either be fetched from a URL or uploaded from a file. + +**Fetch example:** +```json + + { + "asset_type": "SCHEMA", + "fetch": { + "url": "https://api.example.com/v1" + } + } + +``` + +**Upload example:** + +The file should first be uploaded to the Escape Platform using the [upload endpoint](/v3/#tag/upload/post/upload/signed-url). + +The upload endpoint returns an `id` that should be used in the `temporaryObjectKey` field. + +```json + + { + "asset_type": "SCHEMA", + "upload": { + "temporaryObjectKey": "00000000-0000-0000-0000-000000000000" + } + } + +``` @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetWEBAPPRequest + @return ApiCreateAssetSchemaRequest */ -func (a *AssetsAPIService) CreateAssetWEBAPP(ctx context.Context) ApiCreateAssetWEBAPPRequest { - return ApiCreateAssetWEBAPPRequest{ +func (a *AssetsAPIService) CreateAssetSchema(ctx context.Context) ApiCreateAssetSchemaRequest { + return ApiCreateAssetSchemaRequest{ ApiService: a, ctx: ctx, } @@ -2879,21 +2347,21 @@ func (a *AssetsAPIService) CreateAssetWEBAPP(ctx context.Context) ApiCreateAsset // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetWEBAPPExecute(r ApiCreateAssetWEBAPPRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetSchemaExecute(r ApiCreateAssetSchemaRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetWEBAPP") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetSchema") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/webapp" + localVarPath := localBasePath + "/assets/schema" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2917,7 +2385,7 @@ func (a *AssetsAPIService) CreateAssetWEBAPPExecute(r ApiCreateAssetWEBAPPReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetWEBAPPRequest + localVarPostBody = r.createAssetSchemaRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2979,32 +2447,32 @@ func (a *AssetsAPIService) CreateAssetWEBAPPExecute(r ApiCreateAssetWEBAPPReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetWEBSOCKETRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetWEBSOCKETRequest *CreateAssetWEBSOCKETRequest +type ApiCreateAssetWEBAPPRequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetWEBAPPRequest *CreateAssetWEBAPPRequest } // Body of the request to create an asset -func (r ApiCreateAssetWEBSOCKETRequest) CreateAssetWEBSOCKETRequest(createAssetWEBSOCKETRequest CreateAssetWEBSOCKETRequest) ApiCreateAssetWEBSOCKETRequest { - r.createAssetWEBSOCKETRequest = &createAssetWEBSOCKETRequest +func (r ApiCreateAssetWEBAPPRequest) CreateAssetWEBAPPRequest(createAssetWEBAPPRequest CreateAssetWEBAPPRequest) ApiCreateAssetWEBAPPRequest { + r.createAssetWEBAPPRequest = &createAssetWEBAPPRequest return r } -func (r ApiCreateAssetWEBSOCKETRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetWEBSOCKETExecute(r) +func (r ApiCreateAssetWEBAPPRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetWEBAPPExecute(r) } /* -CreateAssetWEBSOCKET Create asset websocket +CreateAssetWEBAPP Create asset webapp -Create a websocket +Create a webapp @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetWEBSOCKETRequest + @return ApiCreateAssetWEBAPPRequest */ -func (a *AssetsAPIService) CreateAssetWEBSOCKET(ctx context.Context) ApiCreateAssetWEBSOCKETRequest { - return ApiCreateAssetWEBSOCKETRequest{ +func (a *AssetsAPIService) CreateAssetWEBAPP(ctx context.Context) ApiCreateAssetWEBAPPRequest { + return ApiCreateAssetWEBAPPRequest{ ApiService: a, ctx: ctx, } @@ -3012,21 +2480,21 @@ func (a *AssetsAPIService) CreateAssetWEBSOCKET(ctx context.Context) ApiCreateAs // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetWEBSOCKETExecute(r ApiCreateAssetWEBSOCKETRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetWEBAPPExecute(r ApiCreateAssetWEBAPPRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetWEBSOCKET") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetWEBAPP") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/websocket" + localVarPath := localBasePath + "/assets/webapp" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3050,7 +2518,7 @@ func (a *AssetsAPIService) CreateAssetWEBSOCKETExecute(r ApiCreateAssetWEBSOCKET localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetWEBSOCKETRequest + localVarPostBody = r.createAssetWEBAPPRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3112,32 +2580,32 @@ func (a *AssetsAPIService) CreateAssetWEBSOCKETExecute(r ApiCreateAssetWEBSOCKET return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateAssetWIZACCOUNTRequest struct { - ctx context.Context - ApiService *AssetsAPIService - createAssetWIZACCOUNTRequest *CreateAssetWIZACCOUNTRequest +type ApiCreateAssetWEBSOCKETRequest struct { + ctx context.Context + ApiService *AssetsAPIService + createAssetWEBSOCKETRequest *CreateAssetWEBSOCKETRequest } // Body of the request to create an asset -func (r ApiCreateAssetWIZACCOUNTRequest) CreateAssetWIZACCOUNTRequest(createAssetWIZACCOUNTRequest CreateAssetWIZACCOUNTRequest) ApiCreateAssetWIZACCOUNTRequest { - r.createAssetWIZACCOUNTRequest = &createAssetWIZACCOUNTRequest +func (r ApiCreateAssetWEBSOCKETRequest) CreateAssetWEBSOCKETRequest(createAssetWEBSOCKETRequest CreateAssetWEBSOCKETRequest) ApiCreateAssetWEBSOCKETRequest { + r.createAssetWEBSOCKETRequest = &createAssetWEBSOCKETRequest return r } -func (r ApiCreateAssetWIZACCOUNTRequest) Execute() (*AssetDetailed, *http.Response, error) { - return r.ApiService.CreateAssetWIZACCOUNTExecute(r) +func (r ApiCreateAssetWEBSOCKETRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { + return r.ApiService.CreateAssetWEBSOCKETExecute(r) } /* -CreateAssetWIZACCOUNT Create asset wiz-account +CreateAssetWEBSOCKET Create asset websocket -Create a wiz-account +Create a websocket @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetWIZACCOUNTRequest + @return ApiCreateAssetWEBSOCKETRequest */ -func (a *AssetsAPIService) CreateAssetWIZACCOUNT(ctx context.Context) ApiCreateAssetWIZACCOUNTRequest { - return ApiCreateAssetWIZACCOUNTRequest{ +func (a *AssetsAPIService) CreateAssetWEBSOCKET(ctx context.Context) ApiCreateAssetWEBSOCKETRequest { + return ApiCreateAssetWEBSOCKETRequest{ ApiService: a, ctx: ctx, } @@ -3145,21 +2613,21 @@ func (a *AssetsAPIService) CreateAssetWIZACCOUNT(ctx context.Context) ApiCreateA // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) CreateAssetWIZACCOUNTExecute(r ApiCreateAssetWIZACCOUNTRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) CreateAssetWEBSOCKETExecute(r ApiCreateAssetWEBSOCKETRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetWIZACCOUNT") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetWEBSOCKET") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/assets/wiz-account" + localVarPath := localBasePath + "/assets/websocket" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3183,7 +2651,7 @@ func (a *AssetsAPIService) CreateAssetWIZACCOUNTExecute(r ApiCreateAssetWIZACCOU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createAssetWIZACCOUNTRequest + localVarPostBody = r.createAssetWEBSOCKETRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3379,7 +2847,7 @@ type ApiGetAssetRequest struct { assetId string } -func (r ApiGetAssetRequest) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiGetAssetRequest) Execute() (*AssetDetailed1, *http.Response, error) { return r.ApiService.GetAssetExecute(r) } @@ -3402,13 +2870,13 @@ func (a *AssetsAPIService) GetAsset(ctx context.Context, assetId string) ApiGetA // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) GetAssetExecute(r ApiGetAssetRequest) (*AssetDetailed, *http.Response, error) { +// @return AssetDetailed1 +func (a *AssetsAPIService) GetAssetExecute(r ApiGetAssetRequest) (*AssetDetailed1, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *AssetDetailed1 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.GetAsset") @@ -3726,7 +3194,7 @@ func (r ApiUpdateAssetRequest) UpdateAssetRequest(updateAssetRequest UpdateAsset return r } -func (r ApiUpdateAssetRequest) Execute() (*AssetDetailed, *http.Response, error) { +func (r ApiUpdateAssetRequest) Execute() (*UpdateAsset200Response, *http.Response, error) { return r.ApiService.UpdateAssetExecute(r) } @@ -3749,13 +3217,13 @@ func (a *AssetsAPIService) UpdateAsset(ctx context.Context, assetId string) ApiU // Execute executes the request // -// @return AssetDetailed -func (a *AssetsAPIService) UpdateAssetExecute(r ApiUpdateAssetRequest) (*AssetDetailed, *http.Response, error) { +// @return UpdateAsset200Response +func (a *AssetsAPIService) UpdateAssetExecute(r ApiUpdateAssetRequest) (*UpdateAsset200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AssetDetailed + localVarReturnValue *UpdateAsset200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.UpdateAsset") diff --git a/pkg/api/v3/api_beta.go b/pkg/api/v3/api_beta.go deleted file mode 100644 index fee32447..00000000 --- a/pkg/api/v3/api_beta.go +++ /dev/null @@ -1,1679 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// BetaAPIService BetaAPI service -type BetaAPIService service - -type ApiCreateProjectRequest struct { - ctx context.Context - ApiService *BetaAPIService - createProjectRequest *CreateProjectRequest -} - -// Body of the request to create a project -func (r ApiCreateProjectRequest) CreateProjectRequest(createProjectRequest CreateProjectRequest) ApiCreateProjectRequest { - r.createProjectRequest = &createProjectRequest - return r -} - -func (r ApiCreateProjectRequest) Execute() (*CreateProject200Response, *http.Response, error) { - return r.ApiService.CreateProjectExecute(r) -} - -/* -CreateProject Create a project - -Create a project for the organization. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateProjectRequest -*/ -func (a *BetaAPIService) CreateProject(ctx context.Context) ApiCreateProjectRequest { - return ApiCreateProjectRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return CreateProject200Response -func (a *BetaAPIService) CreateProjectExecute(r ApiCreateProjectRequest) (*CreateProject200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateProject200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.CreateProject") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/projects" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.createProjectRequest == nil { - return localVarReturnValue, nil, reportError("createProjectRequest 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.createProjectRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiCreateRoleRequest struct { - ctx context.Context - ApiService *BetaAPIService - createRoleRequest *CreateRoleRequest -} - -// Body of the request to create a role -func (r ApiCreateRoleRequest) CreateRoleRequest(createRoleRequest CreateRoleRequest) ApiCreateRoleRequest { - r.createRoleRequest = &createRoleRequest - return r -} - -func (r ApiCreateRoleRequest) Execute() (*CreateRole200Response, *http.Response, error) { - return r.ApiService.CreateRoleExecute(r) -} - -/* -CreateRole Create a role - -Create a role for the organization. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRoleRequest -*/ -func (a *BetaAPIService) CreateRole(ctx context.Context) ApiCreateRoleRequest { - return ApiCreateRoleRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return CreateRole200Response -func (a *BetaAPIService) CreateRoleExecute(r ApiCreateRoleRequest) (*CreateRole200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateRole200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.CreateRole") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.createRoleRequest == nil { - return localVarReturnValue, nil, reportError("createRoleRequest 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.createRoleRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiCreateRoleBindingsRequest struct { - ctx context.Context - ApiService *BetaAPIService - createRoleBindingsRequest *CreateRoleBindingsRequest -} - -// Body of the request to create a role binding -func (r ApiCreateRoleBindingsRequest) CreateRoleBindingsRequest(createRoleBindingsRequest CreateRoleBindingsRequest) ApiCreateRoleBindingsRequest { - r.createRoleBindingsRequest = &createRoleBindingsRequest - return r -} - -func (r ApiCreateRoleBindingsRequest) Execute() ([]CreateRoleBindings200ResponseInner, *http.Response, error) { - return r.ApiService.CreateRoleBindingsExecute(r) -} - -/* -CreateRoleBindings Create role bindings - -Create role bindings. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRoleBindingsRequest -*/ -func (a *BetaAPIService) CreateRoleBindings(ctx context.Context) ApiCreateRoleBindingsRequest { - return ApiCreateRoleBindingsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []CreateRoleBindings200ResponseInner -func (a *BetaAPIService) CreateRoleBindingsExecute(r ApiCreateRoleBindingsRequest) ([]CreateRoleBindings200ResponseInner, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CreateRoleBindings200ResponseInner - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.CreateRoleBindings") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/bindings" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.createRoleBindingsRequest == nil { - return localVarReturnValue, nil, reportError("createRoleBindingsRequest 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.createRoleBindingsRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiDeleteRoleBindingRequest struct { - ctx context.Context - ApiService *BetaAPIService - bindingId string -} - -func (r ApiDeleteRoleBindingRequest) Execute() (*DeleteCustomRule200Response, *http.Response, error) { - return r.ApiService.DeleteRoleBindingExecute(r) -} - -/* -DeleteRoleBinding Delete a role binding - -Delete a role binding. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param bindingId The role binding ID - @return ApiDeleteRoleBindingRequest -*/ -func (a *BetaAPIService) DeleteRoleBinding(ctx context.Context, bindingId string) ApiDeleteRoleBindingRequest { - return ApiDeleteRoleBindingRequest{ - ApiService: a, - ctx: ctx, - bindingId: bindingId, - } -} - -// Execute executes the request -// -// @return DeleteCustomRule200Response -func (a *BetaAPIService) DeleteRoleBindingExecute(r ApiDeleteRoleBindingRequest) (*DeleteCustomRule200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeleteCustomRule200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.DeleteRoleBinding") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/bindings/{bindingId}" - localVarPath = strings.Replace(localVarPath, "{"+"bindingId"+"}", url.PathEscape(parameterValueToString(r.bindingId, "bindingId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiGetProjectRequest struct { - ctx context.Context - ApiService *BetaAPIService - projectId string -} - -func (r ApiGetProjectRequest) Execute() (*CreateProject200Response, *http.Response, error) { - return r.ApiService.GetProjectExecute(r) -} - -/* -GetProject Get a project - -Get a project by ID. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID - @return ApiGetProjectRequest -*/ -func (a *BetaAPIService) GetProject(ctx context.Context, projectId string) ApiGetProjectRequest { - return ApiGetProjectRequest{ - ApiService: a, - ctx: ctx, - projectId: projectId, - } -} - -// Execute executes the request -// -// @return CreateProject200Response -func (a *BetaAPIService) GetProjectExecute(r ApiGetProjectRequest) (*CreateProject200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateProject200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.GetProject") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/projects/{projectId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiGetRoleRequest struct { - ctx context.Context - ApiService *BetaAPIService - roleId string -} - -func (r ApiGetRoleRequest) Execute() (*CreateRole200Response, *http.Response, error) { - return r.ApiService.GetRoleExecute(r) -} - -/* -GetRole Get a role - -Get a role by ID. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId The role ID - @return ApiGetRoleRequest -*/ -func (a *BetaAPIService) GetRole(ctx context.Context, roleId string) ApiGetRoleRequest { - return ApiGetRoleRequest{ - ApiService: a, - ctx: ctx, - roleId: roleId, - } -} - -// Execute executes the request -// -// @return CreateRole200Response -func (a *BetaAPIService) GetRoleExecute(r ApiGetRoleRequest) (*CreateRole200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateRole200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.GetRole") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/{roleId}" - localVarPath = strings.Replace(localVarPath, "{"+"roleId"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiGetUserRequest struct { - ctx context.Context - ApiService *BetaAPIService - userId string -} - -func (r ApiGetUserRequest) Execute() (*GetUser200Response, *http.Response, error) { - return r.ApiService.GetUserExecute(r) -} - -/* -GetUser Get a user - -Get a user by ID. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userId The user ID - @return ApiGetUserRequest -*/ -func (a *BetaAPIService) GetUser(ctx context.Context, userId string) ApiGetUserRequest { - return ApiGetUserRequest{ - ApiService: a, - ctx: ctx, - userId: userId, - } -} - -// Execute executes the request -// -// @return GetUser200Response -func (a *BetaAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUser200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetUser200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.GetUser") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/users/{userId}" - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiInviteUserRequest struct { - ctx context.Context - ApiService *BetaAPIService - inviteUserRequest *InviteUserRequest -} - -// Body of the request to invite users -func (r ApiInviteUserRequest) InviteUserRequest(inviteUserRequest InviteUserRequest) ApiInviteUserRequest { - r.inviteUserRequest = &inviteUserRequest - return r -} - -func (r ApiInviteUserRequest) Execute() ([]ListUsers200Response, *http.Response, error) { - return r.ApiService.InviteUserExecute(r) -} - -/* -InviteUser Invite users - -Invite users to the organization, and give them roles. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiInviteUserRequest -*/ -func (a *BetaAPIService) InviteUser(ctx context.Context) ApiInviteUserRequest { - return ApiInviteUserRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []ListUsers200Response -func (a *BetaAPIService) InviteUserExecute(r ApiInviteUserRequest) ([]ListUsers200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ListUsers200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.InviteUser") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/users/invite" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inviteUserRequest == nil { - return localVarReturnValue, nil, reportError("inviteUserRequest 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.inviteUserRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiListProjectsRequest struct { - ctx context.Context - ApiService *BetaAPIService - cursor *string - size *int - sortType *string - sortDirection *string - search *string -} - -// The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. -func (r ApiListProjectsRequest) Cursor(cursor string) ApiListProjectsRequest { - r.cursor = &cursor - return r -} - -// The number of items to return per page -func (r ApiListProjectsRequest) Size(size int) ApiListProjectsRequest { - r.size = &size - return r -} - -// The type to sort by -func (r ApiListProjectsRequest) SortType(sortType string) ApiListProjectsRequest { - r.sortType = &sortType - return r -} - -// The direction to sort by -func (r ApiListProjectsRequest) SortDirection(sortDirection string) ApiListProjectsRequest { - r.sortDirection = &sortDirection - return r -} - -// Search term to filter projects by name -func (r ApiListProjectsRequest) Search(search string) ApiListProjectsRequest { - r.search = &search - return r -} - -func (r ApiListProjectsRequest) Execute() (*ListProjects200Response, *http.Response, error) { - return r.ApiService.ListProjectsExecute(r) -} - -/* -ListProjects List projects - -List and search projects of the organization. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListProjectsRequest -*/ -func (a *BetaAPIService) ListProjects(ctx context.Context) ApiListProjectsRequest { - return ApiListProjectsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ListProjects200Response -func (a *BetaAPIService) ListProjectsExecute(r ApiListProjectsRequest) (*ListProjects200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListProjects200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.ListProjects") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/projects" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") - } - if r.size != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", r.size, "form", "") - } else { - var defaultValue int = 50 - parameterAddToHeaderOrQuery(localVarQueryParams, "size", defaultValue, "form", "") - r.size = &defaultValue - } - if r.sortType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sortType", r.sortType, "form", "") - } - if r.sortDirection != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sortDirection", r.sortDirection, "form", "") - } else { - var defaultValue string = "asc" - parameterAddToHeaderOrQuery(localVarQueryParams, "sortDirection", defaultValue, "form", "") - r.sortDirection = &defaultValue - } - if r.search != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") - } - // 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 - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 ListProfiles400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiListRolesRequest struct { - ctx context.Context - ApiService *BetaAPIService -} - -func (r ApiListRolesRequest) Execute() (*ListRoles200Response, *http.Response, error) { - return r.ApiService.ListRolesExecute(r) -} - -/* -ListRoles List roles - -List and search roles of the organization. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListRolesRequest -*/ -func (a *BetaAPIService) ListRoles(ctx context.Context) ApiListRolesRequest { - return ApiListRolesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ListRoles200Response -func (a *BetaAPIService) ListRolesExecute(r ApiListRolesRequest) (*ListRoles200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListRoles200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.ListRoles") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiListUsersRequest struct { - ctx context.Context - ApiService *BetaAPIService -} - -func (r ApiListUsersRequest) Execute() (*ListUsers200Response, *http.Response, error) { - return r.ApiService.ListUsersExecute(r) -} - -/* -ListUsers List users - -List and search projects of the organization. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListUsersRequest -*/ -func (a *BetaAPIService) ListUsers(ctx context.Context) ApiListUsersRequest { - return ApiListUsersRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ListUsers200Response -func (a *BetaAPIService) ListUsersExecute(r ApiListUsersRequest) (*ListUsers200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListUsers200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.ListUsers") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/users" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiUpdateProjectRequest struct { - ctx context.Context - ApiService *BetaAPIService - projectId string - updateProjectRequest *UpdateProjectRequest -} - -// Body of the request to update a project -func (r ApiUpdateProjectRequest) UpdateProjectRequest(updateProjectRequest UpdateProjectRequest) ApiUpdateProjectRequest { - r.updateProjectRequest = &updateProjectRequest - return r -} - -func (r ApiUpdateProjectRequest) Execute() (*CreateProject200Response, *http.Response, error) { - return r.ApiService.UpdateProjectExecute(r) -} - -/* -UpdateProject Update a project - -Update a project. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID - @return ApiUpdateProjectRequest -*/ -func (a *BetaAPIService) UpdateProject(ctx context.Context, projectId string) ApiUpdateProjectRequest { - return ApiUpdateProjectRequest{ - ApiService: a, - ctx: ctx, - projectId: projectId, - } -} - -// Execute executes the request -// -// @return CreateProject200Response -func (a *BetaAPIService) UpdateProjectExecute(r ApiUpdateProjectRequest) (*CreateProject200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateProject200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.UpdateProject") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/projects/{projectId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.updateProjectRequest == nil { - return localVarReturnValue, nil, reportError("updateProjectRequest 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.updateProjectRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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 ApiUpdateRoleRequest struct { - ctx context.Context - ApiService *BetaAPIService - roleId string - updateRoleRequest *UpdateRoleRequest -} - -// Body of the request to update a role -func (r ApiUpdateRoleRequest) UpdateRoleRequest(updateRoleRequest UpdateRoleRequest) ApiUpdateRoleRequest { - r.updateRoleRequest = &updateRoleRequest - return r -} - -func (r ApiUpdateRoleRequest) Execute() (*CreateRole200Response, *http.Response, error) { - return r.ApiService.UpdateRoleExecute(r) -} - -/* -UpdateRole Update a role - -Update a role. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId The role ID - @return ApiUpdateRoleRequest -*/ -func (a *BetaAPIService) UpdateRole(ctx context.Context, roleId string) ApiUpdateRoleRequest { - return ApiUpdateRoleRequest{ - ApiService: a, - ctx: ctx, - roleId: roleId, - } -} - -// Execute executes the request -// -// @return CreateRole200Response -func (a *BetaAPIService) UpdateRoleExecute(r ApiUpdateRoleRequest) (*CreateRole200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateRole200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.UpdateRole") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/roles/{roleId}" - localVarPath = strings.Replace(localVarPath, "{"+"roleId"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.updateRoleRequest == nil { - return localVarReturnValue, nil, reportError("updateRoleRequest 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.updateRoleRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - 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/pkg/api/v3/api_events.go b/pkg/api/v3/api_events.go index 0858d1c7..02dab2da 100644 --- a/pkg/api/v3/api_events.go +++ b/pkg/api/v3/api_events.go @@ -28,7 +28,7 @@ type ApiGetEventRequest struct { eventId string } -func (r ApiGetEventRequest) Execute() (*EventDetailed, *http.Response, error) { +func (r ApiGetEventRequest) Execute() (*GetEvent200Response, *http.Response, error) { return r.ApiService.GetEventExecute(r) } @@ -51,13 +51,13 @@ func (a *EventsAPIService) GetEvent(ctx context.Context, eventId string) ApiGetE // Execute executes the request // -// @return EventDetailed -func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*EventDetailed, *http.Response, error) { +// @return GetEvent200Response +func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*GetEvent200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *EventDetailed + localVarReturnValue *GetEvent200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsAPIService.GetEvent") diff --git a/pkg/api/v3/api_integrations.go b/pkg/api/v3/api_integrations.go index de16c6f6..b8b14dfe 100644 --- a/pkg/api/v3/api_integrations.go +++ b/pkg/api/v3/api_integrations.go @@ -155,138 +155,6 @@ func (a *IntegrationsAPIService) CreateakamaiIntegrationExecute(r ApiCreateakama return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreateapigeeIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - createapigeeIntegrationRequest *CreateapigeeIntegrationRequest -} - -func (r ApiCreateapigeeIntegrationRequest) CreateapigeeIntegrationRequest(createapigeeIntegrationRequest CreateapigeeIntegrationRequest) ApiCreateapigeeIntegrationRequest { - r.createapigeeIntegrationRequest = &createapigeeIntegrationRequest - return r -} - -func (r ApiCreateapigeeIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { - return r.ApiService.CreateapigeeIntegrationExecute(r) -} - -/* -CreateapigeeIntegration Create Apigee integrations. - -Create a Apigee integration. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateapigeeIntegrationRequest -*/ -func (a *IntegrationsAPIService) CreateapigeeIntegration(ctx context.Context) ApiCreateapigeeIntegrationRequest { - return ApiCreateapigeeIntegrationRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return CreateapigeeIntegration200Response -func (a *IntegrationsAPIService) CreateapigeeIntegrationExecute(r ApiCreateapigeeIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreateapigeeIntegration") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/integrations/apigee" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // 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.createapigeeIntegrationRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiCreateawsIntegrationRequest struct { ctx context.Context ApiService *IntegrationsAPIService @@ -551,31 +419,31 @@ func (a *IntegrationsAPIService) CreateazureIntegrationExecute(r ApiCreateazureI return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCreatebitbucketRepoIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - createbitbucketRepoIntegrationRequest *CreatebitbucketRepoIntegrationRequest +type ApiCreatebitbucketIntegrationRequest struct { + ctx context.Context + ApiService *IntegrationsAPIService + createbitbucketIntegrationRequest *CreatebitbucketIntegrationRequest } -func (r ApiCreatebitbucketRepoIntegrationRequest) CreatebitbucketRepoIntegrationRequest(createbitbucketRepoIntegrationRequest CreatebitbucketRepoIntegrationRequest) ApiCreatebitbucketRepoIntegrationRequest { - r.createbitbucketRepoIntegrationRequest = &createbitbucketRepoIntegrationRequest +func (r ApiCreatebitbucketIntegrationRequest) CreatebitbucketIntegrationRequest(createbitbucketIntegrationRequest CreatebitbucketIntegrationRequest) ApiCreatebitbucketIntegrationRequest { + r.createbitbucketIntegrationRequest = &createbitbucketIntegrationRequest return r } -func (r ApiCreatebitbucketRepoIntegrationRequest) Execute() (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { - return r.ApiService.CreatebitbucketRepoIntegrationExecute(r) +func (r ApiCreatebitbucketIntegrationRequest) Execute() (*CreatebitbucketIntegration200Response, *http.Response, error) { + return r.ApiService.CreatebitbucketIntegrationExecute(r) } /* -CreatebitbucketRepoIntegration Create Bitbucket Repo integrations. +CreatebitbucketIntegration Create Bitbucket integrations. -Create a Bitbucket Repo integration. +Create a Bitbucket integration. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatebitbucketRepoIntegrationRequest + @return ApiCreatebitbucketIntegrationRequest */ -func (a *IntegrationsAPIService) CreatebitbucketRepoIntegration(ctx context.Context) ApiCreatebitbucketRepoIntegrationRequest { - return ApiCreatebitbucketRepoIntegrationRequest{ +func (a *IntegrationsAPIService) CreatebitbucketIntegration(ctx context.Context) ApiCreatebitbucketIntegrationRequest { + return ApiCreatebitbucketIntegrationRequest{ ApiService: a, ctx: ctx, } @@ -583,21 +451,21 @@ func (a *IntegrationsAPIService) CreatebitbucketRepoIntegration(ctx context.Cont // Execute executes the request // -// @return CreatebitbucketRepoIntegration200Response -func (a *IntegrationsAPIService) CreatebitbucketRepoIntegrationExecute(r ApiCreatebitbucketRepoIntegrationRequest) (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { +// @return CreatebitbucketIntegration200Response +func (a *IntegrationsAPIService) CreatebitbucketIntegrationExecute(r ApiCreatebitbucketIntegrationRequest) (*CreatebitbucketIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreatebitbucketRepoIntegration200Response + localVarReturnValue *CreatebitbucketIntegration200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatebitbucketRepoIntegration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatebitbucketIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/integrations/bitbucket-repo" + localVarPath := localBasePath + "/integrations/bitbucket" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -621,7 +489,7 @@ func (a *IntegrationsAPIService) CreatebitbucketRepoIntegrationExecute(r ApiCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createbitbucketRepoIntegrationRequest + localVarPostBody = r.createbitbucketIntegrationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -948,17 +816,17 @@ func (a *IntegrationsAPIService) CreatecustomIntegrationExecute(r ApiCreatecusto } type ApiCreategcpIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - createapigeeIntegrationRequest *CreateapigeeIntegrationRequest + ctx context.Context + ApiService *IntegrationsAPIService + creategcpIntegrationRequest *CreategcpIntegrationRequest } -func (r ApiCreategcpIntegrationRequest) CreateapigeeIntegrationRequest(createapigeeIntegrationRequest CreateapigeeIntegrationRequest) ApiCreategcpIntegrationRequest { - r.createapigeeIntegrationRequest = &createapigeeIntegrationRequest +func (r ApiCreategcpIntegrationRequest) CreategcpIntegrationRequest(creategcpIntegrationRequest CreategcpIntegrationRequest) ApiCreategcpIntegrationRequest { + r.creategcpIntegrationRequest = &creategcpIntegrationRequest return r } -func (r ApiCreategcpIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { +func (r ApiCreategcpIntegrationRequest) Execute() (*CreategcpIntegration200Response, *http.Response, error) { return r.ApiService.CreategcpIntegrationExecute(r) } @@ -979,13 +847,13 @@ func (a *IntegrationsAPIService) CreategcpIntegration(ctx context.Context) ApiCr // Execute executes the request // -// @return CreateapigeeIntegration200Response -func (a *IntegrationsAPIService) CreategcpIntegrationExecute(r ApiCreategcpIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { +// @return CreategcpIntegration200Response +func (a *IntegrationsAPIService) CreategcpIntegrationExecute(r ApiCreategcpIntegrationRequest) (*CreategcpIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarReturnValue *CreategcpIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreategcpIntegration") @@ -1017,7 +885,7 @@ func (a *IntegrationsAPIService) CreategcpIntegrationExecute(r ApiCreategcpInteg localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createapigeeIntegrationRequest + localVarPostBody = r.creategcpIntegrationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -1999,134 +1867,6 @@ func (a *IntegrationsAPIService) DeleteakamaiIntegrationExecute(r ApiDeleteakama return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeleteapigeeIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string -} - -func (r ApiDeleteapigeeIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { - return r.ApiService.DeleteapigeeIntegrationExecute(r) -} - -/* -DeleteapigeeIntegration Delete Apigee integration. - -Update a Apigee integration. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeleteapigeeIntegrationRequest -*/ -func (a *IntegrationsAPIService) DeleteapigeeIntegration(ctx context.Context, id string) ApiDeleteapigeeIntegrationRequest { - return ApiDeleteapigeeIntegrationRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CreateapigeeIntegration200Response -func (a *IntegrationsAPIService) DeleteapigeeIntegrationExecute(r ApiDeleteapigeeIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeleteapigeeIntegration") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/integrations/apigee/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiDeleteawsIntegrationRequest struct { ctx context.Context ApiService *IntegrationsAPIService @@ -2383,27 +2123,27 @@ func (a *IntegrationsAPIService) DeleteazureIntegrationExecute(r ApiDeleteazureI return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeletebitbucketRepoIntegrationRequest struct { +type ApiDeletebitbucketIntegrationRequest struct { ctx context.Context ApiService *IntegrationsAPIService id string } -func (r ApiDeletebitbucketRepoIntegrationRequest) Execute() (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { - return r.ApiService.DeletebitbucketRepoIntegrationExecute(r) +func (r ApiDeletebitbucketIntegrationRequest) Execute() (*CreatebitbucketIntegration200Response, *http.Response, error) { + return r.ApiService.DeletebitbucketIntegrationExecute(r) } /* -DeletebitbucketRepoIntegration Delete Bitbucket Repo integration. +DeletebitbucketIntegration Delete Bitbucket integration. -Update a Bitbucket Repo integration. +Update a Bitbucket integration. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The workflow ID - @return ApiDeletebitbucketRepoIntegrationRequest + @return ApiDeletebitbucketIntegrationRequest */ -func (a *IntegrationsAPIService) DeletebitbucketRepoIntegration(ctx context.Context, id string) ApiDeletebitbucketRepoIntegrationRequest { - return ApiDeletebitbucketRepoIntegrationRequest{ +func (a *IntegrationsAPIService) DeletebitbucketIntegration(ctx context.Context, id string) ApiDeletebitbucketIntegrationRequest { + return ApiDeletebitbucketIntegrationRequest{ ApiService: a, ctx: ctx, id: id, @@ -2412,21 +2152,21 @@ func (a *IntegrationsAPIService) DeletebitbucketRepoIntegration(ctx context.Cont // Execute executes the request // -// @return CreatebitbucketRepoIntegration200Response -func (a *IntegrationsAPIService) DeletebitbucketRepoIntegrationExecute(r ApiDeletebitbucketRepoIntegrationRequest) (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { +// @return CreatebitbucketIntegration200Response +func (a *IntegrationsAPIService) DeletebitbucketIntegrationExecute(r ApiDeletebitbucketIntegrationRequest) (*CreatebitbucketIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreatebitbucketRepoIntegration200Response + localVarReturnValue *CreatebitbucketIntegration200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletebitbucketRepoIntegration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletebitbucketIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/integrations/bitbucket-repo/{id}" + localVarPath := localBasePath + "/integrations/bitbucket/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -2773,7 +2513,7 @@ type ApiDeletegcpIntegrationRequest struct { id string } -func (r ApiDeletegcpIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { +func (r ApiDeletegcpIntegrationRequest) Execute() (*CreategcpIntegration200Response, *http.Response, error) { return r.ApiService.DeletegcpIntegrationExecute(r) } @@ -2796,13 +2536,13 @@ func (a *IntegrationsAPIService) DeletegcpIntegration(ctx context.Context, id st // Execute executes the request // -// @return CreateapigeeIntegration200Response -func (a *IntegrationsAPIService) DeletegcpIntegrationExecute(r ApiDeletegcpIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { +// @return CreategcpIntegration200Response +func (a *IntegrationsAPIService) DeletegcpIntegrationExecute(r ApiDeletegcpIntegrationRequest) (*CreategcpIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarReturnValue *CreategcpIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletegcpIntegration") @@ -3791,27 +3531,27 @@ func (a *IntegrationsAPIService) GetakamaiIntegrationExecute(r ApiGetakamaiInteg return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetapigeeIntegrationRequest struct { +type ApiGetawsIntegrationRequest struct { ctx context.Context ApiService *IntegrationsAPIService id string } -func (r ApiGetapigeeIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { - return r.ApiService.GetapigeeIntegrationExecute(r) +func (r ApiGetawsIntegrationRequest) Execute() (*CreateawsIntegration200Response, *http.Response, error) { + return r.ApiService.GetawsIntegrationExecute(r) } /* -GetapigeeIntegration Get Apigee integration. +GetawsIntegration Get AWS integration. -Get a Apigee integration. +Get a AWS integration. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The workflow ID - @return ApiGetapigeeIntegrationRequest + @return ApiGetawsIntegrationRequest */ -func (a *IntegrationsAPIService) GetapigeeIntegration(ctx context.Context, id string) ApiGetapigeeIntegrationRequest { - return ApiGetapigeeIntegrationRequest{ +func (a *IntegrationsAPIService) GetawsIntegration(ctx context.Context, id string) ApiGetawsIntegrationRequest { + return ApiGetawsIntegrationRequest{ ApiService: a, ctx: ctx, id: id, @@ -3820,21 +3560,21 @@ func (a *IntegrationsAPIService) GetapigeeIntegration(ctx context.Context, id st // Execute executes the request // -// @return CreateapigeeIntegration200Response -func (a *IntegrationsAPIService) GetapigeeIntegrationExecute(r ApiGetapigeeIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { +// @return CreateawsIntegration200Response +func (a *IntegrationsAPIService) GetawsIntegrationExecute(r ApiGetawsIntegrationRequest) (*CreateawsIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarReturnValue *CreateawsIntegration200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetapigeeIntegration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetawsIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/integrations/apigee/{id}" + localVarPath := localBasePath + "/integrations/aws/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -3919,146 +3659,18 @@ func (a *IntegrationsAPIService) GetapigeeIntegrationExecute(r ApiGetapigeeInteg return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetawsIntegrationRequest struct { +type ApiGetazureIntegrationRequest struct { ctx context.Context ApiService *IntegrationsAPIService id string } -func (r ApiGetawsIntegrationRequest) Execute() (*CreateawsIntegration200Response, *http.Response, error) { - return r.ApiService.GetawsIntegrationExecute(r) +func (r ApiGetazureIntegrationRequest) Execute() (*CreateazureIntegration200Response, *http.Response, error) { + return r.ApiService.GetazureIntegrationExecute(r) } /* -GetawsIntegration Get AWS integration. - -Get a AWS integration. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetawsIntegrationRequest -*/ -func (a *IntegrationsAPIService) GetawsIntegration(ctx context.Context, id string) ApiGetawsIntegrationRequest { - return ApiGetawsIntegrationRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CreateawsIntegration200Response -func (a *IntegrationsAPIService) GetawsIntegrationExecute(r ApiGetawsIntegrationRequest) (*CreateawsIntegration200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateawsIntegration200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetawsIntegration") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/integrations/aws/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiGetazureIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string -} - -func (r ApiGetazureIntegrationRequest) Execute() (*CreateazureIntegration200Response, *http.Response, error) { - return r.ApiService.GetazureIntegrationExecute(r) -} - -/* -GetazureIntegration Get Azure integration. +GetazureIntegration Get Azure integration. Get a Azure integration. @@ -4175,27 +3787,27 @@ func (a *IntegrationsAPIService) GetazureIntegrationExecute(r ApiGetazureIntegra return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetbitbucketRepoIntegrationRequest struct { +type ApiGetbitbucketIntegrationRequest struct { ctx context.Context ApiService *IntegrationsAPIService id string } -func (r ApiGetbitbucketRepoIntegrationRequest) Execute() (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { - return r.ApiService.GetbitbucketRepoIntegrationExecute(r) +func (r ApiGetbitbucketIntegrationRequest) Execute() (*CreatebitbucketIntegration200Response, *http.Response, error) { + return r.ApiService.GetbitbucketIntegrationExecute(r) } /* -GetbitbucketRepoIntegration Get Bitbucket Repo integration. +GetbitbucketIntegration Get Bitbucket integration. -Get a Bitbucket Repo integration. +Get a Bitbucket integration. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The workflow ID - @return ApiGetbitbucketRepoIntegrationRequest + @return ApiGetbitbucketIntegrationRequest */ -func (a *IntegrationsAPIService) GetbitbucketRepoIntegration(ctx context.Context, id string) ApiGetbitbucketRepoIntegrationRequest { - return ApiGetbitbucketRepoIntegrationRequest{ +func (a *IntegrationsAPIService) GetbitbucketIntegration(ctx context.Context, id string) ApiGetbitbucketIntegrationRequest { + return ApiGetbitbucketIntegrationRequest{ ApiService: a, ctx: ctx, id: id, @@ -4204,21 +3816,21 @@ func (a *IntegrationsAPIService) GetbitbucketRepoIntegration(ctx context.Context // Execute executes the request // -// @return CreatebitbucketRepoIntegration200Response -func (a *IntegrationsAPIService) GetbitbucketRepoIntegrationExecute(r ApiGetbitbucketRepoIntegrationRequest) (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { +// @return CreatebitbucketIntegration200Response +func (a *IntegrationsAPIService) GetbitbucketIntegrationExecute(r ApiGetbitbucketIntegrationRequest) (*CreatebitbucketIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreatebitbucketRepoIntegration200Response + localVarReturnValue *CreatebitbucketIntegration200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetbitbucketRepoIntegration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetbitbucketIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/integrations/bitbucket-repo/{id}" + localVarPath := localBasePath + "/integrations/bitbucket/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -4565,7 +4177,7 @@ type ApiGetgcpIntegrationRequest struct { id string } -func (r ApiGetgcpIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { +func (r ApiGetgcpIntegrationRequest) Execute() (*CreategcpIntegration200Response, *http.Response, error) { return r.ApiService.GetgcpIntegrationExecute(r) } @@ -4588,13 +4200,13 @@ func (a *IntegrationsAPIService) GetgcpIntegration(ctx context.Context, id strin // Execute executes the request // -// @return CreateapigeeIntegration200Response -func (a *IntegrationsAPIService) GetgcpIntegrationExecute(r ApiGetgcpIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { +// @return CreategcpIntegration200Response +func (a *IntegrationsAPIService) GetgcpIntegrationExecute(r ApiGetgcpIntegrationRequest) (*CreategcpIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarReturnValue *CreategcpIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetgcpIntegration") @@ -5305,306 +4917,78 @@ func (a *IntegrationsAPIService) GetpostmanIntegrationExecute(r ApiGetpostmanInt if localVarHTTPResponse.StatusCode == 400 { var v UpdateProfile400Response err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiGetwizIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string -} - -func (r ApiGetwizIntegrationRequest) Execute() (*CreatewizIntegration200Response, *http.Response, error) { - return r.ApiService.GetwizIntegrationExecute(r) -} - -/* -GetwizIntegration Get Wiz integration. - -Get a Wiz integration. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetwizIntegrationRequest -*/ -func (a *IntegrationsAPIService) GetwizIntegration(ctx context.Context, id string) ApiGetwizIntegrationRequest { - return ApiGetwizIntegrationRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CreatewizIntegration200Response -func (a *IntegrationsAPIService) GetwizIntegrationExecute(r ApiGetwizIntegrationRequest) (*CreatewizIntegration200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatewizIntegration200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetwizIntegration") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/integrations/wiz/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiListakamaiIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string - sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string -} - -// The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. -func (r ApiListakamaiIntegrationsRequest) Cursor(cursor string) ApiListakamaiIntegrationsRequest { - r.cursor = &cursor - return r -} - -// The number of items to return per page -func (r ApiListakamaiIntegrationsRequest) Size(size int) ApiListakamaiIntegrationsRequest { - r.size = &size - return r -} - -// The type to sort by -func (r ApiListakamaiIntegrationsRequest) SortType(sortType string) ApiListakamaiIntegrationsRequest { - r.sortType = &sortType - return r -} - -// The direction to sort by -func (r ApiListakamaiIntegrationsRequest) SortDirection(sortDirection string) ApiListakamaiIntegrationsRequest { - r.sortDirection = &sortDirection - return r -} - -// Filter by project IDs -func (r ApiListakamaiIntegrationsRequest) ProjectIds(projectIds []string) ApiListakamaiIntegrationsRequest { - r.projectIds = &projectIds - return r -} + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Filter by integration IDs -func (r ApiListakamaiIntegrationsRequest) Ids(ids string) ApiListakamaiIntegrationsRequest { - r.ids = &ids - return r -} + 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 + } -// Filter by location IDs -func (r ApiListakamaiIntegrationsRequest) LocationIds(locationIds []string) ApiListakamaiIntegrationsRequest { - r.locationIds = &locationIds - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Search term to filter integrations by name or description -func (r ApiListakamaiIntegrationsRequest) Search(search string) ApiListakamaiIntegrationsRequest { - r.search = &search - return r +type ApiGetwizIntegrationRequest struct { + ctx context.Context + ApiService *IntegrationsAPIService + id string } -func (r ApiListakamaiIntegrationsRequest) Execute() (*ListIntegrations200Response, *http.Response, error) { - return r.ApiService.ListakamaiIntegrationsExecute(r) +func (r ApiGetwizIntegrationRequest) Execute() (*CreatewizIntegration200Response, *http.Response, error) { + return r.ApiService.GetwizIntegrationExecute(r) } /* -ListakamaiIntegrations List Akamai integrations. +GetwizIntegration Get Wiz integration. -List and search Akamai integrations of the organization. +Get a Wiz integration. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListakamaiIntegrationsRequest + @param id The workflow ID + @return ApiGetwizIntegrationRequest */ -func (a *IntegrationsAPIService) ListakamaiIntegrations(ctx context.Context) ApiListakamaiIntegrationsRequest { - return ApiListakamaiIntegrationsRequest{ +func (a *IntegrationsAPIService) GetwizIntegration(ctx context.Context, id string) ApiGetwizIntegrationRequest { + return ApiGetwizIntegrationRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request // -// @return ListIntegrations200Response -func (a *IntegrationsAPIService) ListakamaiIntegrationsExecute(r ApiListakamaiIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { +// @return CreatewizIntegration200Response +func (a *IntegrationsAPIService) GetwizIntegrationExecute(r ApiGetwizIntegrationRequest) (*CreatewizIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarReturnValue *CreatewizIntegration200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListakamaiIntegrations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetwizIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/integrations/akamai" + localVarPath := localBasePath + "/integrations/wiz/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") - } - if r.size != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", r.size, "form", "") - } else { - var defaultValue int = 50 - parameterAddToHeaderOrQuery(localVarQueryParams, "size", defaultValue, "form", "") - r.size = &defaultValue - } - if r.sortType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sortType", r.sortType, "form", "") - } - if r.sortDirection != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sortDirection", r.sortDirection, "form", "") - } else { - var defaultValue string = "asc" - parameterAddToHeaderOrQuery(localVarQueryParams, "sortDirection", defaultValue, "form", "") - r.sortDirection = &defaultValue - } - if r.projectIds != nil { - t := *r.projectIds - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "projectIds", s.Index(i).Interface(), "form", "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "projectIds", t, "form", "multi") - } - } - if r.ids != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ids", r.ids, "form", "") - } - if r.locationIds != nil { - t := *r.locationIds - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "locationIds", s.Index(i).Interface(), "form", "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "locationIds", t, "form", "multi") - } - } - if r.search != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5659,7 +5043,7 @@ func (a *IntegrationsAPIService) ListakamaiIntegrationsExecute(r ApiListakamaiIn error: localVarHTTPResponse.Status, } if localVarHTTPResponse.StatusCode == 400 { - var v ListProfiles400Response + var v UpdateProfile400Response err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -5683,7 +5067,7 @@ func (a *IntegrationsAPIService) ListakamaiIntegrationsExecute(r ApiListakamaiIn return localVarReturnValue, localVarHTTPResponse, nil } -type ApiListapigeeIntegrationsRequest struct { +type ApiListakamaiIntegrationsRequest struct { ctx context.Context ApiService *IntegrationsAPIService cursor *string @@ -5697,67 +5081,67 @@ type ApiListapigeeIntegrationsRequest struct { } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. -func (r ApiListapigeeIntegrationsRequest) Cursor(cursor string) ApiListapigeeIntegrationsRequest { +func (r ApiListakamaiIntegrationsRequest) Cursor(cursor string) ApiListakamaiIntegrationsRequest { r.cursor = &cursor return r } // The number of items to return per page -func (r ApiListapigeeIntegrationsRequest) Size(size int) ApiListapigeeIntegrationsRequest { +func (r ApiListakamaiIntegrationsRequest) Size(size int) ApiListakamaiIntegrationsRequest { r.size = &size return r } // The type to sort by -func (r ApiListapigeeIntegrationsRequest) SortType(sortType string) ApiListapigeeIntegrationsRequest { +func (r ApiListakamaiIntegrationsRequest) SortType(sortType string) ApiListakamaiIntegrationsRequest { r.sortType = &sortType return r } // The direction to sort by -func (r ApiListapigeeIntegrationsRequest) SortDirection(sortDirection string) ApiListapigeeIntegrationsRequest { +func (r ApiListakamaiIntegrationsRequest) SortDirection(sortDirection string) ApiListakamaiIntegrationsRequest { r.sortDirection = &sortDirection return r } // Filter by project IDs -func (r ApiListapigeeIntegrationsRequest) ProjectIds(projectIds []string) ApiListapigeeIntegrationsRequest { +func (r ApiListakamaiIntegrationsRequest) ProjectIds(projectIds []string) ApiListakamaiIntegrationsRequest { r.projectIds = &projectIds return r } // Filter by integration IDs -func (r ApiListapigeeIntegrationsRequest) Ids(ids string) ApiListapigeeIntegrationsRequest { +func (r ApiListakamaiIntegrationsRequest) Ids(ids string) ApiListakamaiIntegrationsRequest { r.ids = &ids return r } // Filter by location IDs -func (r ApiListapigeeIntegrationsRequest) LocationIds(locationIds []string) ApiListapigeeIntegrationsRequest { +func (r ApiListakamaiIntegrationsRequest) LocationIds(locationIds []string) ApiListakamaiIntegrationsRequest { r.locationIds = &locationIds return r } // Search term to filter integrations by name or description -func (r ApiListapigeeIntegrationsRequest) Search(search string) ApiListapigeeIntegrationsRequest { +func (r ApiListakamaiIntegrationsRequest) Search(search string) ApiListakamaiIntegrationsRequest { r.search = &search return r } -func (r ApiListapigeeIntegrationsRequest) Execute() (*ListIntegrations200Response, *http.Response, error) { - return r.ApiService.ListapigeeIntegrationsExecute(r) +func (r ApiListakamaiIntegrationsRequest) Execute() (*ListIntegrations200Response, *http.Response, error) { + return r.ApiService.ListakamaiIntegrationsExecute(r) } /* -ListapigeeIntegrations List Apigee integrations. +ListakamaiIntegrations List Akamai integrations. -List and search Apigee integrations of the organization. +List and search Akamai integrations of the organization. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListapigeeIntegrationsRequest + @return ApiListakamaiIntegrationsRequest */ -func (a *IntegrationsAPIService) ListapigeeIntegrations(ctx context.Context) ApiListapigeeIntegrationsRequest { - return ApiListapigeeIntegrationsRequest{ +func (a *IntegrationsAPIService) ListakamaiIntegrations(ctx context.Context) ApiListakamaiIntegrationsRequest { + return ApiListakamaiIntegrationsRequest{ ApiService: a, ctx: ctx, } @@ -5766,7 +5150,7 @@ func (a *IntegrationsAPIService) ListapigeeIntegrations(ctx context.Context) Api // Execute executes the request // // @return ListIntegrations200Response -func (a *IntegrationsAPIService) ListapigeeIntegrationsExecute(r ApiListapigeeIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { +func (a *IntegrationsAPIService) ListakamaiIntegrationsExecute(r ApiListakamaiIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -5774,12 +5158,12 @@ func (a *IntegrationsAPIService) ListapigeeIntegrationsExecute(r ApiListapigeeIn localVarReturnValue *ListIntegrations200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListapigeeIntegrations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListakamaiIntegrations") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/integrations/apigee" + localVarPath := localBasePath + "/integrations/akamai" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6367,7 +5751,7 @@ func (a *IntegrationsAPIService) ListazureIntegrationsExecute(r ApiListazureInte return localVarReturnValue, localVarHTTPResponse, nil } -type ApiListbitbucketRepoIntegrationsRequest struct { +type ApiListbitbucketIntegrationsRequest struct { ctx context.Context ApiService *IntegrationsAPIService cursor *string @@ -6381,67 +5765,67 @@ type ApiListbitbucketRepoIntegrationsRequest struct { } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. -func (r ApiListbitbucketRepoIntegrationsRequest) Cursor(cursor string) ApiListbitbucketRepoIntegrationsRequest { +func (r ApiListbitbucketIntegrationsRequest) Cursor(cursor string) ApiListbitbucketIntegrationsRequest { r.cursor = &cursor return r } // The number of items to return per page -func (r ApiListbitbucketRepoIntegrationsRequest) Size(size int) ApiListbitbucketRepoIntegrationsRequest { +func (r ApiListbitbucketIntegrationsRequest) Size(size int) ApiListbitbucketIntegrationsRequest { r.size = &size return r } // The type to sort by -func (r ApiListbitbucketRepoIntegrationsRequest) SortType(sortType string) ApiListbitbucketRepoIntegrationsRequest { +func (r ApiListbitbucketIntegrationsRequest) SortType(sortType string) ApiListbitbucketIntegrationsRequest { r.sortType = &sortType return r } // The direction to sort by -func (r ApiListbitbucketRepoIntegrationsRequest) SortDirection(sortDirection string) ApiListbitbucketRepoIntegrationsRequest { +func (r ApiListbitbucketIntegrationsRequest) SortDirection(sortDirection string) ApiListbitbucketIntegrationsRequest { r.sortDirection = &sortDirection return r } // Filter by project IDs -func (r ApiListbitbucketRepoIntegrationsRequest) ProjectIds(projectIds []string) ApiListbitbucketRepoIntegrationsRequest { +func (r ApiListbitbucketIntegrationsRequest) ProjectIds(projectIds []string) ApiListbitbucketIntegrationsRequest { r.projectIds = &projectIds return r } // Filter by integration IDs -func (r ApiListbitbucketRepoIntegrationsRequest) Ids(ids string) ApiListbitbucketRepoIntegrationsRequest { +func (r ApiListbitbucketIntegrationsRequest) Ids(ids string) ApiListbitbucketIntegrationsRequest { r.ids = &ids return r } // Filter by location IDs -func (r ApiListbitbucketRepoIntegrationsRequest) LocationIds(locationIds []string) ApiListbitbucketRepoIntegrationsRequest { +func (r ApiListbitbucketIntegrationsRequest) LocationIds(locationIds []string) ApiListbitbucketIntegrationsRequest { r.locationIds = &locationIds return r } // Search term to filter integrations by name or description -func (r ApiListbitbucketRepoIntegrationsRequest) Search(search string) ApiListbitbucketRepoIntegrationsRequest { +func (r ApiListbitbucketIntegrationsRequest) Search(search string) ApiListbitbucketIntegrationsRequest { r.search = &search return r } -func (r ApiListbitbucketRepoIntegrationsRequest) Execute() (*ListIntegrations200Response, *http.Response, error) { - return r.ApiService.ListbitbucketRepoIntegrationsExecute(r) +func (r ApiListbitbucketIntegrationsRequest) Execute() (*ListIntegrations200Response, *http.Response, error) { + return r.ApiService.ListbitbucketIntegrationsExecute(r) } /* -ListbitbucketRepoIntegrations List Bitbucket Repo integrations. +ListbitbucketIntegrations List Bitbucket integrations. -List and search Bitbucket Repo integrations of the organization. +List and search Bitbucket integrations of the organization. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListbitbucketRepoIntegrationsRequest + @return ApiListbitbucketIntegrationsRequest */ -func (a *IntegrationsAPIService) ListbitbucketRepoIntegrations(ctx context.Context) ApiListbitbucketRepoIntegrationsRequest { - return ApiListbitbucketRepoIntegrationsRequest{ +func (a *IntegrationsAPIService) ListbitbucketIntegrations(ctx context.Context) ApiListbitbucketIntegrationsRequest { + return ApiListbitbucketIntegrationsRequest{ ApiService: a, ctx: ctx, } @@ -6450,7 +5834,7 @@ func (a *IntegrationsAPIService) ListbitbucketRepoIntegrations(ctx context.Conte // Execute executes the request // // @return ListIntegrations200Response -func (a *IntegrationsAPIService) ListbitbucketRepoIntegrationsExecute(r ApiListbitbucketRepoIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { +func (a *IntegrationsAPIService) ListbitbucketIntegrationsExecute(r ApiListbitbucketIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -6458,12 +5842,12 @@ func (a *IntegrationsAPIService) ListbitbucketRepoIntegrationsExecute(r ApiListb localVarReturnValue *ListIntegrations200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListbitbucketRepoIntegrations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListbitbucketIntegrations") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/integrations/bitbucket-repo" + localVarPath := localBasePath + "/integrations/bitbucket" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8783,142 +8167,6 @@ func (a *IntegrationsAPIService) UpdateakamaiIntegrationExecute(r ApiUpdateakama return localVarReturnValue, localVarHTTPResponse, nil } -type ApiUpdateapigeeIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string - updateapigeeIntegrationRequest *UpdateapigeeIntegrationRequest -} - -func (r ApiUpdateapigeeIntegrationRequest) UpdateapigeeIntegrationRequest(updateapigeeIntegrationRequest UpdateapigeeIntegrationRequest) ApiUpdateapigeeIntegrationRequest { - r.updateapigeeIntegrationRequest = &updateapigeeIntegrationRequest - return r -} - -func (r ApiUpdateapigeeIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { - return r.ApiService.UpdateapigeeIntegrationExecute(r) -} - -/* -UpdateapigeeIntegration Update Apigee integration. - -Update a Apigee integration. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdateapigeeIntegrationRequest -*/ -func (a *IntegrationsAPIService) UpdateapigeeIntegration(ctx context.Context, id string) ApiUpdateapigeeIntegrationRequest { - return ApiUpdateapigeeIntegrationRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CreateapigeeIntegration200Response -func (a *IntegrationsAPIService) UpdateapigeeIntegrationExecute(r ApiUpdateapigeeIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdateapigeeIntegration") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/integrations/apigee/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // 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.updateapigeeIntegrationRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["apiKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["X-ESCAPE-API-KEY"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.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 UpdateProfile400Response - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - 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 ApiUpdateawsIntegrationRequest struct { ctx context.Context ApiService *IntegrationsAPIService @@ -9191,33 +8439,33 @@ func (a *IntegrationsAPIService) UpdateazureIntegrationExecute(r ApiUpdateazureI return localVarReturnValue, localVarHTTPResponse, nil } -type ApiUpdatebitbucketRepoIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string - updatebitbucketRepoIntegrationRequest *UpdatebitbucketRepoIntegrationRequest +type ApiUpdatebitbucketIntegrationRequest struct { + ctx context.Context + ApiService *IntegrationsAPIService + id string + updatebitbucketIntegrationRequest *UpdatebitbucketIntegrationRequest } -func (r ApiUpdatebitbucketRepoIntegrationRequest) UpdatebitbucketRepoIntegrationRequest(updatebitbucketRepoIntegrationRequest UpdatebitbucketRepoIntegrationRequest) ApiUpdatebitbucketRepoIntegrationRequest { - r.updatebitbucketRepoIntegrationRequest = &updatebitbucketRepoIntegrationRequest +func (r ApiUpdatebitbucketIntegrationRequest) UpdatebitbucketIntegrationRequest(updatebitbucketIntegrationRequest UpdatebitbucketIntegrationRequest) ApiUpdatebitbucketIntegrationRequest { + r.updatebitbucketIntegrationRequest = &updatebitbucketIntegrationRequest return r } -func (r ApiUpdatebitbucketRepoIntegrationRequest) Execute() (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { - return r.ApiService.UpdatebitbucketRepoIntegrationExecute(r) +func (r ApiUpdatebitbucketIntegrationRequest) Execute() (*CreatebitbucketIntegration200Response, *http.Response, error) { + return r.ApiService.UpdatebitbucketIntegrationExecute(r) } /* -UpdatebitbucketRepoIntegration Update Bitbucket Repo integration. +UpdatebitbucketIntegration Update Bitbucket integration. -Update a Bitbucket Repo integration. +Update a Bitbucket integration. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The workflow ID - @return ApiUpdatebitbucketRepoIntegrationRequest + @return ApiUpdatebitbucketIntegrationRequest */ -func (a *IntegrationsAPIService) UpdatebitbucketRepoIntegration(ctx context.Context, id string) ApiUpdatebitbucketRepoIntegrationRequest { - return ApiUpdatebitbucketRepoIntegrationRequest{ +func (a *IntegrationsAPIService) UpdatebitbucketIntegration(ctx context.Context, id string) ApiUpdatebitbucketIntegrationRequest { + return ApiUpdatebitbucketIntegrationRequest{ ApiService: a, ctx: ctx, id: id, @@ -9226,21 +8474,21 @@ func (a *IntegrationsAPIService) UpdatebitbucketRepoIntegration(ctx context.Cont // Execute executes the request // -// @return CreatebitbucketRepoIntegration200Response -func (a *IntegrationsAPIService) UpdatebitbucketRepoIntegrationExecute(r ApiUpdatebitbucketRepoIntegrationRequest) (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { +// @return CreatebitbucketIntegration200Response +func (a *IntegrationsAPIService) UpdatebitbucketIntegrationExecute(r ApiUpdatebitbucketIntegrationRequest) (*CreatebitbucketIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreatebitbucketRepoIntegration200Response + localVarReturnValue *CreatebitbucketIntegration200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatebitbucketRepoIntegration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatebitbucketIntegration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/integrations/bitbucket-repo/{id}" + localVarPath := localBasePath + "/integrations/bitbucket/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -9265,7 +8513,7 @@ func (a *IntegrationsAPIService) UpdatebitbucketRepoIntegrationExecute(r ApiUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.updatebitbucketRepoIntegrationRequest + localVarPostBody = r.updatebitbucketIntegrationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9600,18 +8848,18 @@ func (a *IntegrationsAPIService) UpdatecustomIntegrationExecute(r ApiUpdatecusto } type ApiUpdategcpIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string - updateapigeeIntegrationRequest *UpdateapigeeIntegrationRequest + ctx context.Context + ApiService *IntegrationsAPIService + id string + updategcpIntegrationRequest *UpdategcpIntegrationRequest } -func (r ApiUpdategcpIntegrationRequest) UpdateapigeeIntegrationRequest(updateapigeeIntegrationRequest UpdateapigeeIntegrationRequest) ApiUpdategcpIntegrationRequest { - r.updateapigeeIntegrationRequest = &updateapigeeIntegrationRequest +func (r ApiUpdategcpIntegrationRequest) UpdategcpIntegrationRequest(updategcpIntegrationRequest UpdategcpIntegrationRequest) ApiUpdategcpIntegrationRequest { + r.updategcpIntegrationRequest = &updategcpIntegrationRequest return r } -func (r ApiUpdategcpIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { +func (r ApiUpdategcpIntegrationRequest) Execute() (*CreategcpIntegration200Response, *http.Response, error) { return r.ApiService.UpdategcpIntegrationExecute(r) } @@ -9634,13 +8882,13 @@ func (a *IntegrationsAPIService) UpdategcpIntegration(ctx context.Context, id st // Execute executes the request // -// @return CreateapigeeIntegration200Response -func (a *IntegrationsAPIService) UpdategcpIntegrationExecute(r ApiUpdategcpIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { +// @return CreategcpIntegration200Response +func (a *IntegrationsAPIService) UpdategcpIntegrationExecute(r ApiUpdategcpIntegrationRequest) (*CreategcpIntegration200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarReturnValue *CreategcpIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdategcpIntegration") @@ -9673,7 +8921,7 @@ func (a *IntegrationsAPIService) UpdategcpIntegrationExecute(r ApiUpdategcpInteg localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.updateapigeeIntegrationRequest + localVarPostBody = r.updategcpIntegrationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { diff --git a/pkg/api/v3/api_issues.go b/pkg/api/v3/api_issues.go index 35f06853..47a354f8 100644 --- a/pkg/api/v3/api_issues.go +++ b/pkg/api/v3/api_issues.go @@ -29,7 +29,7 @@ type ApiGetIssueRequest struct { issueId string } -func (r ApiGetIssueRequest) Execute() (*IssueDetailed, *http.Response, error) { +func (r ApiGetIssueRequest) Execute() (*GetIssue200Response, *http.Response, error) { return r.ApiService.GetIssueExecute(r) } @@ -52,13 +52,13 @@ func (a *IssuesAPIService) GetIssue(ctx context.Context, issueId string) ApiGetI // Execute executes the request // -// @return IssueDetailed -func (a *IssuesAPIService) GetIssueExecute(r ApiGetIssueRequest) (*IssueDetailed, *http.Response, error) { +// @return GetIssue200Response +func (a *IssuesAPIService) GetIssueExecute(r ApiGetIssueRequest) (*GetIssue200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *IssueDetailed + localVarReturnValue *GetIssue200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IssuesAPIService.GetIssue") diff --git a/pkg/api/v3/api_locations.go b/pkg/api/v3/api_locations.go index 7d9287ec..6f270dca 100644 --- a/pkg/api/v3/api_locations.go +++ b/pkg/api/v3/api_locations.go @@ -33,7 +33,7 @@ func (r ApiCreateLocationRequest) CreateLocationRequest(createLocationRequest Cr return r } -func (r ApiCreateLocationRequest) Execute() (*LocationDetailed, *http.Response, error) { +func (r ApiCreateLocationRequest) Execute() (*CreateLocation200Response, *http.Response, error) { return r.ApiService.CreateLocationExecute(r) } @@ -54,13 +54,13 @@ func (a *LocationsAPIService) CreateLocation(ctx context.Context) ApiCreateLocat // Execute executes the request // -// @return LocationDetailed -func (a *LocationsAPIService) CreateLocationExecute(r ApiCreateLocationRequest) (*LocationDetailed, *http.Response, error) { +// @return CreateLocation200Response +func (a *LocationsAPIService) CreateLocationExecute(r ApiCreateLocationRequest) (*CreateLocation200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *LocationDetailed + localVarReturnValue *CreateLocation200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocationsAPIService.CreateLocation") @@ -299,7 +299,7 @@ type ApiGetLocationRequest struct { locationId string } -func (r ApiGetLocationRequest) Execute() (*LocationDetailed, *http.Response, error) { +func (r ApiGetLocationRequest) Execute() (*CreateLocation200Response, *http.Response, error) { return r.ApiService.GetLocationExecute(r) } @@ -322,13 +322,13 @@ func (a *LocationsAPIService) GetLocation(ctx context.Context, locationId string // Execute executes the request // -// @return LocationDetailed -func (a *LocationsAPIService) GetLocationExecute(r ApiGetLocationRequest) (*LocationDetailed, *http.Response, error) { +// @return CreateLocation200Response +func (a *LocationsAPIService) GetLocationExecute(r ApiGetLocationRequest) (*CreateLocation200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *LocationDetailed + localVarReturnValue *CreateLocation200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocationsAPIService.GetLocation") @@ -632,7 +632,7 @@ func (r ApiUpdateLocationRequest) UpdateLocationRequest(updateLocationRequest Up return r } -func (r ApiUpdateLocationRequest) Execute() (*LocationDetailed, *http.Response, error) { +func (r ApiUpdateLocationRequest) Execute() (*CreateLocation200Response, *http.Response, error) { return r.ApiService.UpdateLocationExecute(r) } @@ -655,13 +655,13 @@ func (a *LocationsAPIService) UpdateLocation(ctx context.Context, locationId str // Execute executes the request // -// @return LocationDetailed -func (a *LocationsAPIService) UpdateLocationExecute(r ApiUpdateLocationRequest) (*LocationDetailed, *http.Response, error) { +// @return CreateLocation200Response +func (a *LocationsAPIService) UpdateLocationExecute(r ApiUpdateLocationRequest) (*CreateLocation200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *LocationDetailed + localVarReturnValue *CreateLocation200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocationsAPIService.UpdateLocation") diff --git a/pkg/api/v3/api_profiles.go b/pkg/api/v3/api_profiles.go index 20be7ee3..989228ec 100644 --- a/pkg/api/v3/api_profiles.go +++ b/pkg/api/v3/api_profiles.go @@ -35,7 +35,7 @@ func (r ApiCreateDastGraphqlProfileRequest) CreateDastGraphqlProfileRequest(crea return r } -func (r ApiCreateDastGraphqlProfileRequest) Execute() (*ProfileDetailed, *http.Response, error) { +func (r ApiCreateDastGraphqlProfileRequest) Execute() (*GetProfile200Response, *http.Response, error) { return r.ApiService.CreateDastGraphqlProfileExecute(r) } @@ -56,13 +56,13 @@ func (a *ProfilesAPIService) CreateDastGraphqlProfile(ctx context.Context) ApiCr // Execute executes the request // -// @return ProfileDetailed -func (a *ProfilesAPIService) CreateDastGraphqlProfileExecute(r ApiCreateDastGraphqlProfileRequest) (*ProfileDetailed, *http.Response, error) { +// @return GetProfile200Response +func (a *ProfilesAPIService) CreateDastGraphqlProfileExecute(r ApiCreateDastGraphqlProfileRequest) (*GetProfile200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarReturnValue *GetProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreateDastGraphqlProfile") @@ -168,7 +168,7 @@ func (r ApiCreateDastRestProfileRequest) CreateDastRestProfileRequest(createDast return r } -func (r ApiCreateDastRestProfileRequest) Execute() (*ProfileDetailed, *http.Response, error) { +func (r ApiCreateDastRestProfileRequest) Execute() (*GetProfile200Response, *http.Response, error) { return r.ApiService.CreateDastRestProfileExecute(r) } @@ -189,13 +189,13 @@ func (a *ProfilesAPIService) CreateDastRestProfile(ctx context.Context) ApiCreat // Execute executes the request // -// @return ProfileDetailed -func (a *ProfilesAPIService) CreateDastRestProfileExecute(r ApiCreateDastRestProfileRequest) (*ProfileDetailed, *http.Response, error) { +// @return GetProfile200Response +func (a *ProfilesAPIService) CreateDastRestProfileExecute(r ApiCreateDastRestProfileRequest) (*GetProfile200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarReturnValue *GetProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreateDastRestProfile") @@ -301,7 +301,7 @@ func (r ApiCreateDastWebAppProfileRequest) CreateDastWebAppProfileRequest(create return r } -func (r ApiCreateDastWebAppProfileRequest) Execute() (*ProfileDetailed, *http.Response, error) { +func (r ApiCreateDastWebAppProfileRequest) Execute() (*GetProfile200Response, *http.Response, error) { return r.ApiService.CreateDastWebAppProfileExecute(r) } @@ -322,13 +322,13 @@ func (a *ProfilesAPIService) CreateDastWebAppProfile(ctx context.Context) ApiCre // Execute executes the request // -// @return ProfileDetailed -func (a *ProfilesAPIService) CreateDastWebAppProfileExecute(r ApiCreateDastWebAppProfileRequest) (*ProfileDetailed, *http.Response, error) { +// @return GetProfile200Response +func (a *ProfilesAPIService) CreateDastWebAppProfileExecute(r ApiCreateDastWebAppProfileRequest) (*GetProfile200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarReturnValue *GetProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreateDastWebAppProfile") @@ -422,6 +422,405 @@ func (a *ProfilesAPIService) CreateDastWebAppProfileExecute(r ApiCreateDastWebAp return localVarReturnValue, localVarHTTPResponse, nil } +type ApiCreatePentestGraphqlProfileRequest struct { + ctx context.Context + ApiService *ProfilesAPIService + createPentestRestProfileRequest *CreatePentestRestProfileRequest +} + +// Body of the request to create an asset +func (r ApiCreatePentestGraphqlProfileRequest) CreatePentestRestProfileRequest(createPentestRestProfileRequest CreatePentestRestProfileRequest) ApiCreatePentestGraphqlProfileRequest { + r.createPentestRestProfileRequest = &createPentestRestProfileRequest + return r +} + +func (r ApiCreatePentestGraphqlProfileRequest) Execute() (*GetProfile200Response, *http.Response, error) { + return r.ApiService.CreatePentestGraphqlProfileExecute(r) +} + +/* +CreatePentestGraphqlProfile Create an Automated Pentest GraphQL profile + +Create an Automated Pentest GraphQL profile + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePentestGraphqlProfileRequest +*/ +func (a *ProfilesAPIService) CreatePentestGraphqlProfile(ctx context.Context) ApiCreatePentestGraphqlProfileRequest { + return ApiCreatePentestGraphqlProfileRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetProfile200Response +func (a *ProfilesAPIService) CreatePentestGraphqlProfileExecute(r ApiCreatePentestGraphqlProfileRequest) (*GetProfile200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetProfile200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreatePentestGraphqlProfile") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/profiles/ai-pentesting/graphql" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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.createPentestRestProfileRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.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 UpdateProfile400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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 ApiCreatePentestRestProfileRequest struct { + ctx context.Context + ApiService *ProfilesAPIService + createPentestRestProfileRequest *CreatePentestRestProfileRequest +} + +// Body of the request to create an asset +func (r ApiCreatePentestRestProfileRequest) CreatePentestRestProfileRequest(createPentestRestProfileRequest CreatePentestRestProfileRequest) ApiCreatePentestRestProfileRequest { + r.createPentestRestProfileRequest = &createPentestRestProfileRequest + return r +} + +func (r ApiCreatePentestRestProfileRequest) Execute() (*GetProfile200Response, *http.Response, error) { + return r.ApiService.CreatePentestRestProfileExecute(r) +} + +/* +CreatePentestRestProfile Create an Automated Pentest REST profile + +Create an Automated Pentest REST profile + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePentestRestProfileRequest +*/ +func (a *ProfilesAPIService) CreatePentestRestProfile(ctx context.Context) ApiCreatePentestRestProfileRequest { + return ApiCreatePentestRestProfileRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetProfile200Response +func (a *ProfilesAPIService) CreatePentestRestProfileExecute(r ApiCreatePentestRestProfileRequest) (*GetProfile200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetProfile200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreatePentestRestProfile") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/profiles/ai-pentesting/rest" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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.createPentestRestProfileRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.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 UpdateProfile400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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 ApiCreatePentestWebappProfileRequest struct { + ctx context.Context + ApiService *ProfilesAPIService + createDastWebAppProfileRequest *CreateDastWebAppProfileRequest +} + +// Body of the request to create an asset +func (r ApiCreatePentestWebappProfileRequest) CreateDastWebAppProfileRequest(createDastWebAppProfileRequest CreateDastWebAppProfileRequest) ApiCreatePentestWebappProfileRequest { + r.createDastWebAppProfileRequest = &createDastWebAppProfileRequest + return r +} + +func (r ApiCreatePentestWebappProfileRequest) Execute() (*GetProfile200Response, *http.Response, error) { + return r.ApiService.CreatePentestWebappProfileExecute(r) +} + +/* +CreatePentestWebappProfile Create an Automated Pentest WebApp profile + +Create an Automated Pentest WebApp profile + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePentestWebappProfileRequest +*/ +func (a *ProfilesAPIService) CreatePentestWebappProfile(ctx context.Context) ApiCreatePentestWebappProfileRequest { + return ApiCreatePentestWebappProfileRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetProfile200Response +func (a *ProfilesAPIService) CreatePentestWebappProfileExecute(r ApiCreatePentestWebappProfileRequest) (*GetProfile200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetProfile200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreatePentestWebappProfile") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/profiles/ai-pentesting/webapp" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // 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.createDastWebAppProfileRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.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 UpdateProfile400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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 ApiDeleteProfileRequest struct { ctx context.Context ApiService *ProfilesAPIService @@ -556,7 +955,7 @@ type ApiGetProfileRequest struct { profileId string } -func (r ApiGetProfileRequest) Execute() (*ProfileDetailed, *http.Response, error) { +func (r ApiGetProfileRequest) Execute() (*GetProfile200Response, *http.Response, error) { return r.ApiService.GetProfileExecute(r) } @@ -579,13 +978,13 @@ func (a *ProfilesAPIService) GetProfile(ctx context.Context, profileId string) A // Execute executes the request // -// @return ProfileDetailed -func (a *ProfilesAPIService) GetProfileExecute(r ApiGetProfileRequest) (*ProfileDetailed, *http.Response, error) { +// @return GetProfile200Response +func (a *ProfilesAPIService) GetProfileExecute(r ApiGetProfileRequest) (*GetProfile200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarReturnValue *GetProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.GetProfile") @@ -1243,7 +1642,7 @@ func (r ApiUpdateProfileRequest) UpdateProfileRequest(updateProfileRequest Updat return r } -func (r ApiUpdateProfileRequest) Execute() (*ProfileDetailed, *http.Response, error) { +func (r ApiUpdateProfileRequest) Execute() (*GetProfile200Response, *http.Response, error) { return r.ApiService.UpdateProfileExecute(r) } @@ -1266,13 +1665,13 @@ func (a *ProfilesAPIService) UpdateProfile(ctx context.Context, profileId string // Execute executes the request // -// @return ProfileDetailed -func (a *ProfilesAPIService) UpdateProfileExecute(r ApiUpdateProfileRequest) (*ProfileDetailed, *http.Response, error) { +// @return GetProfile200Response +func (a *ProfilesAPIService) UpdateProfileExecute(r ApiUpdateProfileRequest) (*GetProfile200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarReturnValue *GetProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.UpdateProfile") @@ -1539,20 +1938,23 @@ func (r ApiUpdateProfileSchemaRequest) UpdateProfileSchemaRequest(updateProfileS return r } -func (r ApiUpdateProfileSchemaRequest) Execute() (*ProfileDetailed, *http.Response, error) { +func (r ApiUpdateProfileSchemaRequest) Execute() (*GetProfile200Response, *http.Response, error) { return r.ApiService.UpdateProfileSchemaExecute(r) } /* UpdateProfileSchema Update profile schema -Update the schema used to scan this profile. +*This route is deprecated, use the [PUT /profiles/:profileId](#tag/profiles/PUT/profiles/:profileId) endpoint instead.* +Update the schema used to scan this profile. The schema ID is the ID of a schema uploaded to the Escape Platform using the [POST /assets/schema](#tag/assets/POST/assets/schema) endpoint. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param profileId The profile ID @return ApiUpdateProfileSchemaRequest + +Deprecated */ func (a *ProfilesAPIService) UpdateProfileSchema(ctx context.Context, profileId string) ApiUpdateProfileSchemaRequest { return ApiUpdateProfileSchemaRequest{ @@ -1564,13 +1966,15 @@ func (a *ProfilesAPIService) UpdateProfileSchema(ctx context.Context, profileId // Execute executes the request // -// @return ProfileDetailed -func (a *ProfilesAPIService) UpdateProfileSchemaExecute(r ApiUpdateProfileSchemaRequest) (*ProfileDetailed, *http.Response, error) { +// @return GetProfile200Response +// +// Deprecated +func (a *ProfilesAPIService) UpdateProfileSchemaExecute(r ApiUpdateProfileSchemaRequest) (*GetProfile200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarReturnValue *GetProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.UpdateProfileSchema") diff --git a/pkg/api/v3/api_projects.go b/pkg/api/v3/api_projects.go new file mode 100644 index 00000000..f447eccd --- /dev/null +++ b/pkg/api/v3/api_projects.go @@ -0,0 +1,579 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ProjectsAPIService ProjectsAPI service +type ProjectsAPIService service + +type ApiCreateProjectRequest struct { + ctx context.Context + ApiService *ProjectsAPIService + createProjectRequest *CreateProjectRequest +} + +// Body of the request to create a project +func (r ApiCreateProjectRequest) CreateProjectRequest(createProjectRequest CreateProjectRequest) ApiCreateProjectRequest { + r.createProjectRequest = &createProjectRequest + return r +} + +func (r ApiCreateProjectRequest) Execute() (*CreateProject200Response, *http.Response, error) { + return r.ApiService.CreateProjectExecute(r) +} + +/* +CreateProject Create a project + +Create a project for the organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateProjectRequest +*/ +func (a *ProjectsAPIService) CreateProject(ctx context.Context) ApiCreateProjectRequest { + return ApiCreateProjectRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CreateProject200Response +func (a *ProjectsAPIService) CreateProjectExecute(r ApiCreateProjectRequest) (*CreateProject200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateProject200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectsAPIService.CreateProject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/projects" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createProjectRequest == nil { + return localVarReturnValue, nil, reportError("createProjectRequest 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.createProjectRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiGetProjectRequest struct { + ctx context.Context + ApiService *ProjectsAPIService + projectId string +} + +func (r ApiGetProjectRequest) Execute() (*CreateProject200Response, *http.Response, error) { + return r.ApiService.GetProjectExecute(r) +} + +/* +GetProject Get a project + +Get a project by ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The project ID + @return ApiGetProjectRequest +*/ +func (a *ProjectsAPIService) GetProject(ctx context.Context, projectId string) ApiGetProjectRequest { + return ApiGetProjectRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CreateProject200Response +func (a *ProjectsAPIService) GetProjectExecute(r ApiGetProjectRequest) (*CreateProject200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateProject200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectsAPIService.GetProject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/projects/{projectId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiListProjectsRequest struct { + ctx context.Context + ApiService *ProjectsAPIService + cursor *string + size *int + sortType *string + sortDirection *string + search *string +} + +// The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. +func (r ApiListProjectsRequest) Cursor(cursor string) ApiListProjectsRequest { + r.cursor = &cursor + return r +} + +// The number of items to return per page +func (r ApiListProjectsRequest) Size(size int) ApiListProjectsRequest { + r.size = &size + return r +} + +// The type to sort by +func (r ApiListProjectsRequest) SortType(sortType string) ApiListProjectsRequest { + r.sortType = &sortType + return r +} + +// The direction to sort by +func (r ApiListProjectsRequest) SortDirection(sortDirection string) ApiListProjectsRequest { + r.sortDirection = &sortDirection + return r +} + +// Search term to filter projects by name +func (r ApiListProjectsRequest) Search(search string) ApiListProjectsRequest { + r.search = &search + return r +} + +func (r ApiListProjectsRequest) Execute() (*ListProjects200Response, *http.Response, error) { + return r.ApiService.ListProjectsExecute(r) +} + +/* +ListProjects List projects + +List and search projects of the organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListProjectsRequest +*/ +func (a *ProjectsAPIService) ListProjects(ctx context.Context) ApiListProjectsRequest { + return ApiListProjectsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ListProjects200Response +func (a *ProjectsAPIService) ListProjectsExecute(r ApiListProjectsRequest) (*ListProjects200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListProjects200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectsAPIService.ListProjects") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/projects" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.size != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "size", r.size, "form", "") + } else { + var defaultValue int = 50 + parameterAddToHeaderOrQuery(localVarQueryParams, "size", defaultValue, "form", "") + r.size = &defaultValue + } + if r.sortType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sortType", r.sortType, "form", "") + } + if r.sortDirection != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sortDirection", r.sortDirection, "form", "") + } else { + var defaultValue string = "asc" + parameterAddToHeaderOrQuery(localVarQueryParams, "sortDirection", defaultValue, "form", "") + r.sortDirection = &defaultValue + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.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 ListProfiles400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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 ApiUpdateProjectRequest struct { + ctx context.Context + ApiService *ProjectsAPIService + projectId string + updateProjectRequest *UpdateProjectRequest +} + +// Body of the request to update a project +func (r ApiUpdateProjectRequest) UpdateProjectRequest(updateProjectRequest UpdateProjectRequest) ApiUpdateProjectRequest { + r.updateProjectRequest = &updateProjectRequest + return r +} + +func (r ApiUpdateProjectRequest) Execute() (*CreateProject200Response, *http.Response, error) { + return r.ApiService.UpdateProjectExecute(r) +} + +/* +UpdateProject Update a project + +Update a project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The project ID + @return ApiUpdateProjectRequest +*/ +func (a *ProjectsAPIService) UpdateProject(ctx context.Context, projectId string) ApiUpdateProjectRequest { + return ApiUpdateProjectRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CreateProject200Response +func (a *ProjectsAPIService) UpdateProjectExecute(r ApiUpdateProjectRequest) (*CreateProject200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateProject200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectsAPIService.UpdateProject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/projects/{projectId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateProjectRequest == nil { + return localVarReturnValue, nil, reportError("updateProjectRequest 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.updateProjectRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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/pkg/api/v3/api_roles.go b/pkg/api/v3/api_roles.go new file mode 100644 index 00000000..6b2b3b61 --- /dev/null +++ b/pkg/api/v3/api_roles.go @@ -0,0 +1,765 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// RolesAPIService RolesAPI service +type RolesAPIService service + +type ApiCreateRoleRequest struct { + ctx context.Context + ApiService *RolesAPIService + createRoleRequest *CreateRoleRequest +} + +// Body of the request to create a role +func (r ApiCreateRoleRequest) CreateRoleRequest(createRoleRequest CreateRoleRequest) ApiCreateRoleRequest { + r.createRoleRequest = &createRoleRequest + return r +} + +func (r ApiCreateRoleRequest) Execute() (*CreateRole200Response, *http.Response, error) { + return r.ApiService.CreateRoleExecute(r) +} + +/* +CreateRole Create a role + +Create a role for the organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRoleRequest +*/ +func (a *RolesAPIService) CreateRole(ctx context.Context) ApiCreateRoleRequest { + return ApiCreateRoleRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CreateRole200Response +func (a *RolesAPIService) CreateRoleExecute(r ApiCreateRoleRequest) (*CreateRole200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateRole200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.CreateRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createRoleRequest == nil { + return localVarReturnValue, nil, reportError("createRoleRequest 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.createRoleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiCreateRoleBindingsRequest struct { + ctx context.Context + ApiService *RolesAPIService + createRoleBindingsRequest *CreateRoleBindingsRequest +} + +// Body of the request to create a role binding +func (r ApiCreateRoleBindingsRequest) CreateRoleBindingsRequest(createRoleBindingsRequest CreateRoleBindingsRequest) ApiCreateRoleBindingsRequest { + r.createRoleBindingsRequest = &createRoleBindingsRequest + return r +} + +func (r ApiCreateRoleBindingsRequest) Execute() ([]CreateRoleBindings200ResponseInner, *http.Response, error) { + return r.ApiService.CreateRoleBindingsExecute(r) +} + +/* +CreateRoleBindings Create role bindings + +Create role bindings. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRoleBindingsRequest +*/ +func (a *RolesAPIService) CreateRoleBindings(ctx context.Context) ApiCreateRoleBindingsRequest { + return ApiCreateRoleBindingsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CreateRoleBindings200ResponseInner +func (a *RolesAPIService) CreateRoleBindingsExecute(r ApiCreateRoleBindingsRequest) ([]CreateRoleBindings200ResponseInner, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CreateRoleBindings200ResponseInner + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.CreateRoleBindings") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/bindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createRoleBindingsRequest == nil { + return localVarReturnValue, nil, reportError("createRoleBindingsRequest 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.createRoleBindingsRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiDeleteRoleBindingRequest struct { + ctx context.Context + ApiService *RolesAPIService + bindingId string +} + +func (r ApiDeleteRoleBindingRequest) Execute() (*DeleteCustomRule200Response, *http.Response, error) { + return r.ApiService.DeleteRoleBindingExecute(r) +} + +/* +DeleteRoleBinding Delete a role binding + +Delete a role binding. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param bindingId The role binding ID + @return ApiDeleteRoleBindingRequest +*/ +func (a *RolesAPIService) DeleteRoleBinding(ctx context.Context, bindingId string) ApiDeleteRoleBindingRequest { + return ApiDeleteRoleBindingRequest{ + ApiService: a, + ctx: ctx, + bindingId: bindingId, + } +} + +// Execute executes the request +// +// @return DeleteCustomRule200Response +func (a *RolesAPIService) DeleteRoleBindingExecute(r ApiDeleteRoleBindingRequest) (*DeleteCustomRule200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteCustomRule200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.DeleteRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/bindings/{bindingId}" + localVarPath = strings.Replace(localVarPath, "{"+"bindingId"+"}", url.PathEscape(parameterValueToString(r.bindingId, "bindingId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.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 UpdateProfile400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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 ApiGetRoleRequest struct { + ctx context.Context + ApiService *RolesAPIService + roleId string +} + +func (r ApiGetRoleRequest) Execute() (*CreateRole200Response, *http.Response, error) { + return r.ApiService.GetRoleExecute(r) +} + +/* +GetRole Get a role + +Get a role by ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId The role ID + @return ApiGetRoleRequest +*/ +func (a *RolesAPIService) GetRole(ctx context.Context, roleId string) ApiGetRoleRequest { + return ApiGetRoleRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + } +} + +// Execute executes the request +// +// @return CreateRole200Response +func (a *RolesAPIService) GetRoleExecute(r ApiGetRoleRequest) (*CreateRole200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateRole200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.GetRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{roleId}" + localVarPath = strings.Replace(localVarPath, "{"+"roleId"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiListRolesRequest struct { + ctx context.Context + ApiService *RolesAPIService +} + +func (r ApiListRolesRequest) Execute() (*ListRoles200Response, *http.Response, error) { + return r.ApiService.ListRolesExecute(r) +} + +/* +ListRoles List roles + +List and search roles of the organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListRolesRequest +*/ +func (a *RolesAPIService) ListRoles(ctx context.Context) ApiListRolesRequest { + return ApiListRolesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ListRoles200Response +func (a *RolesAPIService) ListRolesExecute(r ApiListRolesRequest) (*ListRoles200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListRoles200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.ListRoles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiUpdateRoleRequest struct { + ctx context.Context + ApiService *RolesAPIService + roleId string + updateRoleRequest *UpdateRoleRequest +} + +// Body of the request to update a role +func (r ApiUpdateRoleRequest) UpdateRoleRequest(updateRoleRequest UpdateRoleRequest) ApiUpdateRoleRequest { + r.updateRoleRequest = &updateRoleRequest + return r +} + +func (r ApiUpdateRoleRequest) Execute() (*CreateRole200Response, *http.Response, error) { + return r.ApiService.UpdateRoleExecute(r) +} + +/* +UpdateRole Update a role + +Update a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId The role ID + @return ApiUpdateRoleRequest +*/ +func (a *RolesAPIService) UpdateRole(ctx context.Context, roleId string) ApiUpdateRoleRequest { + return ApiUpdateRoleRequest{ + ApiService: a, + ctx: ctx, + roleId: roleId, + } +} + +// Execute executes the request +// +// @return CreateRole200Response +func (a *RolesAPIService) UpdateRoleExecute(r ApiUpdateRoleRequest) (*CreateRole200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateRole200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RolesAPIService.UpdateRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{roleId}" + localVarPath = strings.Replace(localVarPath, "{"+"roleId"+"}", url.PathEscape(parameterValueToString(r.roleId, "roleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateRoleRequest == nil { + return localVarReturnValue, nil, reportError("updateRoleRequest 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.updateRoleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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/pkg/api/v3/api_scans.go b/pkg/api/v3/api_scans.go index 19910529..5bd3faf4 100644 --- a/pkg/api/v3/api_scans.go +++ b/pkg/api/v3/api_scans.go @@ -29,7 +29,7 @@ type ApiCancelScanRequest struct { scanId string } -func (r ApiCancelScanRequest) Execute() (*ScanDetailed1, *http.Response, error) { +func (r ApiCancelScanRequest) Execute() (*StartScan200Response, *http.Response, error) { return r.ApiService.CancelScanExecute(r) } @@ -52,13 +52,13 @@ func (a *ScansAPIService) CancelScan(ctx context.Context, scanId string) ApiCanc // Execute executes the request // -// @return ScanDetailed1 -func (a *ScansAPIService) CancelScanExecute(r ApiCancelScanRequest) (*ScanDetailed1, *http.Response, error) { +// @return StartScan200Response +func (a *ScansAPIService) CancelScanExecute(r ApiCancelScanRequest) (*StartScan200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ScanDetailed1 + localVarReturnValue *StartScan200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScansAPIService.CancelScan") @@ -168,7 +168,7 @@ type ApiGetScanRequest struct { scanId string } -func (r ApiGetScanRequest) Execute() (*ScanDetailed1, *http.Response, error) { +func (r ApiGetScanRequest) Execute() (*StartScan200Response, *http.Response, error) { return r.ApiService.GetScanExecute(r) } @@ -191,13 +191,13 @@ func (a *ScansAPIService) GetScan(ctx context.Context, scanId string) ApiGetScan // Execute executes the request // -// @return ScanDetailed1 -func (a *ScansAPIService) GetScanExecute(r ApiGetScanRequest) (*ScanDetailed1, *http.Response, error) { +// @return StartScan200Response +func (a *ScansAPIService) GetScanExecute(r ApiGetScanRequest) (*StartScan200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ScanDetailed1 + localVarReturnValue *StartScan200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScansAPIService.GetScan") @@ -721,7 +721,7 @@ func (r ApiStartScanRequest) StartScanRequest(startScanRequest StartScanRequest) return r } -func (r ApiStartScanRequest) Execute() (*ScanDetailed1, *http.Response, error) { +func (r ApiStartScanRequest) Execute() (*StartScan200Response, *http.Response, error) { return r.ApiService.StartScanExecute(r) } @@ -742,13 +742,13 @@ func (a *ScansAPIService) StartScan(ctx context.Context) ApiStartScanRequest { // Execute executes the request // -// @return ScanDetailed1 -func (a *ScansAPIService) StartScanExecute(r ApiStartScanRequest) (*ScanDetailed1, *http.Response, error) { +// @return StartScan200Response +func (a *ScansAPIService) StartScanExecute(r ApiStartScanRequest) (*StartScan200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ScanDetailed1 + localVarReturnValue *StartScan200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScansAPIService.StartScan") diff --git a/pkg/api/v3/api_tags.go b/pkg/api/v3/api_tags.go index c43c2d0d..1fd08927 100644 --- a/pkg/api/v3/api_tags.go +++ b/pkg/api/v3/api_tags.go @@ -34,7 +34,7 @@ func (r ApiCreateTagRequest) CreateTagRequest(createTagRequest CreateTagRequest) return r } -func (r ApiCreateTagRequest) Execute() (*TagDetail, *http.Response, error) { +func (r ApiCreateTagRequest) Execute() (*CreateTag200Response, *http.Response, error) { return r.ApiService.CreateTagExecute(r) } @@ -55,13 +55,13 @@ func (a *TagsAPIService) CreateTag(ctx context.Context) ApiCreateTagRequest { // Execute executes the request // -// @return TagDetail -func (a *TagsAPIService) CreateTagExecute(r ApiCreateTagRequest) (*TagDetail, *http.Response, error) { +// @return CreateTag200Response +func (a *TagsAPIService) CreateTagExecute(r ApiCreateTagRequest) (*CreateTag200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *TagDetail + localVarReturnValue *CreateTag200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.CreateTag") diff --git a/pkg/api/v3/api_upload.go b/pkg/api/v3/api_upload.go index 48bb2273..f76db597 100644 --- a/pkg/api/v3/api_upload.go +++ b/pkg/api/v3/api_upload.go @@ -26,7 +26,7 @@ type ApiCreateUploadSignedUrlRequest struct { ApiService *UploadAPIService } -func (r ApiCreateUploadSignedUrlRequest) Execute() (*UploadSummary, *http.Response, error) { +func (r ApiCreateUploadSignedUrlRequest) Execute() (*CreateUploadSignedUrl200Response, *http.Response, error) { return r.ApiService.CreateUploadSignedUrlExecute(r) } @@ -67,13 +67,13 @@ func (a *UploadAPIService) CreateUploadSignedUrl(ctx context.Context) ApiCreateU // Execute executes the request // -// @return UploadSummary -func (a *UploadAPIService) CreateUploadSignedUrlExecute(r ApiCreateUploadSignedUrlRequest) (*UploadSummary, *http.Response, error) { +// @return CreateUploadSignedUrl200Response +func (a *UploadAPIService) CreateUploadSignedUrlExecute(r ApiCreateUploadSignedUrlRequest) (*CreateUploadSignedUrl200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UploadSummary + localVarReturnValue *CreateUploadSignedUrl200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadAPIService.CreateUploadSignedUrl") diff --git a/pkg/api/v3/api_users.go b/pkg/api/v3/api_users.go new file mode 100644 index 00000000..ee250bdb --- /dev/null +++ b/pkg/api/v3/api_users.go @@ -0,0 +1,495 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// UsersAPIService UsersAPI service +type UsersAPIService service + +type ApiGetMeRequest struct { + ctx context.Context + ApiService *UsersAPIService +} + +func (r ApiGetMeRequest) Execute() (*GetMe200Response, *http.Response, error) { + return r.ApiService.GetMeExecute(r) +} + +/* +GetMe Get current user context + +Get basic information about the authenticated user and current organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetMeRequest +*/ +func (a *UsersAPIService) GetMe(ctx context.Context) ApiGetMeRequest { + return ApiGetMeRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GetMe200Response +func (a *UsersAPIService) GetMeExecute(r ApiGetMeRequest) (*GetMe200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetMe200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.GetMe") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/me" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiGetUserRequest struct { + ctx context.Context + ApiService *UsersAPIService + userId string +} + +func (r ApiGetUserRequest) Execute() (*GetUser200Response, *http.Response, error) { + return r.ApiService.GetUserExecute(r) +} + +/* +GetUser Get a user + +Get a user by ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userId The user ID + @return ApiGetUserRequest +*/ +func (a *UsersAPIService) GetUser(ctx context.Context, userId string) ApiGetUserRequest { + return ApiGetUserRequest{ + ApiService: a, + ctx: ctx, + userId: userId, + } +} + +// Execute executes the request +// +// @return GetUser200Response +func (a *UsersAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUser200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetUser200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.GetUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{userId}" + localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiInviteUserRequest struct { + ctx context.Context + ApiService *UsersAPIService + inviteUserRequest *InviteUserRequest +} + +// Body of the request to invite users +func (r ApiInviteUserRequest) InviteUserRequest(inviteUserRequest InviteUserRequest) ApiInviteUserRequest { + r.inviteUserRequest = &inviteUserRequest + return r +} + +func (r ApiInviteUserRequest) Execute() ([]ListUsers200Response, *http.Response, error) { + return r.ApiService.InviteUserExecute(r) +} + +/* +InviteUser Invite users + +Invite users to the organization, and give them roles. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInviteUserRequest +*/ +func (a *UsersAPIService) InviteUser(ctx context.Context) ApiInviteUserRequest { + return ApiInviteUserRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []ListUsers200Response +func (a *UsersAPIService) InviteUserExecute(r ApiInviteUserRequest) ([]ListUsers200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ListUsers200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.InviteUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/invite" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.inviteUserRequest == nil { + return localVarReturnValue, nil, reportError("inviteUserRequest 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.inviteUserRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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 ApiListUsersRequest struct { + ctx context.Context + ApiService *UsersAPIService +} + +func (r ApiListUsersRequest) Execute() (*ListUsers200Response, *http.Response, error) { + return r.ApiService.ListUsersExecute(r) +} + +/* +ListUsers List users + +List and search projects of the organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListUsersRequest +*/ +func (a *UsersAPIService) ListUsers(ctx context.Context) ApiListUsersRequest { + return ApiListUsersRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ListUsers200Response +func (a *UsersAPIService) ListUsersExecute(r ApiListUsersRequest) (*ListUsers200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListUsers200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.ListUsers") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKey"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-ESCAPE-API-KEY"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + 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/pkg/api/v3/api_workflows.go b/pkg/api/v3/api_workflows.go index 3e297370..420d735c 100644 --- a/pkg/api/v3/api_workflows.go +++ b/pkg/api/v3/api_workflows.go @@ -33,7 +33,7 @@ func (r ApiCreateWorkflowRequest) CreateWorkflowRequest(createWorkflowRequest Cr return r } -func (r ApiCreateWorkflowRequest) Execute() (*WorkflowDetailed, *http.Response, error) { +func (r ApiCreateWorkflowRequest) Execute() (*GetWorkflow200Response, *http.Response, error) { return r.ApiService.CreateWorkflowExecute(r) } @@ -54,13 +54,13 @@ func (a *WorkflowsAPIService) CreateWorkflow(ctx context.Context) ApiCreateWorkf // Execute executes the request // -// @return WorkflowDetailed -func (a *WorkflowsAPIService) CreateWorkflowExecute(r ApiCreateWorkflowRequest) (*WorkflowDetailed, *http.Response, error) { +// @return GetWorkflow200Response +func (a *WorkflowsAPIService) CreateWorkflowExecute(r ApiCreateWorkflowRequest) (*GetWorkflow200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WorkflowDetailed + localVarReturnValue *GetWorkflow200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.CreateWorkflow") @@ -160,7 +160,7 @@ type ApiDeleteWorkflowRequest struct { id string } -func (r ApiDeleteWorkflowRequest) Execute() (*WorkflowDetailed, *http.Response, error) { +func (r ApiDeleteWorkflowRequest) Execute() (*GetWorkflow200Response, *http.Response, error) { return r.ApiService.DeleteWorkflowExecute(r) } @@ -183,13 +183,13 @@ func (a *WorkflowsAPIService) DeleteWorkflow(ctx context.Context, id string) Api // Execute executes the request // -// @return WorkflowDetailed -func (a *WorkflowsAPIService) DeleteWorkflowExecute(r ApiDeleteWorkflowRequest) (*WorkflowDetailed, *http.Response, error) { +// @return GetWorkflow200Response +func (a *WorkflowsAPIService) DeleteWorkflowExecute(r ApiDeleteWorkflowRequest) (*GetWorkflow200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WorkflowDetailed + localVarReturnValue *GetWorkflow200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.DeleteWorkflow") @@ -288,7 +288,7 @@ type ApiGetWorkflowRequest struct { id string } -func (r ApiGetWorkflowRequest) Execute() (*WorkflowDetailed, *http.Response, error) { +func (r ApiGetWorkflowRequest) Execute() (*GetWorkflow200Response, *http.Response, error) { return r.ApiService.GetWorkflowExecute(r) } @@ -311,13 +311,13 @@ func (a *WorkflowsAPIService) GetWorkflow(ctx context.Context, id string) ApiGet // Execute executes the request // -// @return WorkflowDetailed -func (a *WorkflowsAPIService) GetWorkflowExecute(r ApiGetWorkflowRequest) (*WorkflowDetailed, *http.Response, error) { +// @return GetWorkflow200Response +func (a *WorkflowsAPIService) GetWorkflowExecute(r ApiGetWorkflowRequest) (*GetWorkflow200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WorkflowDetailed + localVarReturnValue *GetWorkflow200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.GetWorkflow") @@ -422,7 +422,7 @@ func (r ApiUpdateWorkflowRequest) UpdateWorkflowRequest(updateWorkflowRequest Up return r } -func (r ApiUpdateWorkflowRequest) Execute() (*WorkflowDetailed, *http.Response, error) { +func (r ApiUpdateWorkflowRequest) Execute() (*GetWorkflow200Response, *http.Response, error) { return r.ApiService.UpdateWorkflowExecute(r) } @@ -445,13 +445,13 @@ func (a *WorkflowsAPIService) UpdateWorkflow(ctx context.Context, id string) Api // Execute executes the request // -// @return WorkflowDetailed -func (a *WorkflowsAPIService) UpdateWorkflowExecute(r ApiUpdateWorkflowRequest) (*WorkflowDetailed, *http.Response, error) { +// @return GetWorkflow200Response +func (a *WorkflowsAPIService) UpdateWorkflowExecute(r ApiUpdateWorkflowRequest) (*GetWorkflow200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WorkflowDetailed + localVarReturnValue *GetWorkflow200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.UpdateWorkflow") diff --git a/pkg/api/v3/client.go b/pkg/api/v3/client.go index 28ce1690..2250010b 100644 --- a/pkg/api/v3/client.go +++ b/pkg/api/v3/client.go @@ -52,8 +52,6 @@ type APIClient struct { AuditAPI *AuditAPIService - BetaAPI *BetaAPIService - CustomRulesAPI *CustomRulesAPIService EventsAPI *EventsAPIService @@ -66,12 +64,18 @@ type APIClient struct { ProfilesAPI *ProfilesAPIService + ProjectsAPI *ProjectsAPIService + + RolesAPI *RolesAPIService + ScansAPI *ScansAPIService TagsAPI *TagsAPIService UploadAPI *UploadAPIService + UsersAPI *UsersAPIService + WorkflowsAPI *WorkflowsAPIService } @@ -93,16 +97,18 @@ func NewAPIClient(cfg *Configuration) *APIClient { // API Services c.AssetsAPI = (*AssetsAPIService)(&c.common) c.AuditAPI = (*AuditAPIService)(&c.common) - c.BetaAPI = (*BetaAPIService)(&c.common) c.CustomRulesAPI = (*CustomRulesAPIService)(&c.common) c.EventsAPI = (*EventsAPIService)(&c.common) c.IntegrationsAPI = (*IntegrationsAPIService)(&c.common) c.IssuesAPI = (*IssuesAPIService)(&c.common) c.LocationsAPI = (*LocationsAPIService)(&c.common) c.ProfilesAPI = (*ProfilesAPIService)(&c.common) + c.ProjectsAPI = (*ProjectsAPIService)(&c.common) + c.RolesAPI = (*RolesAPIService)(&c.common) c.ScansAPI = (*ScansAPIService)(&c.common) c.TagsAPI = (*TagsAPIService)(&c.common) c.UploadAPI = (*UploadAPIService)(&c.common) + c.UsersAPI = (*UsersAPIService)(&c.common) c.WorkflowsAPI = (*WorkflowsAPIService)(&c.common) return c diff --git a/pkg/api/v3/model_api_route_detailed.go b/pkg/api/v3/model_api_route_detailed.go index 651ac724..e42072ba 100644 --- a/pkg/api/v3/model_api_route_detailed.go +++ b/pkg/api/v3/model_api_route_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the ApiRouteDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ApiRouteDetailed{} -// ApiRouteDetailed Detailed information about an api route +// ApiRouteDetailed The api route of the target type ApiRouteDetailed struct { // Whether the api route is blacklisted Blacklisted bool `json:"blacklisted"` diff --git a/pkg/api/v3/model_asset_detailed.go b/pkg/api/v3/model_asset_detailed.go index 8ecfe811..7ad38a2f 100644 --- a/pkg/api/v3/model_asset_detailed.go +++ b/pkg/api/v3/model_asset_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the AssetDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &AssetDetailed{} -// AssetDetailed Detailed information about an asset +// AssetDetailed The asset of the profile type AssetDetailed struct { // The id of the asset Id string `json:"id"` @@ -44,7 +44,7 @@ type AssetDetailed struct { // The risks of the asset Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks"` FirstSeenScan *ScanSummarized `json:"firstSeenScan,omitempty"` - LastSeenScan *ScanSummarized `json:"lastSeenScan,omitempty"` + LastSeenScan *ScanSummarized1 `json:"lastSeenScan,omitempty"` Service *AssetServiceDetailed `json:"service,omitempty"` Frontend *AssetFrontendDetailed `json:"frontend,omitempty"` Host *AssetHostDetailed `json:"host,omitempty"` @@ -458,9 +458,9 @@ func (o *AssetDetailed) SetFirstSeenScan(v ScanSummarized) { } // GetLastSeenScan returns the LastSeenScan field value if set, zero value otherwise. -func (o *AssetDetailed) GetLastSeenScan() ScanSummarized { +func (o *AssetDetailed) GetLastSeenScan() ScanSummarized1 { if o == nil || IsNil(o.LastSeenScan) { - var ret ScanSummarized + var ret ScanSummarized1 return ret } return *o.LastSeenScan @@ -468,7 +468,7 @@ func (o *AssetDetailed) GetLastSeenScan() ScanSummarized { // GetLastSeenScanOk returns a tuple with the LastSeenScan field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AssetDetailed) GetLastSeenScanOk() (*ScanSummarized, bool) { +func (o *AssetDetailed) GetLastSeenScanOk() (*ScanSummarized1, bool) { if o == nil || IsNil(o.LastSeenScan) { return nil, false } @@ -484,8 +484,8 @@ func (o *AssetDetailed) HasLastSeenScan() bool { return false } -// SetLastSeenScan gets a reference to the given ScanSummarized and assigns it to the LastSeenScan field. -func (o *AssetDetailed) SetLastSeenScan(v ScanSummarized) { +// SetLastSeenScan gets a reference to the given ScanSummarized1 and assigns it to the LastSeenScan field. +func (o *AssetDetailed) SetLastSeenScan(v ScanSummarized1) { o.LastSeenScan = &v } diff --git a/pkg/api/v3/model_asset_detailed_1.go b/pkg/api/v3/model_asset_detailed_1.go new file mode 100644 index 00000000..670167e7 --- /dev/null +++ b/pkg/api/v3/model_asset_detailed_1.go @@ -0,0 +1,770 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the AssetDetailed1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailed1{} + +// AssetDetailed1 Detailed information about an asset +type AssetDetailed1 struct { + // The id of the asset + Id string `json:"id"` + Class ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS `json:"class"` + Type ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE `json:"type"` + // The name of the asset + Name string `json:"name"` + // The external url of the asset + ExternalUrl *string `json:"externalUrl,omitempty"` + // The favicon url of the asset + FaviconUrl *string `json:"faviconUrl,omitempty"` + // The description of the asset + Description *string `json:"description,omitempty"` + // The date and time the asset was created + CreatedAt string `json:"createdAt"` + // The date and time the asset was last seen + LastSeenAt string `json:"lastSeenAt"` + // The date and time the asset is scheduled for deletion + ScheduledForDeletionAt *string `json:"scheduledForDeletionAt,omitempty"` + Status ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS `json:"status"` + // The tags of the asset + Tags []Tag `json:"tags"` + // The risks of the asset + Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks"` + FirstSeenScan *ScanSummarized `json:"firstSeenScan,omitempty"` + LastSeenScan *ScanSummarized1 `json:"lastSeenScan,omitempty"` + Service *AssetServiceDetailed `json:"service,omitempty"` + Frontend *AssetFrontendDetailed `json:"frontend,omitempty"` + Host *AssetHostDetailed `json:"host,omitempty"` + Links AssetDetailedLinks `json:"links"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailed1 AssetDetailed1 + +// NewAssetDetailed1 instantiates a new AssetDetailed1 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 NewAssetDetailed1(id string, class ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, type_ ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, name string, createdAt string, lastSeenAt string, status ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, tags []Tag, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, links AssetDetailedLinks) *AssetDetailed1 { + this := AssetDetailed1{} + this.Id = id + this.Class = class + this.Type = type_ + this.Name = name + this.CreatedAt = createdAt + this.LastSeenAt = lastSeenAt + this.Status = status + this.Tags = tags + this.Risks = risks + this.Links = links + return &this +} + +// NewAssetDetailed1WithDefaults instantiates a new AssetDetailed1 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 NewAssetDetailed1WithDefaults() *AssetDetailed1 { + this := AssetDetailed1{} + return &this +} + +// GetId returns the Id field value +func (o *AssetDetailed1) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AssetDetailed1) SetId(v string) { + o.Id = v +} + +// GetClass returns the Class field value +func (o *AssetDetailed1) GetClass() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS + return ret + } + + return o.Class +} + +// GetClassOk returns a tuple with the Class field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetClassOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, bool) { + if o == nil { + return nil, false + } + return &o.Class, true +} + +// SetClass sets field value +func (o *AssetDetailed1) SetClass(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS) { + o.Class = v +} + +// GetType returns the Type field value +func (o *AssetDetailed1) GetType() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetTypeOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AssetDetailed1) SetType(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE) { + o.Type = v +} + +// GetName returns the Name field value +func (o *AssetDetailed1) 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 *AssetDetailed1) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AssetDetailed1) SetName(v string) { + o.Name = v +} + +// GetExternalUrl returns the ExternalUrl field value if set, zero value otherwise. +func (o *AssetDetailed1) GetExternalUrl() string { + if o == nil || IsNil(o.ExternalUrl) { + var ret string + return ret + } + return *o.ExternalUrl +} + +// GetExternalUrlOk returns a tuple with the ExternalUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetExternalUrlOk() (*string, bool) { + if o == nil || IsNil(o.ExternalUrl) { + return nil, false + } + return o.ExternalUrl, true +} + +// HasExternalUrl returns a boolean if a field has been set. +func (o *AssetDetailed1) HasExternalUrl() bool { + if o != nil && !IsNil(o.ExternalUrl) { + return true + } + + return false +} + +// SetExternalUrl gets a reference to the given string and assigns it to the ExternalUrl field. +func (o *AssetDetailed1) SetExternalUrl(v string) { + o.ExternalUrl = &v +} + +// GetFaviconUrl returns the FaviconUrl field value if set, zero value otherwise. +func (o *AssetDetailed1) GetFaviconUrl() string { + if o == nil || IsNil(o.FaviconUrl) { + var ret string + return ret + } + return *o.FaviconUrl +} + +// GetFaviconUrlOk returns a tuple with the FaviconUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetFaviconUrlOk() (*string, bool) { + if o == nil || IsNil(o.FaviconUrl) { + return nil, false + } + return o.FaviconUrl, true +} + +// HasFaviconUrl returns a boolean if a field has been set. +func (o *AssetDetailed1) HasFaviconUrl() bool { + if o != nil && !IsNil(o.FaviconUrl) { + return true + } + + return false +} + +// SetFaviconUrl gets a reference to the given string and assigns it to the FaviconUrl field. +func (o *AssetDetailed1) SetFaviconUrl(v string) { + o.FaviconUrl = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AssetDetailed1) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *AssetDetailed1) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *AssetDetailed1) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *AssetDetailed1) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AssetDetailed1) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AssetDetailed1) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetLastSeenAt returns the LastSeenAt field value +func (o *AssetDetailed1) GetLastSeenAt() string { + if o == nil { + var ret string + return ret + } + + return o.LastSeenAt +} + +// GetLastSeenAtOk returns a tuple with the LastSeenAt field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetLastSeenAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LastSeenAt, true +} + +// SetLastSeenAt sets field value +func (o *AssetDetailed1) SetLastSeenAt(v string) { + o.LastSeenAt = v +} + +// GetScheduledForDeletionAt returns the ScheduledForDeletionAt field value if set, zero value otherwise. +func (o *AssetDetailed1) GetScheduledForDeletionAt() string { + if o == nil || IsNil(o.ScheduledForDeletionAt) { + var ret string + return ret + } + return *o.ScheduledForDeletionAt +} + +// GetScheduledForDeletionAtOk returns a tuple with the ScheduledForDeletionAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetScheduledForDeletionAtOk() (*string, bool) { + if o == nil || IsNil(o.ScheduledForDeletionAt) { + return nil, false + } + return o.ScheduledForDeletionAt, true +} + +// HasScheduledForDeletionAt returns a boolean if a field has been set. +func (o *AssetDetailed1) HasScheduledForDeletionAt() bool { + if o != nil && !IsNil(o.ScheduledForDeletionAt) { + return true + } + + return false +} + +// SetScheduledForDeletionAt gets a reference to the given string and assigns it to the ScheduledForDeletionAt field. +func (o *AssetDetailed1) SetScheduledForDeletionAt(v string) { + o.ScheduledForDeletionAt = &v +} + +// GetStatus returns the Status field value +func (o *AssetDetailed1) GetStatus() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetStatusOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *AssetDetailed1) SetStatus(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS) { + o.Status = v +} + +// GetTags returns the Tags field value +func (o *AssetDetailed1) GetTags() []Tag { + if o == nil { + var ret []Tag + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetTagsOk() ([]Tag, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *AssetDetailed1) SetTags(v []Tag) { + o.Tags = v +} + +// GetRisks returns the Risks field value +func (o *AssetDetailed1) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS { + if o == nil { + var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS + return ret + } + + return o.Risks +} + +// GetRisksOk returns a tuple with the Risks field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, bool) { + if o == nil { + return nil, false + } + return o.Risks, true +} + +// SetRisks sets field value +func (o *AssetDetailed1) SetRisks(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS) { + o.Risks = v +} + +// GetFirstSeenScan returns the FirstSeenScan field value if set, zero value otherwise. +func (o *AssetDetailed1) GetFirstSeenScan() ScanSummarized { + if o == nil || IsNil(o.FirstSeenScan) { + var ret ScanSummarized + return ret + } + return *o.FirstSeenScan +} + +// GetFirstSeenScanOk returns a tuple with the FirstSeenScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetFirstSeenScanOk() (*ScanSummarized, bool) { + if o == nil || IsNil(o.FirstSeenScan) { + return nil, false + } + return o.FirstSeenScan, true +} + +// HasFirstSeenScan returns a boolean if a field has been set. +func (o *AssetDetailed1) HasFirstSeenScan() bool { + if o != nil && !IsNil(o.FirstSeenScan) { + return true + } + + return false +} + +// SetFirstSeenScan gets a reference to the given ScanSummarized and assigns it to the FirstSeenScan field. +func (o *AssetDetailed1) SetFirstSeenScan(v ScanSummarized) { + o.FirstSeenScan = &v +} + +// GetLastSeenScan returns the LastSeenScan field value if set, zero value otherwise. +func (o *AssetDetailed1) GetLastSeenScan() ScanSummarized1 { + if o == nil || IsNil(o.LastSeenScan) { + var ret ScanSummarized1 + return ret + } + return *o.LastSeenScan +} + +// GetLastSeenScanOk returns a tuple with the LastSeenScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetLastSeenScanOk() (*ScanSummarized1, bool) { + if o == nil || IsNil(o.LastSeenScan) { + return nil, false + } + return o.LastSeenScan, true +} + +// HasLastSeenScan returns a boolean if a field has been set. +func (o *AssetDetailed1) HasLastSeenScan() bool { + if o != nil && !IsNil(o.LastSeenScan) { + return true + } + + return false +} + +// SetLastSeenScan gets a reference to the given ScanSummarized1 and assigns it to the LastSeenScan field. +func (o *AssetDetailed1) SetLastSeenScan(v ScanSummarized1) { + o.LastSeenScan = &v +} + +// GetService returns the Service field value if set, zero value otherwise. +func (o *AssetDetailed1) GetService() AssetServiceDetailed { + if o == nil || IsNil(o.Service) { + var ret AssetServiceDetailed + return ret + } + return *o.Service +} + +// GetServiceOk returns a tuple with the Service field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetServiceOk() (*AssetServiceDetailed, bool) { + if o == nil || IsNil(o.Service) { + return nil, false + } + return o.Service, true +} + +// HasService returns a boolean if a field has been set. +func (o *AssetDetailed1) HasService() bool { + if o != nil && !IsNil(o.Service) { + return true + } + + return false +} + +// SetService gets a reference to the given AssetServiceDetailed and assigns it to the Service field. +func (o *AssetDetailed1) SetService(v AssetServiceDetailed) { + o.Service = &v +} + +// GetFrontend returns the Frontend field value if set, zero value otherwise. +func (o *AssetDetailed1) GetFrontend() AssetFrontendDetailed { + if o == nil || IsNil(o.Frontend) { + var ret AssetFrontendDetailed + return ret + } + return *o.Frontend +} + +// GetFrontendOk returns a tuple with the Frontend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetFrontendOk() (*AssetFrontendDetailed, bool) { + if o == nil || IsNil(o.Frontend) { + return nil, false + } + return o.Frontend, true +} + +// HasFrontend returns a boolean if a field has been set. +func (o *AssetDetailed1) HasFrontend() bool { + if o != nil && !IsNil(o.Frontend) { + return true + } + + return false +} + +// SetFrontend gets a reference to the given AssetFrontendDetailed and assigns it to the Frontend field. +func (o *AssetDetailed1) SetFrontend(v AssetFrontendDetailed) { + o.Frontend = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *AssetDetailed1) GetHost() AssetHostDetailed { + if o == nil || IsNil(o.Host) { + var ret AssetHostDetailed + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetHostOk() (*AssetHostDetailed, bool) { + if o == nil || IsNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *AssetDetailed1) HasHost() bool { + if o != nil && !IsNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given AssetHostDetailed and assigns it to the Host field. +func (o *AssetDetailed1) SetHost(v AssetHostDetailed) { + o.Host = &v +} + +// GetLinks returns the Links field value +func (o *AssetDetailed1) GetLinks() AssetDetailedLinks { + if o == nil { + var ret AssetDetailedLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed1) GetLinksOk() (*AssetDetailedLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *AssetDetailed1) SetLinks(v AssetDetailedLinks) { + o.Links = v +} + +func (o AssetDetailed1) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailed1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["class"] = o.Class + toSerialize["type"] = o.Type + toSerialize["name"] = o.Name + if !IsNil(o.ExternalUrl) { + toSerialize["externalUrl"] = o.ExternalUrl + } + if !IsNil(o.FaviconUrl) { + toSerialize["faviconUrl"] = o.FaviconUrl + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["createdAt"] = o.CreatedAt + toSerialize["lastSeenAt"] = o.LastSeenAt + if !IsNil(o.ScheduledForDeletionAt) { + toSerialize["scheduledForDeletionAt"] = o.ScheduledForDeletionAt + } + toSerialize["status"] = o.Status + toSerialize["tags"] = o.Tags + toSerialize["risks"] = o.Risks + if !IsNil(o.FirstSeenScan) { + toSerialize["firstSeenScan"] = o.FirstSeenScan + } + if !IsNil(o.LastSeenScan) { + toSerialize["lastSeenScan"] = o.LastSeenScan + } + if !IsNil(o.Service) { + toSerialize["service"] = o.Service + } + if !IsNil(o.Frontend) { + toSerialize["frontend"] = o.Frontend + } + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } + toSerialize["links"] = o.Links + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailed1) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "class", + "type", + "name", + "createdAt", + "lastSeenAt", + "status", + "tags", + "risks", + "links", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAssetDetailed1 := _AssetDetailed1{} + + err = json.Unmarshal(data, &varAssetDetailed1) + + if err != nil { + return err + } + + *o = AssetDetailed1(varAssetDetailed1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "class") + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "externalUrl") + delete(additionalProperties, "faviconUrl") + delete(additionalProperties, "description") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "lastSeenAt") + delete(additionalProperties, "scheduledForDeletionAt") + delete(additionalProperties, "status") + delete(additionalProperties, "tags") + delete(additionalProperties, "risks") + delete(additionalProperties, "firstSeenScan") + delete(additionalProperties, "lastSeenScan") + delete(additionalProperties, "service") + delete(additionalProperties, "frontend") + delete(additionalProperties, "host") + delete(additionalProperties, "links") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailed1 struct { + value *AssetDetailed1 + isSet bool +} + +func (v NullableAssetDetailed1) Get() *AssetDetailed1 { + return v.value +} + +func (v *NullableAssetDetailed1) Set(val *AssetDetailed1) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailed1) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailed1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailed1(val *AssetDetailed1) *NullableAssetDetailed1 { + return &NullableAssetDetailed1{value: val, isSet: true} +} + +func (v NullableAssetDetailed1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailed1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_asset_detailed_2.go b/pkg/api/v3/model_asset_detailed_2.go new file mode 100644 index 00000000..cdec52f4 --- /dev/null +++ b/pkg/api/v3/model_asset_detailed_2.go @@ -0,0 +1,770 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the AssetDetailed2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailed2{} + +// AssetDetailed2 The asset of the issue +type AssetDetailed2 struct { + // The id of the asset + Id string `json:"id"` + Class ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS `json:"class"` + Type ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE `json:"type"` + // The name of the asset + Name string `json:"name"` + // The external url of the asset + ExternalUrl *string `json:"externalUrl,omitempty"` + // The favicon url of the asset + FaviconUrl *string `json:"faviconUrl,omitempty"` + // The description of the asset + Description *string `json:"description,omitempty"` + // The date and time the asset was created + CreatedAt string `json:"createdAt"` + // The date and time the asset was last seen + LastSeenAt string `json:"lastSeenAt"` + // The date and time the asset is scheduled for deletion + ScheduledForDeletionAt *string `json:"scheduledForDeletionAt,omitempty"` + Status ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS `json:"status"` + // The tags of the asset + Tags []Tag `json:"tags"` + // The risks of the asset + Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks"` + FirstSeenScan *ScanSummarized `json:"firstSeenScan,omitempty"` + LastSeenScan *ScanSummarized1 `json:"lastSeenScan,omitempty"` + Service *AssetServiceDetailed `json:"service,omitempty"` + Frontend *AssetFrontendDetailed `json:"frontend,omitempty"` + Host *AssetHostDetailed `json:"host,omitempty"` + Links AssetDetailedLinks `json:"links"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailed2 AssetDetailed2 + +// NewAssetDetailed2 instantiates a new AssetDetailed2 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 NewAssetDetailed2(id string, class ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, type_ ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, name string, createdAt string, lastSeenAt string, status ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, tags []Tag, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, links AssetDetailedLinks) *AssetDetailed2 { + this := AssetDetailed2{} + this.Id = id + this.Class = class + this.Type = type_ + this.Name = name + this.CreatedAt = createdAt + this.LastSeenAt = lastSeenAt + this.Status = status + this.Tags = tags + this.Risks = risks + this.Links = links + return &this +} + +// NewAssetDetailed2WithDefaults instantiates a new AssetDetailed2 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 NewAssetDetailed2WithDefaults() *AssetDetailed2 { + this := AssetDetailed2{} + return &this +} + +// GetId returns the Id field value +func (o *AssetDetailed2) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AssetDetailed2) SetId(v string) { + o.Id = v +} + +// GetClass returns the Class field value +func (o *AssetDetailed2) GetClass() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS + return ret + } + + return o.Class +} + +// GetClassOk returns a tuple with the Class field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetClassOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, bool) { + if o == nil { + return nil, false + } + return &o.Class, true +} + +// SetClass sets field value +func (o *AssetDetailed2) SetClass(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS) { + o.Class = v +} + +// GetType returns the Type field value +func (o *AssetDetailed2) GetType() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetTypeOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AssetDetailed2) SetType(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE) { + o.Type = v +} + +// GetName returns the Name field value +func (o *AssetDetailed2) 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 *AssetDetailed2) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AssetDetailed2) SetName(v string) { + o.Name = v +} + +// GetExternalUrl returns the ExternalUrl field value if set, zero value otherwise. +func (o *AssetDetailed2) GetExternalUrl() string { + if o == nil || IsNil(o.ExternalUrl) { + var ret string + return ret + } + return *o.ExternalUrl +} + +// GetExternalUrlOk returns a tuple with the ExternalUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetExternalUrlOk() (*string, bool) { + if o == nil || IsNil(o.ExternalUrl) { + return nil, false + } + return o.ExternalUrl, true +} + +// HasExternalUrl returns a boolean if a field has been set. +func (o *AssetDetailed2) HasExternalUrl() bool { + if o != nil && !IsNil(o.ExternalUrl) { + return true + } + + return false +} + +// SetExternalUrl gets a reference to the given string and assigns it to the ExternalUrl field. +func (o *AssetDetailed2) SetExternalUrl(v string) { + o.ExternalUrl = &v +} + +// GetFaviconUrl returns the FaviconUrl field value if set, zero value otherwise. +func (o *AssetDetailed2) GetFaviconUrl() string { + if o == nil || IsNil(o.FaviconUrl) { + var ret string + return ret + } + return *o.FaviconUrl +} + +// GetFaviconUrlOk returns a tuple with the FaviconUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetFaviconUrlOk() (*string, bool) { + if o == nil || IsNil(o.FaviconUrl) { + return nil, false + } + return o.FaviconUrl, true +} + +// HasFaviconUrl returns a boolean if a field has been set. +func (o *AssetDetailed2) HasFaviconUrl() bool { + if o != nil && !IsNil(o.FaviconUrl) { + return true + } + + return false +} + +// SetFaviconUrl gets a reference to the given string and assigns it to the FaviconUrl field. +func (o *AssetDetailed2) SetFaviconUrl(v string) { + o.FaviconUrl = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AssetDetailed2) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *AssetDetailed2) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *AssetDetailed2) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *AssetDetailed2) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AssetDetailed2) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AssetDetailed2) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetLastSeenAt returns the LastSeenAt field value +func (o *AssetDetailed2) GetLastSeenAt() string { + if o == nil { + var ret string + return ret + } + + return o.LastSeenAt +} + +// GetLastSeenAtOk returns a tuple with the LastSeenAt field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetLastSeenAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LastSeenAt, true +} + +// SetLastSeenAt sets field value +func (o *AssetDetailed2) SetLastSeenAt(v string) { + o.LastSeenAt = v +} + +// GetScheduledForDeletionAt returns the ScheduledForDeletionAt field value if set, zero value otherwise. +func (o *AssetDetailed2) GetScheduledForDeletionAt() string { + if o == nil || IsNil(o.ScheduledForDeletionAt) { + var ret string + return ret + } + return *o.ScheduledForDeletionAt +} + +// GetScheduledForDeletionAtOk returns a tuple with the ScheduledForDeletionAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetScheduledForDeletionAtOk() (*string, bool) { + if o == nil || IsNil(o.ScheduledForDeletionAt) { + return nil, false + } + return o.ScheduledForDeletionAt, true +} + +// HasScheduledForDeletionAt returns a boolean if a field has been set. +func (o *AssetDetailed2) HasScheduledForDeletionAt() bool { + if o != nil && !IsNil(o.ScheduledForDeletionAt) { + return true + } + + return false +} + +// SetScheduledForDeletionAt gets a reference to the given string and assigns it to the ScheduledForDeletionAt field. +func (o *AssetDetailed2) SetScheduledForDeletionAt(v string) { + o.ScheduledForDeletionAt = &v +} + +// GetStatus returns the Status field value +func (o *AssetDetailed2) GetStatus() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetStatusOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *AssetDetailed2) SetStatus(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS) { + o.Status = v +} + +// GetTags returns the Tags field value +func (o *AssetDetailed2) GetTags() []Tag { + if o == nil { + var ret []Tag + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetTagsOk() ([]Tag, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *AssetDetailed2) SetTags(v []Tag) { + o.Tags = v +} + +// GetRisks returns the Risks field value +func (o *AssetDetailed2) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS { + if o == nil { + var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS + return ret + } + + return o.Risks +} + +// GetRisksOk returns a tuple with the Risks field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, bool) { + if o == nil { + return nil, false + } + return o.Risks, true +} + +// SetRisks sets field value +func (o *AssetDetailed2) SetRisks(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS) { + o.Risks = v +} + +// GetFirstSeenScan returns the FirstSeenScan field value if set, zero value otherwise. +func (o *AssetDetailed2) GetFirstSeenScan() ScanSummarized { + if o == nil || IsNil(o.FirstSeenScan) { + var ret ScanSummarized + return ret + } + return *o.FirstSeenScan +} + +// GetFirstSeenScanOk returns a tuple with the FirstSeenScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetFirstSeenScanOk() (*ScanSummarized, bool) { + if o == nil || IsNil(o.FirstSeenScan) { + return nil, false + } + return o.FirstSeenScan, true +} + +// HasFirstSeenScan returns a boolean if a field has been set. +func (o *AssetDetailed2) HasFirstSeenScan() bool { + if o != nil && !IsNil(o.FirstSeenScan) { + return true + } + + return false +} + +// SetFirstSeenScan gets a reference to the given ScanSummarized and assigns it to the FirstSeenScan field. +func (o *AssetDetailed2) SetFirstSeenScan(v ScanSummarized) { + o.FirstSeenScan = &v +} + +// GetLastSeenScan returns the LastSeenScan field value if set, zero value otherwise. +func (o *AssetDetailed2) GetLastSeenScan() ScanSummarized1 { + if o == nil || IsNil(o.LastSeenScan) { + var ret ScanSummarized1 + return ret + } + return *o.LastSeenScan +} + +// GetLastSeenScanOk returns a tuple with the LastSeenScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetLastSeenScanOk() (*ScanSummarized1, bool) { + if o == nil || IsNil(o.LastSeenScan) { + return nil, false + } + return o.LastSeenScan, true +} + +// HasLastSeenScan returns a boolean if a field has been set. +func (o *AssetDetailed2) HasLastSeenScan() bool { + if o != nil && !IsNil(o.LastSeenScan) { + return true + } + + return false +} + +// SetLastSeenScan gets a reference to the given ScanSummarized1 and assigns it to the LastSeenScan field. +func (o *AssetDetailed2) SetLastSeenScan(v ScanSummarized1) { + o.LastSeenScan = &v +} + +// GetService returns the Service field value if set, zero value otherwise. +func (o *AssetDetailed2) GetService() AssetServiceDetailed { + if o == nil || IsNil(o.Service) { + var ret AssetServiceDetailed + return ret + } + return *o.Service +} + +// GetServiceOk returns a tuple with the Service field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetServiceOk() (*AssetServiceDetailed, bool) { + if o == nil || IsNil(o.Service) { + return nil, false + } + return o.Service, true +} + +// HasService returns a boolean if a field has been set. +func (o *AssetDetailed2) HasService() bool { + if o != nil && !IsNil(o.Service) { + return true + } + + return false +} + +// SetService gets a reference to the given AssetServiceDetailed and assigns it to the Service field. +func (o *AssetDetailed2) SetService(v AssetServiceDetailed) { + o.Service = &v +} + +// GetFrontend returns the Frontend field value if set, zero value otherwise. +func (o *AssetDetailed2) GetFrontend() AssetFrontendDetailed { + if o == nil || IsNil(o.Frontend) { + var ret AssetFrontendDetailed + return ret + } + return *o.Frontend +} + +// GetFrontendOk returns a tuple with the Frontend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetFrontendOk() (*AssetFrontendDetailed, bool) { + if o == nil || IsNil(o.Frontend) { + return nil, false + } + return o.Frontend, true +} + +// HasFrontend returns a boolean if a field has been set. +func (o *AssetDetailed2) HasFrontend() bool { + if o != nil && !IsNil(o.Frontend) { + return true + } + + return false +} + +// SetFrontend gets a reference to the given AssetFrontendDetailed and assigns it to the Frontend field. +func (o *AssetDetailed2) SetFrontend(v AssetFrontendDetailed) { + o.Frontend = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *AssetDetailed2) GetHost() AssetHostDetailed { + if o == nil || IsNil(o.Host) { + var ret AssetHostDetailed + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetHostOk() (*AssetHostDetailed, bool) { + if o == nil || IsNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *AssetDetailed2) HasHost() bool { + if o != nil && !IsNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given AssetHostDetailed and assigns it to the Host field. +func (o *AssetDetailed2) SetHost(v AssetHostDetailed) { + o.Host = &v +} + +// GetLinks returns the Links field value +func (o *AssetDetailed2) GetLinks() AssetDetailedLinks { + if o == nil { + var ret AssetDetailedLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *AssetDetailed2) GetLinksOk() (*AssetDetailedLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *AssetDetailed2) SetLinks(v AssetDetailedLinks) { + o.Links = v +} + +func (o AssetDetailed2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailed2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["class"] = o.Class + toSerialize["type"] = o.Type + toSerialize["name"] = o.Name + if !IsNil(o.ExternalUrl) { + toSerialize["externalUrl"] = o.ExternalUrl + } + if !IsNil(o.FaviconUrl) { + toSerialize["faviconUrl"] = o.FaviconUrl + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["createdAt"] = o.CreatedAt + toSerialize["lastSeenAt"] = o.LastSeenAt + if !IsNil(o.ScheduledForDeletionAt) { + toSerialize["scheduledForDeletionAt"] = o.ScheduledForDeletionAt + } + toSerialize["status"] = o.Status + toSerialize["tags"] = o.Tags + toSerialize["risks"] = o.Risks + if !IsNil(o.FirstSeenScan) { + toSerialize["firstSeenScan"] = o.FirstSeenScan + } + if !IsNil(o.LastSeenScan) { + toSerialize["lastSeenScan"] = o.LastSeenScan + } + if !IsNil(o.Service) { + toSerialize["service"] = o.Service + } + if !IsNil(o.Frontend) { + toSerialize["frontend"] = o.Frontend + } + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } + toSerialize["links"] = o.Links + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailed2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "class", + "type", + "name", + "createdAt", + "lastSeenAt", + "status", + "tags", + "risks", + "links", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAssetDetailed2 := _AssetDetailed2{} + + err = json.Unmarshal(data, &varAssetDetailed2) + + if err != nil { + return err + } + + *o = AssetDetailed2(varAssetDetailed2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "class") + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "externalUrl") + delete(additionalProperties, "faviconUrl") + delete(additionalProperties, "description") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "lastSeenAt") + delete(additionalProperties, "scheduledForDeletionAt") + delete(additionalProperties, "status") + delete(additionalProperties, "tags") + delete(additionalProperties, "risks") + delete(additionalProperties, "firstSeenScan") + delete(additionalProperties, "lastSeenScan") + delete(additionalProperties, "service") + delete(additionalProperties, "frontend") + delete(additionalProperties, "host") + delete(additionalProperties, "links") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailed2 struct { + value *AssetDetailed2 + isSet bool +} + +func (v NullableAssetDetailed2) Get() *AssetDetailed2 { + return v.value +} + +func (v *NullableAssetDetailed2) Set(val *AssetDetailed2) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailed2) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailed2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailed2(val *AssetDetailed2) *NullableAssetDetailed2 { + return &NullableAssetDetailed2{value: val, isSet: true} +} + +func (v NullableAssetDetailed2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailed2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_asset_frontend_detailed.go b/pkg/api/v3/model_asset_frontend_detailed.go index 6aa2adc6..0ff1931a 100644 --- a/pkg/api/v3/model_asset_frontend_detailed.go +++ b/pkg/api/v3/model_asset_frontend_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the AssetFrontendDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &AssetFrontendDetailed{} -// AssetFrontendDetailed Detailed information about an asset frontend +// AssetFrontendDetailed The frontend of the asset type AssetFrontendDetailed struct { Type ENUMWEBAPP `json:"type"` Url string `json:"url"` diff --git a/pkg/api/v3/model_asset_frontend_summarized.go b/pkg/api/v3/model_asset_frontend_summarized.go index 0847b241..c88dce6b 100644 --- a/pkg/api/v3/model_asset_frontend_summarized.go +++ b/pkg/api/v3/model_asset_frontend_summarized.go @@ -18,7 +18,7 @@ import ( // checks if the AssetFrontendSummarized type satisfies the MappedNullable interface at compile time var _ MappedNullable = &AssetFrontendSummarized{} -// AssetFrontendSummarized Summarized information about an asset frontend +// AssetFrontendSummarized The frontend of the asset type AssetFrontendSummarized struct { // The url of the asset frontend Url string `json:"url"` diff --git a/pkg/api/v3/model_asset_host_detailed.go b/pkg/api/v3/model_asset_host_detailed.go index b00409fd..a499bba4 100644 --- a/pkg/api/v3/model_asset_host_detailed.go +++ b/pkg/api/v3/model_asset_host_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the AssetHostDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &AssetHostDetailed{} -// AssetHostDetailed Detailed information about an asset host +// AssetHostDetailed The host of the asset type AssetHostDetailed struct { Type ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESHOSTPROPERTIESTYPE `json:"type"` Address string `json:"address"` diff --git a/pkg/api/v3/model_asset_host_summarized.go b/pkg/api/v3/model_asset_host_summarized.go index e3643b77..5562f98a 100644 --- a/pkg/api/v3/model_asset_host_summarized.go +++ b/pkg/api/v3/model_asset_host_summarized.go @@ -18,7 +18,7 @@ import ( // checks if the AssetHostSummarized type satisfies the MappedNullable interface at compile time var _ MappedNullable = &AssetHostSummarized{} -// AssetHostSummarized Summarized information about an asset host +// AssetHostSummarized The host of the asset type AssetHostSummarized struct { // The address of the asset host Address string `json:"address"` diff --git a/pkg/api/v3/model_asset_service_detailed.go b/pkg/api/v3/model_asset_service_detailed.go index 23454342..36ec50e8 100644 --- a/pkg/api/v3/model_asset_service_detailed.go +++ b/pkg/api/v3/model_asset_service_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the AssetServiceDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &AssetServiceDetailed{} -// AssetServiceDetailed Detailed information about an asset service +// AssetServiceDetailed The service of the asset type AssetServiceDetailed struct { Type ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE `json:"type"` Url string `json:"url"` diff --git a/pkg/api/v3/model_asset_service_summarized.go b/pkg/api/v3/model_asset_service_summarized.go index 5feb04c9..310cbfa6 100644 --- a/pkg/api/v3/model_asset_service_summarized.go +++ b/pkg/api/v3/model_asset_service_summarized.go @@ -18,7 +18,7 @@ import ( // checks if the AssetServiceSummarized type satisfies the MappedNullable interface at compile time var _ MappedNullable = &AssetServiceSummarized{} -// AssetServiceSummarized Summarized information about an asset service +// AssetServiceSummarized The service of the asset type AssetServiceSummarized struct { // The url of the asset service Url string `json:"url"` diff --git a/pkg/api/v3/model_asset_summarized_1.go b/pkg/api/v3/model_asset_summarized_1.go new file mode 100644 index 00000000..0e6ab671 --- /dev/null +++ b/pkg/api/v3/model_asset_summarized_1.go @@ -0,0 +1,658 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the AssetSummarized1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetSummarized1{} + +// AssetSummarized1 The asset of the issue +type AssetSummarized1 struct { + // The id of the asset + Id string `json:"id"` + Class ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS `json:"class"` + Type ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE `json:"type"` + // The name of the asset + Name string `json:"name"` + // The external url of the asset + ExternalUrl *string `json:"externalUrl,omitempty"` + // The favicon url of the asset + FaviconUrl *string `json:"faviconUrl,omitempty"` + // The date and time the asset was created + CreatedAt string `json:"createdAt"` + // The date and time the asset was last seen + LastSeenAt string `json:"lastSeenAt"` + // The date and time the asset is scheduled for deletion + ScheduledForDeletionAt *string `json:"scheduledForDeletionAt,omitempty"` + Status ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS `json:"status"` + // The tags of the asset + Tags []Tag `json:"tags"` + // The risks of the asset + Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks"` + Service *AssetServiceSummarized `json:"service,omitempty"` + Frontend *AssetFrontendSummarized `json:"frontend,omitempty"` + Host *AssetHostSummarized `json:"host,omitempty"` + Links AssetDetailedLinks `json:"links"` + AdditionalProperties map[string]interface{} +} + +type _AssetSummarized1 AssetSummarized1 + +// NewAssetSummarized1 instantiates a new AssetSummarized1 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 NewAssetSummarized1(id string, class ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, type_ ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, name string, createdAt string, lastSeenAt string, status ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, tags []Tag, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, links AssetDetailedLinks) *AssetSummarized1 { + this := AssetSummarized1{} + this.Id = id + this.Class = class + this.Type = type_ + this.Name = name + this.CreatedAt = createdAt + this.LastSeenAt = lastSeenAt + this.Status = status + this.Tags = tags + this.Risks = risks + this.Links = links + return &this +} + +// NewAssetSummarized1WithDefaults instantiates a new AssetSummarized1 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 NewAssetSummarized1WithDefaults() *AssetSummarized1 { + this := AssetSummarized1{} + return &this +} + +// GetId returns the Id field value +func (o *AssetSummarized1) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AssetSummarized1) SetId(v string) { + o.Id = v +} + +// GetClass returns the Class field value +func (o *AssetSummarized1) GetClass() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS + return ret + } + + return o.Class +} + +// GetClassOk returns a tuple with the Class field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetClassOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, bool) { + if o == nil { + return nil, false + } + return &o.Class, true +} + +// SetClass sets field value +func (o *AssetSummarized1) SetClass(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS) { + o.Class = v +} + +// GetType returns the Type field value +func (o *AssetSummarized1) GetType() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetTypeOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AssetSummarized1) SetType(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE) { + o.Type = v +} + +// GetName returns the Name field value +func (o *AssetSummarized1) 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 *AssetSummarized1) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AssetSummarized1) SetName(v string) { + o.Name = v +} + +// GetExternalUrl returns the ExternalUrl field value if set, zero value otherwise. +func (o *AssetSummarized1) GetExternalUrl() string { + if o == nil || IsNil(o.ExternalUrl) { + var ret string + return ret + } + return *o.ExternalUrl +} + +// GetExternalUrlOk returns a tuple with the ExternalUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetExternalUrlOk() (*string, bool) { + if o == nil || IsNil(o.ExternalUrl) { + return nil, false + } + return o.ExternalUrl, true +} + +// HasExternalUrl returns a boolean if a field has been set. +func (o *AssetSummarized1) HasExternalUrl() bool { + if o != nil && !IsNil(o.ExternalUrl) { + return true + } + + return false +} + +// SetExternalUrl gets a reference to the given string and assigns it to the ExternalUrl field. +func (o *AssetSummarized1) SetExternalUrl(v string) { + o.ExternalUrl = &v +} + +// GetFaviconUrl returns the FaviconUrl field value if set, zero value otherwise. +func (o *AssetSummarized1) GetFaviconUrl() string { + if o == nil || IsNil(o.FaviconUrl) { + var ret string + return ret + } + return *o.FaviconUrl +} + +// GetFaviconUrlOk returns a tuple with the FaviconUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetFaviconUrlOk() (*string, bool) { + if o == nil || IsNil(o.FaviconUrl) { + return nil, false + } + return o.FaviconUrl, true +} + +// HasFaviconUrl returns a boolean if a field has been set. +func (o *AssetSummarized1) HasFaviconUrl() bool { + if o != nil && !IsNil(o.FaviconUrl) { + return true + } + + return false +} + +// SetFaviconUrl gets a reference to the given string and assigns it to the FaviconUrl field. +func (o *AssetSummarized1) SetFaviconUrl(v string) { + o.FaviconUrl = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *AssetSummarized1) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *AssetSummarized1) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetLastSeenAt returns the LastSeenAt field value +func (o *AssetSummarized1) GetLastSeenAt() string { + if o == nil { + var ret string + return ret + } + + return o.LastSeenAt +} + +// GetLastSeenAtOk returns a tuple with the LastSeenAt field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetLastSeenAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LastSeenAt, true +} + +// SetLastSeenAt sets field value +func (o *AssetSummarized1) SetLastSeenAt(v string) { + o.LastSeenAt = v +} + +// GetScheduledForDeletionAt returns the ScheduledForDeletionAt field value if set, zero value otherwise. +func (o *AssetSummarized1) GetScheduledForDeletionAt() string { + if o == nil || IsNil(o.ScheduledForDeletionAt) { + var ret string + return ret + } + return *o.ScheduledForDeletionAt +} + +// GetScheduledForDeletionAtOk returns a tuple with the ScheduledForDeletionAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetScheduledForDeletionAtOk() (*string, bool) { + if o == nil || IsNil(o.ScheduledForDeletionAt) { + return nil, false + } + return o.ScheduledForDeletionAt, true +} + +// HasScheduledForDeletionAt returns a boolean if a field has been set. +func (o *AssetSummarized1) HasScheduledForDeletionAt() bool { + if o != nil && !IsNil(o.ScheduledForDeletionAt) { + return true + } + + return false +} + +// SetScheduledForDeletionAt gets a reference to the given string and assigns it to the ScheduledForDeletionAt field. +func (o *AssetSummarized1) SetScheduledForDeletionAt(v string) { + o.ScheduledForDeletionAt = &v +} + +// GetStatus returns the Status field value +func (o *AssetSummarized1) GetStatus() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetStatusOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *AssetSummarized1) SetStatus(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS) { + o.Status = v +} + +// GetTags returns the Tags field value +func (o *AssetSummarized1) GetTags() []Tag { + if o == nil { + var ret []Tag + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetTagsOk() ([]Tag, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *AssetSummarized1) SetTags(v []Tag) { + o.Tags = v +} + +// GetRisks returns the Risks field value +func (o *AssetSummarized1) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS { + if o == nil { + var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS + return ret + } + + return o.Risks +} + +// GetRisksOk returns a tuple with the Risks field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, bool) { + if o == nil { + return nil, false + } + return o.Risks, true +} + +// SetRisks sets field value +func (o *AssetSummarized1) SetRisks(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS) { + o.Risks = v +} + +// GetService returns the Service field value if set, zero value otherwise. +func (o *AssetSummarized1) GetService() AssetServiceSummarized { + if o == nil || IsNil(o.Service) { + var ret AssetServiceSummarized + return ret + } + return *o.Service +} + +// GetServiceOk returns a tuple with the Service field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetServiceOk() (*AssetServiceSummarized, bool) { + if o == nil || IsNil(o.Service) { + return nil, false + } + return o.Service, true +} + +// HasService returns a boolean if a field has been set. +func (o *AssetSummarized1) HasService() bool { + if o != nil && !IsNil(o.Service) { + return true + } + + return false +} + +// SetService gets a reference to the given AssetServiceSummarized and assigns it to the Service field. +func (o *AssetSummarized1) SetService(v AssetServiceSummarized) { + o.Service = &v +} + +// GetFrontend returns the Frontend field value if set, zero value otherwise. +func (o *AssetSummarized1) GetFrontend() AssetFrontendSummarized { + if o == nil || IsNil(o.Frontend) { + var ret AssetFrontendSummarized + return ret + } + return *o.Frontend +} + +// GetFrontendOk returns a tuple with the Frontend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetFrontendOk() (*AssetFrontendSummarized, bool) { + if o == nil || IsNil(o.Frontend) { + return nil, false + } + return o.Frontend, true +} + +// HasFrontend returns a boolean if a field has been set. +func (o *AssetSummarized1) HasFrontend() bool { + if o != nil && !IsNil(o.Frontend) { + return true + } + + return false +} + +// SetFrontend gets a reference to the given AssetFrontendSummarized and assigns it to the Frontend field. +func (o *AssetSummarized1) SetFrontend(v AssetFrontendSummarized) { + o.Frontend = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *AssetSummarized1) GetHost() AssetHostSummarized { + if o == nil || IsNil(o.Host) { + var ret AssetHostSummarized + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetHostOk() (*AssetHostSummarized, bool) { + if o == nil || IsNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *AssetSummarized1) HasHost() bool { + if o != nil && !IsNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given AssetHostSummarized and assigns it to the Host field. +func (o *AssetSummarized1) SetHost(v AssetHostSummarized) { + o.Host = &v +} + +// GetLinks returns the Links field value +func (o *AssetSummarized1) GetLinks() AssetDetailedLinks { + if o == nil { + var ret AssetDetailedLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *AssetSummarized1) GetLinksOk() (*AssetDetailedLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *AssetSummarized1) SetLinks(v AssetDetailedLinks) { + o.Links = v +} + +func (o AssetSummarized1) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetSummarized1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["class"] = o.Class + toSerialize["type"] = o.Type + toSerialize["name"] = o.Name + if !IsNil(o.ExternalUrl) { + toSerialize["externalUrl"] = o.ExternalUrl + } + if !IsNil(o.FaviconUrl) { + toSerialize["faviconUrl"] = o.FaviconUrl + } + toSerialize["createdAt"] = o.CreatedAt + toSerialize["lastSeenAt"] = o.LastSeenAt + if !IsNil(o.ScheduledForDeletionAt) { + toSerialize["scheduledForDeletionAt"] = o.ScheduledForDeletionAt + } + toSerialize["status"] = o.Status + toSerialize["tags"] = o.Tags + toSerialize["risks"] = o.Risks + if !IsNil(o.Service) { + toSerialize["service"] = o.Service + } + if !IsNil(o.Frontend) { + toSerialize["frontend"] = o.Frontend + } + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } + toSerialize["links"] = o.Links + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetSummarized1) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "class", + "type", + "name", + "createdAt", + "lastSeenAt", + "status", + "tags", + "risks", + "links", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAssetSummarized1 := _AssetSummarized1{} + + err = json.Unmarshal(data, &varAssetSummarized1) + + if err != nil { + return err + } + + *o = AssetSummarized1(varAssetSummarized1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "class") + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "externalUrl") + delete(additionalProperties, "faviconUrl") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "lastSeenAt") + delete(additionalProperties, "scheduledForDeletionAt") + delete(additionalProperties, "status") + delete(additionalProperties, "tags") + delete(additionalProperties, "risks") + delete(additionalProperties, "service") + delete(additionalProperties, "frontend") + delete(additionalProperties, "host") + delete(additionalProperties, "links") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetSummarized1 struct { + value *AssetSummarized1 + isSet bool +} + +func (v NullableAssetSummarized1) Get() *AssetSummarized1 { + return v.value +} + +func (v *NullableAssetSummarized1) Set(val *AssetSummarized1) { + v.value = val + v.isSet = true +} + +func (v NullableAssetSummarized1) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetSummarized1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetSummarized1(val *AssetSummarized1) *NullableAssetSummarized1 { + return &NullableAssetSummarized1{value: val, isSet: true} +} + +func (v NullableAssetSummarized1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetSummarized1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_code_file_detailed.go b/pkg/api/v3/model_code_file_detailed.go index 9ef0b0ee..ebdc4746 100644 --- a/pkg/api/v3/model_code_file_detailed.go +++ b/pkg/api/v3/model_code_file_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the CodeFileDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &CodeFileDetailed{} -// CodeFileDetailed Detailed information about a code file +// CodeFileDetailed The code file of the target type CodeFileDetailed struct { // The id of the code file Id string `json:"id"` diff --git a/pkg/api/v3/model_create_asset_akamai_account_request.go b/pkg/api/v3/model_create_asset_akamai_account_request.go deleted file mode 100644 index 26fadbae..00000000 --- a/pkg/api/v3/model_create_asset_akamai_account_request.go +++ /dev/null @@ -1,526 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetAKAMAIACCOUNTRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetAKAMAIACCOUNTRequest{} - -// CreateAssetAKAMAIACCOUNTRequest struct for CreateAssetAKAMAIACCOUNTRequest -type CreateAssetAKAMAIACCOUNTRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMCDN `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMAKAMAIACCOUNT `json:"asset_type"` - Name *string `json:"name,omitempty"` - ImmutableKey string `json:"immutable_key"` - Host string `json:"host"` - ClientSecret string `json:"client_secret"` - AccessToken string `json:"access_token"` - ClientToken string `json:"client_token"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetAKAMAIACCOUNTRequest CreateAssetAKAMAIACCOUNTRequest - -// NewCreateAssetAKAMAIACCOUNTRequest instantiates a new CreateAssetAKAMAIACCOUNTRequest 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 NewCreateAssetAKAMAIACCOUNTRequest(assetClass ENUMCDN, assetType ENUMAKAMAIACCOUNT, immutableKey string, host string, clientSecret string, accessToken string, clientToken string) *CreateAssetAKAMAIACCOUNTRequest { - this := CreateAssetAKAMAIACCOUNTRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - this.ImmutableKey = immutableKey - this.Host = host - this.ClientSecret = clientSecret - this.AccessToken = accessToken - this.ClientToken = clientToken - return &this -} - -// NewCreateAssetAKAMAIACCOUNTRequestWithDefaults instantiates a new CreateAssetAKAMAIACCOUNTRequest 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 NewCreateAssetAKAMAIACCOUNTRequestWithDefaults() *CreateAssetAKAMAIACCOUNTRequest { - this := CreateAssetAKAMAIACCOUNTRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetAKAMAIACCOUNTRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetAKAMAIACCOUNTRequest) GetAssetClass() ENUMCDN { - if o == nil { - var ret ENUMCDN - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetAssetClassOk() (*ENUMCDN, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetAKAMAIACCOUNTRequest) SetAssetClass(v ENUMCDN) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetAKAMAIACCOUNTRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetAKAMAIACCOUNTRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetAKAMAIACCOUNTRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetAKAMAIACCOUNTRequest) GetAssetType() ENUMAKAMAIACCOUNT { - if o == nil { - var ret ENUMAKAMAIACCOUNT - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetAssetTypeOk() (*ENUMAKAMAIACCOUNT, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetAKAMAIACCOUNTRequest) SetAssetType(v ENUMAKAMAIACCOUNT) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetAKAMAIACCOUNTRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetAKAMAIACCOUNTRequest) SetName(v string) { - o.Name = &v -} - -// GetImmutableKey returns the ImmutableKey field value -func (o *CreateAssetAKAMAIACCOUNTRequest) GetImmutableKey() string { - if o == nil { - var ret string - return ret - } - - return o.ImmutableKey -} - -// GetImmutableKeyOk returns a tuple with the ImmutableKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetImmutableKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ImmutableKey, true -} - -// SetImmutableKey sets field value -func (o *CreateAssetAKAMAIACCOUNTRequest) SetImmutableKey(v string) { - o.ImmutableKey = v -} - -// GetHost returns the Host field value -func (o *CreateAssetAKAMAIACCOUNTRequest) GetHost() string { - if o == nil { - var ret string - return ret - } - - return o.Host -} - -// GetHostOk returns a tuple with the Host field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetHostOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Host, true -} - -// SetHost sets field value -func (o *CreateAssetAKAMAIACCOUNTRequest) SetHost(v string) { - o.Host = v -} - -// GetClientSecret returns the ClientSecret field value -func (o *CreateAssetAKAMAIACCOUNTRequest) GetClientSecret() string { - if o == nil { - var ret string - return ret - } - - return o.ClientSecret -} - -// GetClientSecretOk returns a tuple with the ClientSecret field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetClientSecretOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientSecret, true -} - -// SetClientSecret sets field value -func (o *CreateAssetAKAMAIACCOUNTRequest) SetClientSecret(v string) { - o.ClientSecret = v -} - -// GetAccessToken returns the AccessToken field value -func (o *CreateAssetAKAMAIACCOUNTRequest) GetAccessToken() string { - if o == nil { - var ret string - return ret - } - - return o.AccessToken -} - -// GetAccessTokenOk returns a tuple with the AccessToken field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetAccessTokenOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AccessToken, true -} - -// SetAccessToken sets field value -func (o *CreateAssetAKAMAIACCOUNTRequest) SetAccessToken(v string) { - o.AccessToken = v -} - -// GetClientToken returns the ClientToken field value -func (o *CreateAssetAKAMAIACCOUNTRequest) GetClientToken() string { - if o == nil { - var ret string - return ret - } - - return o.ClientToken -} - -// GetClientTokenOk returns a tuple with the ClientToken field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAKAMAIACCOUNTRequest) GetClientTokenOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientToken, true -} - -// SetClientToken sets field value -func (o *CreateAssetAKAMAIACCOUNTRequest) SetClientToken(v string) { - o.ClientToken = v -} - -func (o CreateAssetAKAMAIACCOUNTRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetAKAMAIACCOUNTRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["immutable_key"] = o.ImmutableKey - toSerialize["host"] = o.Host - toSerialize["client_secret"] = o.ClientSecret - toSerialize["access_token"] = o.AccessToken - toSerialize["client_token"] = o.ClientToken - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetAKAMAIACCOUNTRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - "immutable_key", - "host", - "client_secret", - "access_token", - "client_token", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetAKAMAIACCOUNTRequest := _CreateAssetAKAMAIACCOUNTRequest{} - - err = json.Unmarshal(data, &varCreateAssetAKAMAIACCOUNTRequest) - - if err != nil { - return err - } - - *o = CreateAssetAKAMAIACCOUNTRequest(varCreateAssetAKAMAIACCOUNTRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "immutable_key") - delete(additionalProperties, "host") - delete(additionalProperties, "client_secret") - delete(additionalProperties, "access_token") - delete(additionalProperties, "client_token") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetAKAMAIACCOUNTRequest struct { - value *CreateAssetAKAMAIACCOUNTRequest - isSet bool -} - -func (v NullableCreateAssetAKAMAIACCOUNTRequest) Get() *CreateAssetAKAMAIACCOUNTRequest { - return v.value -} - -func (v *NullableCreateAssetAKAMAIACCOUNTRequest) Set(val *CreateAssetAKAMAIACCOUNTRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetAKAMAIACCOUNTRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetAKAMAIACCOUNTRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetAKAMAIACCOUNTRequest(val *CreateAssetAKAMAIACCOUNTRequest) *NullableCreateAssetAKAMAIACCOUNTRequest { - return &NullableCreateAssetAKAMAIACCOUNTRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetAKAMAIACCOUNTRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetAKAMAIACCOUNTRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_aws_account_request.go b/pkg/api/v3/model_create_asset_aws_account_request.go deleted file mode 100644 index 4dc5b805..00000000 --- a/pkg/api/v3/model_create_asset_aws_account_request.go +++ /dev/null @@ -1,468 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetAWSACCOUNTRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetAWSACCOUNTRequest{} - -// CreateAssetAWSACCOUNTRequest struct for CreateAssetAWSACCOUNTRequest -type CreateAssetAWSACCOUNTRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMCLOUDHOSTING `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMAWSACCOUNT `json:"asset_type"` - Name *string `json:"name,omitempty"` - ImmutableKey string `json:"immutable_key"` - PublicKey string `json:"public_key"` - PrivateKey string `json:"private_key"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetAWSACCOUNTRequest CreateAssetAWSACCOUNTRequest - -// NewCreateAssetAWSACCOUNTRequest instantiates a new CreateAssetAWSACCOUNTRequest 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 NewCreateAssetAWSACCOUNTRequest(assetClass ENUMCLOUDHOSTING, assetType ENUMAWSACCOUNT, immutableKey string, publicKey string, privateKey string) *CreateAssetAWSACCOUNTRequest { - this := CreateAssetAWSACCOUNTRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - this.ImmutableKey = immutableKey - this.PublicKey = publicKey - this.PrivateKey = privateKey - return &this -} - -// NewCreateAssetAWSACCOUNTRequestWithDefaults instantiates a new CreateAssetAWSACCOUNTRequest 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 NewCreateAssetAWSACCOUNTRequestWithDefaults() *CreateAssetAWSACCOUNTRequest { - this := CreateAssetAWSACCOUNTRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetAWSACCOUNTRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetAWSACCOUNTRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetAWSACCOUNTRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetAWSACCOUNTRequest) GetAssetClass() ENUMCLOUDHOSTING { - if o == nil { - var ret ENUMCLOUDHOSTING - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetAssetClassOk() (*ENUMCLOUDHOSTING, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetAWSACCOUNTRequest) SetAssetClass(v ENUMCLOUDHOSTING) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetAWSACCOUNTRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetAWSACCOUNTRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetAWSACCOUNTRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetAWSACCOUNTRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetAWSACCOUNTRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetAWSACCOUNTRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetAWSACCOUNTRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetAWSACCOUNTRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetAWSACCOUNTRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetAWSACCOUNTRequest) GetAssetType() ENUMAWSACCOUNT { - if o == nil { - var ret ENUMAWSACCOUNT - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetAssetTypeOk() (*ENUMAWSACCOUNT, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetAWSACCOUNTRequest) SetAssetType(v ENUMAWSACCOUNT) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetAWSACCOUNTRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetAWSACCOUNTRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetAWSACCOUNTRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetAWSACCOUNTRequest) SetName(v string) { - o.Name = &v -} - -// GetImmutableKey returns the ImmutableKey field value -func (o *CreateAssetAWSACCOUNTRequest) GetImmutableKey() string { - if o == nil { - var ret string - return ret - } - - return o.ImmutableKey -} - -// GetImmutableKeyOk returns a tuple with the ImmutableKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetImmutableKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ImmutableKey, true -} - -// SetImmutableKey sets field value -func (o *CreateAssetAWSACCOUNTRequest) SetImmutableKey(v string) { - o.ImmutableKey = v -} - -// GetPublicKey returns the PublicKey field value -func (o *CreateAssetAWSACCOUNTRequest) GetPublicKey() string { - if o == nil { - var ret string - return ret - } - - return o.PublicKey -} - -// GetPublicKeyOk returns a tuple with the PublicKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetPublicKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.PublicKey, true -} - -// SetPublicKey sets field value -func (o *CreateAssetAWSACCOUNTRequest) SetPublicKey(v string) { - o.PublicKey = v -} - -// GetPrivateKey returns the PrivateKey field value -func (o *CreateAssetAWSACCOUNTRequest) GetPrivateKey() string { - if o == nil { - var ret string - return ret - } - - return o.PrivateKey -} - -// GetPrivateKeyOk returns a tuple with the PrivateKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAWSACCOUNTRequest) GetPrivateKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.PrivateKey, true -} - -// SetPrivateKey sets field value -func (o *CreateAssetAWSACCOUNTRequest) SetPrivateKey(v string) { - o.PrivateKey = v -} - -func (o CreateAssetAWSACCOUNTRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetAWSACCOUNTRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["immutable_key"] = o.ImmutableKey - toSerialize["public_key"] = o.PublicKey - toSerialize["private_key"] = o.PrivateKey - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetAWSACCOUNTRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - "immutable_key", - "public_key", - "private_key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetAWSACCOUNTRequest := _CreateAssetAWSACCOUNTRequest{} - - err = json.Unmarshal(data, &varCreateAssetAWSACCOUNTRequest) - - if err != nil { - return err - } - - *o = CreateAssetAWSACCOUNTRequest(varCreateAssetAWSACCOUNTRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "immutable_key") - delete(additionalProperties, "public_key") - delete(additionalProperties, "private_key") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetAWSACCOUNTRequest struct { - value *CreateAssetAWSACCOUNTRequest - isSet bool -} - -func (v NullableCreateAssetAWSACCOUNTRequest) Get() *CreateAssetAWSACCOUNTRequest { - return v.value -} - -func (v *NullableCreateAssetAWSACCOUNTRequest) Set(val *CreateAssetAWSACCOUNTRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetAWSACCOUNTRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetAWSACCOUNTRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetAWSACCOUNTRequest(val *CreateAssetAWSACCOUNTRequest) *NullableCreateAssetAWSACCOUNTRequest { - return &NullableCreateAssetAWSACCOUNTRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetAWSACCOUNTRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetAWSACCOUNTRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_aws_lambda_request.go b/pkg/api/v3/model_create_asset_aws_lambda_request.go new file mode 100644 index 00000000..0e46c375 --- /dev/null +++ b/pkg/api/v3/model_create_asset_aws_lambda_request.go @@ -0,0 +1,476 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateAssetAWSLAMBDARequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetAWSLAMBDARequest{} + +// CreateAssetAWSLAMBDARequest struct for CreateAssetAWSLAMBDARequest +type CreateAssetAWSLAMBDARequest struct { + // The list of project IDs bind the asset on. + ProjectIds []string `json:"projectIds,omitempty"` + Name string `json:"name"` + AssetClass ENUMCLOUDCOMPONENT `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMAWSLAMBDA `json:"asset_type"` + FunctionArn string `json:"function_arn"` + Runtime *string `json:"runtime,omitempty"` + Description *string `json:"description,omitempty"` + FunctionUrl *string `json:"function_url,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateAssetAWSLAMBDARequest CreateAssetAWSLAMBDARequest + +// NewCreateAssetAWSLAMBDARequest instantiates a new CreateAssetAWSLAMBDARequest 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 NewCreateAssetAWSLAMBDARequest(name string, assetClass ENUMCLOUDCOMPONENT, assetType ENUMAWSLAMBDA, functionArn string) *CreateAssetAWSLAMBDARequest { + this := CreateAssetAWSLAMBDARequest{} + this.Name = name + this.AssetClass = assetClass + this.AssetType = assetType + this.FunctionArn = functionArn + return &this +} + +// NewCreateAssetAWSLAMBDARequestWithDefaults instantiates a new CreateAssetAWSLAMBDARequest 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 NewCreateAssetAWSLAMBDARequestWithDefaults() *CreateAssetAWSLAMBDARequest { + this := CreateAssetAWSLAMBDARequest{} + return &this +} + +// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. +func (o *CreateAssetAWSLAMBDARequest) GetProjectIds() []string { + if o == nil || IsNil(o.ProjectIds) { + var ret []string + return ret + } + return o.ProjectIds +} + +// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetAWSLAMBDARequest) GetProjectIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ProjectIds) { + return nil, false + } + return o.ProjectIds, true +} + +// HasProjectIds returns a boolean if a field has been set. +func (o *CreateAssetAWSLAMBDARequest) HasProjectIds() bool { + if o != nil && !IsNil(o.ProjectIds) { + return true + } + + return false +} + +// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. +func (o *CreateAssetAWSLAMBDARequest) SetProjectIds(v []string) { + o.ProjectIds = v +} + +// GetName returns the Name field value +func (o *CreateAssetAWSLAMBDARequest) 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 *CreateAssetAWSLAMBDARequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateAssetAWSLAMBDARequest) SetName(v string) { + o.Name = v +} + +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetAWSLAMBDARequest) GetAssetClass() ENUMCLOUDCOMPONENT { + if o == nil { + var ret ENUMCLOUDCOMPONENT + return ret + } + + return o.AssetClass +} + +// GetAssetClassOk returns a tuple with the AssetClass field value +// and a boolean to check if the value has been set. +func (o *CreateAssetAWSLAMBDARequest) GetAssetClassOk() (*ENUMCLOUDCOMPONENT, bool) { + if o == nil { + return nil, false + } + return &o.AssetClass, true +} + +// SetAssetClass sets field value +func (o *CreateAssetAWSLAMBDARequest) SetAssetClass(v ENUMCLOUDCOMPONENT) { + o.AssetClass = v +} + +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetAWSLAMBDARequest) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} + return ret + } + return o.ExtraMetadata +} + +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetAWSLAMBDARequest) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false + } + return o.ExtraMetadata, true +} + +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetAWSLAMBDARequest) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { + return true + } + + return false +} + +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetAWSLAMBDARequest) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v +} + +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetAWSLAMBDARequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetAWSLAMBDARequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetAWSLAMBDARequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetAWSLAMBDARequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + +// GetAssetType returns the AssetType field value +func (o *CreateAssetAWSLAMBDARequest) GetAssetType() ENUMAWSLAMBDA { + if o == nil { + var ret ENUMAWSLAMBDA + return ret + } + + return o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value +// and a boolean to check if the value has been set. +func (o *CreateAssetAWSLAMBDARequest) GetAssetTypeOk() (*ENUMAWSLAMBDA, bool) { + if o == nil { + return nil, false + } + return &o.AssetType, true +} + +// SetAssetType sets field value +func (o *CreateAssetAWSLAMBDARequest) SetAssetType(v ENUMAWSLAMBDA) { + o.AssetType = v +} + +// GetFunctionArn returns the FunctionArn field value +func (o *CreateAssetAWSLAMBDARequest) GetFunctionArn() string { + if o == nil { + var ret string + return ret + } + + return o.FunctionArn +} + +// GetFunctionArnOk returns a tuple with the FunctionArn field value +// and a boolean to check if the value has been set. +func (o *CreateAssetAWSLAMBDARequest) GetFunctionArnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FunctionArn, true +} + +// SetFunctionArn sets field value +func (o *CreateAssetAWSLAMBDARequest) SetFunctionArn(v string) { + o.FunctionArn = v +} + +// GetRuntime returns the Runtime field value if set, zero value otherwise. +func (o *CreateAssetAWSLAMBDARequest) GetRuntime() string { + if o == nil || IsNil(o.Runtime) { + var ret string + return ret + } + return *o.Runtime +} + +// GetRuntimeOk returns a tuple with the Runtime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetAWSLAMBDARequest) GetRuntimeOk() (*string, bool) { + if o == nil || IsNil(o.Runtime) { + return nil, false + } + return o.Runtime, true +} + +// HasRuntime returns a boolean if a field has been set. +func (o *CreateAssetAWSLAMBDARequest) HasRuntime() bool { + if o != nil && !IsNil(o.Runtime) { + return true + } + + return false +} + +// SetRuntime gets a reference to the given string and assigns it to the Runtime field. +func (o *CreateAssetAWSLAMBDARequest) SetRuntime(v string) { + o.Runtime = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateAssetAWSLAMBDARequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *CreateAssetAWSLAMBDARequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateAssetAWSLAMBDARequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateAssetAWSLAMBDARequest) SetDescription(v string) { + o.Description = &v +} + +// GetFunctionUrl returns the FunctionUrl field value if set, zero value otherwise. +func (o *CreateAssetAWSLAMBDARequest) GetFunctionUrl() string { + if o == nil || IsNil(o.FunctionUrl) { + var ret string + return ret + } + return *o.FunctionUrl +} + +// GetFunctionUrlOk returns a tuple with the FunctionUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetAWSLAMBDARequest) GetFunctionUrlOk() (*string, bool) { + if o == nil || IsNil(o.FunctionUrl) { + return nil, false + } + return o.FunctionUrl, true +} + +// HasFunctionUrl returns a boolean if a field has been set. +func (o *CreateAssetAWSLAMBDARequest) HasFunctionUrl() bool { + if o != nil && !IsNil(o.FunctionUrl) { + return true + } + + return false +} + +// SetFunctionUrl gets a reference to the given string and assigns it to the FunctionUrl field. +func (o *CreateAssetAWSLAMBDARequest) SetFunctionUrl(v string) { + o.FunctionUrl = &v +} + +func (o CreateAssetAWSLAMBDARequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetAWSLAMBDARequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProjectIds) { + toSerialize["projectIds"] = o.ProjectIds + } + toSerialize["name"] = o.Name + toSerialize["asset_class"] = o.AssetClass + if !IsNil(o.ExtraMetadata) { + toSerialize["extra_metadata"] = o.ExtraMetadata + } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } + toSerialize["asset_type"] = o.AssetType + toSerialize["function_arn"] = o.FunctionArn + if !IsNil(o.Runtime) { + toSerialize["runtime"] = o.Runtime + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.FunctionUrl) { + toSerialize["function_url"] = o.FunctionUrl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateAssetAWSLAMBDARequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "asset_class", + "asset_type", + "function_arn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAssetAWSLAMBDARequest := _CreateAssetAWSLAMBDARequest{} + + err = json.Unmarshal(data, &varCreateAssetAWSLAMBDARequest) + + if err != nil { + return err + } + + *o = CreateAssetAWSLAMBDARequest(varCreateAssetAWSLAMBDARequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") + delete(additionalProperties, "asset_class") + delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") + delete(additionalProperties, "asset_type") + delete(additionalProperties, "function_arn") + delete(additionalProperties, "runtime") + delete(additionalProperties, "description") + delete(additionalProperties, "function_url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateAssetAWSLAMBDARequest struct { + value *CreateAssetAWSLAMBDARequest + isSet bool +} + +func (v NullableCreateAssetAWSLAMBDARequest) Get() *CreateAssetAWSLAMBDARequest { + return v.value +} + +func (v *NullableCreateAssetAWSLAMBDARequest) Set(val *CreateAssetAWSLAMBDARequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetAWSLAMBDARequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetAWSLAMBDARequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetAWSLAMBDARequest(val *CreateAssetAWSLAMBDARequest) *NullableCreateAssetAWSLAMBDARequest { + return &NullableCreateAssetAWSLAMBDARequest{value: val, isSet: true} +} + +func (v NullableCreateAssetAWSLAMBDARequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetAWSLAMBDARequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_asset_azure_tenant_request.go b/pkg/api/v3/model_create_asset_azure_tenant_request.go index 087ac747..d63800af 100644 --- a/pkg/api/v3/model_create_asset_azure_tenant_request.go +++ b/pkg/api/v3/model_create_asset_azure_tenant_request.go @@ -22,12 +22,11 @@ var _ MappedNullable = &CreateAssetAZURETENANTRequest{} type CreateAssetAZURETENANTRequest struct { // The list of project IDs bind the asset on. ProjectIds []string `json:"projectIds,omitempty"` + Name *string `json:"name,omitempty"` AssetClass ENUMCLOUDHOSTING `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMAZURETENANT `json:"asset_type"` - Name *string `json:"name,omitempty"` ImmutableKey string `json:"immutable_key"` ClientId string `json:"client_id"` ClientSecret string `json:"client_secret"` @@ -92,92 +91,60 @@ func (o *CreateAssetAZURETENANTRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetAZURETENANTRequest) GetAssetClass() ENUMCLOUDHOSTING { - if o == nil { - var ret ENUMCLOUDHOSTING - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetAZURETENANTRequest) GetAssetClassOk() (*ENUMCLOUDHOSTING, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetAZURETENANTRequest) SetAssetClass(v ENUMCLOUDHOSTING) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetAZURETENANTRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetAZURETENANTRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetAZURETENANTRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetAZURETENANTRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetAZURETENANTRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetAZURETENANTRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetAZURETENANTRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetAZURETENANTRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetAZURETENANTRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetAZURETENANTRequest) GetAssetClass() ENUMCLOUDHOSTING { + if o == nil { + var ret ENUMCLOUDHOSTING return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetAZURETENANTRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetAZURETENANTRequest) GetAssetClassOk() (*ENUMCLOUDHOSTING, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetAZURETENANTRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetAZURETENANTRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetAZURETENANTRequest) SetAssetClass(v ENUMCLOUDHOSTING) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -212,6 +179,38 @@ func (o *CreateAssetAZURETENANTRequest) SetExtraMetadata(v map[string]interface{ o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetAZURETENANTRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetAZURETENANTRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetAZURETENANTRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetAZURETENANTRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetAZURETENANTRequest) GetAssetType() ENUMAZURETENANT { if o == nil { @@ -236,38 +235,6 @@ func (o *CreateAssetAZURETENANTRequest) SetAssetType(v ENUMAZURETENANT) { o.AssetType = v } -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetAZURETENANTRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetAZURETENANTRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetAZURETENANTRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetAZURETENANTRequest) SetName(v string) { - o.Name = &v -} - // GetImmutableKey returns the ImmutableKey field value func (o *CreateAssetAZURETENANTRequest) GetImmutableKey() string { if o == nil { @@ -377,20 +344,17 @@ func (o CreateAssetAZURETENANTRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key } + toSerialize["asset_type"] = o.AssetType toSerialize["immutable_key"] = o.ImmutableKey toSerialize["client_id"] = o.ClientId toSerialize["client_secret"] = o.ClientSecret @@ -444,12 +408,11 @@ func (o *CreateAssetAZURETENANTRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") delete(additionalProperties, "immutable_key") delete(additionalProperties, "client_id") delete(additionalProperties, "client_secret") diff --git a/pkg/api/v3/model_create_asset_bitbucket_repository_request.go b/pkg/api/v3/model_create_asset_bitbucket_repository_request.go new file mode 100644 index 00000000..2da8564b --- /dev/null +++ b/pkg/api/v3/model_create_asset_bitbucket_repository_request.go @@ -0,0 +1,743 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateAssetBITBUCKETREPOSITORYRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetBITBUCKETREPOSITORYRequest{} + +// CreateAssetBITBUCKETREPOSITORYRequest struct for CreateAssetBITBUCKETREPOSITORYRequest +type CreateAssetBITBUCKETREPOSITORYRequest struct { + // The list of project IDs bind the asset on. + ProjectIds []string `json:"projectIds,omitempty"` + Name *string `json:"name,omitempty"` + AssetClass ENUMREPOSITORY `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMBITBUCKETREPOSITORY `json:"asset_type"` + Url string `json:"url"` + HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` + Description *string `json:"description,omitempty"` + LocationId *string `json:"location_id,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + BlobBaseUrl *string `json:"blob_base_url,omitempty"` + LastCommit *CreateAssetGITLABREPOSITORYRequestLastCommit `json:"last_commit,omitempty"` + WorkspaceName *string `json:"workspace_name,omitempty"` + RepositoryName *string `json:"repository_name,omitempty"` + IsPrivate *bool `json:"is_private,omitempty"` + Org *CreateAssetBITBUCKETREPOSITORYRequestOrg `json:"org,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateAssetBITBUCKETREPOSITORYRequest CreateAssetBITBUCKETREPOSITORYRequest + +// NewCreateAssetBITBUCKETREPOSITORYRequest instantiates a new CreateAssetBITBUCKETREPOSITORYRequest 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 NewCreateAssetBITBUCKETREPOSITORYRequest(assetClass ENUMREPOSITORY, assetType ENUMBITBUCKETREPOSITORY, url string) *CreateAssetBITBUCKETREPOSITORYRequest { + this := CreateAssetBITBUCKETREPOSITORYRequest{} + this.AssetClass = assetClass + this.AssetType = assetType + this.Url = url + return &this +} + +// NewCreateAssetBITBUCKETREPOSITORYRequestWithDefaults instantiates a new CreateAssetBITBUCKETREPOSITORYRequest 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 NewCreateAssetBITBUCKETREPOSITORYRequestWithDefaults() *CreateAssetBITBUCKETREPOSITORYRequest { + this := CreateAssetBITBUCKETREPOSITORYRequest{} + return &this +} + +// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetProjectIds() []string { + if o == nil || IsNil(o.ProjectIds) { + var ret []string + return ret + } + return o.ProjectIds +} + +// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetProjectIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ProjectIds) { + return nil, false + } + return o.ProjectIds, true +} + +// HasProjectIds returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasProjectIds() bool { + if o != nil && !IsNil(o.ProjectIds) { + return true + } + + return false +} + +// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetProjectIds(v []string) { + o.ProjectIds = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetName() string { + if o == nil || IsNil(o.Name) { + 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 *CreateAssetBITBUCKETREPOSITORYRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetName(v string) { + o.Name = &v +} + +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetAssetClass() ENUMREPOSITORY { + if o == nil { + var ret ENUMREPOSITORY + return ret + } + + return o.AssetClass +} + +// GetAssetClassOk returns a tuple with the AssetClass field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetAssetClassOk() (*ENUMREPOSITORY, bool) { + if o == nil { + return nil, false + } + return &o.AssetClass, true +} + +// SetAssetClass sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetAssetClass(v ENUMREPOSITORY) { + o.AssetClass = v +} + +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} + return ret + } + return o.ExtraMetadata +} + +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false + } + return o.ExtraMetadata, true +} + +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { + return true + } + + return false +} + +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v +} + +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + +// GetAssetType returns the AssetType field value +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetAssetType() ENUMBITBUCKETREPOSITORY { + if o == nil { + var ret ENUMBITBUCKETREPOSITORY + return ret + } + + return o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetAssetTypeOk() (*ENUMBITBUCKETREPOSITORY, bool) { + if o == nil { + return nil, false + } + return &o.AssetType, true +} + +// SetAssetType sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetAssetType(v ENUMBITBUCKETREPOSITORY) { + o.AssetType = v +} + +// GetUrl returns the Url field value +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetUrl(v string) { + o.Url = v +} + +// GetHttpUrlToRepo returns the HttpUrlToRepo field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetHttpUrlToRepo() string { + if o == nil || IsNil(o.HttpUrlToRepo) { + var ret string + return ret + } + return *o.HttpUrlToRepo +} + +// GetHttpUrlToRepoOk returns a tuple with the HttpUrlToRepo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetHttpUrlToRepoOk() (*string, bool) { + if o == nil || IsNil(o.HttpUrlToRepo) { + return nil, false + } + return o.HttpUrlToRepo, true +} + +// HasHttpUrlToRepo returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasHttpUrlToRepo() bool { + if o != nil && !IsNil(o.HttpUrlToRepo) { + return true + } + + return false +} + +// SetHttpUrlToRepo gets a reference to the given string and assigns it to the HttpUrlToRepo field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetHttpUrlToRepo(v string) { + o.HttpUrlToRepo = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *CreateAssetBITBUCKETREPOSITORYRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetDescription(v string) { + o.Description = &v +} + +// GetLocationId returns the LocationId field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetLocationId() string { + if o == nil || IsNil(o.LocationId) { + var ret string + return ret + } + return *o.LocationId +} + +// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetLocationIdOk() (*string, bool) { + if o == nil || IsNil(o.LocationId) { + return nil, false + } + return o.LocationId, true +} + +// HasLocationId returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasLocationId() bool { + if o != nil && !IsNil(o.LocationId) { + return true + } + + return false +} + +// SetLocationId gets a reference to the given string and assigns it to the LocationId field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetLocationId(v string) { + o.LocationId = &v +} + +// GetDefaultBranch returns the DefaultBranch field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetDefaultBranch() string { + if o == nil || IsNil(o.DefaultBranch) { + var ret string + return ret + } + return *o.DefaultBranch +} + +// GetDefaultBranchOk returns a tuple with the DefaultBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetDefaultBranchOk() (*string, bool) { + if o == nil || IsNil(o.DefaultBranch) { + return nil, false + } + return o.DefaultBranch, true +} + +// HasDefaultBranch returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasDefaultBranch() bool { + if o != nil && !IsNil(o.DefaultBranch) { + return true + } + + return false +} + +// SetDefaultBranch gets a reference to the given string and assigns it to the DefaultBranch field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetDefaultBranch(v string) { + o.DefaultBranch = &v +} + +// GetBlobBaseUrl returns the BlobBaseUrl field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetBlobBaseUrl() string { + if o == nil || IsNil(o.BlobBaseUrl) { + var ret string + return ret + } + return *o.BlobBaseUrl +} + +// GetBlobBaseUrlOk returns a tuple with the BlobBaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetBlobBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BlobBaseUrl) { + return nil, false + } + return o.BlobBaseUrl, true +} + +// HasBlobBaseUrl returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasBlobBaseUrl() bool { + if o != nil && !IsNil(o.BlobBaseUrl) { + return true + } + + return false +} + +// SetBlobBaseUrl gets a reference to the given string and assigns it to the BlobBaseUrl field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetBlobBaseUrl(v string) { + o.BlobBaseUrl = &v +} + +// GetLastCommit returns the LastCommit field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetLastCommit() CreateAssetGITLABREPOSITORYRequestLastCommit { + if o == nil || IsNil(o.LastCommit) { + var ret CreateAssetGITLABREPOSITORYRequestLastCommit + return ret + } + return *o.LastCommit +} + +// GetLastCommitOk returns a tuple with the LastCommit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetLastCommitOk() (*CreateAssetGITLABREPOSITORYRequestLastCommit, bool) { + if o == nil || IsNil(o.LastCommit) { + return nil, false + } + return o.LastCommit, true +} + +// HasLastCommit returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasLastCommit() bool { + if o != nil && !IsNil(o.LastCommit) { + return true + } + + return false +} + +// SetLastCommit gets a reference to the given CreateAssetGITLABREPOSITORYRequestLastCommit and assigns it to the LastCommit field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetLastCommit(v CreateAssetGITLABREPOSITORYRequestLastCommit) { + o.LastCommit = &v +} + +// GetWorkspaceName returns the WorkspaceName field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetWorkspaceName() string { + if o == nil || IsNil(o.WorkspaceName) { + var ret string + return ret + } + return *o.WorkspaceName +} + +// GetWorkspaceNameOk returns a tuple with the WorkspaceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetWorkspaceNameOk() (*string, bool) { + if o == nil || IsNil(o.WorkspaceName) { + return nil, false + } + return o.WorkspaceName, true +} + +// HasWorkspaceName returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasWorkspaceName() bool { + if o != nil && !IsNil(o.WorkspaceName) { + return true + } + + return false +} + +// SetWorkspaceName gets a reference to the given string and assigns it to the WorkspaceName field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetWorkspaceName(v string) { + o.WorkspaceName = &v +} + +// GetRepositoryName returns the RepositoryName field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetRepositoryName() string { + if o == nil || IsNil(o.RepositoryName) { + var ret string + return ret + } + return *o.RepositoryName +} + +// GetRepositoryNameOk returns a tuple with the RepositoryName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetRepositoryNameOk() (*string, bool) { + if o == nil || IsNil(o.RepositoryName) { + return nil, false + } + return o.RepositoryName, true +} + +// HasRepositoryName returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasRepositoryName() bool { + if o != nil && !IsNil(o.RepositoryName) { + return true + } + + return false +} + +// SetRepositoryName gets a reference to the given string and assigns it to the RepositoryName field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetRepositoryName(v string) { + o.RepositoryName = &v +} + +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + +// GetOrg returns the Org field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetOrg() CreateAssetBITBUCKETREPOSITORYRequestOrg { + if o == nil || IsNil(o.Org) { + var ret CreateAssetBITBUCKETREPOSITORYRequestOrg + return ret + } + return *o.Org +} + +// GetOrgOk returns a tuple with the Org field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) GetOrgOk() (*CreateAssetBITBUCKETREPOSITORYRequestOrg, bool) { + if o == nil || IsNil(o.Org) { + return nil, false + } + return o.Org, true +} + +// HasOrg returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) HasOrg() bool { + if o != nil && !IsNil(o.Org) { + return true + } + + return false +} + +// SetOrg gets a reference to the given CreateAssetBITBUCKETREPOSITORYRequestOrg and assigns it to the Org field. +func (o *CreateAssetBITBUCKETREPOSITORYRequest) SetOrg(v CreateAssetBITBUCKETREPOSITORYRequestOrg) { + o.Org = &v +} + +func (o CreateAssetBITBUCKETREPOSITORYRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetBITBUCKETREPOSITORYRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProjectIds) { + toSerialize["projectIds"] = o.ProjectIds + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["asset_class"] = o.AssetClass + if !IsNil(o.ExtraMetadata) { + toSerialize["extra_metadata"] = o.ExtraMetadata + } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } + toSerialize["asset_type"] = o.AssetType + toSerialize["url"] = o.Url + if !IsNil(o.HttpUrlToRepo) { + toSerialize["http_url_to_repo"] = o.HttpUrlToRepo + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.LocationId) { + toSerialize["location_id"] = o.LocationId + } + if !IsNil(o.DefaultBranch) { + toSerialize["default_branch"] = o.DefaultBranch + } + if !IsNil(o.BlobBaseUrl) { + toSerialize["blob_base_url"] = o.BlobBaseUrl + } + if !IsNil(o.LastCommit) { + toSerialize["last_commit"] = o.LastCommit + } + if !IsNil(o.WorkspaceName) { + toSerialize["workspace_name"] = o.WorkspaceName + } + if !IsNil(o.RepositoryName) { + toSerialize["repository_name"] = o.RepositoryName + } + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } + if !IsNil(o.Org) { + toSerialize["org"] = o.Org + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateAssetBITBUCKETREPOSITORYRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "asset_class", + "asset_type", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAssetBITBUCKETREPOSITORYRequest := _CreateAssetBITBUCKETREPOSITORYRequest{} + + err = json.Unmarshal(data, &varCreateAssetBITBUCKETREPOSITORYRequest) + + if err != nil { + return err + } + + *o = CreateAssetBITBUCKETREPOSITORYRequest(varCreateAssetBITBUCKETREPOSITORYRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") + delete(additionalProperties, "asset_class") + delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") + delete(additionalProperties, "asset_type") + delete(additionalProperties, "url") + delete(additionalProperties, "http_url_to_repo") + delete(additionalProperties, "description") + delete(additionalProperties, "location_id") + delete(additionalProperties, "default_branch") + delete(additionalProperties, "blob_base_url") + delete(additionalProperties, "last_commit") + delete(additionalProperties, "workspace_name") + delete(additionalProperties, "repository_name") + delete(additionalProperties, "is_private") + delete(additionalProperties, "org") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateAssetBITBUCKETREPOSITORYRequest struct { + value *CreateAssetBITBUCKETREPOSITORYRequest + isSet bool +} + +func (v NullableCreateAssetBITBUCKETREPOSITORYRequest) Get() *CreateAssetBITBUCKETREPOSITORYRequest { + return v.value +} + +func (v *NullableCreateAssetBITBUCKETREPOSITORYRequest) Set(val *CreateAssetBITBUCKETREPOSITORYRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetBITBUCKETREPOSITORYRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetBITBUCKETREPOSITORYRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetBITBUCKETREPOSITORYRequest(val *CreateAssetBITBUCKETREPOSITORYRequest) *NullableCreateAssetBITBUCKETREPOSITORYRequest { + return &NullableCreateAssetBITBUCKETREPOSITORYRequest{value: val, isSet: true} +} + +func (v NullableCreateAssetBITBUCKETREPOSITORYRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetBITBUCKETREPOSITORYRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_asset_bitbucket_repository_request_org.go b/pkg/api/v3/model_create_asset_bitbucket_repository_request_org.go new file mode 100644 index 00000000..7da09242 --- /dev/null +++ b/pkg/api/v3/model_create_asset_bitbucket_repository_request_org.go @@ -0,0 +1,496 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateAssetBITBUCKETREPOSITORYRequestOrg type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetBITBUCKETREPOSITORYRequestOrg{} + +// CreateAssetBITBUCKETREPOSITORYRequestOrg struct for CreateAssetBITBUCKETREPOSITORYRequestOrg +type CreateAssetBITBUCKETREPOSITORYRequestOrg struct { + AssetClass ENUMSOURCECODEMANAGEMENT `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMBITBUCKETORGANIZATION `json:"asset_type"` + Name *string `json:"name,omitempty"` + ImmutableKey string `json:"immutable_key"` + Email string `json:"email"` + ApiKey string `json:"api_key"` + WorkspaceSlug string `json:"workspace_slug"` + InstanceUrl *string `json:"instance_url,omitempty"` + LocationId *string `json:"location_id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateAssetBITBUCKETREPOSITORYRequestOrg CreateAssetBITBUCKETREPOSITORYRequestOrg + +// NewCreateAssetBITBUCKETREPOSITORYRequestOrg instantiates a new CreateAssetBITBUCKETREPOSITORYRequestOrg 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 NewCreateAssetBITBUCKETREPOSITORYRequestOrg(assetClass ENUMSOURCECODEMANAGEMENT, assetType ENUMBITBUCKETORGANIZATION, immutableKey string, email string, apiKey string, workspaceSlug string) *CreateAssetBITBUCKETREPOSITORYRequestOrg { + this := CreateAssetBITBUCKETREPOSITORYRequestOrg{} + this.AssetClass = assetClass + this.AssetType = assetType + this.ImmutableKey = immutableKey + this.Email = email + this.ApiKey = apiKey + this.WorkspaceSlug = workspaceSlug + return &this +} + +// NewCreateAssetBITBUCKETREPOSITORYRequestOrgWithDefaults instantiates a new CreateAssetBITBUCKETREPOSITORYRequestOrg 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 NewCreateAssetBITBUCKETREPOSITORYRequestOrgWithDefaults() *CreateAssetBITBUCKETREPOSITORYRequestOrg { + this := CreateAssetBITBUCKETREPOSITORYRequestOrg{} + return &this +} + +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetAssetClass() ENUMSOURCECODEMANAGEMENT { + if o == nil { + var ret ENUMSOURCECODEMANAGEMENT + return ret + } + + return o.AssetClass +} + +// GetAssetClassOk returns a tuple with the AssetClass field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetAssetClassOk() (*ENUMSOURCECODEMANAGEMENT, bool) { + if o == nil { + return nil, false + } + return &o.AssetClass, true +} + +// SetAssetClass sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetAssetClass(v ENUMSOURCECODEMANAGEMENT) { + o.AssetClass = v +} + +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} + return ret + } + return o.ExtraMetadata +} + +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false + } + return o.ExtraMetadata, true +} + +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { + return true + } + + return false +} + +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v +} + +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + +// GetAssetType returns the AssetType field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetAssetType() ENUMBITBUCKETORGANIZATION { + if o == nil { + var ret ENUMBITBUCKETORGANIZATION + return ret + } + + return o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetAssetTypeOk() (*ENUMBITBUCKETORGANIZATION, bool) { + if o == nil { + return nil, false + } + return &o.AssetType, true +} + +// SetAssetType sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetAssetType(v ENUMBITBUCKETORGANIZATION) { + o.AssetType = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetName() string { + if o == nil || IsNil(o.Name) { + 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 *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetName(v string) { + o.Name = &v +} + +// GetImmutableKey returns the ImmutableKey field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetImmutableKey() string { + if o == nil { + var ret string + return ret + } + + return o.ImmutableKey +} + +// GetImmutableKeyOk returns a tuple with the ImmutableKey field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetImmutableKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ImmutableKey, true +} + +// SetImmutableKey sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetImmutableKey(v string) { + o.ImmutableKey = v +} + +// GetEmail returns the Email field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetEmail(v string) { + o.Email = v +} + +// GetApiKey returns the ApiKey field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetApiKey() string { + if o == nil { + var ret string + return ret + } + + return o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetApiKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiKey, true +} + +// SetApiKey sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetApiKey(v string) { + o.ApiKey = v +} + +// GetWorkspaceSlug returns the WorkspaceSlug field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetWorkspaceSlug() string { + if o == nil { + var ret string + return ret + } + + return o.WorkspaceSlug +} + +// GetWorkspaceSlugOk returns a tuple with the WorkspaceSlug field value +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetWorkspaceSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkspaceSlug, true +} + +// SetWorkspaceSlug sets field value +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetWorkspaceSlug(v string) { + o.WorkspaceSlug = v +} + +// GetInstanceUrl returns the InstanceUrl field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetInstanceUrl() string { + if o == nil || IsNil(o.InstanceUrl) { + var ret string + return ret + } + return *o.InstanceUrl +} + +// GetInstanceUrlOk returns a tuple with the InstanceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetInstanceUrlOk() (*string, bool) { + if o == nil || IsNil(o.InstanceUrl) { + return nil, false + } + return o.InstanceUrl, true +} + +// HasInstanceUrl returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) HasInstanceUrl() bool { + if o != nil && !IsNil(o.InstanceUrl) { + return true + } + + return false +} + +// SetInstanceUrl gets a reference to the given string and assigns it to the InstanceUrl field. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetInstanceUrl(v string) { + o.InstanceUrl = &v +} + +// GetLocationId returns the LocationId field value if set, zero value otherwise. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetLocationId() string { + if o == nil || IsNil(o.LocationId) { + var ret string + return ret + } + return *o.LocationId +} + +// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) GetLocationIdOk() (*string, bool) { + if o == nil || IsNil(o.LocationId) { + return nil, false + } + return o.LocationId, true +} + +// HasLocationId returns a boolean if a field has been set. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) HasLocationId() bool { + if o != nil && !IsNil(o.LocationId) { + return true + } + + return false +} + +// SetLocationId gets a reference to the given string and assigns it to the LocationId field. +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) SetLocationId(v string) { + o.LocationId = &v +} + +func (o CreateAssetBITBUCKETREPOSITORYRequestOrg) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetBITBUCKETREPOSITORYRequestOrg) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["asset_class"] = o.AssetClass + if !IsNil(o.ExtraMetadata) { + toSerialize["extra_metadata"] = o.ExtraMetadata + } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } + toSerialize["asset_type"] = o.AssetType + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["immutable_key"] = o.ImmutableKey + toSerialize["email"] = o.Email + toSerialize["api_key"] = o.ApiKey + toSerialize["workspace_slug"] = o.WorkspaceSlug + if !IsNil(o.InstanceUrl) { + toSerialize["instance_url"] = o.InstanceUrl + } + if !IsNil(o.LocationId) { + toSerialize["location_id"] = o.LocationId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateAssetBITBUCKETREPOSITORYRequestOrg) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "asset_class", + "asset_type", + "immutable_key", + "email", + "api_key", + "workspace_slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAssetBITBUCKETREPOSITORYRequestOrg := _CreateAssetBITBUCKETREPOSITORYRequestOrg{} + + err = json.Unmarshal(data, &varCreateAssetBITBUCKETREPOSITORYRequestOrg) + + if err != nil { + return err + } + + *o = CreateAssetBITBUCKETREPOSITORYRequestOrg(varCreateAssetBITBUCKETREPOSITORYRequestOrg) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asset_class") + delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") + delete(additionalProperties, "asset_type") + delete(additionalProperties, "name") + delete(additionalProperties, "immutable_key") + delete(additionalProperties, "email") + delete(additionalProperties, "api_key") + delete(additionalProperties, "workspace_slug") + delete(additionalProperties, "instance_url") + delete(additionalProperties, "location_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateAssetBITBUCKETREPOSITORYRequestOrg struct { + value *CreateAssetBITBUCKETREPOSITORYRequestOrg + isSet bool +} + +func (v NullableCreateAssetBITBUCKETREPOSITORYRequestOrg) Get() *CreateAssetBITBUCKETREPOSITORYRequestOrg { + return v.value +} + +func (v *NullableCreateAssetBITBUCKETREPOSITORYRequestOrg) Set(val *CreateAssetBITBUCKETREPOSITORYRequestOrg) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetBITBUCKETREPOSITORYRequestOrg) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetBITBUCKETREPOSITORYRequestOrg) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetBITBUCKETREPOSITORYRequestOrg(val *CreateAssetBITBUCKETREPOSITORYRequestOrg) *NullableCreateAssetBITBUCKETREPOSITORYRequestOrg { + return &NullableCreateAssetBITBUCKETREPOSITORYRequestOrg{value: val, isSet: true} +} + +func (v NullableCreateAssetBITBUCKETREPOSITORYRequestOrg) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetBITBUCKETREPOSITORYRequestOrg) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_asset_cloudflare_account_request.go b/pkg/api/v3/model_create_asset_cloudflare_account_request.go deleted file mode 100644 index eada407f..00000000 --- a/pkg/api/v3/model_create_asset_cloudflare_account_request.go +++ /dev/null @@ -1,439 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetCLOUDFLAREACCOUNTRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetCLOUDFLAREACCOUNTRequest{} - -// CreateAssetCLOUDFLAREACCOUNTRequest struct for CreateAssetCLOUDFLAREACCOUNTRequest -type CreateAssetCLOUDFLAREACCOUNTRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMCDN `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMCLOUDFLAREACCOUNT `json:"asset_type"` - Name *string `json:"name,omitempty"` - ImmutableKey string `json:"immutable_key"` - ApiKey string `json:"api_key"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetCLOUDFLAREACCOUNTRequest CreateAssetCLOUDFLAREACCOUNTRequest - -// NewCreateAssetCLOUDFLAREACCOUNTRequest instantiates a new CreateAssetCLOUDFLAREACCOUNTRequest 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 NewCreateAssetCLOUDFLAREACCOUNTRequest(assetClass ENUMCDN, assetType ENUMCLOUDFLAREACCOUNT, immutableKey string, apiKey string) *CreateAssetCLOUDFLAREACCOUNTRequest { - this := CreateAssetCLOUDFLAREACCOUNTRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - this.ImmutableKey = immutableKey - this.ApiKey = apiKey - return &this -} - -// NewCreateAssetCLOUDFLAREACCOUNTRequestWithDefaults instantiates a new CreateAssetCLOUDFLAREACCOUNTRequest 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 NewCreateAssetCLOUDFLAREACCOUNTRequestWithDefaults() *CreateAssetCLOUDFLAREACCOUNTRequest { - this := CreateAssetCLOUDFLAREACCOUNTRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetAssetClass() ENUMCDN { - if o == nil { - var ret ENUMCDN - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetAssetClassOk() (*ENUMCDN, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetAssetClass(v ENUMCDN) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetAssetType() ENUMCLOUDFLAREACCOUNT { - if o == nil { - var ret ENUMCLOUDFLAREACCOUNT - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetAssetTypeOk() (*ENUMCLOUDFLAREACCOUNT, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetAssetType(v ENUMCLOUDFLAREACCOUNT) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetCLOUDFLAREACCOUNTRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetName(v string) { - o.Name = &v -} - -// GetImmutableKey returns the ImmutableKey field value -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetImmutableKey() string { - if o == nil { - var ret string - return ret - } - - return o.ImmutableKey -} - -// GetImmutableKeyOk returns a tuple with the ImmutableKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetImmutableKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ImmutableKey, true -} - -// SetImmutableKey sets field value -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetImmutableKey(v string) { - o.ImmutableKey = v -} - -// GetApiKey returns the ApiKey field value -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetApiKey() string { - if o == nil { - var ret string - return ret - } - - return o.ApiKey -} - -// GetApiKeyOk returns a tuple with the ApiKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) GetApiKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApiKey, true -} - -// SetApiKey sets field value -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) SetApiKey(v string) { - o.ApiKey = v -} - -func (o CreateAssetCLOUDFLAREACCOUNTRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetCLOUDFLAREACCOUNTRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["immutable_key"] = o.ImmutableKey - toSerialize["api_key"] = o.ApiKey - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetCLOUDFLAREACCOUNTRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - "immutable_key", - "api_key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetCLOUDFLAREACCOUNTRequest := _CreateAssetCLOUDFLAREACCOUNTRequest{} - - err = json.Unmarshal(data, &varCreateAssetCLOUDFLAREACCOUNTRequest) - - if err != nil { - return err - } - - *o = CreateAssetCLOUDFLAREACCOUNTRequest(varCreateAssetCLOUDFLAREACCOUNTRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "immutable_key") - delete(additionalProperties, "api_key") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetCLOUDFLAREACCOUNTRequest struct { - value *CreateAssetCLOUDFLAREACCOUNTRequest - isSet bool -} - -func (v NullableCreateAssetCLOUDFLAREACCOUNTRequest) Get() *CreateAssetCLOUDFLAREACCOUNTRequest { - return v.value -} - -func (v *NullableCreateAssetCLOUDFLAREACCOUNTRequest) Set(val *CreateAssetCLOUDFLAREACCOUNTRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetCLOUDFLAREACCOUNTRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetCLOUDFLAREACCOUNTRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetCLOUDFLAREACCOUNTRequest(val *CreateAssetCLOUDFLAREACCOUNTRequest) *NullableCreateAssetCLOUDFLAREACCOUNTRequest { - return &NullableCreateAssetCLOUDFLAREACCOUNTRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetCLOUDFLAREACCOUNTRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetCLOUDFLAREACCOUNTRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_code_project_request.go b/pkg/api/v3/model_create_asset_code_project_request.go index ba3414ec..2176d46b 100644 --- a/pkg/api/v3/model_create_asset_code_project_request.go +++ b/pkg/api/v3/model_create_asset_code_project_request.go @@ -21,19 +21,18 @@ var _ MappedNullable = &CreateAssetCODEPROJECTRequest{} // CreateAssetCODEPROJECTRequest struct for CreateAssetCODEPROJECTRequest type CreateAssetCODEPROJECTRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMCODEPROJECT `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMCODEPROJECT `json:"asset_type"` - Repository CreateAssetCODEPROJECTRequestRepository `json:"repository"` - Path string `json:"path"` - Language ENUMPROPERTIESLANGUAGE `json:"language"` - HttpUrlToProject *string `json:"http_url_to_project,omitempty"` - Name *string `json:"name,omitempty"` - LastCommits []CreateAssetCODEPROJECTRequestLastCommitsInner `json:"last_commits,omitempty"` - Owners []CreateAssetCODEPROJECTRequestOwnersInner `json:"owners,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + Name *string `json:"name,omitempty"` + AssetClass ENUMCODEPROJECT `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMCODEPROJECT `json:"asset_type"` + Repository CreateAssetCODEPROJECTRequestRepository `json:"repository"` + Path string `json:"path"` + Language ENUMPROPERTIESLANGUAGE `json:"language"` + HttpUrlToProject *string `json:"http_url_to_project,omitempty"` + Owners []CreateAssetCODEPROJECTRequestOwnersInner `json:"owners,omitempty"` + LastCommit *CreateAssetGITLABREPOSITORYRequestLastCommit `json:"last_commit,omitempty"` AdditionalProperties map[string]interface{} } @@ -93,92 +92,60 @@ func (o *CreateAssetCODEPROJECTRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetCODEPROJECTRequest) GetAssetClass() ENUMCODEPROJECT { - if o == nil { - var ret ENUMCODEPROJECT - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequest) GetAssetClassOk() (*ENUMCODEPROJECT, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetCODEPROJECTRequest) SetAssetClass(v ENUMCODEPROJECT) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetCODEPROJECTRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetCODEPROJECTRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetCODEPROJECTRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetCODEPROJECTRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetCODEPROJECTRequest) GetAssetClass() ENUMCODEPROJECT { + if o == nil { + var ret ENUMCODEPROJECT return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetCODEPROJECTRequest) GetAssetClassOk() (*ENUMCODEPROJECT, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetCODEPROJECTRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetCODEPROJECTRequest) SetAssetClass(v ENUMCODEPROJECT) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -213,6 +180,38 @@ func (o *CreateAssetCODEPROJECTRequest) SetExtraMetadata(v map[string]interface{ o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetCODEPROJECTRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetCODEPROJECTRequest) GetAssetType() ENUMCODEPROJECT { if o == nil { @@ -341,100 +340,68 @@ func (o *CreateAssetCODEPROJECTRequest) SetHttpUrlToProject(v string) { o.HttpUrlToProject = &v } -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetCODEPROJECTRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetCODEPROJECTRequest) SetName(v string) { - o.Name = &v -} - -// GetLastCommits returns the LastCommits field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequest) GetLastCommits() []CreateAssetCODEPROJECTRequestLastCommitsInner { - if o == nil || IsNil(o.LastCommits) { - var ret []CreateAssetCODEPROJECTRequestLastCommitsInner +// GetOwners returns the Owners field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequest) GetOwners() []CreateAssetCODEPROJECTRequestOwnersInner { + if o == nil || IsNil(o.Owners) { + var ret []CreateAssetCODEPROJECTRequestOwnersInner return ret } - return o.LastCommits + return o.Owners } -// GetLastCommitsOk returns a tuple with the LastCommits field value if set, nil otherwise +// GetOwnersOk returns a tuple with the Owners field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequest) GetLastCommitsOk() ([]CreateAssetCODEPROJECTRequestLastCommitsInner, bool) { - if o == nil || IsNil(o.LastCommits) { +func (o *CreateAssetCODEPROJECTRequest) GetOwnersOk() ([]CreateAssetCODEPROJECTRequestOwnersInner, bool) { + if o == nil || IsNil(o.Owners) { return nil, false } - return o.LastCommits, true + return o.Owners, true } -// HasLastCommits returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequest) HasLastCommits() bool { - if o != nil && !IsNil(o.LastCommits) { +// HasOwners returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequest) HasOwners() bool { + if o != nil && !IsNil(o.Owners) { return true } return false } -// SetLastCommits gets a reference to the given []CreateAssetCODEPROJECTRequestLastCommitsInner and assigns it to the LastCommits field. -func (o *CreateAssetCODEPROJECTRequest) SetLastCommits(v []CreateAssetCODEPROJECTRequestLastCommitsInner) { - o.LastCommits = v +// SetOwners gets a reference to the given []CreateAssetCODEPROJECTRequestOwnersInner and assigns it to the Owners field. +func (o *CreateAssetCODEPROJECTRequest) SetOwners(v []CreateAssetCODEPROJECTRequestOwnersInner) { + o.Owners = v } -// GetOwners returns the Owners field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequest) GetOwners() []CreateAssetCODEPROJECTRequestOwnersInner { - if o == nil || IsNil(o.Owners) { - var ret []CreateAssetCODEPROJECTRequestOwnersInner +// GetLastCommit returns the LastCommit field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequest) GetLastCommit() CreateAssetGITLABREPOSITORYRequestLastCommit { + if o == nil || IsNil(o.LastCommit) { + var ret CreateAssetGITLABREPOSITORYRequestLastCommit return ret } - return o.Owners + return *o.LastCommit } -// GetOwnersOk returns a tuple with the Owners field value if set, nil otherwise +// GetLastCommitOk returns a tuple with the LastCommit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequest) GetOwnersOk() ([]CreateAssetCODEPROJECTRequestOwnersInner, bool) { - if o == nil || IsNil(o.Owners) { +func (o *CreateAssetCODEPROJECTRequest) GetLastCommitOk() (*CreateAssetGITLABREPOSITORYRequestLastCommit, bool) { + if o == nil || IsNil(o.LastCommit) { return nil, false } - return o.Owners, true + return o.LastCommit, true } -// HasOwners returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequest) HasOwners() bool { - if o != nil && !IsNil(o.Owners) { +// HasLastCommit returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequest) HasLastCommit() bool { + if o != nil && !IsNil(o.LastCommit) { return true } return false } -// SetOwners gets a reference to the given []CreateAssetCODEPROJECTRequestOwnersInner and assigns it to the Owners field. -func (o *CreateAssetCODEPROJECTRequest) SetOwners(v []CreateAssetCODEPROJECTRequestOwnersInner) { - o.Owners = v +// SetLastCommit gets a reference to the given CreateAssetGITLABREPOSITORYRequestLastCommit and assigns it to the LastCommit field. +func (o *CreateAssetCODEPROJECTRequest) SetLastCommit(v CreateAssetGITLABREPOSITORYRequestLastCommit) { + o.LastCommit = &v } func (o CreateAssetCODEPROJECTRequest) MarshalJSON() ([]byte, error) { @@ -450,16 +417,16 @@ func (o CreateAssetCODEPROJECTRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["repository"] = o.Repository toSerialize["path"] = o.Path @@ -467,15 +434,12 @@ func (o CreateAssetCODEPROJECTRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.HttpUrlToProject) { toSerialize["http_url_to_project"] = o.HttpUrlToProject } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.LastCommits) { - toSerialize["last_commits"] = o.LastCommits - } if !IsNil(o.Owners) { toSerialize["owners"] = o.Owners } + if !IsNil(o.LastCommit) { + toSerialize["last_commit"] = o.LastCommit + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -524,18 +488,17 @@ func (o *CreateAssetCODEPROJECTRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "repository") delete(additionalProperties, "path") delete(additionalProperties, "language") delete(additionalProperties, "http_url_to_project") - delete(additionalProperties, "name") - delete(additionalProperties, "last_commits") delete(additionalProperties, "owners") + delete(additionalProperties, "last_commit") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_create_asset_code_project_request_last_commits_inner.go b/pkg/api/v3/model_create_asset_code_project_request_last_commits_inner.go deleted file mode 100644 index c1f40407..00000000 --- a/pkg/api/v3/model_create_asset_code_project_request_last_commits_inner.go +++ /dev/null @@ -1,340 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetCODEPROJECTRequestLastCommitsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetCODEPROJECTRequestLastCommitsInner{} - -// CreateAssetCODEPROJECTRequestLastCommitsInner struct for CreateAssetCODEPROJECTRequestLastCommitsInner -type CreateAssetCODEPROJECTRequestLastCommitsInner struct { - Sha string `json:"sha"` - TimestampIso string `json:"timestamp_iso"` - Message string `json:"message"` - AuthorName string `json:"author_name"` - AuthorEmail string `json:"author_email"` - CommitterName string `json:"committer_name"` - CommitterEmail string `json:"committer_email"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetCODEPROJECTRequestLastCommitsInner CreateAssetCODEPROJECTRequestLastCommitsInner - -// NewCreateAssetCODEPROJECTRequestLastCommitsInner instantiates a new CreateAssetCODEPROJECTRequestLastCommitsInner 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 NewCreateAssetCODEPROJECTRequestLastCommitsInner(sha string, timestampIso string, message string, authorName string, authorEmail string, committerName string, committerEmail string) *CreateAssetCODEPROJECTRequestLastCommitsInner { - this := CreateAssetCODEPROJECTRequestLastCommitsInner{} - this.Sha = sha - this.TimestampIso = timestampIso - this.Message = message - this.AuthorName = authorName - this.AuthorEmail = authorEmail - this.CommitterName = committerName - this.CommitterEmail = committerEmail - return &this -} - -// NewCreateAssetCODEPROJECTRequestLastCommitsInnerWithDefaults instantiates a new CreateAssetCODEPROJECTRequestLastCommitsInner 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 NewCreateAssetCODEPROJECTRequestLastCommitsInnerWithDefaults() *CreateAssetCODEPROJECTRequestLastCommitsInner { - this := CreateAssetCODEPROJECTRequestLastCommitsInner{} - return &this -} - -// GetSha returns the Sha field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetSha() string { - if o == nil { - var ret string - return ret - } - - return o.Sha -} - -// GetShaOk returns a tuple with the Sha field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetShaOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Sha, true -} - -// SetSha sets field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) SetSha(v string) { - o.Sha = v -} - -// GetTimestampIso returns the TimestampIso field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetTimestampIso() string { - if o == nil { - var ret string - return ret - } - - return o.TimestampIso -} - -// GetTimestampIsoOk returns a tuple with the TimestampIso field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetTimestampIsoOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TimestampIso, true -} - -// SetTimestampIso sets field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) SetTimestampIso(v string) { - o.TimestampIso = v -} - -// GetMessage returns the Message field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetMessage() string { - if o == nil { - var ret string - return ret - } - - return o.Message -} - -// GetMessageOk returns a tuple with the Message field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetMessageOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Message, true -} - -// SetMessage sets field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) SetMessage(v string) { - o.Message = v -} - -// GetAuthorName returns the AuthorName field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetAuthorName() string { - if o == nil { - var ret string - return ret - } - - return o.AuthorName -} - -// GetAuthorNameOk returns a tuple with the AuthorName field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetAuthorNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AuthorName, true -} - -// SetAuthorName sets field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) SetAuthorName(v string) { - o.AuthorName = v -} - -// GetAuthorEmail returns the AuthorEmail field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetAuthorEmail() string { - if o == nil { - var ret string - return ret - } - - return o.AuthorEmail -} - -// GetAuthorEmailOk returns a tuple with the AuthorEmail field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetAuthorEmailOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AuthorEmail, true -} - -// SetAuthorEmail sets field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) SetAuthorEmail(v string) { - o.AuthorEmail = v -} - -// GetCommitterName returns the CommitterName field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetCommitterName() string { - if o == nil { - var ret string - return ret - } - - return o.CommitterName -} - -// GetCommitterNameOk returns a tuple with the CommitterName field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetCommitterNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommitterName, true -} - -// SetCommitterName sets field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) SetCommitterName(v string) { - o.CommitterName = v -} - -// GetCommitterEmail returns the CommitterEmail field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetCommitterEmail() string { - if o == nil { - var ret string - return ret - } - - return o.CommitterEmail -} - -// GetCommitterEmailOk returns a tuple with the CommitterEmail field value -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) GetCommitterEmailOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommitterEmail, true -} - -// SetCommitterEmail sets field value -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) SetCommitterEmail(v string) { - o.CommitterEmail = v -} - -func (o CreateAssetCODEPROJECTRequestLastCommitsInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetCODEPROJECTRequestLastCommitsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["sha"] = o.Sha - toSerialize["timestamp_iso"] = o.TimestampIso - toSerialize["message"] = o.Message - toSerialize["author_name"] = o.AuthorName - toSerialize["author_email"] = o.AuthorEmail - toSerialize["committer_name"] = o.CommitterName - toSerialize["committer_email"] = o.CommitterEmail - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetCODEPROJECTRequestLastCommitsInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "sha", - "timestamp_iso", - "message", - "author_name", - "author_email", - "committer_name", - "committer_email", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetCODEPROJECTRequestLastCommitsInner := _CreateAssetCODEPROJECTRequestLastCommitsInner{} - - err = json.Unmarshal(data, &varCreateAssetCODEPROJECTRequestLastCommitsInner) - - if err != nil { - return err - } - - *o = CreateAssetCODEPROJECTRequestLastCommitsInner(varCreateAssetCODEPROJECTRequestLastCommitsInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "sha") - delete(additionalProperties, "timestamp_iso") - delete(additionalProperties, "message") - delete(additionalProperties, "author_name") - delete(additionalProperties, "author_email") - delete(additionalProperties, "committer_name") - delete(additionalProperties, "committer_email") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetCODEPROJECTRequestLastCommitsInner struct { - value *CreateAssetCODEPROJECTRequestLastCommitsInner - isSet bool -} - -func (v NullableCreateAssetCODEPROJECTRequestLastCommitsInner) Get() *CreateAssetCODEPROJECTRequestLastCommitsInner { - return v.value -} - -func (v *NullableCreateAssetCODEPROJECTRequestLastCommitsInner) Set(val *CreateAssetCODEPROJECTRequestLastCommitsInner) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetCODEPROJECTRequestLastCommitsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetCODEPROJECTRequestLastCommitsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetCODEPROJECTRequestLastCommitsInner(val *CreateAssetCODEPROJECTRequestLastCommitsInner) *NullableCreateAssetCODEPROJECTRequestLastCommitsInner { - return &NullableCreateAssetCODEPROJECTRequestLastCommitsInner{value: val, isSet: true} -} - -func (v NullableCreateAssetCODEPROJECTRequestLastCommitsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetCODEPROJECTRequestLastCommitsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_code_project_request_repository.go b/pkg/api/v3/model_create_asset_code_project_request_repository.go index 0982b833..07b1f218 100644 --- a/pkg/api/v3/model_create_asset_code_project_request_repository.go +++ b/pkg/api/v3/model_create_asset_code_project_request_repository.go @@ -20,6 +20,7 @@ import ( type CreateAssetCODEPROJECTRequestRepository struct { CreateAssetCODEPROJECTRequestRepositoryOneOf *CreateAssetCODEPROJECTRequestRepositoryOneOf CreateAssetCODEPROJECTRequestRepositoryOneOf1 *CreateAssetCODEPROJECTRequestRepositoryOneOf1 + CreateAssetCODEPROJECTRequestRepositoryOneOf2 *CreateAssetCODEPROJECTRequestRepositoryOneOf2 } // CreateAssetCODEPROJECTRequestRepositoryOneOfAsCreateAssetCODEPROJECTRequestRepository is a convenience function that returns CreateAssetCODEPROJECTRequestRepositoryOneOf wrapped in CreateAssetCODEPROJECTRequestRepository @@ -36,6 +37,13 @@ func CreateAssetCODEPROJECTRequestRepositoryOneOf1AsCreateAssetCODEPROJECTReques } } +// CreateAssetCODEPROJECTRequestRepositoryOneOf2AsCreateAssetCODEPROJECTRequestRepository is a convenience function that returns CreateAssetCODEPROJECTRequestRepositoryOneOf2 wrapped in CreateAssetCODEPROJECTRequestRepository +func CreateAssetCODEPROJECTRequestRepositoryOneOf2AsCreateAssetCODEPROJECTRequestRepository(v *CreateAssetCODEPROJECTRequestRepositoryOneOf2) CreateAssetCODEPROJECTRequestRepository { + return CreateAssetCODEPROJECTRequestRepository{ + CreateAssetCODEPROJECTRequestRepositoryOneOf2: v, + } +} + // Unmarshal JSON data into one of the pointers in the struct func (dst *CreateAssetCODEPROJECTRequestRepository) UnmarshalJSON(data []byte) error { var err error @@ -74,10 +82,28 @@ func (dst *CreateAssetCODEPROJECTRequestRepository) UnmarshalJSON(data []byte) e dst.CreateAssetCODEPROJECTRequestRepositoryOneOf1 = nil } + // try to unmarshal data into CreateAssetCODEPROJECTRequestRepositoryOneOf2 + err = newStrictDecoder(data).Decode(&dst.CreateAssetCODEPROJECTRequestRepositoryOneOf2) + if err == nil { + jsonCreateAssetCODEPROJECTRequestRepositoryOneOf2, _ := json.Marshal(dst.CreateAssetCODEPROJECTRequestRepositoryOneOf2) + if string(jsonCreateAssetCODEPROJECTRequestRepositoryOneOf2) == "{}" { // empty struct + dst.CreateAssetCODEPROJECTRequestRepositoryOneOf2 = nil + } else { + if err = validator.Validate(dst.CreateAssetCODEPROJECTRequestRepositoryOneOf2); err != nil { + dst.CreateAssetCODEPROJECTRequestRepositoryOneOf2 = nil + } else { + match++ + } + } + } else { + dst.CreateAssetCODEPROJECTRequestRepositoryOneOf2 = nil + } + if match > 1 { // more than 1 match // reset to nil dst.CreateAssetCODEPROJECTRequestRepositoryOneOf = nil dst.CreateAssetCODEPROJECTRequestRepositoryOneOf1 = nil + dst.CreateAssetCODEPROJECTRequestRepositoryOneOf2 = nil return fmt.Errorf("data matches more than one schema in oneOf(CreateAssetCODEPROJECTRequestRepository)") } else if match == 1 { @@ -97,6 +123,10 @@ func (src CreateAssetCODEPROJECTRequestRepository) MarshalJSON() ([]byte, error) return json.Marshal(&src.CreateAssetCODEPROJECTRequestRepositoryOneOf1) } + if src.CreateAssetCODEPROJECTRequestRepositoryOneOf2 != nil { + return json.Marshal(&src.CreateAssetCODEPROJECTRequestRepositoryOneOf2) + } + return nil, nil // no data in oneOf schemas } @@ -113,6 +143,10 @@ func (obj *CreateAssetCODEPROJECTRequestRepository) GetActualInstance() interfac return obj.CreateAssetCODEPROJECTRequestRepositoryOneOf1 } + if obj.CreateAssetCODEPROJECTRequestRepositoryOneOf2 != nil { + return obj.CreateAssetCODEPROJECTRequestRepositoryOneOf2 + } + // all schemas are nil return nil } @@ -127,6 +161,10 @@ func (obj CreateAssetCODEPROJECTRequestRepository) GetActualInstanceValue() inte return *obj.CreateAssetCODEPROJECTRequestRepositoryOneOf1 } + if obj.CreateAssetCODEPROJECTRequestRepositoryOneOf2 != nil { + return *obj.CreateAssetCODEPROJECTRequestRepositoryOneOf2 + } + // all schemas are nil return nil } diff --git a/pkg/api/v3/model_create_asset_code_project_request_repository_one_of.go b/pkg/api/v3/model_create_asset_code_project_request_repository_one_of.go index 84378532..a905025f 100644 --- a/pkg/api/v3/model_create_asset_code_project_request_repository_one_of.go +++ b/pkg/api/v3/model_create_asset_code_project_request_repository_one_of.go @@ -20,25 +20,25 @@ var _ MappedNullable = &CreateAssetCODEPROJECTRequestRepositoryOneOf{} // CreateAssetCODEPROJECTRequestRepositoryOneOf struct for CreateAssetCODEPROJECTRequestRepositoryOneOf type CreateAssetCODEPROJECTRequestRepositoryOneOf struct { - AssetClass ENUMREPOSITORY `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMGITLABREPOSITORY `json:"asset_type"` - Url string `json:"url"` - Name *string `json:"name,omitempty"` - HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` - Description *string `json:"description,omitempty"` - LocationId *string `json:"location_id,omitempty"` - DefaultBranch *string `json:"default_branch,omitempty"` - BlobBaseUrl *string `json:"blob_base_url,omitempty"` - GroupId *float32 `json:"group_id,omitempty"` - GroupFullPath *string `json:"group_full_path,omitempty"` - GroupWebUrl *string `json:"group_web_url,omitempty"` - ProjectId *float32 `json:"project_id,omitempty"` - Archived *bool `json:"archived,omitempty"` - Visibility *ENUMPROPERTIESVISIBILITY `json:"visibility,omitempty"` - Group *CreateAssetGITLABREPOSITORYRequestGroup `json:"group,omitempty"` + AssetClass ENUMREPOSITORY `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMGITLABREPOSITORY `json:"asset_type"` + Url string `json:"url"` + Name *string `json:"name,omitempty"` + HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` + Description *string `json:"description,omitempty"` + LocationId *string `json:"location_id,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + BlobBaseUrl *string `json:"blob_base_url,omitempty"` + LastCommit *CreateAssetGITLABREPOSITORYRequestLastCommit `json:"last_commit,omitempty"` + GroupId *float32 `json:"group_id,omitempty"` + GroupFullPath *string `json:"group_full_path,omitempty"` + GroupWebUrl *string `json:"group_web_url,omitempty"` + ProjectId *float32 `json:"project_id,omitempty"` + Archived *bool `json:"archived,omitempty"` + Visibility *ENUMPROPERTIESVISIBILITY `json:"visibility,omitempty"` + Group *CreateAssetGITLABREPOSITORYRequestGroup `json:"group,omitempty"` AdditionalProperties map[string]interface{} } @@ -88,100 +88,68 @@ func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) SetAssetClass(v ENUMREPOS o.AssetClass = v } -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} return ret } - return *o.WizProviderId + return o.ExtraMetadata } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false } - return o.WizProviderId, true + return o.ExtraMetadata, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { var ret string return ret } - return *o.WizCloudPlatform + return *o.ScreenshotS3Key } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { return nil, false } - return o.WizCloudPlatform, true + return o.ScreenshotS3Key, true } -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { return true } return false } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v } // GetAssetType returns the AssetType field value @@ -424,6 +392,38 @@ func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) SetBlobBaseUrl(v string) o.BlobBaseUrl = &v } +// GetLastCommit returns the LastCommit field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetLastCommit() CreateAssetGITLABREPOSITORYRequestLastCommit { + if o == nil || IsNil(o.LastCommit) { + var ret CreateAssetGITLABREPOSITORYRequestLastCommit + return ret + } + return *o.LastCommit +} + +// GetLastCommitOk returns a tuple with the LastCommit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetLastCommitOk() (*CreateAssetGITLABREPOSITORYRequestLastCommit, bool) { + if o == nil || IsNil(o.LastCommit) { + return nil, false + } + return o.LastCommit, true +} + +// HasLastCommit returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) HasLastCommit() bool { + if o != nil && !IsNil(o.LastCommit) { + return true + } + + return false +} + +// SetLastCommit gets a reference to the given CreateAssetGITLABREPOSITORYRequestLastCommit and assigns it to the LastCommit field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) SetLastCommit(v CreateAssetGITLABREPOSITORYRequestLastCommit) { + o.LastCommit = &v +} + // GetGroupId returns the GroupId field value if set, zero value otherwise. func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) GetGroupId() float32 { if o == nil || IsNil(o.GroupId) { @@ -659,15 +659,12 @@ func (o CreateAssetCODEPROJECTRequestRepositoryOneOf) MarshalJSON() ([]byte, err func (o CreateAssetCODEPROJECTRequestRepositoryOneOf) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url if !IsNil(o.Name) { @@ -688,6 +685,9 @@ func (o CreateAssetCODEPROJECTRequestRepositoryOneOf) ToMap() (map[string]interf if !IsNil(o.BlobBaseUrl) { toSerialize["blob_base_url"] = o.BlobBaseUrl } + if !IsNil(o.LastCommit) { + toSerialize["last_commit"] = o.LastCommit + } if !IsNil(o.GroupId) { toSerialize["group_id"] = o.GroupId } @@ -755,9 +755,8 @@ func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) UnmarshalJSON(data []byte if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") delete(additionalProperties, "name") @@ -766,6 +765,7 @@ func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf) UnmarshalJSON(data []byte delete(additionalProperties, "location_id") delete(additionalProperties, "default_branch") delete(additionalProperties, "blob_base_url") + delete(additionalProperties, "last_commit") delete(additionalProperties, "group_id") delete(additionalProperties, "group_full_path") delete(additionalProperties, "group_web_url") diff --git a/pkg/api/v3/model_create_asset_code_project_request_repository_one_of_1.go b/pkg/api/v3/model_create_asset_code_project_request_repository_one_of_1.go index 7d01a70e..3834d910 100644 --- a/pkg/api/v3/model_create_asset_code_project_request_repository_one_of_1.go +++ b/pkg/api/v3/model_create_asset_code_project_request_repository_one_of_1.go @@ -20,27 +20,27 @@ var _ MappedNullable = &CreateAssetCODEPROJECTRequestRepositoryOneOf1{} // CreateAssetCODEPROJECTRequestRepositoryOneOf1 struct for CreateAssetCODEPROJECTRequestRepositoryOneOf1 type CreateAssetCODEPROJECTRequestRepositoryOneOf1 struct { - AssetClass ENUMREPOSITORY `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMGITHUBREPOSITORY `json:"asset_type"` - Url string `json:"url"` - Name *string `json:"name,omitempty"` - HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` - Description *string `json:"description,omitempty"` - LocationId *string `json:"location_id,omitempty"` - DefaultBranch *string `json:"default_branch,omitempty"` - BlobBaseUrl *string `json:"blob_base_url,omitempty"` - OwnerId *float32 `json:"owner_id,omitempty"` - OwnerLogin *string `json:"owner_login,omitempty"` - OwnerHtmlUrl *string `json:"owner_html_url,omitempty"` - Fork *bool `json:"fork,omitempty"` - Archived *bool `json:"archived,omitempty"` - Disabled *bool `json:"disabled,omitempty"` - Clonable *bool `json:"clonable,omitempty"` - Private *bool `json:"private,omitempty"` - Org *CreateAssetGITHUBREPOSITORYRequestOrg `json:"org,omitempty"` + AssetClass ENUMREPOSITORY `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMGITHUBREPOSITORY `json:"asset_type"` + Url string `json:"url"` + Name *string `json:"name,omitempty"` + HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` + Description *string `json:"description,omitempty"` + LocationId *string `json:"location_id,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + BlobBaseUrl *string `json:"blob_base_url,omitempty"` + LastCommit *CreateAssetGITLABREPOSITORYRequestLastCommit `json:"last_commit,omitempty"` + OwnerId *float32 `json:"owner_id,omitempty"` + OwnerLogin *string `json:"owner_login,omitempty"` + OwnerHtmlUrl *string `json:"owner_html_url,omitempty"` + Fork *bool `json:"fork,omitempty"` + Archived *bool `json:"archived,omitempty"` + Disabled *bool `json:"disabled,omitempty"` + Clonable *bool `json:"clonable,omitempty"` + Private *bool `json:"private,omitempty"` + Org *CreateAssetGITHUBREPOSITORYRequestOrg `json:"org,omitempty"` AdditionalProperties map[string]interface{} } @@ -90,100 +90,68 @@ func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) SetAssetClass(v ENUMREPO o.AssetClass = v } -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} return ret } - return *o.WizProviderId + return o.ExtraMetadata } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false } - return o.WizProviderId, true + return o.ExtraMetadata, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { var ret string return ret } - return *o.WizCloudPlatform + return *o.ScreenshotS3Key } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { return nil, false } - return o.WizCloudPlatform, true + return o.ScreenshotS3Key, true } -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { return true } return false } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v } // GetAssetType returns the AssetType field value @@ -426,6 +394,38 @@ func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) SetBlobBaseUrl(v string) o.BlobBaseUrl = &v } +// GetLastCommit returns the LastCommit field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetLastCommit() CreateAssetGITLABREPOSITORYRequestLastCommit { + if o == nil || IsNil(o.LastCommit) { + var ret CreateAssetGITLABREPOSITORYRequestLastCommit + return ret + } + return *o.LastCommit +} + +// GetLastCommitOk returns a tuple with the LastCommit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetLastCommitOk() (*CreateAssetGITLABREPOSITORYRequestLastCommit, bool) { + if o == nil || IsNil(o.LastCommit) { + return nil, false + } + return o.LastCommit, true +} + +// HasLastCommit returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) HasLastCommit() bool { + if o != nil && !IsNil(o.LastCommit) { + return true + } + + return false +} + +// SetLastCommit gets a reference to the given CreateAssetGITLABREPOSITORYRequestLastCommit and assigns it to the LastCommit field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) SetLastCommit(v CreateAssetGITLABREPOSITORYRequestLastCommit) { + o.LastCommit = &v +} + // GetOwnerId returns the OwnerId field value if set, zero value otherwise. func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) GetOwnerId() float32 { if o == nil || IsNil(o.OwnerId) { @@ -725,15 +725,12 @@ func (o CreateAssetCODEPROJECTRequestRepositoryOneOf1) MarshalJSON() ([]byte, er func (o CreateAssetCODEPROJECTRequestRepositoryOneOf1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url if !IsNil(o.Name) { @@ -754,6 +751,9 @@ func (o CreateAssetCODEPROJECTRequestRepositoryOneOf1) ToMap() (map[string]inter if !IsNil(o.BlobBaseUrl) { toSerialize["blob_base_url"] = o.BlobBaseUrl } + if !IsNil(o.LastCommit) { + toSerialize["last_commit"] = o.LastCommit + } if !IsNil(o.OwnerId) { toSerialize["owner_id"] = o.OwnerId } @@ -827,9 +827,8 @@ func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) UnmarshalJSON(data []byt if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") delete(additionalProperties, "name") @@ -838,6 +837,7 @@ func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf1) UnmarshalJSON(data []byt delete(additionalProperties, "location_id") delete(additionalProperties, "default_branch") delete(additionalProperties, "blob_base_url") + delete(additionalProperties, "last_commit") delete(additionalProperties, "owner_id") delete(additionalProperties, "owner_login") delete(additionalProperties, "owner_html_url") diff --git a/pkg/api/v3/model_create_asset_code_project_request_repository_one_of_2.go b/pkg/api/v3/model_create_asset_code_project_request_repository_one_of_2.go new file mode 100644 index 00000000..d9c004b5 --- /dev/null +++ b/pkg/api/v3/model_create_asset_code_project_request_repository_one_of_2.go @@ -0,0 +1,705 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateAssetCODEPROJECTRequestRepositoryOneOf2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetCODEPROJECTRequestRepositoryOneOf2{} + +// CreateAssetCODEPROJECTRequestRepositoryOneOf2 struct for CreateAssetCODEPROJECTRequestRepositoryOneOf2 +type CreateAssetCODEPROJECTRequestRepositoryOneOf2 struct { + AssetClass ENUMREPOSITORY `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMBITBUCKETREPOSITORY `json:"asset_type"` + Url string `json:"url"` + Name *string `json:"name,omitempty"` + HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` + Description *string `json:"description,omitempty"` + LocationId *string `json:"location_id,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + BlobBaseUrl *string `json:"blob_base_url,omitempty"` + LastCommit *CreateAssetGITLABREPOSITORYRequestLastCommit `json:"last_commit,omitempty"` + WorkspaceName *string `json:"workspace_name,omitempty"` + RepositoryName *string `json:"repository_name,omitempty"` + IsPrivate *bool `json:"is_private,omitempty"` + Org *CreateAssetBITBUCKETREPOSITORYRequestOrg `json:"org,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateAssetCODEPROJECTRequestRepositoryOneOf2 CreateAssetCODEPROJECTRequestRepositoryOneOf2 + +// NewCreateAssetCODEPROJECTRequestRepositoryOneOf2 instantiates a new CreateAssetCODEPROJECTRequestRepositoryOneOf2 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 NewCreateAssetCODEPROJECTRequestRepositoryOneOf2(assetClass ENUMREPOSITORY, assetType ENUMBITBUCKETREPOSITORY, url string) *CreateAssetCODEPROJECTRequestRepositoryOneOf2 { + this := CreateAssetCODEPROJECTRequestRepositoryOneOf2{} + this.AssetClass = assetClass + this.AssetType = assetType + this.Url = url + return &this +} + +// NewCreateAssetCODEPROJECTRequestRepositoryOneOf2WithDefaults instantiates a new CreateAssetCODEPROJECTRequestRepositoryOneOf2 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 NewCreateAssetCODEPROJECTRequestRepositoryOneOf2WithDefaults() *CreateAssetCODEPROJECTRequestRepositoryOneOf2 { + this := CreateAssetCODEPROJECTRequestRepositoryOneOf2{} + return &this +} + +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetAssetClass() ENUMREPOSITORY { + if o == nil { + var ret ENUMREPOSITORY + return ret + } + + return o.AssetClass +} + +// GetAssetClassOk returns a tuple with the AssetClass field value +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetAssetClassOk() (*ENUMREPOSITORY, bool) { + if o == nil { + return nil, false + } + return &o.AssetClass, true +} + +// SetAssetClass sets field value +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetAssetClass(v ENUMREPOSITORY) { + o.AssetClass = v +} + +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} + return ret + } + return o.ExtraMetadata +} + +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false + } + return o.ExtraMetadata, true +} + +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { + return true + } + + return false +} + +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v +} + +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + +// GetAssetType returns the AssetType field value +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetAssetType() ENUMBITBUCKETREPOSITORY { + if o == nil { + var ret ENUMBITBUCKETREPOSITORY + return ret + } + + return o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetAssetTypeOk() (*ENUMBITBUCKETREPOSITORY, bool) { + if o == nil { + return nil, false + } + return &o.AssetType, true +} + +// SetAssetType sets field value +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetAssetType(v ENUMBITBUCKETREPOSITORY) { + o.AssetType = v +} + +// GetUrl returns the Url field value +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetUrl(v string) { + o.Url = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetName() string { + if o == nil || IsNil(o.Name) { + 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 *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetName(v string) { + o.Name = &v +} + +// GetHttpUrlToRepo returns the HttpUrlToRepo field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetHttpUrlToRepo() string { + if o == nil || IsNil(o.HttpUrlToRepo) { + var ret string + return ret + } + return *o.HttpUrlToRepo +} + +// GetHttpUrlToRepoOk returns a tuple with the HttpUrlToRepo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetHttpUrlToRepoOk() (*string, bool) { + if o == nil || IsNil(o.HttpUrlToRepo) { + return nil, false + } + return o.HttpUrlToRepo, true +} + +// HasHttpUrlToRepo returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasHttpUrlToRepo() bool { + if o != nil && !IsNil(o.HttpUrlToRepo) { + return true + } + + return false +} + +// SetHttpUrlToRepo gets a reference to the given string and assigns it to the HttpUrlToRepo field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetHttpUrlToRepo(v string) { + o.HttpUrlToRepo = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetDescription(v string) { + o.Description = &v +} + +// GetLocationId returns the LocationId field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetLocationId() string { + if o == nil || IsNil(o.LocationId) { + var ret string + return ret + } + return *o.LocationId +} + +// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetLocationIdOk() (*string, bool) { + if o == nil || IsNil(o.LocationId) { + return nil, false + } + return o.LocationId, true +} + +// HasLocationId returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasLocationId() bool { + if o != nil && !IsNil(o.LocationId) { + return true + } + + return false +} + +// SetLocationId gets a reference to the given string and assigns it to the LocationId field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetLocationId(v string) { + o.LocationId = &v +} + +// GetDefaultBranch returns the DefaultBranch field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetDefaultBranch() string { + if o == nil || IsNil(o.DefaultBranch) { + var ret string + return ret + } + return *o.DefaultBranch +} + +// GetDefaultBranchOk returns a tuple with the DefaultBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetDefaultBranchOk() (*string, bool) { + if o == nil || IsNil(o.DefaultBranch) { + return nil, false + } + return o.DefaultBranch, true +} + +// HasDefaultBranch returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasDefaultBranch() bool { + if o != nil && !IsNil(o.DefaultBranch) { + return true + } + + return false +} + +// SetDefaultBranch gets a reference to the given string and assigns it to the DefaultBranch field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetDefaultBranch(v string) { + o.DefaultBranch = &v +} + +// GetBlobBaseUrl returns the BlobBaseUrl field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetBlobBaseUrl() string { + if o == nil || IsNil(o.BlobBaseUrl) { + var ret string + return ret + } + return *o.BlobBaseUrl +} + +// GetBlobBaseUrlOk returns a tuple with the BlobBaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetBlobBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BlobBaseUrl) { + return nil, false + } + return o.BlobBaseUrl, true +} + +// HasBlobBaseUrl returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasBlobBaseUrl() bool { + if o != nil && !IsNil(o.BlobBaseUrl) { + return true + } + + return false +} + +// SetBlobBaseUrl gets a reference to the given string and assigns it to the BlobBaseUrl field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetBlobBaseUrl(v string) { + o.BlobBaseUrl = &v +} + +// GetLastCommit returns the LastCommit field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetLastCommit() CreateAssetGITLABREPOSITORYRequestLastCommit { + if o == nil || IsNil(o.LastCommit) { + var ret CreateAssetGITLABREPOSITORYRequestLastCommit + return ret + } + return *o.LastCommit +} + +// GetLastCommitOk returns a tuple with the LastCommit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetLastCommitOk() (*CreateAssetGITLABREPOSITORYRequestLastCommit, bool) { + if o == nil || IsNil(o.LastCommit) { + return nil, false + } + return o.LastCommit, true +} + +// HasLastCommit returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasLastCommit() bool { + if o != nil && !IsNil(o.LastCommit) { + return true + } + + return false +} + +// SetLastCommit gets a reference to the given CreateAssetGITLABREPOSITORYRequestLastCommit and assigns it to the LastCommit field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetLastCommit(v CreateAssetGITLABREPOSITORYRequestLastCommit) { + o.LastCommit = &v +} + +// GetWorkspaceName returns the WorkspaceName field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetWorkspaceName() string { + if o == nil || IsNil(o.WorkspaceName) { + var ret string + return ret + } + return *o.WorkspaceName +} + +// GetWorkspaceNameOk returns a tuple with the WorkspaceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetWorkspaceNameOk() (*string, bool) { + if o == nil || IsNil(o.WorkspaceName) { + return nil, false + } + return o.WorkspaceName, true +} + +// HasWorkspaceName returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasWorkspaceName() bool { + if o != nil && !IsNil(o.WorkspaceName) { + return true + } + + return false +} + +// SetWorkspaceName gets a reference to the given string and assigns it to the WorkspaceName field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetWorkspaceName(v string) { + o.WorkspaceName = &v +} + +// GetRepositoryName returns the RepositoryName field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetRepositoryName() string { + if o == nil || IsNil(o.RepositoryName) { + var ret string + return ret + } + return *o.RepositoryName +} + +// GetRepositoryNameOk returns a tuple with the RepositoryName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetRepositoryNameOk() (*string, bool) { + if o == nil || IsNil(o.RepositoryName) { + return nil, false + } + return o.RepositoryName, true +} + +// HasRepositoryName returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasRepositoryName() bool { + if o != nil && !IsNil(o.RepositoryName) { + return true + } + + return false +} + +// SetRepositoryName gets a reference to the given string and assigns it to the RepositoryName field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetRepositoryName(v string) { + o.RepositoryName = &v +} + +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + +// GetOrg returns the Org field value if set, zero value otherwise. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetOrg() CreateAssetBITBUCKETREPOSITORYRequestOrg { + if o == nil || IsNil(o.Org) { + var ret CreateAssetBITBUCKETREPOSITORYRequestOrg + return ret + } + return *o.Org +} + +// GetOrgOk returns a tuple with the Org field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) GetOrgOk() (*CreateAssetBITBUCKETREPOSITORYRequestOrg, bool) { + if o == nil || IsNil(o.Org) { + return nil, false + } + return o.Org, true +} + +// HasOrg returns a boolean if a field has been set. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) HasOrg() bool { + if o != nil && !IsNil(o.Org) { + return true + } + + return false +} + +// SetOrg gets a reference to the given CreateAssetBITBUCKETREPOSITORYRequestOrg and assigns it to the Org field. +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) SetOrg(v CreateAssetBITBUCKETREPOSITORYRequestOrg) { + o.Org = &v +} + +func (o CreateAssetCODEPROJECTRequestRepositoryOneOf2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetCODEPROJECTRequestRepositoryOneOf2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["asset_class"] = o.AssetClass + if !IsNil(o.ExtraMetadata) { + toSerialize["extra_metadata"] = o.ExtraMetadata + } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } + toSerialize["asset_type"] = o.AssetType + toSerialize["url"] = o.Url + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.HttpUrlToRepo) { + toSerialize["http_url_to_repo"] = o.HttpUrlToRepo + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.LocationId) { + toSerialize["location_id"] = o.LocationId + } + if !IsNil(o.DefaultBranch) { + toSerialize["default_branch"] = o.DefaultBranch + } + if !IsNil(o.BlobBaseUrl) { + toSerialize["blob_base_url"] = o.BlobBaseUrl + } + if !IsNil(o.LastCommit) { + toSerialize["last_commit"] = o.LastCommit + } + if !IsNil(o.WorkspaceName) { + toSerialize["workspace_name"] = o.WorkspaceName + } + if !IsNil(o.RepositoryName) { + toSerialize["repository_name"] = o.RepositoryName + } + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } + if !IsNil(o.Org) { + toSerialize["org"] = o.Org + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateAssetCODEPROJECTRequestRepositoryOneOf2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "asset_class", + "asset_type", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAssetCODEPROJECTRequestRepositoryOneOf2 := _CreateAssetCODEPROJECTRequestRepositoryOneOf2{} + + err = json.Unmarshal(data, &varCreateAssetCODEPROJECTRequestRepositoryOneOf2) + + if err != nil { + return err + } + + *o = CreateAssetCODEPROJECTRequestRepositoryOneOf2(varCreateAssetCODEPROJECTRequestRepositoryOneOf2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asset_class") + delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") + delete(additionalProperties, "asset_type") + delete(additionalProperties, "url") + delete(additionalProperties, "name") + delete(additionalProperties, "http_url_to_repo") + delete(additionalProperties, "description") + delete(additionalProperties, "location_id") + delete(additionalProperties, "default_branch") + delete(additionalProperties, "blob_base_url") + delete(additionalProperties, "last_commit") + delete(additionalProperties, "workspace_name") + delete(additionalProperties, "repository_name") + delete(additionalProperties, "is_private") + delete(additionalProperties, "org") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2 struct { + value *CreateAssetCODEPROJECTRequestRepositoryOneOf2 + isSet bool +} + +func (v NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2) Get() *CreateAssetCODEPROJECTRequestRepositoryOneOf2 { + return v.value +} + +func (v *NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2) Set(val *CreateAssetCODEPROJECTRequestRepositoryOneOf2) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetCODEPROJECTRequestRepositoryOneOf2(val *CreateAssetCODEPROJECTRequestRepositoryOneOf2) *NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2 { + return &NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2{value: val, isSet: true} +} + +func (v NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetCODEPROJECTRequestRepositoryOneOf2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_asset_dns_request.go b/pkg/api/v3/model_create_asset_dns_request.go index a3bbcc25..fbb32e9b 100644 --- a/pkg/api/v3/model_create_asset_dns_request.go +++ b/pkg/api/v3/model_create_asset_dns_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetDNSRequest{} // CreateAssetDNSRequest struct for CreateAssetDNSRequest type CreateAssetDNSRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMHOST `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMDNS `json:"asset_type"` Address string `json:"address"` Favicon *string `json:"favicon,omitempty"` @@ -95,92 +96,60 @@ func (o *CreateAssetDNSRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetDNSRequest) GetAssetClass() ENUMHOST { - if o == nil { - var ret ENUMHOST - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetDNSRequest) GetAssetClassOk() (*ENUMHOST, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetDNSRequest) SetAssetClass(v ENUMHOST) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetDNSRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetDNSRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetDNSRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetDNSRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetDNSRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetDNSRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetDNSRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetDNSRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetDNSRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetDNSRequest) GetAssetClass() ENUMHOST { + if o == nil { + var ret ENUMHOST return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetDNSRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetDNSRequest) GetAssetClassOk() (*ENUMHOST, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetDNSRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetDNSRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetDNSRequest) SetAssetClass(v ENUMHOST) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -215,6 +184,38 @@ func (o *CreateAssetDNSRequest) SetExtraMetadata(v map[string]interface{}) { o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetDNSRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetDNSRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetDNSRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetDNSRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetDNSRequest) GetAssetType() ENUMDNS { if o == nil { @@ -596,16 +597,16 @@ func (o CreateAssetDNSRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["address"] = o.Address if !IsNil(o.Favicon) { @@ -684,10 +685,10 @@ func (o *CreateAssetDNSRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "address") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_dns_request_paths_insights_inner.go b/pkg/api/v3/model_create_asset_dns_request_paths_insights_inner.go index 3ea2c2b6..37a59e97 100644 --- a/pkg/api/v3/model_create_asset_dns_request_paths_insights_inner.go +++ b/pkg/api/v3/model_create_asset_dns_request_paths_insights_inner.go @@ -20,10 +20,10 @@ var _ MappedNullable = &CreateAssetDNSRequestPathsInsightsInner{} // CreateAssetDNSRequestPathsInsightsInner struct for CreateAssetDNSRequestPathsInsightsInner type CreateAssetDNSRequestPathsInsightsInner struct { - Path string `json:"path"` - Method ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"method"` - Parameters *CreateAssetDNSRequestPathsInsightsInnerParameters `json:"parameters,omitempty"` - ReturnType *CreateAssetDNSRequestPathsInsightsInnerReturnType `json:"returnType,omitempty"` + Path string `json:"path"` + Method ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD `json:"method"` + Parameters *CreateAssetDNSRequestPathsInsightsInnerParameters `json:"parameters,omitempty"` + ReturnType *CreateAssetDNSRequestPathsInsightsInnerReturnType `json:"returnType,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _CreateAssetDNSRequestPathsInsightsInner CreateAssetDNSRequestPathsInsights // 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 NewCreateAssetDNSRequestPathsInsightsInner(path string, method ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) *CreateAssetDNSRequestPathsInsightsInner { +func NewCreateAssetDNSRequestPathsInsightsInner(path string, method ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) *CreateAssetDNSRequestPathsInsightsInner { this := CreateAssetDNSRequestPathsInsightsInner{} this.Path = path this.Method = method @@ -73,9 +73,9 @@ func (o *CreateAssetDNSRequestPathsInsightsInner) SetPath(v string) { } // GetMethod returns the Method field value -func (o *CreateAssetDNSRequestPathsInsightsInner) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { +func (o *CreateAssetDNSRequestPathsInsightsInner) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD return ret } @@ -84,7 +84,7 @@ func (o *CreateAssetDNSRequestPathsInsightsInner) GetMethod() ENUMPROPERTIESCONF // GetMethodOk returns a tuple with the Method field value // and a boolean to check if the value has been set. -func (o *CreateAssetDNSRequestPathsInsightsInner) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { +func (o *CreateAssetDNSRequestPathsInsightsInner) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, bool) { if o == nil { return nil, false } @@ -92,7 +92,7 @@ func (o *CreateAssetDNSRequestPathsInsightsInner) GetMethodOk() (*ENUMPROPERTIES } // SetMethod sets field value -func (o *CreateAssetDNSRequestPathsInsightsInner) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { +func (o *CreateAssetDNSRequestPathsInsightsInner) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) { o.Method = v } diff --git a/pkg/api/v3/model_create_asset_gcp_project_request.go b/pkg/api/v3/model_create_asset_gcp_project_request.go deleted file mode 100644 index ebecbeab..00000000 --- a/pkg/api/v3/model_create_asset_gcp_project_request.go +++ /dev/null @@ -1,700 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetGCPPROJECTRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetGCPPROJECTRequest{} - -// CreateAssetGCPPROJECTRequest struct for CreateAssetGCPPROJECTRequest -type CreateAssetGCPPROJECTRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMCLOUDHOSTING `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMGCPPROJECT `json:"asset_type"` - Name *string `json:"name,omitempty"` - ImmutableKey string `json:"immutable_key"` - AuthProviderX509CertUrl string `json:"auth_provider_x509_cert_url"` - AuthUri string `json:"auth_uri"` - ClientEmail string `json:"client_email"` - ClientId string `json:"client_id"` - ClientX509CertUrl string `json:"client_x509_cert_url"` - PrivateKey string `json:"private_key"` - PrivateKeyId string `json:"private_key_id"` - TokenUri string `json:"token_uri"` - UniverseDomain string `json:"universe_domain"` - ProjectId string `json:"project_id"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetGCPPROJECTRequest CreateAssetGCPPROJECTRequest - -// NewCreateAssetGCPPROJECTRequest instantiates a new CreateAssetGCPPROJECTRequest 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 NewCreateAssetGCPPROJECTRequest(assetClass ENUMCLOUDHOSTING, assetType ENUMGCPPROJECT, immutableKey string, authProviderX509CertUrl string, authUri string, clientEmail string, clientId string, clientX509CertUrl string, privateKey string, privateKeyId string, tokenUri string, universeDomain string, projectId string) *CreateAssetGCPPROJECTRequest { - this := CreateAssetGCPPROJECTRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - this.ImmutableKey = immutableKey - this.AuthProviderX509CertUrl = authProviderX509CertUrl - this.AuthUri = authUri - this.ClientEmail = clientEmail - this.ClientId = clientId - this.ClientX509CertUrl = clientX509CertUrl - this.PrivateKey = privateKey - this.PrivateKeyId = privateKeyId - this.TokenUri = tokenUri - this.UniverseDomain = universeDomain - this.ProjectId = projectId - return &this -} - -// NewCreateAssetGCPPROJECTRequestWithDefaults instantiates a new CreateAssetGCPPROJECTRequest 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 NewCreateAssetGCPPROJECTRequestWithDefaults() *CreateAssetGCPPROJECTRequest { - this := CreateAssetGCPPROJECTRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetGCPPROJECTRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetGCPPROJECTRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetGCPPROJECTRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetGCPPROJECTRequest) GetAssetClass() ENUMCLOUDHOSTING { - if o == nil { - var ret ENUMCLOUDHOSTING - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetAssetClassOk() (*ENUMCLOUDHOSTING, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetGCPPROJECTRequest) SetAssetClass(v ENUMCLOUDHOSTING) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGCPPROJECTRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGCPPROJECTRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGCPPROJECTRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGCPPROJECTRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGCPPROJECTRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGCPPROJECTRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetGCPPROJECTRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetGCPPROJECTRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetGCPPROJECTRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetGCPPROJECTRequest) GetAssetType() ENUMGCPPROJECT { - if o == nil { - var ret ENUMGCPPROJECT - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetAssetTypeOk() (*ENUMGCPPROJECT, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetGCPPROJECTRequest) SetAssetType(v ENUMGCPPROJECT) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetGCPPROJECTRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetGCPPROJECTRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetGCPPROJECTRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetGCPPROJECTRequest) SetName(v string) { - o.Name = &v -} - -// GetImmutableKey returns the ImmutableKey field value -func (o *CreateAssetGCPPROJECTRequest) GetImmutableKey() string { - if o == nil { - var ret string - return ret - } - - return o.ImmutableKey -} - -// GetImmutableKeyOk returns a tuple with the ImmutableKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetImmutableKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ImmutableKey, true -} - -// SetImmutableKey sets field value -func (o *CreateAssetGCPPROJECTRequest) SetImmutableKey(v string) { - o.ImmutableKey = v -} - -// GetAuthProviderX509CertUrl returns the AuthProviderX509CertUrl field value -func (o *CreateAssetGCPPROJECTRequest) GetAuthProviderX509CertUrl() string { - if o == nil { - var ret string - return ret - } - - return o.AuthProviderX509CertUrl -} - -// GetAuthProviderX509CertUrlOk returns a tuple with the AuthProviderX509CertUrl field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetAuthProviderX509CertUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AuthProviderX509CertUrl, true -} - -// SetAuthProviderX509CertUrl sets field value -func (o *CreateAssetGCPPROJECTRequest) SetAuthProviderX509CertUrl(v string) { - o.AuthProviderX509CertUrl = v -} - -// GetAuthUri returns the AuthUri field value -func (o *CreateAssetGCPPROJECTRequest) GetAuthUri() string { - if o == nil { - var ret string - return ret - } - - return o.AuthUri -} - -// GetAuthUriOk returns a tuple with the AuthUri field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetAuthUriOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AuthUri, true -} - -// SetAuthUri sets field value -func (o *CreateAssetGCPPROJECTRequest) SetAuthUri(v string) { - o.AuthUri = v -} - -// GetClientEmail returns the ClientEmail field value -func (o *CreateAssetGCPPROJECTRequest) GetClientEmail() string { - if o == nil { - var ret string - return ret - } - - return o.ClientEmail -} - -// GetClientEmailOk returns a tuple with the ClientEmail field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetClientEmailOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientEmail, true -} - -// SetClientEmail sets field value -func (o *CreateAssetGCPPROJECTRequest) SetClientEmail(v string) { - o.ClientEmail = v -} - -// GetClientId returns the ClientId field value -func (o *CreateAssetGCPPROJECTRequest) GetClientId() string { - if o == nil { - var ret string - return ret - } - - return o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetClientIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientId, true -} - -// SetClientId sets field value -func (o *CreateAssetGCPPROJECTRequest) SetClientId(v string) { - o.ClientId = v -} - -// GetClientX509CertUrl returns the ClientX509CertUrl field value -func (o *CreateAssetGCPPROJECTRequest) GetClientX509CertUrl() string { - if o == nil { - var ret string - return ret - } - - return o.ClientX509CertUrl -} - -// GetClientX509CertUrlOk returns a tuple with the ClientX509CertUrl field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetClientX509CertUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientX509CertUrl, true -} - -// SetClientX509CertUrl sets field value -func (o *CreateAssetGCPPROJECTRequest) SetClientX509CertUrl(v string) { - o.ClientX509CertUrl = v -} - -// GetPrivateKey returns the PrivateKey field value -func (o *CreateAssetGCPPROJECTRequest) GetPrivateKey() string { - if o == nil { - var ret string - return ret - } - - return o.PrivateKey -} - -// GetPrivateKeyOk returns a tuple with the PrivateKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetPrivateKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.PrivateKey, true -} - -// SetPrivateKey sets field value -func (o *CreateAssetGCPPROJECTRequest) SetPrivateKey(v string) { - o.PrivateKey = v -} - -// GetPrivateKeyId returns the PrivateKeyId field value -func (o *CreateAssetGCPPROJECTRequest) GetPrivateKeyId() string { - if o == nil { - var ret string - return ret - } - - return o.PrivateKeyId -} - -// GetPrivateKeyIdOk returns a tuple with the PrivateKeyId field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetPrivateKeyIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.PrivateKeyId, true -} - -// SetPrivateKeyId sets field value -func (o *CreateAssetGCPPROJECTRequest) SetPrivateKeyId(v string) { - o.PrivateKeyId = v -} - -// GetTokenUri returns the TokenUri field value -func (o *CreateAssetGCPPROJECTRequest) GetTokenUri() string { - if o == nil { - var ret string - return ret - } - - return o.TokenUri -} - -// GetTokenUriOk returns a tuple with the TokenUri field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetTokenUriOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TokenUri, true -} - -// SetTokenUri sets field value -func (o *CreateAssetGCPPROJECTRequest) SetTokenUri(v string) { - o.TokenUri = v -} - -// GetUniverseDomain returns the UniverseDomain field value -func (o *CreateAssetGCPPROJECTRequest) GetUniverseDomain() string { - if o == nil { - var ret string - return ret - } - - return o.UniverseDomain -} - -// GetUniverseDomainOk returns a tuple with the UniverseDomain field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetUniverseDomainOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UniverseDomain, true -} - -// SetUniverseDomain sets field value -func (o *CreateAssetGCPPROJECTRequest) SetUniverseDomain(v string) { - o.UniverseDomain = v -} - -// GetProjectId returns the ProjectId field value -func (o *CreateAssetGCPPROJECTRequest) GetProjectId() string { - if o == nil { - var ret string - return ret - } - - return o.ProjectId -} - -// GetProjectIdOk returns a tuple with the ProjectId field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGCPPROJECTRequest) GetProjectIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ProjectId, true -} - -// SetProjectId sets field value -func (o *CreateAssetGCPPROJECTRequest) SetProjectId(v string) { - o.ProjectId = v -} - -func (o CreateAssetGCPPROJECTRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetGCPPROJECTRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["immutable_key"] = o.ImmutableKey - toSerialize["auth_provider_x509_cert_url"] = o.AuthProviderX509CertUrl - toSerialize["auth_uri"] = o.AuthUri - toSerialize["client_email"] = o.ClientEmail - toSerialize["client_id"] = o.ClientId - toSerialize["client_x509_cert_url"] = o.ClientX509CertUrl - toSerialize["private_key"] = o.PrivateKey - toSerialize["private_key_id"] = o.PrivateKeyId - toSerialize["token_uri"] = o.TokenUri - toSerialize["universe_domain"] = o.UniverseDomain - toSerialize["project_id"] = o.ProjectId - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetGCPPROJECTRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - "immutable_key", - "auth_provider_x509_cert_url", - "auth_uri", - "client_email", - "client_id", - "client_x509_cert_url", - "private_key", - "private_key_id", - "token_uri", - "universe_domain", - "project_id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetGCPPROJECTRequest := _CreateAssetGCPPROJECTRequest{} - - err = json.Unmarshal(data, &varCreateAssetGCPPROJECTRequest) - - if err != nil { - return err - } - - *o = CreateAssetGCPPROJECTRequest(varCreateAssetGCPPROJECTRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "immutable_key") - delete(additionalProperties, "auth_provider_x509_cert_url") - delete(additionalProperties, "auth_uri") - delete(additionalProperties, "client_email") - delete(additionalProperties, "client_id") - delete(additionalProperties, "client_x509_cert_url") - delete(additionalProperties, "private_key") - delete(additionalProperties, "private_key_id") - delete(additionalProperties, "token_uri") - delete(additionalProperties, "universe_domain") - delete(additionalProperties, "project_id") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetGCPPROJECTRequest struct { - value *CreateAssetGCPPROJECTRequest - isSet bool -} - -func (v NullableCreateAssetGCPPROJECTRequest) Get() *CreateAssetGCPPROJECTRequest { - return v.value -} - -func (v *NullableCreateAssetGCPPROJECTRequest) Set(val *CreateAssetGCPPROJECTRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetGCPPROJECTRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetGCPPROJECTRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetGCPPROJECTRequest(val *CreateAssetGCPPROJECTRequest) *NullableCreateAssetGCPPROJECTRequest { - return &NullableCreateAssetGCPPROJECTRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetGCPPROJECTRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetGCPPROJECTRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_github_organization_request.go b/pkg/api/v3/model_create_asset_github_organization_request.go deleted file mode 100644 index b806e15d..00000000 --- a/pkg/api/v3/model_create_asset_github_organization_request.go +++ /dev/null @@ -1,476 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetGITHUBORGANIZATIONRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetGITHUBORGANIZATIONRequest{} - -// CreateAssetGITHUBORGANIZATIONRequest struct for CreateAssetGITHUBORGANIZATIONRequest -type CreateAssetGITHUBORGANIZATIONRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMSOURCECODEMANAGEMENT `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMGITHUBORGANIZATION `json:"asset_type"` - Name *string `json:"name,omitempty"` - ImmutableKey string `json:"immutable_key"` - ApiKey string `json:"api_key"` - LocationId *string `json:"location_id,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetGITHUBORGANIZATIONRequest CreateAssetGITHUBORGANIZATIONRequest - -// NewCreateAssetGITHUBORGANIZATIONRequest instantiates a new CreateAssetGITHUBORGANIZATIONRequest 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 NewCreateAssetGITHUBORGANIZATIONRequest(assetClass ENUMSOURCECODEMANAGEMENT, assetType ENUMGITHUBORGANIZATION, immutableKey string, apiKey string) *CreateAssetGITHUBORGANIZATIONRequest { - this := CreateAssetGITHUBORGANIZATIONRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - this.ImmutableKey = immutableKey - this.ApiKey = apiKey - return &this -} - -// NewCreateAssetGITHUBORGANIZATIONRequestWithDefaults instantiates a new CreateAssetGITHUBORGANIZATIONRequest 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 NewCreateAssetGITHUBORGANIZATIONRequestWithDefaults() *CreateAssetGITHUBORGANIZATIONRequest { - this := CreateAssetGITHUBORGANIZATIONRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetAssetClass() ENUMSOURCECODEMANAGEMENT { - if o == nil { - var ret ENUMSOURCECODEMANAGEMENT - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetAssetClassOk() (*ENUMSOURCECODEMANAGEMENT, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetAssetClass(v ENUMSOURCECODEMANAGEMENT) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetAssetType() ENUMGITHUBORGANIZATION { - if o == nil { - var ret ENUMGITHUBORGANIZATION - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetAssetTypeOk() (*ENUMGITHUBORGANIZATION, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetAssetType(v ENUMGITHUBORGANIZATION) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetGITHUBORGANIZATIONRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetName(v string) { - o.Name = &v -} - -// GetImmutableKey returns the ImmutableKey field value -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetImmutableKey() string { - if o == nil { - var ret string - return ret - } - - return o.ImmutableKey -} - -// GetImmutableKeyOk returns a tuple with the ImmutableKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetImmutableKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ImmutableKey, true -} - -// SetImmutableKey sets field value -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetImmutableKey(v string) { - o.ImmutableKey = v -} - -// GetApiKey returns the ApiKey field value -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetApiKey() string { - if o == nil { - var ret string - return ret - } - - return o.ApiKey -} - -// GetApiKeyOk returns a tuple with the ApiKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetApiKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApiKey, true -} - -// SetApiKey sets field value -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetApiKey(v string) { - o.ApiKey = v -} - -// GetLocationId returns the LocationId field value if set, zero value otherwise. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetLocationId() string { - if o == nil || IsNil(o.LocationId) { - var ret string - return ret - } - return *o.LocationId -} - -// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) GetLocationIdOk() (*string, bool) { - if o == nil || IsNil(o.LocationId) { - return nil, false - } - return o.LocationId, true -} - -// HasLocationId returns a boolean if a field has been set. -func (o *CreateAssetGITHUBORGANIZATIONRequest) HasLocationId() bool { - if o != nil && !IsNil(o.LocationId) { - return true - } - - return false -} - -// SetLocationId gets a reference to the given string and assigns it to the LocationId field. -func (o *CreateAssetGITHUBORGANIZATIONRequest) SetLocationId(v string) { - o.LocationId = &v -} - -func (o CreateAssetGITHUBORGANIZATIONRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetGITHUBORGANIZATIONRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["immutable_key"] = o.ImmutableKey - toSerialize["api_key"] = o.ApiKey - if !IsNil(o.LocationId) { - toSerialize["location_id"] = o.LocationId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetGITHUBORGANIZATIONRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - "immutable_key", - "api_key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetGITHUBORGANIZATIONRequest := _CreateAssetGITHUBORGANIZATIONRequest{} - - err = json.Unmarshal(data, &varCreateAssetGITHUBORGANIZATIONRequest) - - if err != nil { - return err - } - - *o = CreateAssetGITHUBORGANIZATIONRequest(varCreateAssetGITHUBORGANIZATIONRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "immutable_key") - delete(additionalProperties, "api_key") - delete(additionalProperties, "location_id") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetGITHUBORGANIZATIONRequest struct { - value *CreateAssetGITHUBORGANIZATIONRequest - isSet bool -} - -func (v NullableCreateAssetGITHUBORGANIZATIONRequest) Get() *CreateAssetGITHUBORGANIZATIONRequest { - return v.value -} - -func (v *NullableCreateAssetGITHUBORGANIZATIONRequest) Set(val *CreateAssetGITHUBORGANIZATIONRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetGITHUBORGANIZATIONRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetGITHUBORGANIZATIONRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetGITHUBORGANIZATIONRequest(val *CreateAssetGITHUBORGANIZATIONRequest) *NullableCreateAssetGITHUBORGANIZATIONRequest { - return &NullableCreateAssetGITHUBORGANIZATIONRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetGITHUBORGANIZATIONRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetGITHUBORGANIZATIONRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_github_repository_request.go b/pkg/api/v3/model_create_asset_github_repository_request.go index f8cb239c..302e6d39 100644 --- a/pkg/api/v3/model_create_asset_github_repository_request.go +++ b/pkg/api/v3/model_create_asset_github_repository_request.go @@ -21,28 +21,28 @@ var _ MappedNullable = &CreateAssetGITHUBREPOSITORYRequest{} // CreateAssetGITHUBREPOSITORYRequest struct for CreateAssetGITHUBREPOSITORYRequest type CreateAssetGITHUBREPOSITORYRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMREPOSITORY `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMGITHUBREPOSITORY `json:"asset_type"` - Url string `json:"url"` - Name *string `json:"name,omitempty"` - HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` - Description *string `json:"description,omitempty"` - LocationId *string `json:"location_id,omitempty"` - DefaultBranch *string `json:"default_branch,omitempty"` - BlobBaseUrl *string `json:"blob_base_url,omitempty"` - OwnerId *float32 `json:"owner_id,omitempty"` - OwnerLogin *string `json:"owner_login,omitempty"` - OwnerHtmlUrl *string `json:"owner_html_url,omitempty"` - Fork *bool `json:"fork,omitempty"` - Archived *bool `json:"archived,omitempty"` - Disabled *bool `json:"disabled,omitempty"` - Clonable *bool `json:"clonable,omitempty"` - Private *bool `json:"private,omitempty"` - Org *CreateAssetGITHUBREPOSITORYRequestOrg `json:"org,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + Name *string `json:"name,omitempty"` + AssetClass ENUMREPOSITORY `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMGITHUBREPOSITORY `json:"asset_type"` + Url string `json:"url"` + HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` + Description *string `json:"description,omitempty"` + LocationId *string `json:"location_id,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + BlobBaseUrl *string `json:"blob_base_url,omitempty"` + LastCommit *CreateAssetGITLABREPOSITORYRequestLastCommit `json:"last_commit,omitempty"` + OwnerId *float32 `json:"owner_id,omitempty"` + OwnerLogin *string `json:"owner_login,omitempty"` + OwnerHtmlUrl *string `json:"owner_html_url,omitempty"` + Fork *bool `json:"fork,omitempty"` + Archived *bool `json:"archived,omitempty"` + Disabled *bool `json:"disabled,omitempty"` + Clonable *bool `json:"clonable,omitempty"` + Private *bool `json:"private,omitempty"` + Org *CreateAssetGITHUBREPOSITORYRequestOrg `json:"org,omitempty"` AdditionalProperties map[string]interface{} } @@ -100,92 +100,60 @@ func (o *CreateAssetGITHUBREPOSITORYRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetGITHUBREPOSITORYRequest) GetAssetClass() ENUMREPOSITORY { - if o == nil { - var ret ENUMREPOSITORY - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBREPOSITORYRequest) GetAssetClassOk() (*ENUMREPOSITORY, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetGITHUBREPOSITORYRequest) SetAssetClass(v ENUMREPOSITORY) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGITHUBREPOSITORYRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetGITHUBREPOSITORYRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetGITHUBREPOSITORYRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetGITHUBREPOSITORYRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGITHUBREPOSITORYRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetGITHUBREPOSITORYRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGITHUBREPOSITORYRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetGITHUBREPOSITORYRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGITHUBREPOSITORYRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetGITHUBREPOSITORYRequest) GetAssetClass() ENUMREPOSITORY { + if o == nil { + var ret ENUMREPOSITORY return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBREPOSITORYRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetGITHUBREPOSITORYRequest) GetAssetClassOk() (*ENUMREPOSITORY, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGITHUBREPOSITORYRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGITHUBREPOSITORYRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetGITHUBREPOSITORYRequest) SetAssetClass(v ENUMREPOSITORY) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -220,6 +188,38 @@ func (o *CreateAssetGITHUBREPOSITORYRequest) SetExtraMetadata(v map[string]inter o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetGITHUBREPOSITORYRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetGITHUBREPOSITORYRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetGITHUBREPOSITORYRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetGITHUBREPOSITORYRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetGITHUBREPOSITORYRequest) GetAssetType() ENUMGITHUBREPOSITORY { if o == nil { @@ -268,38 +268,6 @@ func (o *CreateAssetGITHUBREPOSITORYRequest) SetUrl(v string) { o.Url = v } -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetGITHUBREPOSITORYRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetGITHUBREPOSITORYRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetGITHUBREPOSITORYRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetGITHUBREPOSITORYRequest) SetName(v string) { - o.Name = &v -} - // GetHttpUrlToRepo returns the HttpUrlToRepo field value if set, zero value otherwise. func (o *CreateAssetGITHUBREPOSITORYRequest) GetHttpUrlToRepo() string { if o == nil || IsNil(o.HttpUrlToRepo) { @@ -460,6 +428,38 @@ func (o *CreateAssetGITHUBREPOSITORYRequest) SetBlobBaseUrl(v string) { o.BlobBaseUrl = &v } +// GetLastCommit returns the LastCommit field value if set, zero value otherwise. +func (o *CreateAssetGITHUBREPOSITORYRequest) GetLastCommit() CreateAssetGITLABREPOSITORYRequestLastCommit { + if o == nil || IsNil(o.LastCommit) { + var ret CreateAssetGITLABREPOSITORYRequestLastCommit + return ret + } + return *o.LastCommit +} + +// GetLastCommitOk returns a tuple with the LastCommit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetGITHUBREPOSITORYRequest) GetLastCommitOk() (*CreateAssetGITLABREPOSITORYRequestLastCommit, bool) { + if o == nil || IsNil(o.LastCommit) { + return nil, false + } + return o.LastCommit, true +} + +// HasLastCommit returns a boolean if a field has been set. +func (o *CreateAssetGITHUBREPOSITORYRequest) HasLastCommit() bool { + if o != nil && !IsNil(o.LastCommit) { + return true + } + + return false +} + +// SetLastCommit gets a reference to the given CreateAssetGITLABREPOSITORYRequestLastCommit and assigns it to the LastCommit field. +func (o *CreateAssetGITHUBREPOSITORYRequest) SetLastCommit(v CreateAssetGITLABREPOSITORYRequestLastCommit) { + o.LastCommit = &v +} + // GetOwnerId returns the OwnerId field value if set, zero value otherwise. func (o *CreateAssetGITHUBREPOSITORYRequest) GetOwnerId() float32 { if o == nil || IsNil(o.OwnerId) { @@ -761,21 +761,18 @@ func (o CreateAssetGITHUBREPOSITORYRequest) ToMap() (map[string]interface{}, err if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } if !IsNil(o.HttpUrlToRepo) { toSerialize["http_url_to_repo"] = o.HttpUrlToRepo } @@ -791,6 +788,9 @@ func (o CreateAssetGITHUBREPOSITORYRequest) ToMap() (map[string]interface{}, err if !IsNil(o.BlobBaseUrl) { toSerialize["blob_base_url"] = o.BlobBaseUrl } + if !IsNil(o.LastCommit) { + toSerialize["last_commit"] = o.LastCommit + } if !IsNil(o.OwnerId) { toSerialize["owner_id"] = o.OwnerId } @@ -864,18 +864,18 @@ func (o *CreateAssetGITHUBREPOSITORYRequest) UnmarshalJSON(data []byte) (err err if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") - delete(additionalProperties, "name") delete(additionalProperties, "http_url_to_repo") delete(additionalProperties, "description") delete(additionalProperties, "location_id") delete(additionalProperties, "default_branch") delete(additionalProperties, "blob_base_url") + delete(additionalProperties, "last_commit") delete(additionalProperties, "owner_id") delete(additionalProperties, "owner_login") delete(additionalProperties, "owner_html_url") diff --git a/pkg/api/v3/model_create_asset_github_repository_request_org.go b/pkg/api/v3/model_create_asset_github_repository_request_org.go index 89bf56db..c26fbad3 100644 --- a/pkg/api/v3/model_create_asset_github_repository_request_org.go +++ b/pkg/api/v3/model_create_asset_github_repository_request_org.go @@ -21,9 +21,8 @@ var _ MappedNullable = &CreateAssetGITHUBREPOSITORYRequestOrg{} // CreateAssetGITHUBREPOSITORYRequestOrg struct for CreateAssetGITHUBREPOSITORYRequestOrg type CreateAssetGITHUBREPOSITORYRequestOrg struct { AssetClass ENUMSOURCECODEMANAGEMENT `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMGITHUBORGANIZATION `json:"asset_type"` Name *string `json:"name,omitempty"` ImmutableKey string `json:"immutable_key"` @@ -79,100 +78,68 @@ func (o *CreateAssetGITHUBREPOSITORYRequestOrg) SetAssetClass(v ENUMSOURCECODEMA o.AssetClass = v } -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} return ret } - return *o.WizProviderId + return o.ExtraMetadata } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false +func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false } - return o.WizProviderId, true + return o.ExtraMetadata, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetGITHUBREPOSITORYRequestOrg) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetGITHUBREPOSITORYRequestOrg) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { var ret string return ret } - return *o.WizCloudPlatform + return *o.ScreenshotS3Key } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { return nil, false } - return o.WizCloudPlatform, true + return o.ScreenshotS3Key, true } -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetGITHUBREPOSITORYRequestOrg) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { return true } return false } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetGITHUBREPOSITORYRequestOrg) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetGITHUBREPOSITORYRequestOrg) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v } // GetAssetType returns the AssetType field value @@ -322,15 +289,12 @@ func (o CreateAssetGITHUBREPOSITORYRequestOrg) MarshalJSON() ([]byte, error) { func (o CreateAssetGITHUBREPOSITORYRequestOrg) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -387,9 +351,8 @@ func (o *CreateAssetGITHUBREPOSITORYRequestOrg) UnmarshalJSON(data []byte) (err if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "name") delete(additionalProperties, "immutable_key") diff --git a/pkg/api/v3/model_create_asset_gitlab_group_request.go b/pkg/api/v3/model_create_asset_gitlab_group_request.go deleted file mode 100644 index 31c89821..00000000 --- a/pkg/api/v3/model_create_asset_gitlab_group_request.go +++ /dev/null @@ -1,513 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetGITLABGROUPRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetGITLABGROUPRequest{} - -// CreateAssetGITLABGROUPRequest struct for CreateAssetGITLABGROUPRequest -type CreateAssetGITLABGROUPRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMSOURCECODEMANAGEMENT `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMGITLABGROUP `json:"asset_type"` - Name *string `json:"name,omitempty"` - ImmutableKey string `json:"immutable_key"` - ApiKey string `json:"api_key"` - InstanceUrl *string `json:"instance_url,omitempty"` - LocationId *string `json:"location_id,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetGITLABGROUPRequest CreateAssetGITLABGROUPRequest - -// NewCreateAssetGITLABGROUPRequest instantiates a new CreateAssetGITLABGROUPRequest 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 NewCreateAssetGITLABGROUPRequest(assetClass ENUMSOURCECODEMANAGEMENT, assetType ENUMGITLABGROUP, immutableKey string, apiKey string) *CreateAssetGITLABGROUPRequest { - this := CreateAssetGITLABGROUPRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - this.ImmutableKey = immutableKey - this.ApiKey = apiKey - return &this -} - -// NewCreateAssetGITLABGROUPRequestWithDefaults instantiates a new CreateAssetGITLABGROUPRequest 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 NewCreateAssetGITLABGROUPRequestWithDefaults() *CreateAssetGITLABGROUPRequest { - this := CreateAssetGITLABGROUPRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetGITLABGROUPRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetGITLABGROUPRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetGITLABGROUPRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetGITLABGROUPRequest) GetAssetClass() ENUMSOURCECODEMANAGEMENT { - if o == nil { - var ret ENUMSOURCECODEMANAGEMENT - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetAssetClassOk() (*ENUMSOURCECODEMANAGEMENT, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetGITLABGROUPRequest) SetAssetClass(v ENUMSOURCECODEMANAGEMENT) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGITLABGROUPRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGITLABGROUPRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGITLABGROUPRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGITLABGROUPRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGITLABGROUPRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGITLABGROUPRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetGITLABGROUPRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetGITLABGROUPRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetGITLABGROUPRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetGITLABGROUPRequest) GetAssetType() ENUMGITLABGROUP { - if o == nil { - var ret ENUMGITLABGROUP - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetAssetTypeOk() (*ENUMGITLABGROUP, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetGITLABGROUPRequest) SetAssetType(v ENUMGITLABGROUP) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetGITLABGROUPRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetGITLABGROUPRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetGITLABGROUPRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetGITLABGROUPRequest) SetName(v string) { - o.Name = &v -} - -// GetImmutableKey returns the ImmutableKey field value -func (o *CreateAssetGITLABGROUPRequest) GetImmutableKey() string { - if o == nil { - var ret string - return ret - } - - return o.ImmutableKey -} - -// GetImmutableKeyOk returns a tuple with the ImmutableKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetImmutableKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ImmutableKey, true -} - -// SetImmutableKey sets field value -func (o *CreateAssetGITLABGROUPRequest) SetImmutableKey(v string) { - o.ImmutableKey = v -} - -// GetApiKey returns the ApiKey field value -func (o *CreateAssetGITLABGROUPRequest) GetApiKey() string { - if o == nil { - var ret string - return ret - } - - return o.ApiKey -} - -// GetApiKeyOk returns a tuple with the ApiKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetApiKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApiKey, true -} - -// SetApiKey sets field value -func (o *CreateAssetGITLABGROUPRequest) SetApiKey(v string) { - o.ApiKey = v -} - -// GetInstanceUrl returns the InstanceUrl field value if set, zero value otherwise. -func (o *CreateAssetGITLABGROUPRequest) GetInstanceUrl() string { - if o == nil || IsNil(o.InstanceUrl) { - var ret string - return ret - } - return *o.InstanceUrl -} - -// GetInstanceUrlOk returns a tuple with the InstanceUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetInstanceUrlOk() (*string, bool) { - if o == nil || IsNil(o.InstanceUrl) { - return nil, false - } - return o.InstanceUrl, true -} - -// HasInstanceUrl returns a boolean if a field has been set. -func (o *CreateAssetGITLABGROUPRequest) HasInstanceUrl() bool { - if o != nil && !IsNil(o.InstanceUrl) { - return true - } - - return false -} - -// SetInstanceUrl gets a reference to the given string and assigns it to the InstanceUrl field. -func (o *CreateAssetGITLABGROUPRequest) SetInstanceUrl(v string) { - o.InstanceUrl = &v -} - -// GetLocationId returns the LocationId field value if set, zero value otherwise. -func (o *CreateAssetGITLABGROUPRequest) GetLocationId() string { - if o == nil || IsNil(o.LocationId) { - var ret string - return ret - } - return *o.LocationId -} - -// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABGROUPRequest) GetLocationIdOk() (*string, bool) { - if o == nil || IsNil(o.LocationId) { - return nil, false - } - return o.LocationId, true -} - -// HasLocationId returns a boolean if a field has been set. -func (o *CreateAssetGITLABGROUPRequest) HasLocationId() bool { - if o != nil && !IsNil(o.LocationId) { - return true - } - - return false -} - -// SetLocationId gets a reference to the given string and assigns it to the LocationId field. -func (o *CreateAssetGITLABGROUPRequest) SetLocationId(v string) { - o.LocationId = &v -} - -func (o CreateAssetGITLABGROUPRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetGITLABGROUPRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["immutable_key"] = o.ImmutableKey - toSerialize["api_key"] = o.ApiKey - if !IsNil(o.InstanceUrl) { - toSerialize["instance_url"] = o.InstanceUrl - } - if !IsNil(o.LocationId) { - toSerialize["location_id"] = o.LocationId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetGITLABGROUPRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - "immutable_key", - "api_key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetGITLABGROUPRequest := _CreateAssetGITLABGROUPRequest{} - - err = json.Unmarshal(data, &varCreateAssetGITLABGROUPRequest) - - if err != nil { - return err - } - - *o = CreateAssetGITLABGROUPRequest(varCreateAssetGITLABGROUPRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "immutable_key") - delete(additionalProperties, "api_key") - delete(additionalProperties, "instance_url") - delete(additionalProperties, "location_id") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetGITLABGROUPRequest struct { - value *CreateAssetGITLABGROUPRequest - isSet bool -} - -func (v NullableCreateAssetGITLABGROUPRequest) Get() *CreateAssetGITLABGROUPRequest { - return v.value -} - -func (v *NullableCreateAssetGITLABGROUPRequest) Set(val *CreateAssetGITLABGROUPRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetGITLABGROUPRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetGITLABGROUPRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetGITLABGROUPRequest(val *CreateAssetGITLABGROUPRequest) *NullableCreateAssetGITLABGROUPRequest { - return &NullableCreateAssetGITLABGROUPRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetGITLABGROUPRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetGITLABGROUPRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_gitlab_repository_request.go b/pkg/api/v3/model_create_asset_gitlab_repository_request.go index 1b40bb86..844e1de4 100644 --- a/pkg/api/v3/model_create_asset_gitlab_repository_request.go +++ b/pkg/api/v3/model_create_asset_gitlab_repository_request.go @@ -21,26 +21,26 @@ var _ MappedNullable = &CreateAssetGITLABREPOSITORYRequest{} // CreateAssetGITLABREPOSITORYRequest struct for CreateAssetGITLABREPOSITORYRequest type CreateAssetGITLABREPOSITORYRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMREPOSITORY `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMGITLABREPOSITORY `json:"asset_type"` - Url string `json:"url"` - Name *string `json:"name,omitempty"` - HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` - Description *string `json:"description,omitempty"` - LocationId *string `json:"location_id,omitempty"` - DefaultBranch *string `json:"default_branch,omitempty"` - BlobBaseUrl *string `json:"blob_base_url,omitempty"` - GroupId *float32 `json:"group_id,omitempty"` - GroupFullPath *string `json:"group_full_path,omitempty"` - GroupWebUrl *string `json:"group_web_url,omitempty"` - ProjectId *float32 `json:"project_id,omitempty"` - Archived *bool `json:"archived,omitempty"` - Visibility *ENUMPROPERTIESVISIBILITY `json:"visibility,omitempty"` - Group *CreateAssetGITLABREPOSITORYRequestGroup `json:"group,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + Name *string `json:"name,omitempty"` + AssetClass ENUMREPOSITORY `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMGITLABREPOSITORY `json:"asset_type"` + Url string `json:"url"` + HttpUrlToRepo *string `json:"http_url_to_repo,omitempty"` + Description *string `json:"description,omitempty"` + LocationId *string `json:"location_id,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + BlobBaseUrl *string `json:"blob_base_url,omitempty"` + LastCommit *CreateAssetGITLABREPOSITORYRequestLastCommit `json:"last_commit,omitempty"` + GroupId *float32 `json:"group_id,omitempty"` + GroupFullPath *string `json:"group_full_path,omitempty"` + GroupWebUrl *string `json:"group_web_url,omitempty"` + ProjectId *float32 `json:"project_id,omitempty"` + Archived *bool `json:"archived,omitempty"` + Visibility *ENUMPROPERTIESVISIBILITY `json:"visibility,omitempty"` + Group *CreateAssetGITLABREPOSITORYRequestGroup `json:"group,omitempty"` AdditionalProperties map[string]interface{} } @@ -98,92 +98,60 @@ func (o *CreateAssetGITLABREPOSITORYRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetGITLABREPOSITORYRequest) GetAssetClass() ENUMREPOSITORY { - if o == nil { - var ret ENUMREPOSITORY - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABREPOSITORYRequest) GetAssetClassOk() (*ENUMREPOSITORY, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetGITLABREPOSITORYRequest) SetAssetClass(v ENUMREPOSITORY) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGITLABREPOSITORYRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetGITLABREPOSITORYRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetGITLABREPOSITORYRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetGITLABREPOSITORYRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGITLABREPOSITORYRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetGITLABREPOSITORYRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGITLABREPOSITORYRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetGITLABREPOSITORYRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGITLABREPOSITORYRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetGITLABREPOSITORYRequest) GetAssetClass() ENUMREPOSITORY { + if o == nil { + var ret ENUMREPOSITORY return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetGITLABREPOSITORYRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetGITLABREPOSITORYRequest) GetAssetClassOk() (*ENUMREPOSITORY, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGITLABREPOSITORYRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGITLABREPOSITORYRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetGITLABREPOSITORYRequest) SetAssetClass(v ENUMREPOSITORY) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -218,6 +186,38 @@ func (o *CreateAssetGITLABREPOSITORYRequest) SetExtraMetadata(v map[string]inter o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetGITLABREPOSITORYRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetGITLABREPOSITORYRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetGITLABREPOSITORYRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetGITLABREPOSITORYRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetGITLABREPOSITORYRequest) GetAssetType() ENUMGITLABREPOSITORY { if o == nil { @@ -266,38 +266,6 @@ func (o *CreateAssetGITLABREPOSITORYRequest) SetUrl(v string) { o.Url = v } -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetGITLABREPOSITORYRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetGITLABREPOSITORYRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetGITLABREPOSITORYRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetGITLABREPOSITORYRequest) SetName(v string) { - o.Name = &v -} - // GetHttpUrlToRepo returns the HttpUrlToRepo field value if set, zero value otherwise. func (o *CreateAssetGITLABREPOSITORYRequest) GetHttpUrlToRepo() string { if o == nil || IsNil(o.HttpUrlToRepo) { @@ -458,6 +426,38 @@ func (o *CreateAssetGITLABREPOSITORYRequest) SetBlobBaseUrl(v string) { o.BlobBaseUrl = &v } +// GetLastCommit returns the LastCommit field value if set, zero value otherwise. +func (o *CreateAssetGITLABREPOSITORYRequest) GetLastCommit() CreateAssetGITLABREPOSITORYRequestLastCommit { + if o == nil || IsNil(o.LastCommit) { + var ret CreateAssetGITLABREPOSITORYRequestLastCommit + return ret + } + return *o.LastCommit +} + +// GetLastCommitOk returns a tuple with the LastCommit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetGITLABREPOSITORYRequest) GetLastCommitOk() (*CreateAssetGITLABREPOSITORYRequestLastCommit, bool) { + if o == nil || IsNil(o.LastCommit) { + return nil, false + } + return o.LastCommit, true +} + +// HasLastCommit returns a boolean if a field has been set. +func (o *CreateAssetGITLABREPOSITORYRequest) HasLastCommit() bool { + if o != nil && !IsNil(o.LastCommit) { + return true + } + + return false +} + +// SetLastCommit gets a reference to the given CreateAssetGITLABREPOSITORYRequestLastCommit and assigns it to the LastCommit field. +func (o *CreateAssetGITLABREPOSITORYRequest) SetLastCommit(v CreateAssetGITLABREPOSITORYRequestLastCommit) { + o.LastCommit = &v +} + // GetGroupId returns the GroupId field value if set, zero value otherwise. func (o *CreateAssetGITLABREPOSITORYRequest) GetGroupId() float32 { if o == nil || IsNil(o.GroupId) { @@ -695,21 +695,18 @@ func (o CreateAssetGITLABREPOSITORYRequest) ToMap() (map[string]interface{}, err if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } if !IsNil(o.HttpUrlToRepo) { toSerialize["http_url_to_repo"] = o.HttpUrlToRepo } @@ -725,6 +722,9 @@ func (o CreateAssetGITLABREPOSITORYRequest) ToMap() (map[string]interface{}, err if !IsNil(o.BlobBaseUrl) { toSerialize["blob_base_url"] = o.BlobBaseUrl } + if !IsNil(o.LastCommit) { + toSerialize["last_commit"] = o.LastCommit + } if !IsNil(o.GroupId) { toSerialize["group_id"] = o.GroupId } @@ -792,18 +792,18 @@ func (o *CreateAssetGITLABREPOSITORYRequest) UnmarshalJSON(data []byte) (err err if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") - delete(additionalProperties, "name") delete(additionalProperties, "http_url_to_repo") delete(additionalProperties, "description") delete(additionalProperties, "location_id") delete(additionalProperties, "default_branch") delete(additionalProperties, "blob_base_url") + delete(additionalProperties, "last_commit") delete(additionalProperties, "group_id") delete(additionalProperties, "group_full_path") delete(additionalProperties, "group_web_url") diff --git a/pkg/api/v3/model_create_asset_gitlab_repository_request_group.go b/pkg/api/v3/model_create_asset_gitlab_repository_request_group.go index 81a11270..d9f9f5cd 100644 --- a/pkg/api/v3/model_create_asset_gitlab_repository_request_group.go +++ b/pkg/api/v3/model_create_asset_gitlab_repository_request_group.go @@ -21,9 +21,8 @@ var _ MappedNullable = &CreateAssetGITLABREPOSITORYRequestGroup{} // CreateAssetGITLABREPOSITORYRequestGroup struct for CreateAssetGITLABREPOSITORYRequestGroup type CreateAssetGITLABREPOSITORYRequestGroup struct { AssetClass ENUMSOURCECODEMANAGEMENT `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMGITLABGROUP `json:"asset_type"` Name *string `json:"name,omitempty"` ImmutableKey string `json:"immutable_key"` @@ -80,100 +79,68 @@ func (o *CreateAssetGITLABREPOSITORYRequestGroup) SetAssetClass(v ENUMSOURCECODE o.AssetClass = v } -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} return ret } - return *o.WizProviderId + return o.ExtraMetadata } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false +func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false } - return o.WizProviderId, true + return o.ExtraMetadata, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetGITLABREPOSITORYRequestGroup) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetGITLABREPOSITORYRequestGroup) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { var ret string return ret } - return *o.WizCloudPlatform + return *o.ScreenshotS3Key } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { return nil, false } - return o.WizCloudPlatform, true + return o.ScreenshotS3Key, true } -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetGITLABREPOSITORYRequestGroup) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { return true } return false } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetGITLABREPOSITORYRequestGroup) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetGITLABREPOSITORYRequestGroup) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v } // GetAssetType returns the AssetType field value @@ -355,15 +322,12 @@ func (o CreateAssetGITLABREPOSITORYRequestGroup) MarshalJSON() ([]byte, error) { func (o CreateAssetGITLABREPOSITORYRequestGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -423,9 +387,8 @@ func (o *CreateAssetGITLABREPOSITORYRequestGroup) UnmarshalJSON(data []byte) (er if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "name") delete(additionalProperties, "immutable_key") diff --git a/pkg/api/v3/model_create_asset_gitlab_repository_request_last_commit.go b/pkg/api/v3/model_create_asset_gitlab_repository_request_last_commit.go new file mode 100644 index 00000000..40e7cd58 --- /dev/null +++ b/pkg/api/v3/model_create_asset_gitlab_repository_request_last_commit.go @@ -0,0 +1,195 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateAssetGITLABREPOSITORYRequestLastCommit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetGITLABREPOSITORYRequestLastCommit{} + +// CreateAssetGITLABREPOSITORYRequestLastCommit struct for CreateAssetGITLABREPOSITORYRequestLastCommit +type CreateAssetGITLABREPOSITORYRequestLastCommit struct { + Sha string `json:"sha"` + TimestampIso string `json:"timestamp_iso"` + AdditionalProperties map[string]interface{} +} + +type _CreateAssetGITLABREPOSITORYRequestLastCommit CreateAssetGITLABREPOSITORYRequestLastCommit + +// NewCreateAssetGITLABREPOSITORYRequestLastCommit instantiates a new CreateAssetGITLABREPOSITORYRequestLastCommit 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 NewCreateAssetGITLABREPOSITORYRequestLastCommit(sha string, timestampIso string) *CreateAssetGITLABREPOSITORYRequestLastCommit { + this := CreateAssetGITLABREPOSITORYRequestLastCommit{} + this.Sha = sha + this.TimestampIso = timestampIso + return &this +} + +// NewCreateAssetGITLABREPOSITORYRequestLastCommitWithDefaults instantiates a new CreateAssetGITLABREPOSITORYRequestLastCommit 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 NewCreateAssetGITLABREPOSITORYRequestLastCommitWithDefaults() *CreateAssetGITLABREPOSITORYRequestLastCommit { + this := CreateAssetGITLABREPOSITORYRequestLastCommit{} + return &this +} + +// GetSha returns the Sha field value +func (o *CreateAssetGITLABREPOSITORYRequestLastCommit) GetSha() string { + if o == nil { + var ret string + return ret + } + + return o.Sha +} + +// GetShaOk returns a tuple with the Sha field value +// and a boolean to check if the value has been set. +func (o *CreateAssetGITLABREPOSITORYRequestLastCommit) GetShaOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sha, true +} + +// SetSha sets field value +func (o *CreateAssetGITLABREPOSITORYRequestLastCommit) SetSha(v string) { + o.Sha = v +} + +// GetTimestampIso returns the TimestampIso field value +func (o *CreateAssetGITLABREPOSITORYRequestLastCommit) GetTimestampIso() string { + if o == nil { + var ret string + return ret + } + + return o.TimestampIso +} + +// GetTimestampIsoOk returns a tuple with the TimestampIso field value +// and a boolean to check if the value has been set. +func (o *CreateAssetGITLABREPOSITORYRequestLastCommit) GetTimestampIsoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TimestampIso, true +} + +// SetTimestampIso sets field value +func (o *CreateAssetGITLABREPOSITORYRequestLastCommit) SetTimestampIso(v string) { + o.TimestampIso = v +} + +func (o CreateAssetGITLABREPOSITORYRequestLastCommit) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetGITLABREPOSITORYRequestLastCommit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sha"] = o.Sha + toSerialize["timestamp_iso"] = o.TimestampIso + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateAssetGITLABREPOSITORYRequestLastCommit) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "sha", + "timestamp_iso", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAssetGITLABREPOSITORYRequestLastCommit := _CreateAssetGITLABREPOSITORYRequestLastCommit{} + + err = json.Unmarshal(data, &varCreateAssetGITLABREPOSITORYRequestLastCommit) + + if err != nil { + return err + } + + *o = CreateAssetGITLABREPOSITORYRequestLastCommit(varCreateAssetGITLABREPOSITORYRequestLastCommit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "sha") + delete(additionalProperties, "timestamp_iso") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateAssetGITLABREPOSITORYRequestLastCommit struct { + value *CreateAssetGITLABREPOSITORYRequestLastCommit + isSet bool +} + +func (v NullableCreateAssetGITLABREPOSITORYRequestLastCommit) Get() *CreateAssetGITLABREPOSITORYRequestLastCommit { + return v.value +} + +func (v *NullableCreateAssetGITLABREPOSITORYRequestLastCommit) Set(val *CreateAssetGITLABREPOSITORYRequestLastCommit) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetGITLABREPOSITORYRequestLastCommit) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetGITLABREPOSITORYRequestLastCommit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetGITLABREPOSITORYRequestLastCommit(val *CreateAssetGITLABREPOSITORYRequestLastCommit) *NullableCreateAssetGITLABREPOSITORYRequestLastCommit { + return &NullableCreateAssetGITLABREPOSITORYRequestLastCommit{value: val, isSet: true} +} + +func (v NullableCreateAssetGITLABREPOSITORYRequestLastCommit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetGITLABREPOSITORYRequestLastCommit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_asset_graphql_request.go b/pkg/api/v3/model_create_asset_graphql_request.go index a2702af3..6a729daf 100644 --- a/pkg/api/v3/model_create_asset_graphql_request.go +++ b/pkg/api/v3/model_create_asset_graphql_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetGRAPHQLRequest{} // CreateAssetGRAPHQLRequest struct for CreateAssetGRAPHQLRequest type CreateAssetGRAPHQLRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMAPISERVICE `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMGRAPHQL `json:"asset_type"` Url string `json:"url"` Favicon *string `json:"favicon,omitempty"` @@ -98,92 +99,60 @@ func (o *CreateAssetGRAPHQLRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetGRAPHQLRequest) GetAssetClass() ENUMAPISERVICE { - if o == nil { - var ret ENUMAPISERVICE - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGRAPHQLRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetGRAPHQLRequest) SetAssetClass(v ENUMAPISERVICE) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGRAPHQLRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetGRAPHQLRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetGRAPHQLRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetGRAPHQLRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGRAPHQLRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetGRAPHQLRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGRAPHQLRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetGRAPHQLRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGRAPHQLRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetGRAPHQLRequest) GetAssetClass() ENUMAPISERVICE { + if o == nil { + var ret ENUMAPISERVICE return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetGRAPHQLRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetGRAPHQLRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGRAPHQLRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGRAPHQLRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetGRAPHQLRequest) SetAssetClass(v ENUMAPISERVICE) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -218,6 +187,38 @@ func (o *CreateAssetGRAPHQLRequest) SetExtraMetadata(v map[string]interface{}) { o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetGRAPHQLRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetGRAPHQLRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetGRAPHQLRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetGRAPHQLRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetGRAPHQLRequest) GetAssetType() ENUMGRAPHQL { if o == nil { @@ -695,16 +696,16 @@ func (o CreateAssetGRAPHQLRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url if !IsNil(o.Favicon) { @@ -792,10 +793,10 @@ func (o *CreateAssetGRAPHQLRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_grpc_request.go b/pkg/api/v3/model_create_asset_grpc_request.go index cb12fcb1..da16ea40 100644 --- a/pkg/api/v3/model_create_asset_grpc_request.go +++ b/pkg/api/v3/model_create_asset_grpc_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetGRPCRequest{} // CreateAssetGRPCRequest struct for CreateAssetGRPCRequest type CreateAssetGRPCRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMAPISERVICE `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMGRPC `json:"asset_type"` Url string `json:"url"` Favicon *string `json:"favicon,omitempty"` @@ -96,92 +97,60 @@ func (o *CreateAssetGRPCRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetGRPCRequest) GetAssetClass() ENUMAPISERVICE { - if o == nil { - var ret ENUMAPISERVICE - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetGRPCRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetGRPCRequest) SetAssetClass(v ENUMAPISERVICE) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetGRPCRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetGRPCRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetGRPCRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetGRPCRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetGRPCRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetGRPCRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetGRPCRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetGRPCRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetGRPCRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetGRPCRequest) GetAssetClass() ENUMAPISERVICE { + if o == nil { + var ret ENUMAPISERVICE return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetGRPCRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetGRPCRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetGRPCRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetGRPCRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetGRPCRequest) SetAssetClass(v ENUMAPISERVICE) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -216,6 +185,38 @@ func (o *CreateAssetGRPCRequest) SetExtraMetadata(v map[string]interface{}) { o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetGRPCRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetGRPCRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetGRPCRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetGRPCRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetGRPCRequest) GetAssetType() ENUMGRPC { if o == nil { @@ -629,16 +630,16 @@ func (o CreateAssetGRPCRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url if !IsNil(o.Favicon) { @@ -720,10 +721,10 @@ func (o *CreateAssetGRPCRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_ipv4_range_request.go b/pkg/api/v3/model_create_asset_ipv4_range_request.go index 567138ce..b4616edb 100644 --- a/pkg/api/v3/model_create_asset_ipv4_range_request.go +++ b/pkg/api/v3/model_create_asset_ipv4_range_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetIPV4RANGERequest{} // CreateAssetIPV4RANGERequest struct for CreateAssetIPV4RANGERequest type CreateAssetIPV4RANGERequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMNETWORK `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMIPV4RANGE `json:"asset_type"` Cidr string `json:"cidr"` Private *bool `json:"private,omitempty"` @@ -87,92 +88,60 @@ func (o *CreateAssetIPV4RANGERequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetIPV4RANGERequest) GetAssetClass() ENUMNETWORK { - if o == nil { - var ret ENUMNETWORK - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetIPV4RANGERequest) GetAssetClassOk() (*ENUMNETWORK, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetIPV4RANGERequest) SetAssetClass(v ENUMNETWORK) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetIPV4RANGERequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetIPV4RANGERequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetIPV4RANGERequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetIPV4RANGERequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetIPV4RANGERequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetIPV4RANGERequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetIPV4RANGERequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetIPV4RANGERequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetIPV4RANGERequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetIPV4RANGERequest) GetAssetClass() ENUMNETWORK { + if o == nil { + var ret ENUMNETWORK return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetIPV4RANGERequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetIPV4RANGERequest) GetAssetClassOk() (*ENUMNETWORK, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetIPV4RANGERequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetIPV4RANGERequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetIPV4RANGERequest) SetAssetClass(v ENUMNETWORK) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -207,6 +176,38 @@ func (o *CreateAssetIPV4RANGERequest) SetExtraMetadata(v map[string]interface{}) o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetIPV4RANGERequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetIPV4RANGERequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetIPV4RANGERequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetIPV4RANGERequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetIPV4RANGERequest) GetAssetType() ENUMIPV4RANGE { if o == nil { @@ -332,16 +333,16 @@ func (o CreateAssetIPV4RANGERequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["cidr"] = o.Cidr if !IsNil(o.Private) { @@ -396,10 +397,10 @@ func (o *CreateAssetIPV4RANGERequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "cidr") delete(additionalProperties, "private") diff --git a/pkg/api/v3/model_create_asset_ipv4_request.go b/pkg/api/v3/model_create_asset_ipv4_request.go index 58f1854d..28ed3f7e 100644 --- a/pkg/api/v3/model_create_asset_ipv4_request.go +++ b/pkg/api/v3/model_create_asset_ipv4_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetIPV4Request{} // CreateAssetIPV4Request struct for CreateAssetIPV4Request type CreateAssetIPV4Request struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMHOST `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMIPV4 `json:"asset_type"` Address string `json:"address"` Favicon *string `json:"favicon,omitempty"` @@ -93,92 +94,60 @@ func (o *CreateAssetIPV4Request) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetIPV4Request) GetAssetClass() ENUMHOST { - if o == nil { - var ret ENUMHOST - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetIPV4Request) GetAssetClassOk() (*ENUMHOST, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetIPV4Request) SetAssetClass(v ENUMHOST) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetIPV4Request) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetIPV4Request) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetIPV4Request) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetIPV4Request) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetIPV4Request) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetIPV4Request) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetIPV4Request) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetIPV4Request) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetIPV4Request) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetIPV4Request) GetAssetClass() ENUMHOST { + if o == nil { + var ret ENUMHOST return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetIPV4Request) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetIPV4Request) GetAssetClassOk() (*ENUMHOST, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetIPV4Request) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetIPV4Request) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetIPV4Request) SetAssetClass(v ENUMHOST) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -213,6 +182,38 @@ func (o *CreateAssetIPV4Request) SetExtraMetadata(v map[string]interface{}) { o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetIPV4Request) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetIPV4Request) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetIPV4Request) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetIPV4Request) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetIPV4Request) GetAssetType() ENUMIPV4 { if o == nil { @@ -530,16 +531,16 @@ func (o CreateAssetIPV4Request) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["address"] = o.Address if !IsNil(o.Favicon) { @@ -612,10 +613,10 @@ func (o *CreateAssetIPV4Request) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "address") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_ipv6_request.go b/pkg/api/v3/model_create_asset_ipv6_request.go index e7ddfa84..f583dc60 100644 --- a/pkg/api/v3/model_create_asset_ipv6_request.go +++ b/pkg/api/v3/model_create_asset_ipv6_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetIPV6Request{} // CreateAssetIPV6Request struct for CreateAssetIPV6Request type CreateAssetIPV6Request struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMHOST `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMIPV6 `json:"asset_type"` Address string `json:"address"` Favicon *string `json:"favicon,omitempty"` @@ -93,92 +94,60 @@ func (o *CreateAssetIPV6Request) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetIPV6Request) GetAssetClass() ENUMHOST { - if o == nil { - var ret ENUMHOST - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetIPV6Request) GetAssetClassOk() (*ENUMHOST, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetIPV6Request) SetAssetClass(v ENUMHOST) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetIPV6Request) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetIPV6Request) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetIPV6Request) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetIPV6Request) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetIPV6Request) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetIPV6Request) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetIPV6Request) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetIPV6Request) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetIPV6Request) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetIPV6Request) GetAssetClass() ENUMHOST { + if o == nil { + var ret ENUMHOST return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetIPV6Request) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetIPV6Request) GetAssetClassOk() (*ENUMHOST, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetIPV6Request) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetIPV6Request) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetIPV6Request) SetAssetClass(v ENUMHOST) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -213,6 +182,38 @@ func (o *CreateAssetIPV6Request) SetExtraMetadata(v map[string]interface{}) { o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetIPV6Request) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetIPV6Request) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetIPV6Request) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetIPV6Request) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetIPV6Request) GetAssetType() ENUMIPV6 { if o == nil { @@ -530,16 +531,16 @@ func (o CreateAssetIPV6Request) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["address"] = o.Address if !IsNil(o.Favicon) { @@ -612,10 +613,10 @@ func (o *CreateAssetIPV6Request) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "address") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_kubernetes_cluster_request.go b/pkg/api/v3/model_create_asset_kubernetes_cluster_request.go deleted file mode 100644 index e86efc80..00000000 --- a/pkg/api/v3/model_create_asset_kubernetes_cluster_request.go +++ /dev/null @@ -1,418 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetKUBERNETESCLUSTERRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetKUBERNETESCLUSTERRequest{} - -// CreateAssetKUBERNETESCLUSTERRequest struct for CreateAssetKUBERNETESCLUSTERRequest -type CreateAssetKUBERNETESCLUSTERRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMCLOUDHOSTING `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMKUBERNETESCLUSTER `json:"asset_type"` - Name *string `json:"name,omitempty"` - PrivateLocationId *string `json:"private_location_id,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetKUBERNETESCLUSTERRequest CreateAssetKUBERNETESCLUSTERRequest - -// NewCreateAssetKUBERNETESCLUSTERRequest instantiates a new CreateAssetKUBERNETESCLUSTERRequest 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 NewCreateAssetKUBERNETESCLUSTERRequest(assetClass ENUMCLOUDHOSTING, assetType ENUMKUBERNETESCLUSTER) *CreateAssetKUBERNETESCLUSTERRequest { - this := CreateAssetKUBERNETESCLUSTERRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - return &this -} - -// NewCreateAssetKUBERNETESCLUSTERRequestWithDefaults instantiates a new CreateAssetKUBERNETESCLUSTERRequest 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 NewCreateAssetKUBERNETESCLUSTERRequestWithDefaults() *CreateAssetKUBERNETESCLUSTERRequest { - this := CreateAssetKUBERNETESCLUSTERRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetKUBERNETESCLUSTERRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetAssetClass() ENUMCLOUDHOSTING { - if o == nil { - var ret ENUMCLOUDHOSTING - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetAssetClassOk() (*ENUMCLOUDHOSTING, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetKUBERNETESCLUSTERRequest) SetAssetClass(v ENUMCLOUDHOSTING) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetKUBERNETESCLUSTERRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetKUBERNETESCLUSTERRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetKUBERNETESCLUSTERRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetAssetType() ENUMKUBERNETESCLUSTER { - if o == nil { - var ret ENUMKUBERNETESCLUSTER - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetAssetTypeOk() (*ENUMKUBERNETESCLUSTER, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetKUBERNETESCLUSTERRequest) SetAssetType(v ENUMKUBERNETESCLUSTER) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetKUBERNETESCLUSTERRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetKUBERNETESCLUSTERRequest) SetName(v string) { - o.Name = &v -} - -// GetPrivateLocationId returns the PrivateLocationId field value if set, zero value otherwise. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetPrivateLocationId() string { - if o == nil || IsNil(o.PrivateLocationId) { - var ret string - return ret - } - return *o.PrivateLocationId -} - -// GetPrivateLocationIdOk returns a tuple with the PrivateLocationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) GetPrivateLocationIdOk() (*string, bool) { - if o == nil || IsNil(o.PrivateLocationId) { - return nil, false - } - return o.PrivateLocationId, true -} - -// HasPrivateLocationId returns a boolean if a field has been set. -func (o *CreateAssetKUBERNETESCLUSTERRequest) HasPrivateLocationId() bool { - if o != nil && !IsNil(o.PrivateLocationId) { - return true - } - - return false -} - -// SetPrivateLocationId gets a reference to the given string and assigns it to the PrivateLocationId field. -func (o *CreateAssetKUBERNETESCLUSTERRequest) SetPrivateLocationId(v string) { - o.PrivateLocationId = &v -} - -func (o CreateAssetKUBERNETESCLUSTERRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetKUBERNETESCLUSTERRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.PrivateLocationId) { - toSerialize["private_location_id"] = o.PrivateLocationId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetKUBERNETESCLUSTERRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetKUBERNETESCLUSTERRequest := _CreateAssetKUBERNETESCLUSTERRequest{} - - err = json.Unmarshal(data, &varCreateAssetKUBERNETESCLUSTERRequest) - - if err != nil { - return err - } - - *o = CreateAssetKUBERNETESCLUSTERRequest(varCreateAssetKUBERNETESCLUSTERRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "private_location_id") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetKUBERNETESCLUSTERRequest struct { - value *CreateAssetKUBERNETESCLUSTERRequest - isSet bool -} - -func (v NullableCreateAssetKUBERNETESCLUSTERRequest) Get() *CreateAssetKUBERNETESCLUSTERRequest { - return v.value -} - -func (v *NullableCreateAssetKUBERNETESCLUSTERRequest) Set(val *CreateAssetKUBERNETESCLUSTERRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetKUBERNETESCLUSTERRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetKUBERNETESCLUSTERRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetKUBERNETESCLUSTERRequest(val *CreateAssetKUBERNETESCLUSTERRequest) *NullableCreateAssetKUBERNETESCLUSTERRequest { - return &NullableCreateAssetKUBERNETESCLUSTERRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetKUBERNETESCLUSTERRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetKUBERNETESCLUSTERRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_mcp_request.go b/pkg/api/v3/model_create_asset_mcp_request.go index 233fffda..96df5ff8 100644 --- a/pkg/api/v3/model_create_asset_mcp_request.go +++ b/pkg/api/v3/model_create_asset_mcp_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetMCPRequest{} // CreateAssetMCPRequest struct for CreateAssetMCPRequest type CreateAssetMCPRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMAPISERVICE `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMMCP `json:"asset_type"` Url string `json:"url"` Favicon *string `json:"favicon,omitempty"` @@ -96,92 +97,60 @@ func (o *CreateAssetMCPRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetMCPRequest) GetAssetClass() ENUMAPISERVICE { - if o == nil { - var ret ENUMAPISERVICE - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetMCPRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetMCPRequest) SetAssetClass(v ENUMAPISERVICE) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetMCPRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetMCPRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetMCPRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetMCPRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetMCPRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetMCPRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetMCPRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetMCPRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetMCPRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetMCPRequest) GetAssetClass() ENUMAPISERVICE { + if o == nil { + var ret ENUMAPISERVICE return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetMCPRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetMCPRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetMCPRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetMCPRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetMCPRequest) SetAssetClass(v ENUMAPISERVICE) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -216,6 +185,38 @@ func (o *CreateAssetMCPRequest) SetExtraMetadata(v map[string]interface{}) { o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetMCPRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetMCPRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetMCPRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetMCPRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetMCPRequest) GetAssetType() ENUMMCP { if o == nil { @@ -629,16 +630,16 @@ func (o CreateAssetMCPRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url if !IsNil(o.Favicon) { @@ -720,10 +721,10 @@ func (o *CreateAssetMCPRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_package_request.go b/pkg/api/v3/model_create_asset_package_request.go new file mode 100644 index 00000000..66f05fa5 --- /dev/null +++ b/pkg/api/v3/model_create_asset_package_request.go @@ -0,0 +1,580 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateAssetPACKAGERequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetPACKAGERequest{} + +// CreateAssetPACKAGERequest struct for CreateAssetPACKAGERequest +type CreateAssetPACKAGERequest struct { + // The list of project IDs bind the asset on. + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` + AssetClass ENUMTECHNOLOGY `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMPACKAGE `json:"asset_type"` + TechnologyKey string `json:"technology_key"` + Version *string `json:"version,omitempty"` + ReferenceUrl *string `json:"reference_url,omitempty"` + Cpe *string `json:"cpe,omitempty"` + WellKnownTechnology *ENUMPROPERTIESWELLKNOWNTECHNOLOGY `json:"well_known_technology,omitempty"` + Purl string `json:"purl"` + PackageType ENUMPROPERTIESPACKAGETYPE `json:"package_type"` + AdditionalProperties map[string]interface{} +} + +type _CreateAssetPACKAGERequest CreateAssetPACKAGERequest + +// NewCreateAssetPACKAGERequest instantiates a new CreateAssetPACKAGERequest 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 NewCreateAssetPACKAGERequest(assetClass ENUMTECHNOLOGY, assetType ENUMPACKAGE, technologyKey string, purl string, packageType ENUMPROPERTIESPACKAGETYPE) *CreateAssetPACKAGERequest { + this := CreateAssetPACKAGERequest{} + this.AssetClass = assetClass + this.AssetType = assetType + this.TechnologyKey = technologyKey + this.Purl = purl + this.PackageType = packageType + return &this +} + +// NewCreateAssetPACKAGERequestWithDefaults instantiates a new CreateAssetPACKAGERequest 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 NewCreateAssetPACKAGERequestWithDefaults() *CreateAssetPACKAGERequest { + this := CreateAssetPACKAGERequest{} + return &this +} + +// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. +func (o *CreateAssetPACKAGERequest) GetProjectIds() []string { + if o == nil || IsNil(o.ProjectIds) { + var ret []string + return ret + } + return o.ProjectIds +} + +// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetProjectIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ProjectIds) { + return nil, false + } + return o.ProjectIds, true +} + +// HasProjectIds returns a boolean if a field has been set. +func (o *CreateAssetPACKAGERequest) HasProjectIds() bool { + if o != nil && !IsNil(o.ProjectIds) { + return true + } + + return false +} + +// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. +func (o *CreateAssetPACKAGERequest) SetProjectIds(v []string) { + o.ProjectIds = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetPACKAGERequest) GetName() string { + if o == nil || IsNil(o.Name) { + 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 *CreateAssetPACKAGERequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateAssetPACKAGERequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetPACKAGERequest) SetName(v string) { + o.Name = &v +} + +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetPACKAGERequest) GetAssetClass() ENUMTECHNOLOGY { + if o == nil { + var ret ENUMTECHNOLOGY + return ret + } + + return o.AssetClass +} + +// GetAssetClassOk returns a tuple with the AssetClass field value +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetAssetClassOk() (*ENUMTECHNOLOGY, bool) { + if o == nil { + return nil, false + } + return &o.AssetClass, true +} + +// SetAssetClass sets field value +func (o *CreateAssetPACKAGERequest) SetAssetClass(v ENUMTECHNOLOGY) { + o.AssetClass = v +} + +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetPACKAGERequest) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} + return ret + } + return o.ExtraMetadata +} + +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false + } + return o.ExtraMetadata, true +} + +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetPACKAGERequest) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { + return true + } + + return false +} + +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetPACKAGERequest) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v +} + +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetPACKAGERequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetPACKAGERequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetPACKAGERequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + +// GetAssetType returns the AssetType field value +func (o *CreateAssetPACKAGERequest) GetAssetType() ENUMPACKAGE { + if o == nil { + var ret ENUMPACKAGE + return ret + } + + return o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetAssetTypeOk() (*ENUMPACKAGE, bool) { + if o == nil { + return nil, false + } + return &o.AssetType, true +} + +// SetAssetType sets field value +func (o *CreateAssetPACKAGERequest) SetAssetType(v ENUMPACKAGE) { + o.AssetType = v +} + +// GetTechnologyKey returns the TechnologyKey field value +func (o *CreateAssetPACKAGERequest) GetTechnologyKey() string { + if o == nil { + var ret string + return ret + } + + return o.TechnologyKey +} + +// GetTechnologyKeyOk returns a tuple with the TechnologyKey field value +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetTechnologyKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TechnologyKey, true +} + +// SetTechnologyKey sets field value +func (o *CreateAssetPACKAGERequest) SetTechnologyKey(v string) { + o.TechnologyKey = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *CreateAssetPACKAGERequest) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + 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 *CreateAssetPACKAGERequest) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *CreateAssetPACKAGERequest) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *CreateAssetPACKAGERequest) SetVersion(v string) { + o.Version = &v +} + +// GetReferenceUrl returns the ReferenceUrl field value if set, zero value otherwise. +func (o *CreateAssetPACKAGERequest) GetReferenceUrl() string { + if o == nil || IsNil(o.ReferenceUrl) { + var ret string + return ret + } + return *o.ReferenceUrl +} + +// GetReferenceUrlOk returns a tuple with the ReferenceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetReferenceUrlOk() (*string, bool) { + if o == nil || IsNil(o.ReferenceUrl) { + return nil, false + } + return o.ReferenceUrl, true +} + +// HasReferenceUrl returns a boolean if a field has been set. +func (o *CreateAssetPACKAGERequest) HasReferenceUrl() bool { + if o != nil && !IsNil(o.ReferenceUrl) { + return true + } + + return false +} + +// SetReferenceUrl gets a reference to the given string and assigns it to the ReferenceUrl field. +func (o *CreateAssetPACKAGERequest) SetReferenceUrl(v string) { + o.ReferenceUrl = &v +} + +// GetCpe returns the Cpe field value if set, zero value otherwise. +func (o *CreateAssetPACKAGERequest) GetCpe() string { + if o == nil || IsNil(o.Cpe) { + var ret string + return ret + } + return *o.Cpe +} + +// GetCpeOk returns a tuple with the Cpe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetCpeOk() (*string, bool) { + if o == nil || IsNil(o.Cpe) { + return nil, false + } + return o.Cpe, true +} + +// HasCpe returns a boolean if a field has been set. +func (o *CreateAssetPACKAGERequest) HasCpe() bool { + if o != nil && !IsNil(o.Cpe) { + return true + } + + return false +} + +// SetCpe gets a reference to the given string and assigns it to the Cpe field. +func (o *CreateAssetPACKAGERequest) SetCpe(v string) { + o.Cpe = &v +} + +// GetWellKnownTechnology returns the WellKnownTechnology field value if set, zero value otherwise. +func (o *CreateAssetPACKAGERequest) GetWellKnownTechnology() ENUMPROPERTIESWELLKNOWNTECHNOLOGY { + if o == nil || IsNil(o.WellKnownTechnology) { + var ret ENUMPROPERTIESWELLKNOWNTECHNOLOGY + return ret + } + return *o.WellKnownTechnology +} + +// GetWellKnownTechnologyOk returns a tuple with the WellKnownTechnology field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetWellKnownTechnologyOk() (*ENUMPROPERTIESWELLKNOWNTECHNOLOGY, bool) { + if o == nil || IsNil(o.WellKnownTechnology) { + return nil, false + } + return o.WellKnownTechnology, true +} + +// HasWellKnownTechnology returns a boolean if a field has been set. +func (o *CreateAssetPACKAGERequest) HasWellKnownTechnology() bool { + if o != nil && !IsNil(o.WellKnownTechnology) { + return true + } + + return false +} + +// SetWellKnownTechnology gets a reference to the given ENUMPROPERTIESWELLKNOWNTECHNOLOGY and assigns it to the WellKnownTechnology field. +func (o *CreateAssetPACKAGERequest) SetWellKnownTechnology(v ENUMPROPERTIESWELLKNOWNTECHNOLOGY) { + o.WellKnownTechnology = &v +} + +// GetPurl returns the Purl field value +func (o *CreateAssetPACKAGERequest) GetPurl() string { + if o == nil { + var ret string + return ret + } + + return o.Purl +} + +// GetPurlOk returns a tuple with the Purl field value +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetPurlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Purl, true +} + +// SetPurl sets field value +func (o *CreateAssetPACKAGERequest) SetPurl(v string) { + o.Purl = v +} + +// GetPackageType returns the PackageType field value +func (o *CreateAssetPACKAGERequest) GetPackageType() ENUMPROPERTIESPACKAGETYPE { + if o == nil { + var ret ENUMPROPERTIESPACKAGETYPE + return ret + } + + return o.PackageType +} + +// GetPackageTypeOk returns a tuple with the PackageType field value +// and a boolean to check if the value has been set. +func (o *CreateAssetPACKAGERequest) GetPackageTypeOk() (*ENUMPROPERTIESPACKAGETYPE, bool) { + if o == nil { + return nil, false + } + return &o.PackageType, true +} + +// SetPackageType sets field value +func (o *CreateAssetPACKAGERequest) SetPackageType(v ENUMPROPERTIESPACKAGETYPE) { + o.PackageType = v +} + +func (o CreateAssetPACKAGERequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetPACKAGERequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProjectIds) { + toSerialize["projectIds"] = o.ProjectIds + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["asset_class"] = o.AssetClass + if !IsNil(o.ExtraMetadata) { + toSerialize["extra_metadata"] = o.ExtraMetadata + } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } + toSerialize["asset_type"] = o.AssetType + toSerialize["technology_key"] = o.TechnologyKey + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.ReferenceUrl) { + toSerialize["reference_url"] = o.ReferenceUrl + } + if !IsNil(o.Cpe) { + toSerialize["cpe"] = o.Cpe + } + if !IsNil(o.WellKnownTechnology) { + toSerialize["well_known_technology"] = o.WellKnownTechnology + } + toSerialize["purl"] = o.Purl + toSerialize["package_type"] = o.PackageType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateAssetPACKAGERequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "asset_class", + "asset_type", + "technology_key", + "purl", + "package_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAssetPACKAGERequest := _CreateAssetPACKAGERequest{} + + err = json.Unmarshal(data, &varCreateAssetPACKAGERequest) + + if err != nil { + return err + } + + *o = CreateAssetPACKAGERequest(varCreateAssetPACKAGERequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") + delete(additionalProperties, "asset_class") + delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") + delete(additionalProperties, "asset_type") + delete(additionalProperties, "technology_key") + delete(additionalProperties, "version") + delete(additionalProperties, "reference_url") + delete(additionalProperties, "cpe") + delete(additionalProperties, "well_known_technology") + delete(additionalProperties, "purl") + delete(additionalProperties, "package_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateAssetPACKAGERequest struct { + value *CreateAssetPACKAGERequest + isSet bool +} + +func (v NullableCreateAssetPACKAGERequest) Get() *CreateAssetPACKAGERequest { + return v.value +} + +func (v *NullableCreateAssetPACKAGERequest) Set(val *CreateAssetPACKAGERequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetPACKAGERequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetPACKAGERequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetPACKAGERequest(val *CreateAssetPACKAGERequest) *NullableCreateAssetPACKAGERequest { + return &NullableCreateAssetPACKAGERequest{value: val, isSet: true} +} + +func (v NullableCreateAssetPACKAGERequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetPACKAGERequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_asset_postman_organization_request.go b/pkg/api/v3/model_create_asset_postman_organization_request.go deleted file mode 100644 index 7e910880..00000000 --- a/pkg/api/v3/model_create_asset_postman_organization_request.go +++ /dev/null @@ -1,439 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetPOSTMANORGANIZATIONRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetPOSTMANORGANIZATIONRequest{} - -// CreateAssetPOSTMANORGANIZATIONRequest struct for CreateAssetPOSTMANORGANIZATIONRequest -type CreateAssetPOSTMANORGANIZATIONRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMDEVTOOLS `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMPOSTMANORGANIZATION `json:"asset_type"` - Name *string `json:"name,omitempty"` - ImmutableKey string `json:"immutable_key"` - ApiKey string `json:"api_key"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetPOSTMANORGANIZATIONRequest CreateAssetPOSTMANORGANIZATIONRequest - -// NewCreateAssetPOSTMANORGANIZATIONRequest instantiates a new CreateAssetPOSTMANORGANIZATIONRequest 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 NewCreateAssetPOSTMANORGANIZATIONRequest(assetClass ENUMDEVTOOLS, assetType ENUMPOSTMANORGANIZATION, immutableKey string, apiKey string) *CreateAssetPOSTMANORGANIZATIONRequest { - this := CreateAssetPOSTMANORGANIZATIONRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - this.ImmutableKey = immutableKey - this.ApiKey = apiKey - return &this -} - -// NewCreateAssetPOSTMANORGANIZATIONRequestWithDefaults instantiates a new CreateAssetPOSTMANORGANIZATIONRequest 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 NewCreateAssetPOSTMANORGANIZATIONRequestWithDefaults() *CreateAssetPOSTMANORGANIZATIONRequest { - this := CreateAssetPOSTMANORGANIZATIONRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetAssetClass() ENUMDEVTOOLS { - if o == nil { - var ret ENUMDEVTOOLS - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetAssetClassOk() (*ENUMDEVTOOLS, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetAssetClass(v ENUMDEVTOOLS) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetAssetType() ENUMPOSTMANORGANIZATION { - if o == nil { - var ret ENUMPOSTMANORGANIZATION - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetAssetTypeOk() (*ENUMPOSTMANORGANIZATION, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetAssetType(v ENUMPOSTMANORGANIZATION) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetPOSTMANORGANIZATIONRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetName(v string) { - o.Name = &v -} - -// GetImmutableKey returns the ImmutableKey field value -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetImmutableKey() string { - if o == nil { - var ret string - return ret - } - - return o.ImmutableKey -} - -// GetImmutableKeyOk returns a tuple with the ImmutableKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetImmutableKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ImmutableKey, true -} - -// SetImmutableKey sets field value -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetImmutableKey(v string) { - o.ImmutableKey = v -} - -// GetApiKey returns the ApiKey field value -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetApiKey() string { - if o == nil { - var ret string - return ret - } - - return o.ApiKey -} - -// GetApiKeyOk returns a tuple with the ApiKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetPOSTMANORGANIZATIONRequest) GetApiKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApiKey, true -} - -// SetApiKey sets field value -func (o *CreateAssetPOSTMANORGANIZATIONRequest) SetApiKey(v string) { - o.ApiKey = v -} - -func (o CreateAssetPOSTMANORGANIZATIONRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetPOSTMANORGANIZATIONRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["immutable_key"] = o.ImmutableKey - toSerialize["api_key"] = o.ApiKey - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetPOSTMANORGANIZATIONRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - "immutable_key", - "api_key", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetPOSTMANORGANIZATIONRequest := _CreateAssetPOSTMANORGANIZATIONRequest{} - - err = json.Unmarshal(data, &varCreateAssetPOSTMANORGANIZATIONRequest) - - if err != nil { - return err - } - - *o = CreateAssetPOSTMANORGANIZATIONRequest(varCreateAssetPOSTMANORGANIZATIONRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "immutable_key") - delete(additionalProperties, "api_key") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetPOSTMANORGANIZATIONRequest struct { - value *CreateAssetPOSTMANORGANIZATIONRequest - isSet bool -} - -func (v NullableCreateAssetPOSTMANORGANIZATIONRequest) Get() *CreateAssetPOSTMANORGANIZATIONRequest { - return v.value -} - -func (v *NullableCreateAssetPOSTMANORGANIZATIONRequest) Set(val *CreateAssetPOSTMANORGANIZATIONRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetPOSTMANORGANIZATIONRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetPOSTMANORGANIZATIONRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetPOSTMANORGANIZATIONRequest(val *CreateAssetPOSTMANORGANIZATIONRequest) *NullableCreateAssetPOSTMANORGANIZATIONRequest { - return &NullableCreateAssetPOSTMANORGANIZATIONRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetPOSTMANORGANIZATIONRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetPOSTMANORGANIZATIONRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_asset_rest_request.go b/pkg/api/v3/model_create_asset_rest_request.go index da4694c5..315748c0 100644 --- a/pkg/api/v3/model_create_asset_rest_request.go +++ b/pkg/api/v3/model_create_asset_rest_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetRESTRequest{} // CreateAssetRESTRequest struct for CreateAssetRESTRequest type CreateAssetRESTRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMAPISERVICE `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMREST `json:"asset_type"` Url string `json:"url"` Favicon *string `json:"favicon,omitempty"` @@ -99,92 +100,60 @@ func (o *CreateAssetRESTRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetRESTRequest) GetAssetClass() ENUMAPISERVICE { - if o == nil { - var ret ENUMAPISERVICE - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetRESTRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetRESTRequest) SetAssetClass(v ENUMAPISERVICE) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetRESTRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetRESTRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetRESTRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetRESTRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetRESTRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetRESTRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetRESTRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetRESTRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetRESTRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetRESTRequest) GetAssetClass() ENUMAPISERVICE { + if o == nil { + var ret ENUMAPISERVICE return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetRESTRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetRESTRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetRESTRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetRESTRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetRESTRequest) SetAssetClass(v ENUMAPISERVICE) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -219,6 +188,38 @@ func (o *CreateAssetRESTRequest) SetExtraMetadata(v map[string]interface{}) { o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetRESTRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetRESTRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetRESTRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetRESTRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetRESTRequest) GetAssetType() ENUMREST { if o == nil { @@ -728,16 +729,16 @@ func (o CreateAssetRESTRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url if !IsNil(o.Favicon) { @@ -828,10 +829,10 @@ func (o *CreateAssetRESTRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_soap_request.go b/pkg/api/v3/model_create_asset_soap_request.go new file mode 100644 index 00000000..b0603774 --- /dev/null +++ b/pkg/api/v3/model_create_asset_soap_request.go @@ -0,0 +1,781 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateAssetSOAPRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetSOAPRequest{} + +// CreateAssetSOAPRequest struct for CreateAssetSOAPRequest +type CreateAssetSOAPRequest struct { + // The list of project IDs bind the asset on. + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` + AssetClass ENUMAPISERVICE `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMSOAP `json:"asset_type"` + Url string `json:"url"` + Favicon *string `json:"favicon,omitempty"` + ReachableVia []string `json:"reachable_via,omitempty"` + ReachableViaExternalProxy *bool `json:"reachable_via_external_proxy,omitempty"` + Private *bool `json:"private,omitempty"` + PrivateLocationId *string `json:"private_location_id,omitempty"` + Environment *ENUMPROPERTIESENVIRONMENT `json:"environment,omitempty"` + CloudProvider *ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER `json:"cloud_provider,omitempty"` + WafProvider *ENUMPROPERTIESWAFPROVIDER `json:"waf_provider,omitempty"` + ThirdParty *ENUMPROPERTIESTHIRDPARTY `json:"third_party,omitempty"` + Ips []string `json:"ips,omitempty"` + RegionCountryCodes []string `json:"region_country_codes,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateAssetSOAPRequest CreateAssetSOAPRequest + +// NewCreateAssetSOAPRequest instantiates a new CreateAssetSOAPRequest 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 NewCreateAssetSOAPRequest(assetClass ENUMAPISERVICE, assetType ENUMSOAP, url string) *CreateAssetSOAPRequest { + this := CreateAssetSOAPRequest{} + this.AssetClass = assetClass + this.AssetType = assetType + this.Url = url + return &this +} + +// NewCreateAssetSOAPRequestWithDefaults instantiates a new CreateAssetSOAPRequest 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 NewCreateAssetSOAPRequestWithDefaults() *CreateAssetSOAPRequest { + this := CreateAssetSOAPRequest{} + return &this +} + +// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetProjectIds() []string { + if o == nil || IsNil(o.ProjectIds) { + var ret []string + return ret + } + return o.ProjectIds +} + +// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetProjectIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ProjectIds) { + return nil, false + } + return o.ProjectIds, true +} + +// HasProjectIds returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasProjectIds() bool { + if o != nil && !IsNil(o.ProjectIds) { + return true + } + + return false +} + +// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. +func (o *CreateAssetSOAPRequest) SetProjectIds(v []string) { + o.ProjectIds = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetName() string { + if o == nil || IsNil(o.Name) { + 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 *CreateAssetSOAPRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetSOAPRequest) SetName(v string) { + o.Name = &v +} + +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetSOAPRequest) GetAssetClass() ENUMAPISERVICE { + if o == nil { + var ret ENUMAPISERVICE + return ret + } + + return o.AssetClass +} + +// GetAssetClassOk returns a tuple with the AssetClass field value +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { + if o == nil { + return nil, false + } + return &o.AssetClass, true +} + +// SetAssetClass sets field value +func (o *CreateAssetSOAPRequest) SetAssetClass(v ENUMAPISERVICE) { + o.AssetClass = v +} + +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} + return ret + } + return o.ExtraMetadata +} + +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false + } + return o.ExtraMetadata, true +} + +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { + return true + } + + return false +} + +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetSOAPRequest) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v +} + +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetSOAPRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + +// GetAssetType returns the AssetType field value +func (o *CreateAssetSOAPRequest) GetAssetType() ENUMSOAP { + if o == nil { + var ret ENUMSOAP + return ret + } + + return o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetAssetTypeOk() (*ENUMSOAP, bool) { + if o == nil { + return nil, false + } + return &o.AssetType, true +} + +// SetAssetType sets field value +func (o *CreateAssetSOAPRequest) SetAssetType(v ENUMSOAP) { + o.AssetType = v +} + +// GetUrl returns the Url field value +func (o *CreateAssetSOAPRequest) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CreateAssetSOAPRequest) SetUrl(v string) { + o.Url = v +} + +// GetFavicon returns the Favicon field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetFavicon() string { + if o == nil || IsNil(o.Favicon) { + var ret string + return ret + } + return *o.Favicon +} + +// GetFaviconOk returns a tuple with the Favicon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetFaviconOk() (*string, bool) { + if o == nil || IsNil(o.Favicon) { + return nil, false + } + return o.Favicon, true +} + +// HasFavicon returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasFavicon() bool { + if o != nil && !IsNil(o.Favicon) { + return true + } + + return false +} + +// SetFavicon gets a reference to the given string and assigns it to the Favicon field. +func (o *CreateAssetSOAPRequest) SetFavicon(v string) { + o.Favicon = &v +} + +// GetReachableVia returns the ReachableVia field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetReachableVia() []string { + if o == nil || IsNil(o.ReachableVia) { + var ret []string + return ret + } + return o.ReachableVia +} + +// GetReachableViaOk returns a tuple with the ReachableVia field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetReachableViaOk() ([]string, bool) { + if o == nil || IsNil(o.ReachableVia) { + return nil, false + } + return o.ReachableVia, true +} + +// HasReachableVia returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasReachableVia() bool { + if o != nil && !IsNil(o.ReachableVia) { + return true + } + + return false +} + +// SetReachableVia gets a reference to the given []string and assigns it to the ReachableVia field. +func (o *CreateAssetSOAPRequest) SetReachableVia(v []string) { + o.ReachableVia = v +} + +// GetReachableViaExternalProxy returns the ReachableViaExternalProxy field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetReachableViaExternalProxy() bool { + if o == nil || IsNil(o.ReachableViaExternalProxy) { + var ret bool + return ret + } + return *o.ReachableViaExternalProxy +} + +// GetReachableViaExternalProxyOk returns a tuple with the ReachableViaExternalProxy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetReachableViaExternalProxyOk() (*bool, bool) { + if o == nil || IsNil(o.ReachableViaExternalProxy) { + return nil, false + } + return o.ReachableViaExternalProxy, true +} + +// HasReachableViaExternalProxy returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasReachableViaExternalProxy() bool { + if o != nil && !IsNil(o.ReachableViaExternalProxy) { + return true + } + + return false +} + +// SetReachableViaExternalProxy gets a reference to the given bool and assigns it to the ReachableViaExternalProxy field. +func (o *CreateAssetSOAPRequest) SetReachableViaExternalProxy(v bool) { + o.ReachableViaExternalProxy = &v +} + +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetPrivate() bool { + if o == nil || IsNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasPrivate() bool { + if o != nil && !IsNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *CreateAssetSOAPRequest) SetPrivate(v bool) { + o.Private = &v +} + +// GetPrivateLocationId returns the PrivateLocationId field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetPrivateLocationId() string { + if o == nil || IsNil(o.PrivateLocationId) { + var ret string + return ret + } + return *o.PrivateLocationId +} + +// GetPrivateLocationIdOk returns a tuple with the PrivateLocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetPrivateLocationIdOk() (*string, bool) { + if o == nil || IsNil(o.PrivateLocationId) { + return nil, false + } + return o.PrivateLocationId, true +} + +// HasPrivateLocationId returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasPrivateLocationId() bool { + if o != nil && !IsNil(o.PrivateLocationId) { + return true + } + + return false +} + +// SetPrivateLocationId gets a reference to the given string and assigns it to the PrivateLocationId field. +func (o *CreateAssetSOAPRequest) SetPrivateLocationId(v string) { + o.PrivateLocationId = &v +} + +// GetEnvironment returns the Environment field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetEnvironment() ENUMPROPERTIESENVIRONMENT { + if o == nil || IsNil(o.Environment) { + var ret ENUMPROPERTIESENVIRONMENT + return ret + } + return *o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetEnvironmentOk() (*ENUMPROPERTIESENVIRONMENT, bool) { + if o == nil || IsNil(o.Environment) { + return nil, false + } + return o.Environment, true +} + +// HasEnvironment returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasEnvironment() bool { + if o != nil && !IsNil(o.Environment) { + return true + } + + return false +} + +// SetEnvironment gets a reference to the given ENUMPROPERTIESENVIRONMENT and assigns it to the Environment field. +func (o *CreateAssetSOAPRequest) SetEnvironment(v ENUMPROPERTIESENVIRONMENT) { + o.Environment = &v +} + +// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetCloudProvider() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER { + if o == nil || IsNil(o.CloudProvider) { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER + return ret + } + return *o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetCloudProviderOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER, bool) { + if o == nil || IsNil(o.CloudProvider) { + return nil, false + } + return o.CloudProvider, true +} + +// HasCloudProvider returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasCloudProvider() bool { + if o != nil && !IsNil(o.CloudProvider) { + return true + } + + return false +} + +// SetCloudProvider gets a reference to the given ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER and assigns it to the CloudProvider field. +func (o *CreateAssetSOAPRequest) SetCloudProvider(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER) { + o.CloudProvider = &v +} + +// GetWafProvider returns the WafProvider field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetWafProvider() ENUMPROPERTIESWAFPROVIDER { + if o == nil || IsNil(o.WafProvider) { + var ret ENUMPROPERTIESWAFPROVIDER + return ret + } + return *o.WafProvider +} + +// GetWafProviderOk returns a tuple with the WafProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetWafProviderOk() (*ENUMPROPERTIESWAFPROVIDER, bool) { + if o == nil || IsNil(o.WafProvider) { + return nil, false + } + return o.WafProvider, true +} + +// HasWafProvider returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasWafProvider() bool { + if o != nil && !IsNil(o.WafProvider) { + return true + } + + return false +} + +// SetWafProvider gets a reference to the given ENUMPROPERTIESWAFPROVIDER and assigns it to the WafProvider field. +func (o *CreateAssetSOAPRequest) SetWafProvider(v ENUMPROPERTIESWAFPROVIDER) { + o.WafProvider = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetThirdParty() ENUMPROPERTIESTHIRDPARTY { + if o == nil || IsNil(o.ThirdParty) { + var ret ENUMPROPERTIESTHIRDPARTY + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetThirdPartyOk() (*ENUMPROPERTIESTHIRDPARTY, bool) { + if o == nil || IsNil(o.ThirdParty) { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasThirdParty() bool { + if o != nil && !IsNil(o.ThirdParty) { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given ENUMPROPERTIESTHIRDPARTY and assigns it to the ThirdParty field. +func (o *CreateAssetSOAPRequest) SetThirdParty(v ENUMPROPERTIESTHIRDPARTY) { + o.ThirdParty = &v +} + +// GetIps returns the Ips field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetIps() []string { + if o == nil || IsNil(o.Ips) { + var ret []string + return ret + } + return o.Ips +} + +// GetIpsOk returns a tuple with the Ips field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetIpsOk() ([]string, bool) { + if o == nil || IsNil(o.Ips) { + return nil, false + } + return o.Ips, true +} + +// HasIps returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasIps() bool { + if o != nil && !IsNil(o.Ips) { + return true + } + + return false +} + +// SetIps gets a reference to the given []string and assigns it to the Ips field. +func (o *CreateAssetSOAPRequest) SetIps(v []string) { + o.Ips = v +} + +// GetRegionCountryCodes returns the RegionCountryCodes field value if set, zero value otherwise. +func (o *CreateAssetSOAPRequest) GetRegionCountryCodes() []string { + if o == nil || IsNil(o.RegionCountryCodes) { + var ret []string + return ret + } + return o.RegionCountryCodes +} + +// GetRegionCountryCodesOk returns a tuple with the RegionCountryCodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOAPRequest) GetRegionCountryCodesOk() ([]string, bool) { + if o == nil || IsNil(o.RegionCountryCodes) { + return nil, false + } + return o.RegionCountryCodes, true +} + +// HasRegionCountryCodes returns a boolean if a field has been set. +func (o *CreateAssetSOAPRequest) HasRegionCountryCodes() bool { + if o != nil && !IsNil(o.RegionCountryCodes) { + return true + } + + return false +} + +// SetRegionCountryCodes gets a reference to the given []string and assigns it to the RegionCountryCodes field. +func (o *CreateAssetSOAPRequest) SetRegionCountryCodes(v []string) { + o.RegionCountryCodes = v +} + +func (o CreateAssetSOAPRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetSOAPRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProjectIds) { + toSerialize["projectIds"] = o.ProjectIds + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["asset_class"] = o.AssetClass + if !IsNil(o.ExtraMetadata) { + toSerialize["extra_metadata"] = o.ExtraMetadata + } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } + toSerialize["asset_type"] = o.AssetType + toSerialize["url"] = o.Url + if !IsNil(o.Favicon) { + toSerialize["favicon"] = o.Favicon + } + if !IsNil(o.ReachableVia) { + toSerialize["reachable_via"] = o.ReachableVia + } + if !IsNil(o.ReachableViaExternalProxy) { + toSerialize["reachable_via_external_proxy"] = o.ReachableViaExternalProxy + } + if !IsNil(o.Private) { + toSerialize["private"] = o.Private + } + if !IsNil(o.PrivateLocationId) { + toSerialize["private_location_id"] = o.PrivateLocationId + } + if !IsNil(o.Environment) { + toSerialize["environment"] = o.Environment + } + if !IsNil(o.CloudProvider) { + toSerialize["cloud_provider"] = o.CloudProvider + } + if !IsNil(o.WafProvider) { + toSerialize["waf_provider"] = o.WafProvider + } + if !IsNil(o.ThirdParty) { + toSerialize["third_party"] = o.ThirdParty + } + if !IsNil(o.Ips) { + toSerialize["ips"] = o.Ips + } + if !IsNil(o.RegionCountryCodes) { + toSerialize["region_country_codes"] = o.RegionCountryCodes + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateAssetSOAPRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "asset_class", + "asset_type", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAssetSOAPRequest := _CreateAssetSOAPRequest{} + + err = json.Unmarshal(data, &varCreateAssetSOAPRequest) + + if err != nil { + return err + } + + *o = CreateAssetSOAPRequest(varCreateAssetSOAPRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") + delete(additionalProperties, "asset_class") + delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") + delete(additionalProperties, "asset_type") + delete(additionalProperties, "url") + delete(additionalProperties, "favicon") + delete(additionalProperties, "reachable_via") + delete(additionalProperties, "reachable_via_external_proxy") + delete(additionalProperties, "private") + delete(additionalProperties, "private_location_id") + delete(additionalProperties, "environment") + delete(additionalProperties, "cloud_provider") + delete(additionalProperties, "waf_provider") + delete(additionalProperties, "third_party") + delete(additionalProperties, "ips") + delete(additionalProperties, "region_country_codes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateAssetSOAPRequest struct { + value *CreateAssetSOAPRequest + isSet bool +} + +func (v NullableCreateAssetSOAPRequest) Get() *CreateAssetSOAPRequest { + return v.value +} + +func (v *NullableCreateAssetSOAPRequest) Set(val *CreateAssetSOAPRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetSOAPRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetSOAPRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetSOAPRequest(val *CreateAssetSOAPRequest) *NullableCreateAssetSOAPRequest { + return &NullableCreateAssetSOAPRequest{value: val, isSet: true} +} + +func (v NullableCreateAssetSOAPRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetSOAPRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_asset_software_request.go b/pkg/api/v3/model_create_asset_software_request.go new file mode 100644 index 00000000..734839cc --- /dev/null +++ b/pkg/api/v3/model_create_asset_software_request.go @@ -0,0 +1,522 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateAssetSOFTWARERequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssetSOFTWARERequest{} + +// CreateAssetSOFTWARERequest struct for CreateAssetSOFTWARERequest +type CreateAssetSOFTWARERequest struct { + // The list of project IDs bind the asset on. + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` + AssetClass ENUMTECHNOLOGY `json:"asset_class"` + ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` + AssetType ENUMSOFTWARE `json:"asset_type"` + TechnologyKey string `json:"technology_key"` + Version *string `json:"version,omitempty"` + ReferenceUrl *string `json:"reference_url,omitempty"` + Cpe *string `json:"cpe,omitempty"` + WellKnownTechnology *ENUMPROPERTIESWELLKNOWNTECHNOLOGY `json:"well_known_technology,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateAssetSOFTWARERequest CreateAssetSOFTWARERequest + +// NewCreateAssetSOFTWARERequest instantiates a new CreateAssetSOFTWARERequest 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 NewCreateAssetSOFTWARERequest(assetClass ENUMTECHNOLOGY, assetType ENUMSOFTWARE, technologyKey string) *CreateAssetSOFTWARERequest { + this := CreateAssetSOFTWARERequest{} + this.AssetClass = assetClass + this.AssetType = assetType + this.TechnologyKey = technologyKey + return &this +} + +// NewCreateAssetSOFTWARERequestWithDefaults instantiates a new CreateAssetSOFTWARERequest 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 NewCreateAssetSOFTWARERequestWithDefaults() *CreateAssetSOFTWARERequest { + this := CreateAssetSOFTWARERequest{} + return &this +} + +// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. +func (o *CreateAssetSOFTWARERequest) GetProjectIds() []string { + if o == nil || IsNil(o.ProjectIds) { + var ret []string + return ret + } + return o.ProjectIds +} + +// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetProjectIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ProjectIds) { + return nil, false + } + return o.ProjectIds, true +} + +// HasProjectIds returns a boolean if a field has been set. +func (o *CreateAssetSOFTWARERequest) HasProjectIds() bool { + if o != nil && !IsNil(o.ProjectIds) { + return true + } + + return false +} + +// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. +func (o *CreateAssetSOFTWARERequest) SetProjectIds(v []string) { + o.ProjectIds = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetSOFTWARERequest) GetName() string { + if o == nil || IsNil(o.Name) { + 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 *CreateAssetSOFTWARERequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateAssetSOFTWARERequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetSOFTWARERequest) SetName(v string) { + o.Name = &v +} + +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetSOFTWARERequest) GetAssetClass() ENUMTECHNOLOGY { + if o == nil { + var ret ENUMTECHNOLOGY + return ret + } + + return o.AssetClass +} + +// GetAssetClassOk returns a tuple with the AssetClass field value +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetAssetClassOk() (*ENUMTECHNOLOGY, bool) { + if o == nil { + return nil, false + } + return &o.AssetClass, true +} + +// SetAssetClass sets field value +func (o *CreateAssetSOFTWARERequest) SetAssetClass(v ENUMTECHNOLOGY) { + o.AssetClass = v +} + +// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. +func (o *CreateAssetSOFTWARERequest) GetExtraMetadata() map[string]interface{} { + if o == nil || IsNil(o.ExtraMetadata) { + var ret map[string]interface{} + return ret + } + return o.ExtraMetadata +} + +// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetExtraMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ExtraMetadata) { + return map[string]interface{}{}, false + } + return o.ExtraMetadata, true +} + +// HasExtraMetadata returns a boolean if a field has been set. +func (o *CreateAssetSOFTWARERequest) HasExtraMetadata() bool { + if o != nil && !IsNil(o.ExtraMetadata) { + return true + } + + return false +} + +// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. +func (o *CreateAssetSOFTWARERequest) SetExtraMetadata(v map[string]interface{}) { + o.ExtraMetadata = v +} + +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetSOFTWARERequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetSOFTWARERequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetSOFTWARERequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + +// GetAssetType returns the AssetType field value +func (o *CreateAssetSOFTWARERequest) GetAssetType() ENUMSOFTWARE { + if o == nil { + var ret ENUMSOFTWARE + return ret + } + + return o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetAssetTypeOk() (*ENUMSOFTWARE, bool) { + if o == nil { + return nil, false + } + return &o.AssetType, true +} + +// SetAssetType sets field value +func (o *CreateAssetSOFTWARERequest) SetAssetType(v ENUMSOFTWARE) { + o.AssetType = v +} + +// GetTechnologyKey returns the TechnologyKey field value +func (o *CreateAssetSOFTWARERequest) GetTechnologyKey() string { + if o == nil { + var ret string + return ret + } + + return o.TechnologyKey +} + +// GetTechnologyKeyOk returns a tuple with the TechnologyKey field value +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetTechnologyKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TechnologyKey, true +} + +// SetTechnologyKey sets field value +func (o *CreateAssetSOFTWARERequest) SetTechnologyKey(v string) { + o.TechnologyKey = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *CreateAssetSOFTWARERequest) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + 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 *CreateAssetSOFTWARERequest) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *CreateAssetSOFTWARERequest) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *CreateAssetSOFTWARERequest) SetVersion(v string) { + o.Version = &v +} + +// GetReferenceUrl returns the ReferenceUrl field value if set, zero value otherwise. +func (o *CreateAssetSOFTWARERequest) GetReferenceUrl() string { + if o == nil || IsNil(o.ReferenceUrl) { + var ret string + return ret + } + return *o.ReferenceUrl +} + +// GetReferenceUrlOk returns a tuple with the ReferenceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetReferenceUrlOk() (*string, bool) { + if o == nil || IsNil(o.ReferenceUrl) { + return nil, false + } + return o.ReferenceUrl, true +} + +// HasReferenceUrl returns a boolean if a field has been set. +func (o *CreateAssetSOFTWARERequest) HasReferenceUrl() bool { + if o != nil && !IsNil(o.ReferenceUrl) { + return true + } + + return false +} + +// SetReferenceUrl gets a reference to the given string and assigns it to the ReferenceUrl field. +func (o *CreateAssetSOFTWARERequest) SetReferenceUrl(v string) { + o.ReferenceUrl = &v +} + +// GetCpe returns the Cpe field value if set, zero value otherwise. +func (o *CreateAssetSOFTWARERequest) GetCpe() string { + if o == nil || IsNil(o.Cpe) { + var ret string + return ret + } + return *o.Cpe +} + +// GetCpeOk returns a tuple with the Cpe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetCpeOk() (*string, bool) { + if o == nil || IsNil(o.Cpe) { + return nil, false + } + return o.Cpe, true +} + +// HasCpe returns a boolean if a field has been set. +func (o *CreateAssetSOFTWARERequest) HasCpe() bool { + if o != nil && !IsNil(o.Cpe) { + return true + } + + return false +} + +// SetCpe gets a reference to the given string and assigns it to the Cpe field. +func (o *CreateAssetSOFTWARERequest) SetCpe(v string) { + o.Cpe = &v +} + +// GetWellKnownTechnology returns the WellKnownTechnology field value if set, zero value otherwise. +func (o *CreateAssetSOFTWARERequest) GetWellKnownTechnology() ENUMPROPERTIESWELLKNOWNTECHNOLOGY { + if o == nil || IsNil(o.WellKnownTechnology) { + var ret ENUMPROPERTIESWELLKNOWNTECHNOLOGY + return ret + } + return *o.WellKnownTechnology +} + +// GetWellKnownTechnologyOk returns a tuple with the WellKnownTechnology field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetSOFTWARERequest) GetWellKnownTechnologyOk() (*ENUMPROPERTIESWELLKNOWNTECHNOLOGY, bool) { + if o == nil || IsNil(o.WellKnownTechnology) { + return nil, false + } + return o.WellKnownTechnology, true +} + +// HasWellKnownTechnology returns a boolean if a field has been set. +func (o *CreateAssetSOFTWARERequest) HasWellKnownTechnology() bool { + if o != nil && !IsNil(o.WellKnownTechnology) { + return true + } + + return false +} + +// SetWellKnownTechnology gets a reference to the given ENUMPROPERTIESWELLKNOWNTECHNOLOGY and assigns it to the WellKnownTechnology field. +func (o *CreateAssetSOFTWARERequest) SetWellKnownTechnology(v ENUMPROPERTIESWELLKNOWNTECHNOLOGY) { + o.WellKnownTechnology = &v +} + +func (o CreateAssetSOFTWARERequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssetSOFTWARERequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProjectIds) { + toSerialize["projectIds"] = o.ProjectIds + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["asset_class"] = o.AssetClass + if !IsNil(o.ExtraMetadata) { + toSerialize["extra_metadata"] = o.ExtraMetadata + } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } + toSerialize["asset_type"] = o.AssetType + toSerialize["technology_key"] = o.TechnologyKey + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.ReferenceUrl) { + toSerialize["reference_url"] = o.ReferenceUrl + } + if !IsNil(o.Cpe) { + toSerialize["cpe"] = o.Cpe + } + if !IsNil(o.WellKnownTechnology) { + toSerialize["well_known_technology"] = o.WellKnownTechnology + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateAssetSOFTWARERequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "asset_class", + "asset_type", + "technology_key", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateAssetSOFTWARERequest := _CreateAssetSOFTWARERequest{} + + err = json.Unmarshal(data, &varCreateAssetSOFTWARERequest) + + if err != nil { + return err + } + + *o = CreateAssetSOFTWARERequest(varCreateAssetSOFTWARERequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") + delete(additionalProperties, "asset_class") + delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") + delete(additionalProperties, "asset_type") + delete(additionalProperties, "technology_key") + delete(additionalProperties, "version") + delete(additionalProperties, "reference_url") + delete(additionalProperties, "cpe") + delete(additionalProperties, "well_known_technology") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateAssetSOFTWARERequest struct { + value *CreateAssetSOFTWARERequest + isSet bool +} + +func (v NullableCreateAssetSOFTWARERequest) Get() *CreateAssetSOFTWARERequest { + return v.value +} + +func (v *NullableCreateAssetSOFTWARERequest) Set(val *CreateAssetSOFTWARERequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssetSOFTWARERequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssetSOFTWARERequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssetSOFTWARERequest(val *CreateAssetSOFTWARERequest) *NullableCreateAssetSOFTWARERequest { + return &NullableCreateAssetSOFTWARERequest{value: val, isSet: true} +} + +func (v NullableCreateAssetSOFTWARERequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssetSOFTWARERequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_asset_webapp_request.go b/pkg/api/v3/model_create_asset_webapp_request.go index 2d92ccb5..4a978ab5 100644 --- a/pkg/api/v3/model_create_asset_webapp_request.go +++ b/pkg/api/v3/model_create_asset_webapp_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetWEBAPPRequest{} // CreateAssetWEBAPPRequest struct for CreateAssetWEBAPPRequest type CreateAssetWEBAPPRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMFRONTEND `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMWEBAPP `json:"asset_type"` Url string `json:"url"` Favicon *string `json:"favicon,omitempty"` @@ -97,92 +98,60 @@ func (o *CreateAssetWEBAPPRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetWEBAPPRequest) GetAssetClass() ENUMFRONTEND { - if o == nil { - var ret ENUMFRONTEND - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWEBAPPRequest) GetAssetClassOk() (*ENUMFRONTEND, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetWEBAPPRequest) SetAssetClass(v ENUMFRONTEND) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetWEBAPPRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetWEBAPPRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetWEBAPPRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetWEBAPPRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetWEBAPPRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetWEBAPPRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetWEBAPPRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetWEBAPPRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetWEBAPPRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetWEBAPPRequest) GetAssetClass() ENUMFRONTEND { + if o == nil { + var ret ENUMFRONTEND return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetWEBAPPRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetWEBAPPRequest) GetAssetClassOk() (*ENUMFRONTEND, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetWEBAPPRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetWEBAPPRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetWEBAPPRequest) SetAssetClass(v ENUMFRONTEND) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -217,6 +186,38 @@ func (o *CreateAssetWEBAPPRequest) SetExtraMetadata(v map[string]interface{}) { o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetWEBAPPRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetWEBAPPRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetWEBAPPRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetWEBAPPRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetWEBAPPRequest) GetAssetType() ENUMWEBAPP { if o == nil { @@ -662,16 +663,16 @@ func (o CreateAssetWEBAPPRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url if !IsNil(o.Favicon) { @@ -756,10 +757,10 @@ func (o *CreateAssetWEBAPPRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_websocket_request.go b/pkg/api/v3/model_create_asset_websocket_request.go index 94825b9c..b125e815 100644 --- a/pkg/api/v3/model_create_asset_websocket_request.go +++ b/pkg/api/v3/model_create_asset_websocket_request.go @@ -21,11 +21,12 @@ var _ MappedNullable = &CreateAssetWEBSOCKETRequest{} // CreateAssetWEBSOCKETRequest struct for CreateAssetWEBSOCKETRequest type CreateAssetWEBSOCKETRequest struct { // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AssetClass ENUMAPISERVICE `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` + ScreenshotS3Key *string `json:"screenshot_s3_key,omitempty"` AssetType ENUMWEBSOCKET `json:"asset_type"` Url string `json:"url"` Favicon *string `json:"favicon,omitempty"` @@ -96,92 +97,60 @@ func (o *CreateAssetWEBSOCKETRequest) SetProjectIds(v []string) { o.ProjectIds = v } -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetWEBSOCKETRequest) GetAssetClass() ENUMAPISERVICE { - if o == nil { - var ret ENUMAPISERVICE - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWEBSOCKETRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetWEBSOCKETRequest) SetAssetClass(v ENUMAPISERVICE) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetWEBSOCKETRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateAssetWEBSOCKETRequest) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.WizProviderId + return *o.Name } -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise +// 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 *CreateAssetWEBSOCKETRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { +func (o *CreateAssetWEBSOCKETRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.WizProviderId, true + return o.Name, true } -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetWEBSOCKETRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { +// HasName returns a boolean if a field has been set. +func (o *CreateAssetWEBSOCKETRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetWEBSOCKETRequest) SetWizProviderId(v string) { - o.WizProviderId = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateAssetWEBSOCKETRequest) SetName(v string) { + o.Name = &v } -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetWEBSOCKETRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string +// GetAssetClass returns the AssetClass field value +func (o *CreateAssetWEBSOCKETRequest) GetAssetClass() ENUMAPISERVICE { + if o == nil { + var ret ENUMAPISERVICE return ret } - return *o.WizCloudPlatform + + return o.AssetClass } -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise +// GetAssetClassOk returns a tuple with the AssetClass field value // and a boolean to check if the value has been set. -func (o *CreateAssetWEBSOCKETRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { +func (o *CreateAssetWEBSOCKETRequest) GetAssetClassOk() (*ENUMAPISERVICE, bool) { + if o == nil { return nil, false } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetWEBSOCKETRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false + return &o.AssetClass, true } -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetWEBSOCKETRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v +// SetAssetClass sets field value +func (o *CreateAssetWEBSOCKETRequest) SetAssetClass(v ENUMAPISERVICE) { + o.AssetClass = v } // GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. @@ -216,6 +185,38 @@ func (o *CreateAssetWEBSOCKETRequest) SetExtraMetadata(v map[string]interface{}) o.ExtraMetadata = v } +// GetScreenshotS3Key returns the ScreenshotS3Key field value if set, zero value otherwise. +func (o *CreateAssetWEBSOCKETRequest) GetScreenshotS3Key() string { + if o == nil || IsNil(o.ScreenshotS3Key) { + var ret string + return ret + } + return *o.ScreenshotS3Key +} + +// GetScreenshotS3KeyOk returns a tuple with the ScreenshotS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssetWEBSOCKETRequest) GetScreenshotS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.ScreenshotS3Key) { + return nil, false + } + return o.ScreenshotS3Key, true +} + +// HasScreenshotS3Key returns a boolean if a field has been set. +func (o *CreateAssetWEBSOCKETRequest) HasScreenshotS3Key() bool { + if o != nil && !IsNil(o.ScreenshotS3Key) { + return true + } + + return false +} + +// SetScreenshotS3Key gets a reference to the given string and assigns it to the ScreenshotS3Key field. +func (o *CreateAssetWEBSOCKETRequest) SetScreenshotS3Key(v string) { + o.ScreenshotS3Key = &v +} + // GetAssetType returns the AssetType field value func (o *CreateAssetWEBSOCKETRequest) GetAssetType() ENUMWEBSOCKET { if o == nil { @@ -629,16 +630,16 @@ func (o CreateAssetWEBSOCKETRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform + if !IsNil(o.Name) { + toSerialize["name"] = o.Name } + toSerialize["asset_class"] = o.AssetClass if !IsNil(o.ExtraMetadata) { toSerialize["extra_metadata"] = o.ExtraMetadata } + if !IsNil(o.ScreenshotS3Key) { + toSerialize["screenshot_s3_key"] = o.ScreenshotS3Key + } toSerialize["asset_type"] = o.AssetType toSerialize["url"] = o.Url if !IsNil(o.Favicon) { @@ -720,10 +721,10 @@ func (o *CreateAssetWEBSOCKETRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "projectIds") + delete(additionalProperties, "name") delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") delete(additionalProperties, "extra_metadata") + delete(additionalProperties, "screenshot_s3_key") delete(additionalProperties, "asset_type") delete(additionalProperties, "url") delete(additionalProperties, "favicon") diff --git a/pkg/api/v3/model_create_asset_wiz_account_request.go b/pkg/api/v3/model_create_asset_wiz_account_request.go deleted file mode 100644 index a57accec..00000000 --- a/pkg/api/v3/model_create_asset_wiz_account_request.go +++ /dev/null @@ -1,526 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreateAssetWIZACCOUNTRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateAssetWIZACCOUNTRequest{} - -// CreateAssetWIZACCOUNTRequest struct for CreateAssetWIZACCOUNTRequest -type CreateAssetWIZACCOUNTRequest struct { - // The list of project IDs bind the asset on. - ProjectIds []string `json:"projectIds,omitempty"` - AssetClass ENUMCSPM `json:"asset_class"` - WizProviderId *string `json:"wiz_provider_id,omitempty"` - WizCloudPlatform *string `json:"wiz_cloud_platform,omitempty"` - ExtraMetadata map[string]interface{} `json:"extra_metadata,omitempty"` - AssetType ENUMWIZACCOUNT `json:"asset_type"` - Name *string `json:"name,omitempty"` - ImmutableKey string `json:"immutable_key"` - ClientId string `json:"client_id"` - ClientSecret string `json:"client_secret"` - TokenUri string `json:"token_uri"` - ApiEndpoint string `json:"api_endpoint"` - AdditionalProperties map[string]interface{} -} - -type _CreateAssetWIZACCOUNTRequest CreateAssetWIZACCOUNTRequest - -// NewCreateAssetWIZACCOUNTRequest instantiates a new CreateAssetWIZACCOUNTRequest 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 NewCreateAssetWIZACCOUNTRequest(assetClass ENUMCSPM, assetType ENUMWIZACCOUNT, immutableKey string, clientId string, clientSecret string, tokenUri string, apiEndpoint string) *CreateAssetWIZACCOUNTRequest { - this := CreateAssetWIZACCOUNTRequest{} - this.AssetClass = assetClass - this.AssetType = assetType - this.ImmutableKey = immutableKey - this.ClientId = clientId - this.ClientSecret = clientSecret - this.TokenUri = tokenUri - this.ApiEndpoint = apiEndpoint - return &this -} - -// NewCreateAssetWIZACCOUNTRequestWithDefaults instantiates a new CreateAssetWIZACCOUNTRequest 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 NewCreateAssetWIZACCOUNTRequestWithDefaults() *CreateAssetWIZACCOUNTRequest { - this := CreateAssetWIZACCOUNTRequest{} - return &this -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateAssetWIZACCOUNTRequest) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateAssetWIZACCOUNTRequest) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateAssetWIZACCOUNTRequest) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetAssetClass returns the AssetClass field value -func (o *CreateAssetWIZACCOUNTRequest) GetAssetClass() ENUMCSPM { - if o == nil { - var ret ENUMCSPM - return ret - } - - return o.AssetClass -} - -// GetAssetClassOk returns a tuple with the AssetClass field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetAssetClassOk() (*ENUMCSPM, bool) { - if o == nil { - return nil, false - } - return &o.AssetClass, true -} - -// SetAssetClass sets field value -func (o *CreateAssetWIZACCOUNTRequest) SetAssetClass(v ENUMCSPM) { - o.AssetClass = v -} - -// GetWizProviderId returns the WizProviderId field value if set, zero value otherwise. -func (o *CreateAssetWIZACCOUNTRequest) GetWizProviderId() string { - if o == nil || IsNil(o.WizProviderId) { - var ret string - return ret - } - return *o.WizProviderId -} - -// GetWizProviderIdOk returns a tuple with the WizProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetWizProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.WizProviderId) { - return nil, false - } - return o.WizProviderId, true -} - -// HasWizProviderId returns a boolean if a field has been set. -func (o *CreateAssetWIZACCOUNTRequest) HasWizProviderId() bool { - if o != nil && !IsNil(o.WizProviderId) { - return true - } - - return false -} - -// SetWizProviderId gets a reference to the given string and assigns it to the WizProviderId field. -func (o *CreateAssetWIZACCOUNTRequest) SetWizProviderId(v string) { - o.WizProviderId = &v -} - -// GetWizCloudPlatform returns the WizCloudPlatform field value if set, zero value otherwise. -func (o *CreateAssetWIZACCOUNTRequest) GetWizCloudPlatform() string { - if o == nil || IsNil(o.WizCloudPlatform) { - var ret string - return ret - } - return *o.WizCloudPlatform -} - -// GetWizCloudPlatformOk returns a tuple with the WizCloudPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetWizCloudPlatformOk() (*string, bool) { - if o == nil || IsNil(o.WizCloudPlatform) { - return nil, false - } - return o.WizCloudPlatform, true -} - -// HasWizCloudPlatform returns a boolean if a field has been set. -func (o *CreateAssetWIZACCOUNTRequest) HasWizCloudPlatform() bool { - if o != nil && !IsNil(o.WizCloudPlatform) { - return true - } - - return false -} - -// SetWizCloudPlatform gets a reference to the given string and assigns it to the WizCloudPlatform field. -func (o *CreateAssetWIZACCOUNTRequest) SetWizCloudPlatform(v string) { - o.WizCloudPlatform = &v -} - -// GetExtraMetadata returns the ExtraMetadata field value if set, zero value otherwise. -func (o *CreateAssetWIZACCOUNTRequest) GetExtraMetadata() map[string]interface{} { - if o == nil || IsNil(o.ExtraMetadata) { - var ret map[string]interface{} - return ret - } - return o.ExtraMetadata -} - -// GetExtraMetadataOk returns a tuple with the ExtraMetadata field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetExtraMetadataOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ExtraMetadata) { - return map[string]interface{}{}, false - } - return o.ExtraMetadata, true -} - -// HasExtraMetadata returns a boolean if a field has been set. -func (o *CreateAssetWIZACCOUNTRequest) HasExtraMetadata() bool { - if o != nil && !IsNil(o.ExtraMetadata) { - return true - } - - return false -} - -// SetExtraMetadata gets a reference to the given map[string]interface{} and assigns it to the ExtraMetadata field. -func (o *CreateAssetWIZACCOUNTRequest) SetExtraMetadata(v map[string]interface{}) { - o.ExtraMetadata = v -} - -// GetAssetType returns the AssetType field value -func (o *CreateAssetWIZACCOUNTRequest) GetAssetType() ENUMWIZACCOUNT { - if o == nil { - var ret ENUMWIZACCOUNT - return ret - } - - return o.AssetType -} - -// GetAssetTypeOk returns a tuple with the AssetType field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetAssetTypeOk() (*ENUMWIZACCOUNT, bool) { - if o == nil { - return nil, false - } - return &o.AssetType, true -} - -// SetAssetType sets field value -func (o *CreateAssetWIZACCOUNTRequest) SetAssetType(v ENUMWIZACCOUNT) { - o.AssetType = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateAssetWIZACCOUNTRequest) GetName() string { - if o == nil || IsNil(o.Name) { - 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 *CreateAssetWIZACCOUNTRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CreateAssetWIZACCOUNTRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CreateAssetWIZACCOUNTRequest) SetName(v string) { - o.Name = &v -} - -// GetImmutableKey returns the ImmutableKey field value -func (o *CreateAssetWIZACCOUNTRequest) GetImmutableKey() string { - if o == nil { - var ret string - return ret - } - - return o.ImmutableKey -} - -// GetImmutableKeyOk returns a tuple with the ImmutableKey field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetImmutableKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ImmutableKey, true -} - -// SetImmutableKey sets field value -func (o *CreateAssetWIZACCOUNTRequest) SetImmutableKey(v string) { - o.ImmutableKey = v -} - -// GetClientId returns the ClientId field value -func (o *CreateAssetWIZACCOUNTRequest) GetClientId() string { - if o == nil { - var ret string - return ret - } - - return o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetClientIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientId, true -} - -// SetClientId sets field value -func (o *CreateAssetWIZACCOUNTRequest) SetClientId(v string) { - o.ClientId = v -} - -// GetClientSecret returns the ClientSecret field value -func (o *CreateAssetWIZACCOUNTRequest) GetClientSecret() string { - if o == nil { - var ret string - return ret - } - - return o.ClientSecret -} - -// GetClientSecretOk returns a tuple with the ClientSecret field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetClientSecretOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientSecret, true -} - -// SetClientSecret sets field value -func (o *CreateAssetWIZACCOUNTRequest) SetClientSecret(v string) { - o.ClientSecret = v -} - -// GetTokenUri returns the TokenUri field value -func (o *CreateAssetWIZACCOUNTRequest) GetTokenUri() string { - if o == nil { - var ret string - return ret - } - - return o.TokenUri -} - -// GetTokenUriOk returns a tuple with the TokenUri field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetTokenUriOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TokenUri, true -} - -// SetTokenUri sets field value -func (o *CreateAssetWIZACCOUNTRequest) SetTokenUri(v string) { - o.TokenUri = v -} - -// GetApiEndpoint returns the ApiEndpoint field value -func (o *CreateAssetWIZACCOUNTRequest) GetApiEndpoint() string { - if o == nil { - var ret string - return ret - } - - return o.ApiEndpoint -} - -// GetApiEndpointOk returns a tuple with the ApiEndpoint field value -// and a boolean to check if the value has been set. -func (o *CreateAssetWIZACCOUNTRequest) GetApiEndpointOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApiEndpoint, true -} - -// SetApiEndpoint sets field value -func (o *CreateAssetWIZACCOUNTRequest) SetApiEndpoint(v string) { - o.ApiEndpoint = v -} - -func (o CreateAssetWIZACCOUNTRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateAssetWIZACCOUNTRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - toSerialize["asset_class"] = o.AssetClass - if !IsNil(o.WizProviderId) { - toSerialize["wiz_provider_id"] = o.WizProviderId - } - if !IsNil(o.WizCloudPlatform) { - toSerialize["wiz_cloud_platform"] = o.WizCloudPlatform - } - if !IsNil(o.ExtraMetadata) { - toSerialize["extra_metadata"] = o.ExtraMetadata - } - toSerialize["asset_type"] = o.AssetType - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - toSerialize["immutable_key"] = o.ImmutableKey - toSerialize["client_id"] = o.ClientId - toSerialize["client_secret"] = o.ClientSecret - toSerialize["token_uri"] = o.TokenUri - toSerialize["api_endpoint"] = o.ApiEndpoint - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateAssetWIZACCOUNTRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "asset_class", - "asset_type", - "immutable_key", - "client_id", - "client_secret", - "token_uri", - "api_endpoint", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateAssetWIZACCOUNTRequest := _CreateAssetWIZACCOUNTRequest{} - - err = json.Unmarshal(data, &varCreateAssetWIZACCOUNTRequest) - - if err != nil { - return err - } - - *o = CreateAssetWIZACCOUNTRequest(varCreateAssetWIZACCOUNTRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "projectIds") - delete(additionalProperties, "asset_class") - delete(additionalProperties, "wiz_provider_id") - delete(additionalProperties, "wiz_cloud_platform") - delete(additionalProperties, "extra_metadata") - delete(additionalProperties, "asset_type") - delete(additionalProperties, "name") - delete(additionalProperties, "immutable_key") - delete(additionalProperties, "client_id") - delete(additionalProperties, "client_secret") - delete(additionalProperties, "token_uri") - delete(additionalProperties, "api_endpoint") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateAssetWIZACCOUNTRequest struct { - value *CreateAssetWIZACCOUNTRequest - isSet bool -} - -func (v NullableCreateAssetWIZACCOUNTRequest) Get() *CreateAssetWIZACCOUNTRequest { - return v.value -} - -func (v *NullableCreateAssetWIZACCOUNTRequest) Set(val *CreateAssetWIZACCOUNTRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateAssetWIZACCOUNTRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateAssetWIZACCOUNTRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateAssetWIZACCOUNTRequest(val *CreateAssetWIZACCOUNTRequest) *NullableCreateAssetWIZACCOUNTRequest { - return &NullableCreateAssetWIZACCOUNTRequest{value: val, isSet: true} -} - -func (v NullableCreateAssetWIZACCOUNTRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateAssetWIZACCOUNTRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_1.go b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_1.go index da72d787..9e82de3a 100644 --- a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_1.go +++ b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_1.go @@ -20,11 +20,11 @@ var _ MappedNullable = &CreateCustomRuleRequestContentRuleOneOf1{} // CreateCustomRuleRequestContentRuleOneOf1 struct for CreateCustomRuleRequestContentRuleOneOf1 type CreateCustomRuleRequestContentRuleOneOf1 struct { - Alert CreateCustomRuleRequestContentRuleOneOfAlert `json:"alert"` - Type ENUMWEBAPP `json:"type"` - Seed []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"seed"` - Detect []CreateCustomRuleRequestContentRuleOneOf1DetectInner `json:"detect"` - Extractors []interface{} `json:"extractors,omitempty"` + Alert CreateCustomRuleRequestContentRuleOneOfAlert `json:"alert"` + Type ENUMWEBAPP `json:"type"` + Seed []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"seed"` + Detect []CreateCustomRuleRequestContentRuleOneOf1DetectInner `json:"detect"` + Extractors []interface{} `json:"extractors,omitempty"` AdditionalProperties map[string]interface{} } @@ -34,7 +34,7 @@ type _CreateCustomRuleRequestContentRuleOneOf1 CreateCustomRuleRequestContentRul // 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 NewCreateCustomRuleRequestContentRuleOneOf1(alert CreateCustomRuleRequestContentRuleOneOfAlert, type_ ENUMWEBAPP, seed []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, detect []CreateCustomRuleRequestContentRuleOneOf1DetectInner) *CreateCustomRuleRequestContentRuleOneOf1 { +func NewCreateCustomRuleRequestContentRuleOneOf1(alert CreateCustomRuleRequestContentRuleOneOfAlert, type_ ENUMWEBAPP, seed []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, detect []CreateCustomRuleRequestContentRuleOneOf1DetectInner) *CreateCustomRuleRequestContentRuleOneOf1 { this := CreateCustomRuleRequestContentRuleOneOf1{} this.Alert = alert this.Type = type_ @@ -100,9 +100,9 @@ func (o *CreateCustomRuleRequestContentRuleOneOf1) SetType(v ENUMWEBAPP) { } // GetSeed returns the Seed field value -func (o *CreateCustomRuleRequestContentRuleOneOf1) GetSeed() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { +func (o *CreateCustomRuleRequestContentRuleOneOf1) GetSeed() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner return ret } @@ -111,7 +111,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOf1) GetSeed() []ProfileDetailedCo // GetSeedOk returns a tuple with the Seed field value // and a boolean to check if the value has been set. -func (o *CreateCustomRuleRequestContentRuleOneOf1) GetSeedOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { +func (o *CreateCustomRuleRequestContentRuleOneOf1) GetSeedOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { if o == nil { return nil, false } @@ -119,7 +119,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOf1) GetSeedOk() ([]ProfileDetaile } // SetSeed sets field value -func (o *CreateCustomRuleRequestContentRuleOneOf1) SetSeed(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { +func (o *CreateCustomRuleRequestContentRuleOneOf1) SetSeed(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { o.Seed = v } diff --git a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_seed_inner_one_of.go b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_seed_inner_one_of.go index 186566c5..1d6ac61f 100644 --- a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_seed_inner_one_of.go +++ b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_seed_inner_one_of.go @@ -20,13 +20,13 @@ var _ MappedNullable = &CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf{} // CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf struct for CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf type CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf struct { - Protocol ENUMREST `json:"protocol"` - User *string `json:"user,omitempty"` - Path *string `json:"path,omitempty"` - Method *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"method,omitempty"` - Headers map[string]string `json:"headers,omitempty"` - Body *string `json:"body,omitempty"` - Params map[string]string `json:"params,omitempty"` + Protocol ENUMREST `json:"protocol"` + User *string `json:"user,omitempty"` + Path *string `json:"path,omitempty"` + Method *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD `json:"method,omitempty"` + Headers map[string]string `json:"headers,omitempty"` + Body *string `json:"body,omitempty"` + Params map[string]string `json:"params,omitempty"` AdditionalProperties map[string]interface{} } @@ -139,9 +139,9 @@ func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) SetPath(v string } // GetMethod returns the Method field value if set, zero value otherwise. -func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { +func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { if o == nil || IsNil(o.Method) { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD return ret } return *o.Method @@ -149,7 +149,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) GetMethod() ENUM // GetMethodOk returns a tuple with the Method field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { +func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, bool) { if o == nil || IsNil(o.Method) { return nil, false } @@ -165,8 +165,8 @@ func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) HasMethod() bool return false } -// SetMethod gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD and assigns it to the Method field. -func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { +// SetMethod gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD and assigns it to the Method field. +func (o *CreateCustomRuleRequestContentRuleOneOfSeedInnerOneOf) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) { o.Method = &v } diff --git a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_mutate_inner_one_of_7.go b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_mutate_inner_one_of_7.go index 06f16793..ca664230 100644 --- a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_mutate_inner_one_of_7.go +++ b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_mutate_inner_one_of_7.go @@ -20,9 +20,9 @@ var _ MappedNullable = &CreateCustomRuleRequestContentRuleOneOfTransformMutateIn // CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7 struct for CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7 type CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7 struct { - Key ENUMREQUESTMETHOD `json:"key"` - Value *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"value,omitempty"` - Values []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"values,omitempty"` + Key ENUMREQUESTMETHOD `json:"key"` + Value *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD `json:"value,omitempty"` + Values []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD `json:"values,omitempty"` AdditionalProperties map[string]interface{} } @@ -71,9 +71,9 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) SetK } // GetValue returns the Value field value if set, zero value otherwise. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetValue() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetValue() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { if o == nil || IsNil(o.Value) { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD return ret } return *o.Value @@ -81,7 +81,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetV // 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 *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetValueOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetValueOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, bool) { if o == nil || IsNil(o.Value) { return nil, false } @@ -97,15 +97,15 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) HasV return false } -// SetValue gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD and assigns it to the Value field. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) SetValue(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { +// SetValue gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD and assigns it to the Value field. +func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) SetValue(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) { o.Value = &v } // GetValues returns the Values field value if set, zero value otherwise. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetValues() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetValues() []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { if o == nil || IsNil(o.Values) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD + var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD return ret } return o.Values @@ -113,7 +113,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetV // GetValuesOk returns a tuple with the Values field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetValuesOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) GetValuesOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, bool) { if o == nil || IsNil(o.Values) { return nil, false } @@ -129,8 +129,8 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) HasV return false } -// SetValues gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD and assigns it to the Values field. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) SetValues(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { +// SetValues gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD and assigns it to the Values field. +func (o *CreateCustomRuleRequestContentRuleOneOfTransformMutateInnerOneOf7) SetValues(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) { o.Values = v } diff --git a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of.go b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of.go index 9e8e4896..7a02f669 100644 --- a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of.go +++ b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of.go @@ -20,10 +20,10 @@ var _ MappedNullable = &CreateCustomRuleRequestContentRuleOneOfTransformTriggerI // CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf struct for CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf type CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf struct { - Is *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS `json:"is,omitempty"` - IsNot *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS `json:"is_not,omitempty"` - In []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS `json:"in,omitempty"` - If ENUMSCANTYPE `json:"if"` + Is *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS `json:"is,omitempty"` + IsNot *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS `json:"is_not,omitempty"` + In []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS `json:"in,omitempty"` + If ENUMSCANTYPE `json:"if"` AdditionalProperties map[string]interface{} } @@ -112,9 +112,9 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) SetI } // GetIn returns the In field value if set, zero value otherwise. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) GetIn() []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) GetIn() []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS { if o == nil || IsNil(o.In) { - var ret []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS + var ret []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS return ret } return o.In @@ -122,7 +122,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) GetI // GetInOk returns a tuple with the In field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) GetInOk() ([]ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS, bool) { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) GetInOk() ([]ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS, bool) { if o == nil || IsNil(o.In) { return nil, false } @@ -138,8 +138,8 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) HasI return false } -// SetIn gets a reference to the given []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS and assigns it to the In field. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) SetIn(v []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESIS) { +// SetIn gets a reference to the given []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS and assigns it to the In field. +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf) SetIn(v []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) { o.In = v } diff --git a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_5.go b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_5.go index b8ec8a60..1e1096bd 100644 --- a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_5.go +++ b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_5.go @@ -20,10 +20,10 @@ var _ MappedNullable = &CreateCustomRuleRequestContentRuleOneOfTransformTriggerI // CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5 struct for CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5 type CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5 struct { - Is *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS `json:"is,omitempty"` - IsNot *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS `json:"is_not,omitempty"` - In []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS `json:"in,omitempty"` - If ENUMHELPERSREQUESTCRUD `json:"if"` + Is *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS `json:"is,omitempty"` + IsNot *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS `json:"is_not,omitempty"` + In []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS `json:"in,omitempty"` + If ENUMHELPERSREQUESTCRUD `json:"if"` AdditionalProperties map[string]interface{} } @@ -112,9 +112,9 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) Set } // GetIn returns the In field value if set, zero value otherwise. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) GetIn() []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) GetIn() []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS { if o == nil || IsNil(o.In) { - var ret []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS + var ret []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS return ret } return o.In @@ -122,7 +122,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) Get // GetInOk returns a tuple with the In field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) GetInOk() ([]ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS, bool) { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) GetInOk() ([]ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS, bool) { if o == nil || IsNil(o.In) { return nil, false } @@ -138,8 +138,8 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) Has return false } -// SetIn gets a reference to the given []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS and assigns it to the In field. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) SetIn(v []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESIS) { +// SetIn gets a reference to the given []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS and assigns it to the In field. +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf5) SetIn(v []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) { o.In = v } diff --git a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_6.go b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_6.go index 07ceb4f9..5dd44bce 100644 --- a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_6.go +++ b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_6.go @@ -20,10 +20,10 @@ var _ MappedNullable = &CreateCustomRuleRequestContentRuleOneOfTransformTriggerI // CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6 struct for CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6 type CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6 struct { - Is *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"is,omitempty"` - IsNot *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"is_not,omitempty"` - In []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"in,omitempty"` - If ENUMREQUESTMETHOD `json:"if"` + Is *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"is,omitempty"` + IsNot *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"is_not,omitempty"` + In []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD `json:"in,omitempty"` + If ENUMREQUESTMETHOD `json:"if"` AdditionalProperties map[string]interface{} } @@ -112,9 +112,9 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) Set } // GetIn returns the In field value if set, zero value otherwise. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) GetIn() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) GetIn() []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { if o == nil || IsNil(o.In) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD + var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD return ret } return o.In @@ -122,7 +122,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) Get // GetInOk returns a tuple with the In field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) GetInOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) GetInOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, bool) { if o == nil || IsNil(o.In) { return nil, false } @@ -138,8 +138,8 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) Has return false } -// SetIn gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD and assigns it to the In field. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) SetIn(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { +// SetIn gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD and assigns it to the In field. +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf6) SetIn(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) { o.In = v } diff --git a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_7_type.go b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_7_type.go index bd7a15e8..7d5569b7 100644 --- a/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_7_type.go +++ b/pkg/api/v3/model_create_custom_rule_request_content_rule_one_of_transform_trigger_inner_one_of_7_type.go @@ -19,9 +19,9 @@ var _ MappedNullable = &CreateCustomRuleRequestContentRuleOneOfTransformTriggerI // CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type struct for CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type type CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type struct { - Is *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS `json:"is,omitempty"` - IsNot *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS `json:"is_not,omitempty"` - In []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS `json:"in,omitempty"` + Is *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS `json:"is,omitempty"` + IsNot *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS `json:"is_not,omitempty"` + In []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS `json:"in,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,9 +109,9 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) } // GetIn returns the In field value if set, zero value otherwise. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) GetIn() []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) GetIn() []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS { if o == nil || IsNil(o.In) { - var ret []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS + var ret []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS return ret } return o.In @@ -119,7 +119,7 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) // GetInOk returns a tuple with the In field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) GetInOk() ([]ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS, bool) { +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) GetInOk() ([]ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS, bool) { if o == nil || IsNil(o.In) { return nil, false } @@ -135,8 +135,8 @@ func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) return false } -// SetIn gets a reference to the given []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS and assigns it to the In field. -func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) SetIn(v []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS) { +// SetIn gets a reference to the given []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS and assigns it to the In field. +func (o *CreateCustomRuleRequestContentRuleOneOfTransformTriggerInnerOneOf7Type) SetIn(v []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) { o.In = v } diff --git a/pkg/api/v3/model_create_dast_graphql_profile_request.go b/pkg/api/v3/model_create_dast_graphql_profile_request.go index 2f6fe5ce..7f61a985 100644 --- a/pkg/api/v3/model_create_dast_graphql_profile_request.go +++ b/pkg/api/v3/model_create_dast_graphql_profile_request.go @@ -28,12 +28,19 @@ type CreateDastGraphqlProfileRequest struct { Cron *string `json:"cron,omitempty"` // The name of the profile Name string `json:"name"` + // The description of the profile + Description *string `json:"description,omitempty"` // The proxy ID for the profile ProxyId *string `json:"proxyId,omitempty"` // The asset ID of the schema used to scan the profile - SchemaId string `json:"schemaId"` + SchemaId *string `json:"schemaId,omitempty"` // The tags IDs for the profile TagsIds []string `json:"tagsIds,omitempty"` + // The extra asset IDs for the profile + ExtraAssetIds []string `json:"extraAssetIds,omitempty"` + // Whether to use all available extra assets for the profile + UseAllAvailableExtraAssets *bool `json:"useAllAvailableExtraAssets,omitempty"` + Mode *ENUMPROPERTIESMODE `json:"mode,omitempty"` // Whether to start the scan immediately Start *bool `json:"start,omitempty"` AdditionalProperties map[string]interface{} @@ -45,11 +52,10 @@ type _CreateDastGraphqlProfileRequest CreateDastGraphqlProfileRequest // 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 NewCreateDastGraphqlProfileRequest(assetId string, name string, schemaId string) *CreateDastGraphqlProfileRequest { +func NewCreateDastGraphqlProfileRequest(assetId string, name string) *CreateDastGraphqlProfileRequest { this := CreateDastGraphqlProfileRequest{} this.AssetId = assetId this.Name = name - this.SchemaId = schemaId var start bool = true this.Start = &start return &this @@ -177,6 +183,38 @@ func (o *CreateDastGraphqlProfileRequest) SetName(v string) { o.Name = v } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateDastGraphqlProfileRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *CreateDastGraphqlProfileRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateDastGraphqlProfileRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateDastGraphqlProfileRequest) SetDescription(v string) { + o.Description = &v +} + // GetProxyId returns the ProxyId field value if set, zero value otherwise. func (o *CreateDastGraphqlProfileRequest) GetProxyId() string { if o == nil || IsNil(o.ProxyId) { @@ -209,28 +247,36 @@ func (o *CreateDastGraphqlProfileRequest) SetProxyId(v string) { o.ProxyId = &v } -// GetSchemaId returns the SchemaId field value +// GetSchemaId returns the SchemaId field value if set, zero value otherwise. func (o *CreateDastGraphqlProfileRequest) GetSchemaId() string { - if o == nil { + if o == nil || IsNil(o.SchemaId) { var ret string return ret } - - return o.SchemaId + return *o.SchemaId } -// GetSchemaIdOk returns a tuple with the SchemaId field value +// GetSchemaIdOk returns a tuple with the SchemaId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateDastGraphqlProfileRequest) GetSchemaIdOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.SchemaId) { return nil, false } - return &o.SchemaId, true + return o.SchemaId, true } -// SetSchemaId sets field value +// HasSchemaId returns a boolean if a field has been set. +func (o *CreateDastGraphqlProfileRequest) HasSchemaId() bool { + if o != nil && !IsNil(o.SchemaId) { + return true + } + + return false +} + +// SetSchemaId gets a reference to the given string and assigns it to the SchemaId field. func (o *CreateDastGraphqlProfileRequest) SetSchemaId(v string) { - o.SchemaId = v + o.SchemaId = &v } // GetTagsIds returns the TagsIds field value if set, zero value otherwise. @@ -265,6 +311,102 @@ func (o *CreateDastGraphqlProfileRequest) SetTagsIds(v []string) { o.TagsIds = v } +// GetExtraAssetIds returns the ExtraAssetIds field value if set, zero value otherwise. +func (o *CreateDastGraphqlProfileRequest) GetExtraAssetIds() []string { + if o == nil || IsNil(o.ExtraAssetIds) { + var ret []string + return ret + } + return o.ExtraAssetIds +} + +// GetExtraAssetIdsOk returns a tuple with the ExtraAssetIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDastGraphqlProfileRequest) GetExtraAssetIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ExtraAssetIds) { + return nil, false + } + return o.ExtraAssetIds, true +} + +// HasExtraAssetIds returns a boolean if a field has been set. +func (o *CreateDastGraphqlProfileRequest) HasExtraAssetIds() bool { + if o != nil && !IsNil(o.ExtraAssetIds) { + return true + } + + return false +} + +// SetExtraAssetIds gets a reference to the given []string and assigns it to the ExtraAssetIds field. +func (o *CreateDastGraphqlProfileRequest) SetExtraAssetIds(v []string) { + o.ExtraAssetIds = v +} + +// GetUseAllAvailableExtraAssets returns the UseAllAvailableExtraAssets field value if set, zero value otherwise. +func (o *CreateDastGraphqlProfileRequest) GetUseAllAvailableExtraAssets() bool { + if o == nil || IsNil(o.UseAllAvailableExtraAssets) { + var ret bool + return ret + } + return *o.UseAllAvailableExtraAssets +} + +// GetUseAllAvailableExtraAssetsOk returns a tuple with the UseAllAvailableExtraAssets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDastGraphqlProfileRequest) GetUseAllAvailableExtraAssetsOk() (*bool, bool) { + if o == nil || IsNil(o.UseAllAvailableExtraAssets) { + return nil, false + } + return o.UseAllAvailableExtraAssets, true +} + +// HasUseAllAvailableExtraAssets returns a boolean if a field has been set. +func (o *CreateDastGraphqlProfileRequest) HasUseAllAvailableExtraAssets() bool { + if o != nil && !IsNil(o.UseAllAvailableExtraAssets) { + return true + } + + return false +} + +// SetUseAllAvailableExtraAssets gets a reference to the given bool and assigns it to the UseAllAvailableExtraAssets field. +func (o *CreateDastGraphqlProfileRequest) SetUseAllAvailableExtraAssets(v bool) { + o.UseAllAvailableExtraAssets = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *CreateDastGraphqlProfileRequest) GetMode() ENUMPROPERTIESMODE { + if o == nil || IsNil(o.Mode) { + var ret ENUMPROPERTIESMODE + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDastGraphqlProfileRequest) GetModeOk() (*ENUMPROPERTIESMODE, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *CreateDastGraphqlProfileRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given ENUMPROPERTIESMODE and assigns it to the Mode field. +func (o *CreateDastGraphqlProfileRequest) SetMode(v ENUMPROPERTIESMODE) { + o.Mode = &v +} + // GetStart returns the Start field value if set, zero value otherwise. func (o *CreateDastGraphqlProfileRequest) GetStart() bool { if o == nil || IsNil(o.Start) { @@ -315,13 +457,27 @@ func (o CreateDastGraphqlProfileRequest) ToMap() (map[string]interface{}, error) toSerialize["cron"] = o.Cron } toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } if !IsNil(o.ProxyId) { toSerialize["proxyId"] = o.ProxyId } - toSerialize["schemaId"] = o.SchemaId + if !IsNil(o.SchemaId) { + toSerialize["schemaId"] = o.SchemaId + } if !IsNil(o.TagsIds) { toSerialize["tagsIds"] = o.TagsIds } + if !IsNil(o.ExtraAssetIds) { + toSerialize["extraAssetIds"] = o.ExtraAssetIds + } + if !IsNil(o.UseAllAvailableExtraAssets) { + toSerialize["useAllAvailableExtraAssets"] = o.UseAllAvailableExtraAssets + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Start) { toSerialize["start"] = o.Start } @@ -340,7 +496,6 @@ func (o *CreateDastGraphqlProfileRequest) UnmarshalJSON(data []byte) (err error) requiredProperties := []string{ "assetId", "name", - "schemaId", } allProperties := make(map[string]interface{}) @@ -374,9 +529,13 @@ func (o *CreateDastGraphqlProfileRequest) UnmarshalJSON(data []byte) (err error) delete(additionalProperties, "configuration") delete(additionalProperties, "cron") delete(additionalProperties, "name") + delete(additionalProperties, "description") delete(additionalProperties, "proxyId") delete(additionalProperties, "schemaId") delete(additionalProperties, "tagsIds") + delete(additionalProperties, "extraAssetIds") + delete(additionalProperties, "useAllAvailableExtraAssets") + delete(additionalProperties, "mode") delete(additionalProperties, "start") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_create_dast_rest_profile_request.go b/pkg/api/v3/model_create_dast_rest_profile_request.go index 67183358..1d6807b3 100644 --- a/pkg/api/v3/model_create_dast_rest_profile_request.go +++ b/pkg/api/v3/model_create_dast_rest_profile_request.go @@ -28,12 +28,19 @@ type CreateDastRestProfileRequest struct { Cron *string `json:"cron,omitempty"` // The name of the profile Name string `json:"name"` + // The description of the profile + Description *string `json:"description,omitempty"` // The proxy ID for the profile ProxyId *string `json:"proxyId,omitempty"` // The ID of the asset schema for the profile - SchemaId string `json:"schemaId"` + SchemaId *string `json:"schemaId,omitempty"` // The tags IDs for the profile TagsIds []string `json:"tagsIds,omitempty"` + // The extra asset IDs for the profile + ExtraAssetIds []string `json:"extraAssetIds,omitempty"` + // Whether to use all available extra assets for the profile + UseAllAvailableExtraAssets *bool `json:"useAllAvailableExtraAssets,omitempty"` + Mode *ENUMPROPERTIESMODE `json:"mode,omitempty"` // Whether to start the scan immediately Start *bool `json:"start,omitempty"` AdditionalProperties map[string]interface{} @@ -45,11 +52,10 @@ type _CreateDastRestProfileRequest CreateDastRestProfileRequest // 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 NewCreateDastRestProfileRequest(assetId string, name string, schemaId string) *CreateDastRestProfileRequest { +func NewCreateDastRestProfileRequest(assetId string, name string) *CreateDastRestProfileRequest { this := CreateDastRestProfileRequest{} this.AssetId = assetId this.Name = name - this.SchemaId = schemaId var start bool = true this.Start = &start return &this @@ -177,6 +183,38 @@ func (o *CreateDastRestProfileRequest) SetName(v string) { o.Name = v } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateDastRestProfileRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *CreateDastRestProfileRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateDastRestProfileRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateDastRestProfileRequest) SetDescription(v string) { + o.Description = &v +} + // GetProxyId returns the ProxyId field value if set, zero value otherwise. func (o *CreateDastRestProfileRequest) GetProxyId() string { if o == nil || IsNil(o.ProxyId) { @@ -209,28 +247,36 @@ func (o *CreateDastRestProfileRequest) SetProxyId(v string) { o.ProxyId = &v } -// GetSchemaId returns the SchemaId field value +// GetSchemaId returns the SchemaId field value if set, zero value otherwise. func (o *CreateDastRestProfileRequest) GetSchemaId() string { - if o == nil { + if o == nil || IsNil(o.SchemaId) { var ret string return ret } - - return o.SchemaId + return *o.SchemaId } -// GetSchemaIdOk returns a tuple with the SchemaId field value +// GetSchemaIdOk returns a tuple with the SchemaId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateDastRestProfileRequest) GetSchemaIdOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.SchemaId) { return nil, false } - return &o.SchemaId, true + return o.SchemaId, true } -// SetSchemaId sets field value +// HasSchemaId returns a boolean if a field has been set. +func (o *CreateDastRestProfileRequest) HasSchemaId() bool { + if o != nil && !IsNil(o.SchemaId) { + return true + } + + return false +} + +// SetSchemaId gets a reference to the given string and assigns it to the SchemaId field. func (o *CreateDastRestProfileRequest) SetSchemaId(v string) { - o.SchemaId = v + o.SchemaId = &v } // GetTagsIds returns the TagsIds field value if set, zero value otherwise. @@ -265,6 +311,102 @@ func (o *CreateDastRestProfileRequest) SetTagsIds(v []string) { o.TagsIds = v } +// GetExtraAssetIds returns the ExtraAssetIds field value if set, zero value otherwise. +func (o *CreateDastRestProfileRequest) GetExtraAssetIds() []string { + if o == nil || IsNil(o.ExtraAssetIds) { + var ret []string + return ret + } + return o.ExtraAssetIds +} + +// GetExtraAssetIdsOk returns a tuple with the ExtraAssetIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDastRestProfileRequest) GetExtraAssetIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ExtraAssetIds) { + return nil, false + } + return o.ExtraAssetIds, true +} + +// HasExtraAssetIds returns a boolean if a field has been set. +func (o *CreateDastRestProfileRequest) HasExtraAssetIds() bool { + if o != nil && !IsNil(o.ExtraAssetIds) { + return true + } + + return false +} + +// SetExtraAssetIds gets a reference to the given []string and assigns it to the ExtraAssetIds field. +func (o *CreateDastRestProfileRequest) SetExtraAssetIds(v []string) { + o.ExtraAssetIds = v +} + +// GetUseAllAvailableExtraAssets returns the UseAllAvailableExtraAssets field value if set, zero value otherwise. +func (o *CreateDastRestProfileRequest) GetUseAllAvailableExtraAssets() bool { + if o == nil || IsNil(o.UseAllAvailableExtraAssets) { + var ret bool + return ret + } + return *o.UseAllAvailableExtraAssets +} + +// GetUseAllAvailableExtraAssetsOk returns a tuple with the UseAllAvailableExtraAssets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDastRestProfileRequest) GetUseAllAvailableExtraAssetsOk() (*bool, bool) { + if o == nil || IsNil(o.UseAllAvailableExtraAssets) { + return nil, false + } + return o.UseAllAvailableExtraAssets, true +} + +// HasUseAllAvailableExtraAssets returns a boolean if a field has been set. +func (o *CreateDastRestProfileRequest) HasUseAllAvailableExtraAssets() bool { + if o != nil && !IsNil(o.UseAllAvailableExtraAssets) { + return true + } + + return false +} + +// SetUseAllAvailableExtraAssets gets a reference to the given bool and assigns it to the UseAllAvailableExtraAssets field. +func (o *CreateDastRestProfileRequest) SetUseAllAvailableExtraAssets(v bool) { + o.UseAllAvailableExtraAssets = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *CreateDastRestProfileRequest) GetMode() ENUMPROPERTIESMODE { + if o == nil || IsNil(o.Mode) { + var ret ENUMPROPERTIESMODE + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateDastRestProfileRequest) GetModeOk() (*ENUMPROPERTIESMODE, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *CreateDastRestProfileRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given ENUMPROPERTIESMODE and assigns it to the Mode field. +func (o *CreateDastRestProfileRequest) SetMode(v ENUMPROPERTIESMODE) { + o.Mode = &v +} + // GetStart returns the Start field value if set, zero value otherwise. func (o *CreateDastRestProfileRequest) GetStart() bool { if o == nil || IsNil(o.Start) { @@ -315,13 +457,27 @@ func (o CreateDastRestProfileRequest) ToMap() (map[string]interface{}, error) { toSerialize["cron"] = o.Cron } toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } if !IsNil(o.ProxyId) { toSerialize["proxyId"] = o.ProxyId } - toSerialize["schemaId"] = o.SchemaId + if !IsNil(o.SchemaId) { + toSerialize["schemaId"] = o.SchemaId + } if !IsNil(o.TagsIds) { toSerialize["tagsIds"] = o.TagsIds } + if !IsNil(o.ExtraAssetIds) { + toSerialize["extraAssetIds"] = o.ExtraAssetIds + } + if !IsNil(o.UseAllAvailableExtraAssets) { + toSerialize["useAllAvailableExtraAssets"] = o.UseAllAvailableExtraAssets + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Start) { toSerialize["start"] = o.Start } @@ -340,7 +496,6 @@ func (o *CreateDastRestProfileRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "assetId", "name", - "schemaId", } allProperties := make(map[string]interface{}) @@ -374,9 +529,13 @@ func (o *CreateDastRestProfileRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "configuration") delete(additionalProperties, "cron") delete(additionalProperties, "name") + delete(additionalProperties, "description") delete(additionalProperties, "proxyId") delete(additionalProperties, "schemaId") delete(additionalProperties, "tagsIds") + delete(additionalProperties, "extraAssetIds") + delete(additionalProperties, "useAllAvailableExtraAssets") + delete(additionalProperties, "mode") delete(additionalProperties, "start") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_create_dast_web_app_profile_request.go b/pkg/api/v3/model_create_dast_web_app_profile_request.go index 41303a17..d8645115 100644 --- a/pkg/api/v3/model_create_dast_web_app_profile_request.go +++ b/pkg/api/v3/model_create_dast_web_app_profile_request.go @@ -28,6 +28,8 @@ type CreateDastWebAppProfileRequest struct { Cron *string `json:"cron,omitempty"` // The name of the profile Name string `json:"name"` + // The description of the profile + Description *string `json:"description,omitempty"` // The proxy ID for the profile ProxyId *string `json:"proxyId,omitempty"` // The tags IDs for the profile @@ -174,6 +176,38 @@ func (o *CreateDastWebAppProfileRequest) SetName(v string) { o.Name = v } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateDastWebAppProfileRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *CreateDastWebAppProfileRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateDastWebAppProfileRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateDastWebAppProfileRequest) SetDescription(v string) { + o.Description = &v +} + // GetProxyId returns the ProxyId field value if set, zero value otherwise. func (o *CreateDastWebAppProfileRequest) GetProxyId() string { if o == nil || IsNil(o.ProxyId) { @@ -288,6 +322,9 @@ func (o CreateDastWebAppProfileRequest) ToMap() (map[string]interface{}, error) toSerialize["cron"] = o.Cron } toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } if !IsNil(o.ProxyId) { toSerialize["proxyId"] = o.ProxyId } @@ -345,6 +382,7 @@ func (o *CreateDastWebAppProfileRequest) UnmarshalJSON(data []byte) (err error) delete(additionalProperties, "configuration") delete(additionalProperties, "cron") delete(additionalProperties, "name") + delete(additionalProperties, "description") delete(additionalProperties, "proxyId") delete(additionalProperties, "tagsIds") delete(additionalProperties, "start") diff --git a/pkg/api/v3/model_create_export_workflow_action_using_jira_1.go b/pkg/api/v3/model_create_export_workflow_action_using_jira_1.go new file mode 100644 index 00000000..12b9eb6e --- /dev/null +++ b/pkg/api/v3/model_create_export_workflow_action_using_jira_1.go @@ -0,0 +1,253 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateExportWorkflowActionUsingJira1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateExportWorkflowActionUsingJira1{} + +// CreateExportWorkflowActionUsingJira1 struct for CreateExportWorkflowActionUsingJira1 +type CreateExportWorkflowActionUsingJira1 struct { + Type ENUMEXPORT `json:"type"` + Parameters CreateExportWorkflowActionUsingJira1Parameters `json:"parameters"` + IntegrationKind ENUMJIRA `json:"integrationKind"` + IntegrationId string `json:"integrationId"` + AdditionalProperties map[string]interface{} +} + +type _CreateExportWorkflowActionUsingJira1 CreateExportWorkflowActionUsingJira1 + +// NewCreateExportWorkflowActionUsingJira1 instantiates a new CreateExportWorkflowActionUsingJira1 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 NewCreateExportWorkflowActionUsingJira1(type_ ENUMEXPORT, parameters CreateExportWorkflowActionUsingJira1Parameters, integrationKind ENUMJIRA, integrationId string) *CreateExportWorkflowActionUsingJira1 { + this := CreateExportWorkflowActionUsingJira1{} + this.Type = type_ + this.Parameters = parameters + this.IntegrationKind = integrationKind + this.IntegrationId = integrationId + return &this +} + +// NewCreateExportWorkflowActionUsingJira1WithDefaults instantiates a new CreateExportWorkflowActionUsingJira1 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 NewCreateExportWorkflowActionUsingJira1WithDefaults() *CreateExportWorkflowActionUsingJira1 { + this := CreateExportWorkflowActionUsingJira1{} + return &this +} + +// GetType returns the Type field value +func (o *CreateExportWorkflowActionUsingJira1) GetType() ENUMEXPORT { + if o == nil { + var ret ENUMEXPORT + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1) GetTypeOk() (*ENUMEXPORT, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CreateExportWorkflowActionUsingJira1) SetType(v ENUMEXPORT) { + o.Type = v +} + +// GetParameters returns the Parameters field value +func (o *CreateExportWorkflowActionUsingJira1) GetParameters() CreateExportWorkflowActionUsingJira1Parameters { + if o == nil { + var ret CreateExportWorkflowActionUsingJira1Parameters + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1) GetParametersOk() (*CreateExportWorkflowActionUsingJira1Parameters, bool) { + if o == nil { + return nil, false + } + return &o.Parameters, true +} + +// SetParameters sets field value +func (o *CreateExportWorkflowActionUsingJira1) SetParameters(v CreateExportWorkflowActionUsingJira1Parameters) { + o.Parameters = v +} + +// GetIntegrationKind returns the IntegrationKind field value +func (o *CreateExportWorkflowActionUsingJira1) GetIntegrationKind() ENUMJIRA { + if o == nil { + var ret ENUMJIRA + return ret + } + + return o.IntegrationKind +} + +// GetIntegrationKindOk returns a tuple with the IntegrationKind field value +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1) GetIntegrationKindOk() (*ENUMJIRA, bool) { + if o == nil { + return nil, false + } + return &o.IntegrationKind, true +} + +// SetIntegrationKind sets field value +func (o *CreateExportWorkflowActionUsingJira1) SetIntegrationKind(v ENUMJIRA) { + o.IntegrationKind = v +} + +// GetIntegrationId returns the IntegrationId field value +func (o *CreateExportWorkflowActionUsingJira1) GetIntegrationId() string { + if o == nil { + var ret string + return ret + } + + return o.IntegrationId +} + +// GetIntegrationIdOk returns a tuple with the IntegrationId field value +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1) GetIntegrationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IntegrationId, true +} + +// SetIntegrationId sets field value +func (o *CreateExportWorkflowActionUsingJira1) SetIntegrationId(v string) { + o.IntegrationId = v +} + +func (o CreateExportWorkflowActionUsingJira1) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateExportWorkflowActionUsingJira1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["parameters"] = o.Parameters + toSerialize["integrationKind"] = o.IntegrationKind + toSerialize["integrationId"] = o.IntegrationId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateExportWorkflowActionUsingJira1) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "parameters", + "integrationKind", + "integrationId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateExportWorkflowActionUsingJira1 := _CreateExportWorkflowActionUsingJira1{} + + err = json.Unmarshal(data, &varCreateExportWorkflowActionUsingJira1) + + if err != nil { + return err + } + + *o = CreateExportWorkflowActionUsingJira1(varCreateExportWorkflowActionUsingJira1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "parameters") + delete(additionalProperties, "integrationKind") + delete(additionalProperties, "integrationId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateExportWorkflowActionUsingJira1 struct { + value *CreateExportWorkflowActionUsingJira1 + isSet bool +} + +func (v NullableCreateExportWorkflowActionUsingJira1) Get() *CreateExportWorkflowActionUsingJira1 { + return v.value +} + +func (v *NullableCreateExportWorkflowActionUsingJira1) Set(val *CreateExportWorkflowActionUsingJira1) { + v.value = val + v.isSet = true +} + +func (v NullableCreateExportWorkflowActionUsingJira1) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateExportWorkflowActionUsingJira1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateExportWorkflowActionUsingJira1(val *CreateExportWorkflowActionUsingJira1) *NullableCreateExportWorkflowActionUsingJira1 { + return &NullableCreateExportWorkflowActionUsingJira1{value: val, isSet: true} +} + +func (v NullableCreateExportWorkflowActionUsingJira1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateExportWorkflowActionUsingJira1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_export_workflow_action_using_jira_1_parameters.go b/pkg/api/v3/model_create_export_workflow_action_using_jira_1_parameters.go new file mode 100644 index 00000000..103919ca --- /dev/null +++ b/pkg/api/v3/model_create_export_workflow_action_using_jira_1_parameters.go @@ -0,0 +1,335 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateExportWorkflowActionUsingJira1Parameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateExportWorkflowActionUsingJira1Parameters{} + +// CreateExportWorkflowActionUsingJira1Parameters struct for CreateExportWorkflowActionUsingJira1Parameters +type CreateExportWorkflowActionUsingJira1Parameters struct { + ProjectId string `json:"projectId"` + IssueType string `json:"issueType"` + PropertiesMapping []CreateExportWorkflowActionUsingJiraParametersPropertiesMappingInner `json:"propertiesMapping"` + StaticPropertiesMapping []CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner `json:"staticPropertiesMapping,omitempty"` + ParentKey *string `json:"parentKey,omitempty"` + DisableDefaultMappings *bool `json:"disableDefaultMappings,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateExportWorkflowActionUsingJira1Parameters CreateExportWorkflowActionUsingJira1Parameters + +// NewCreateExportWorkflowActionUsingJira1Parameters instantiates a new CreateExportWorkflowActionUsingJira1Parameters 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 NewCreateExportWorkflowActionUsingJira1Parameters(projectId string, issueType string, propertiesMapping []CreateExportWorkflowActionUsingJiraParametersPropertiesMappingInner) *CreateExportWorkflowActionUsingJira1Parameters { + this := CreateExportWorkflowActionUsingJira1Parameters{} + this.ProjectId = projectId + this.IssueType = issueType + this.PropertiesMapping = propertiesMapping + return &this +} + +// NewCreateExportWorkflowActionUsingJira1ParametersWithDefaults instantiates a new CreateExportWorkflowActionUsingJira1Parameters 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 NewCreateExportWorkflowActionUsingJira1ParametersWithDefaults() *CreateExportWorkflowActionUsingJira1Parameters { + this := CreateExportWorkflowActionUsingJira1Parameters{} + return &this +} + +// GetProjectId returns the ProjectId field value +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetProjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectId +} + +// GetProjectIdOk returns a tuple with the ProjectId field value +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetProjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectId, true +} + +// SetProjectId sets field value +func (o *CreateExportWorkflowActionUsingJira1Parameters) SetProjectId(v string) { + o.ProjectId = v +} + +// GetIssueType returns the IssueType field value +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetIssueType() string { + if o == nil { + var ret string + return ret + } + + return o.IssueType +} + +// GetIssueTypeOk returns a tuple with the IssueType field value +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetIssueTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IssueType, true +} + +// SetIssueType sets field value +func (o *CreateExportWorkflowActionUsingJira1Parameters) SetIssueType(v string) { + o.IssueType = v +} + +// GetPropertiesMapping returns the PropertiesMapping field value +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetPropertiesMapping() []CreateExportWorkflowActionUsingJiraParametersPropertiesMappingInner { + if o == nil { + var ret []CreateExportWorkflowActionUsingJiraParametersPropertiesMappingInner + return ret + } + + return o.PropertiesMapping +} + +// GetPropertiesMappingOk returns a tuple with the PropertiesMapping field value +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetPropertiesMappingOk() ([]CreateExportWorkflowActionUsingJiraParametersPropertiesMappingInner, bool) { + if o == nil { + return nil, false + } + return o.PropertiesMapping, true +} + +// SetPropertiesMapping sets field value +func (o *CreateExportWorkflowActionUsingJira1Parameters) SetPropertiesMapping(v []CreateExportWorkflowActionUsingJiraParametersPropertiesMappingInner) { + o.PropertiesMapping = v +} + +// GetStaticPropertiesMapping returns the StaticPropertiesMapping field value if set, zero value otherwise. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetStaticPropertiesMapping() []CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner { + if o == nil || IsNil(o.StaticPropertiesMapping) { + var ret []CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner + return ret + } + return o.StaticPropertiesMapping +} + +// GetStaticPropertiesMappingOk returns a tuple with the StaticPropertiesMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetStaticPropertiesMappingOk() ([]CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner, bool) { + if o == nil || IsNil(o.StaticPropertiesMapping) { + return nil, false + } + return o.StaticPropertiesMapping, true +} + +// HasStaticPropertiesMapping returns a boolean if a field has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) HasStaticPropertiesMapping() bool { + if o != nil && !IsNil(o.StaticPropertiesMapping) { + return true + } + + return false +} + +// SetStaticPropertiesMapping gets a reference to the given []CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner and assigns it to the StaticPropertiesMapping field. +func (o *CreateExportWorkflowActionUsingJira1Parameters) SetStaticPropertiesMapping(v []CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) { + o.StaticPropertiesMapping = v +} + +// GetParentKey returns the ParentKey field value if set, zero value otherwise. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetParentKey() string { + if o == nil || IsNil(o.ParentKey) { + var ret string + return ret + } + return *o.ParentKey +} + +// GetParentKeyOk returns a tuple with the ParentKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetParentKeyOk() (*string, bool) { + if o == nil || IsNil(o.ParentKey) { + return nil, false + } + return o.ParentKey, true +} + +// HasParentKey returns a boolean if a field has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) HasParentKey() bool { + if o != nil && !IsNil(o.ParentKey) { + return true + } + + return false +} + +// SetParentKey gets a reference to the given string and assigns it to the ParentKey field. +func (o *CreateExportWorkflowActionUsingJira1Parameters) SetParentKey(v string) { + o.ParentKey = &v +} + +// GetDisableDefaultMappings returns the DisableDefaultMappings field value if set, zero value otherwise. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetDisableDefaultMappings() bool { + if o == nil || IsNil(o.DisableDefaultMappings) { + var ret bool + return ret + } + return *o.DisableDefaultMappings +} + +// GetDisableDefaultMappingsOk returns a tuple with the DisableDefaultMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) GetDisableDefaultMappingsOk() (*bool, bool) { + if o == nil || IsNil(o.DisableDefaultMappings) { + return nil, false + } + return o.DisableDefaultMappings, true +} + +// HasDisableDefaultMappings returns a boolean if a field has been set. +func (o *CreateExportWorkflowActionUsingJira1Parameters) HasDisableDefaultMappings() bool { + if o != nil && !IsNil(o.DisableDefaultMappings) { + return true + } + + return false +} + +// SetDisableDefaultMappings gets a reference to the given bool and assigns it to the DisableDefaultMappings field. +func (o *CreateExportWorkflowActionUsingJira1Parameters) SetDisableDefaultMappings(v bool) { + o.DisableDefaultMappings = &v +} + +func (o CreateExportWorkflowActionUsingJira1Parameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateExportWorkflowActionUsingJira1Parameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["projectId"] = o.ProjectId + toSerialize["issueType"] = o.IssueType + toSerialize["propertiesMapping"] = o.PropertiesMapping + if !IsNil(o.StaticPropertiesMapping) { + toSerialize["staticPropertiesMapping"] = o.StaticPropertiesMapping + } + if !IsNil(o.ParentKey) { + toSerialize["parentKey"] = o.ParentKey + } + if !IsNil(o.DisableDefaultMappings) { + toSerialize["disableDefaultMappings"] = o.DisableDefaultMappings + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateExportWorkflowActionUsingJira1Parameters) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "projectId", + "issueType", + "propertiesMapping", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateExportWorkflowActionUsingJira1Parameters := _CreateExportWorkflowActionUsingJira1Parameters{} + + err = json.Unmarshal(data, &varCreateExportWorkflowActionUsingJira1Parameters) + + if err != nil { + return err + } + + *o = CreateExportWorkflowActionUsingJira1Parameters(varCreateExportWorkflowActionUsingJira1Parameters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "projectId") + delete(additionalProperties, "issueType") + delete(additionalProperties, "propertiesMapping") + delete(additionalProperties, "staticPropertiesMapping") + delete(additionalProperties, "parentKey") + delete(additionalProperties, "disableDefaultMappings") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateExportWorkflowActionUsingJira1Parameters struct { + value *CreateExportWorkflowActionUsingJira1Parameters + isSet bool +} + +func (v NullableCreateExportWorkflowActionUsingJira1Parameters) Get() *CreateExportWorkflowActionUsingJira1Parameters { + return v.value +} + +func (v *NullableCreateExportWorkflowActionUsingJira1Parameters) Set(val *CreateExportWorkflowActionUsingJira1Parameters) { + v.value = val + v.isSet = true +} + +func (v NullableCreateExportWorkflowActionUsingJira1Parameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateExportWorkflowActionUsingJira1Parameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateExportWorkflowActionUsingJira1Parameters(val *CreateExportWorkflowActionUsingJira1Parameters) *NullableCreateExportWorkflowActionUsingJira1Parameters { + return &NullableCreateExportWorkflowActionUsingJira1Parameters{value: val, isSet: true} +} + +func (v NullableCreateExportWorkflowActionUsingJira1Parameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateExportWorkflowActionUsingJira1Parameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters.go b/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters.go index ea10f5fa..bfde5244 100644 --- a/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters.go +++ b/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters.go @@ -25,6 +25,7 @@ type CreateExportWorkflowActionUsingJiraParameters struct { PropertiesMapping []CreateExportWorkflowActionUsingJiraParametersPropertiesMappingInner `json:"propertiesMapping"` StaticPropertiesMapping []CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner `json:"staticPropertiesMapping,omitempty"` ParentKey *string `json:"parentKey,omitempty"` + DisableDefaultMappings *bool `json:"disableDefaultMappings,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,6 +40,8 @@ func NewCreateExportWorkflowActionUsingJiraParameters(projectId string, issueTyp this.ProjectId = projectId this.IssueType = issueType this.PropertiesMapping = propertiesMapping + var parentKey string = "null" + this.ParentKey = &parentKey return &this } @@ -47,6 +50,8 @@ func NewCreateExportWorkflowActionUsingJiraParameters(projectId string, issueTyp // but it doesn't guarantee that properties required by API are set func NewCreateExportWorkflowActionUsingJiraParametersWithDefaults() *CreateExportWorkflowActionUsingJiraParameters { this := CreateExportWorkflowActionUsingJiraParameters{} + var parentKey string = "null" + this.ParentKey = &parentKey return &this } @@ -186,6 +191,38 @@ func (o *CreateExportWorkflowActionUsingJiraParameters) SetParentKey(v string) { o.ParentKey = &v } +// GetDisableDefaultMappings returns the DisableDefaultMappings field value if set, zero value otherwise. +func (o *CreateExportWorkflowActionUsingJiraParameters) GetDisableDefaultMappings() bool { + if o == nil || IsNil(o.DisableDefaultMappings) { + var ret bool + return ret + } + return *o.DisableDefaultMappings +} + +// GetDisableDefaultMappingsOk returns a tuple with the DisableDefaultMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateExportWorkflowActionUsingJiraParameters) GetDisableDefaultMappingsOk() (*bool, bool) { + if o == nil || IsNil(o.DisableDefaultMappings) { + return nil, false + } + return o.DisableDefaultMappings, true +} + +// HasDisableDefaultMappings returns a boolean if a field has been set. +func (o *CreateExportWorkflowActionUsingJiraParameters) HasDisableDefaultMappings() bool { + if o != nil && !IsNil(o.DisableDefaultMappings) { + return true + } + + return false +} + +// SetDisableDefaultMappings gets a reference to the given bool and assigns it to the DisableDefaultMappings field. +func (o *CreateExportWorkflowActionUsingJiraParameters) SetDisableDefaultMappings(v bool) { + o.DisableDefaultMappings = &v +} + func (o CreateExportWorkflowActionUsingJiraParameters) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -205,6 +242,9 @@ func (o CreateExportWorkflowActionUsingJiraParameters) ToMap() (map[string]inter if !IsNil(o.ParentKey) { toSerialize["parentKey"] = o.ParentKey } + if !IsNil(o.DisableDefaultMappings) { + toSerialize["disableDefaultMappings"] = o.DisableDefaultMappings + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -255,6 +295,7 @@ func (o *CreateExportWorkflowActionUsingJiraParameters) UnmarshalJSON(data []byt delete(additionalProperties, "propertiesMapping") delete(additionalProperties, "staticPropertiesMapping") delete(additionalProperties, "parentKey") + delete(additionalProperties, "disableDefaultMappings") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters_static_properties_mapping_inner.go b/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters_static_properties_mapping_inner.go index 597a7821..843e4973 100644 --- a/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters_static_properties_mapping_inner.go +++ b/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters_static_properties_mapping_inner.go @@ -20,8 +20,9 @@ var _ MappedNullable = &CreateExportWorkflowActionUsingJiraParametersStaticPrope // CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner struct for CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner type CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner struct { - JiraPropertyId string `json:"jiraPropertyId"` - Value *string `json:"value,omitempty"` + JiraPropertyId string `json:"jiraPropertyId"` + Value NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue `json:"value"` + Append *bool `json:"append,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +32,12 @@ type _CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner // 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 NewCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner(jiraPropertyId string) *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner { +func NewCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner(jiraPropertyId string, value NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner { this := CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner{} this.JiraPropertyId = jiraPropertyId + this.Value = value + var append bool = false + this.Append = &append return &this } @@ -42,6 +46,8 @@ func NewCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInne // but it doesn't guarantee that properties required by API are set func NewCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerWithDefaults() *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner { this := CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner{} + var append bool = false + this.Append = &append return &this } @@ -69,36 +75,62 @@ func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInn o.JiraPropertyId = v } -// GetValue returns the Value field value if set, zero value otherwise. -func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) GetValue() string { - if o == nil || IsNil(o.Value) { - var ret string +// GetValue returns the Value field value +// If the value is explicit nil, the zero value for CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue will be returned +func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) GetValue() CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue { + if o == nil || o.Value.Get() == nil { + var ret CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue + return ret + } + + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) GetValueOk() (*CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// SetValue sets field value +func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) SetValue(v CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) { + o.Value.Set(&v) +} + +// GetAppend returns the Append field value if set, zero value otherwise. +func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) GetAppend() bool { + if o == nil || IsNil(o.Append) { + var ret bool return ret } - return *o.Value + return *o.Append } -// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// GetAppendOk returns a tuple with the Append field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) GetValueOk() (*string, bool) { - if o == nil || IsNil(o.Value) { +func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) GetAppendOk() (*bool, bool) { + if o == nil || IsNil(o.Append) { return nil, false } - return o.Value, true + return o.Append, true } -// HasValue returns a boolean if a field has been set. -func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) HasValue() bool { - if o != nil && !IsNil(o.Value) { +// HasAppend returns a boolean if a field has been set. +func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) HasAppend() bool { + if o != nil && !IsNil(o.Append) { return true } return false } -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) SetValue(v string) { - o.Value = &v +// SetAppend gets a reference to the given bool and assigns it to the Append field. +func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) SetAppend(v bool) { + o.Append = &v } func (o CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) MarshalJSON() ([]byte, error) { @@ -112,8 +144,9 @@ func (o CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInne func (o CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["jiraPropertyId"] = o.JiraPropertyId - if !IsNil(o.Value) { - toSerialize["value"] = o.Value + toSerialize["value"] = o.Value.Get() + if !IsNil(o.Append) { + toSerialize["append"] = o.Append } for key, value := range o.AdditionalProperties { @@ -129,6 +162,7 @@ func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInn // that every required field exists as a key in the generic map. requiredProperties := []string{ "jiraPropertyId", + "value", } allProperties := make(map[string]interface{}) @@ -160,6 +194,7 @@ func (o *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInn if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "jiraPropertyId") delete(additionalProperties, "value") + delete(additionalProperties, "append") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters_static_properties_mapping_inner_value.go b/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters_static_properties_mapping_inner_value.go new file mode 100644 index 00000000..7160f4e6 --- /dev/null +++ b/pkg/api/v3/model_create_export_workflow_action_using_jira_parameters_static_properties_mapping_inner_value.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue struct for CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue +type CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue struct { + ArrayOfString *[]string + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) UnmarshalJSON(data []byte) error { + var err error + // this object is nullable so check if the payload is null or empty string + if string(data) == "" || string(data) == "{}" { + return nil + } + + // try to unmarshal JSON data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + return nil // data stored in dst.ArrayOfString, return on the first match + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue struct { + value *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue + isSet bool +} + +func (v NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) Get() *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue { + return v.value +} + +func (v *NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) Set(val *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) { + v.value = val + v.isSet = true +} + +func (v NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue(val *CreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) *NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue { + return &NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue{value: val, isSet: true} +} + +func (v NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateExportWorkflowActionUsingJiraParametersStaticPropertiesMappingInnerValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_export_workflow_action_using_wiz_parameters.go b/pkg/api/v3/model_create_export_workflow_action_using_wiz_parameters.go index 02e1412a..bffba11d 100644 --- a/pkg/api/v3/model_create_export_workflow_action_using_wiz_parameters.go +++ b/pkg/api/v3/model_create_export_workflow_action_using_wiz_parameters.go @@ -19,7 +19,7 @@ var _ MappedNullable = &CreateExportWorkflowActionUsingWizParameters{} // CreateExportWorkflowActionUsingWizParameters struct for CreateExportWorkflowActionUsingWizParameters type CreateExportWorkflowActionUsingWizParameters struct { - MinSeverity *ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY `json:"minSeverity,omitempty"` + MinSeverity *ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY `json:"minSeverity,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,9 +43,9 @@ func NewCreateExportWorkflowActionUsingWizParametersWithDefaults() *CreateExport } // GetMinSeverity returns the MinSeverity field value if set, zero value otherwise. -func (o *CreateExportWorkflowActionUsingWizParameters) GetMinSeverity() ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY { +func (o *CreateExportWorkflowActionUsingWizParameters) GetMinSeverity() ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY { if o == nil || IsNil(o.MinSeverity) { - var ret ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY + var ret ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY return ret } return *o.MinSeverity @@ -53,7 +53,7 @@ func (o *CreateExportWorkflowActionUsingWizParameters) GetMinSeverity() ENUMPROP // GetMinSeverityOk returns a tuple with the MinSeverity field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateExportWorkflowActionUsingWizParameters) GetMinSeverityOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY, bool) { +func (o *CreateExportWorkflowActionUsingWizParameters) GetMinSeverityOk() (*ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY, bool) { if o == nil || IsNil(o.MinSeverity) { return nil, false } @@ -69,8 +69,8 @@ func (o *CreateExportWorkflowActionUsingWizParameters) HasMinSeverity() bool { return false } -// SetMinSeverity gets a reference to the given ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY and assigns it to the MinSeverity field. -func (o *CreateExportWorkflowActionUsingWizParameters) SetMinSeverity(v ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY) { +// SetMinSeverity gets a reference to the given ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY and assigns it to the MinSeverity field. +func (o *CreateExportWorkflowActionUsingWizParameters) SetMinSeverity(v ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) { o.MinSeverity = &v } diff --git a/pkg/api/v3/model_location_detailed_1.go b/pkg/api/v3/model_create_location_200_response.go similarity index 70% rename from pkg/api/v3/model_location_detailed_1.go rename to pkg/api/v3/model_create_location_200_response.go index 7a9aa91a..601f2f79 100644 --- a/pkg/api/v3/model_location_detailed_1.go +++ b/pkg/api/v3/model_create_location_200_response.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the LocationDetailed1 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LocationDetailed1{} +// checks if the CreateLocation200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateLocation200Response{} -// LocationDetailed1 Detailed information about a location -type LocationDetailed1 struct { +// CreateLocation200Response struct for CreateLocation200Response +type CreateLocation200Response struct { // The location ID. Id *string `json:"id,omitempty"` // The name of the location. @@ -36,14 +36,14 @@ type LocationDetailed1 struct { AdditionalProperties map[string]interface{} } -type _LocationDetailed1 LocationDetailed1 +type _CreateLocation200Response CreateLocation200Response -// NewLocationDetailed1 instantiates a new LocationDetailed1 object +// NewCreateLocation200Response instantiates a new CreateLocation200Response 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 NewLocationDetailed1(links LocationSummarizedLinks) *LocationDetailed1 { - this := LocationDetailed1{} +func NewCreateLocation200Response(links LocationSummarizedLinks) *CreateLocation200Response { + this := CreateLocation200Response{} var id string = "00000000-0000-0000-0000-000000000000" this.Id = &id var name string = "Location Name" @@ -60,11 +60,11 @@ func NewLocationDetailed1(links LocationSummarizedLinks) *LocationDetailed1 { return &this } -// NewLocationDetailed1WithDefaults instantiates a new LocationDetailed1 object +// NewCreateLocation200ResponseWithDefaults instantiates a new CreateLocation200Response 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 NewLocationDetailed1WithDefaults() *LocationDetailed1 { - this := LocationDetailed1{} +func NewCreateLocation200ResponseWithDefaults() *CreateLocation200Response { + this := CreateLocation200Response{} var id string = "00000000-0000-0000-0000-000000000000" this.Id = &id var name string = "Location Name" @@ -81,7 +81,7 @@ func NewLocationDetailed1WithDefaults() *LocationDetailed1 { } // GetId returns the Id field value if set, zero value otherwise. -func (o *LocationDetailed1) GetId() string { +func (o *CreateLocation200Response) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -91,7 +91,7 @@ func (o *LocationDetailed1) GetId() string { // 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 *LocationDetailed1) GetIdOk() (*string, bool) { +func (o *CreateLocation200Response) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -99,7 +99,7 @@ func (o *LocationDetailed1) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *LocationDetailed1) HasId() bool { +func (o *CreateLocation200Response) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -108,12 +108,12 @@ func (o *LocationDetailed1) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *LocationDetailed1) SetId(v string) { +func (o *CreateLocation200Response) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *LocationDetailed1) GetName() string { +func (o *CreateLocation200Response) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -123,7 +123,7 @@ func (o *LocationDetailed1) GetName() string { // 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 *LocationDetailed1) GetNameOk() (*string, bool) { +func (o *CreateLocation200Response) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -131,7 +131,7 @@ func (o *LocationDetailed1) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *LocationDetailed1) HasName() bool { +func (o *CreateLocation200Response) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -140,12 +140,12 @@ func (o *LocationDetailed1) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *LocationDetailed1) SetName(v string) { +func (o *CreateLocation200Response) SetName(v string) { o.Name = &v } // GetType returns the Type field value if set, zero value otherwise. -func (o *LocationDetailed1) GetType() string { +func (o *CreateLocation200Response) GetType() string { if o == nil || IsNil(o.Type) { var ret string return ret @@ -155,7 +155,7 @@ func (o *LocationDetailed1) GetType() string { // 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 *LocationDetailed1) GetTypeOk() (*string, bool) { +func (o *CreateLocation200Response) GetTypeOk() (*string, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -163,7 +163,7 @@ func (o *LocationDetailed1) GetTypeOk() (*string, bool) { } // HasType returns a boolean if a field has been set. -func (o *LocationDetailed1) HasType() bool { +func (o *CreateLocation200Response) HasType() bool { if o != nil && !IsNil(o.Type) { return true } @@ -172,12 +172,12 @@ func (o *LocationDetailed1) HasType() bool { } // SetType gets a reference to the given string and assigns it to the Type field. -func (o *LocationDetailed1) SetType(v string) { +func (o *CreateLocation200Response) SetType(v string) { o.Type = &v } // GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *LocationDetailed1) GetEnabled() bool { +func (o *CreateLocation200Response) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { var ret bool return ret @@ -187,7 +187,7 @@ func (o *LocationDetailed1) GetEnabled() bool { // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LocationDetailed1) GetEnabledOk() (*bool, bool) { +func (o *CreateLocation200Response) GetEnabledOk() (*bool, bool) { if o == nil || IsNil(o.Enabled) { return nil, false } @@ -195,7 +195,7 @@ func (o *LocationDetailed1) GetEnabledOk() (*bool, bool) { } // HasEnabled returns a boolean if a field has been set. -func (o *LocationDetailed1) HasEnabled() bool { +func (o *CreateLocation200Response) HasEnabled() bool { if o != nil && !IsNil(o.Enabled) { return true } @@ -204,12 +204,12 @@ func (o *LocationDetailed1) HasEnabled() bool { } // SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *LocationDetailed1) SetEnabled(v bool) { +func (o *CreateLocation200Response) SetEnabled(v bool) { o.Enabled = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *LocationDetailed1) GetCreatedAt() string { +func (o *CreateLocation200Response) GetCreatedAt() string { if o == nil || IsNil(o.CreatedAt) { var ret string return ret @@ -219,7 +219,7 @@ func (o *LocationDetailed1) GetCreatedAt() string { // 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 *LocationDetailed1) GetCreatedAtOk() (*string, bool) { +func (o *CreateLocation200Response) GetCreatedAtOk() (*string, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } @@ -227,7 +227,7 @@ func (o *LocationDetailed1) GetCreatedAtOk() (*string, bool) { } // HasCreatedAt returns a boolean if a field has been set. -func (o *LocationDetailed1) HasCreatedAt() bool { +func (o *CreateLocation200Response) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } @@ -236,12 +236,12 @@ func (o *LocationDetailed1) HasCreatedAt() bool { } // SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. -func (o *LocationDetailed1) SetCreatedAt(v string) { +func (o *CreateLocation200Response) SetCreatedAt(v string) { o.CreatedAt = &v } // GetLastSeenAt returns the LastSeenAt field value if set, zero value otherwise. -func (o *LocationDetailed1) GetLastSeenAt() string { +func (o *CreateLocation200Response) GetLastSeenAt() string { if o == nil || IsNil(o.LastSeenAt) { var ret string return ret @@ -251,7 +251,7 @@ func (o *LocationDetailed1) GetLastSeenAt() string { // GetLastSeenAtOk returns a tuple with the LastSeenAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LocationDetailed1) GetLastSeenAtOk() (*string, bool) { +func (o *CreateLocation200Response) GetLastSeenAtOk() (*string, bool) { if o == nil || IsNil(o.LastSeenAt) { return nil, false } @@ -259,7 +259,7 @@ func (o *LocationDetailed1) GetLastSeenAtOk() (*string, bool) { } // HasLastSeenAt returns a boolean if a field has been set. -func (o *LocationDetailed1) HasLastSeenAt() bool { +func (o *CreateLocation200Response) HasLastSeenAt() bool { if o != nil && !IsNil(o.LastSeenAt) { return true } @@ -268,12 +268,12 @@ func (o *LocationDetailed1) HasLastSeenAt() bool { } // SetLastSeenAt gets a reference to the given string and assigns it to the LastSeenAt field. -func (o *LocationDetailed1) SetLastSeenAt(v string) { +func (o *CreateLocation200Response) SetLastSeenAt(v string) { o.LastSeenAt = &v } // GetLinks returns the Links field value -func (o *LocationDetailed1) GetLinks() LocationSummarizedLinks { +func (o *CreateLocation200Response) GetLinks() LocationSummarizedLinks { if o == nil { var ret LocationSummarizedLinks return ret @@ -284,7 +284,7 @@ func (o *LocationDetailed1) GetLinks() LocationSummarizedLinks { // GetLinksOk returns a tuple with the Links field value // and a boolean to check if the value has been set. -func (o *LocationDetailed1) GetLinksOk() (*LocationSummarizedLinks, bool) { +func (o *CreateLocation200Response) GetLinksOk() (*LocationSummarizedLinks, bool) { if o == nil { return nil, false } @@ -292,11 +292,11 @@ func (o *LocationDetailed1) GetLinksOk() (*LocationSummarizedLinks, bool) { } // SetLinks sets field value -func (o *LocationDetailed1) SetLinks(v LocationSummarizedLinks) { +func (o *CreateLocation200Response) SetLinks(v LocationSummarizedLinks) { o.Links = v } -func (o LocationDetailed1) MarshalJSON() ([]byte, error) { +func (o CreateLocation200Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -304,7 +304,7 @@ func (o LocationDetailed1) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o LocationDetailed1) ToMap() (map[string]interface{}, error) { +func (o CreateLocation200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Id) { toSerialize["id"] = o.Id @@ -333,7 +333,7 @@ func (o LocationDetailed1) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *LocationDetailed1) UnmarshalJSON(data []byte) (err error) { +func (o *CreateLocation200Response) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -355,15 +355,15 @@ func (o *LocationDetailed1) UnmarshalJSON(data []byte) (err error) { } } - varLocationDetailed1 := _LocationDetailed1{} + varCreateLocation200Response := _CreateLocation200Response{} - err = json.Unmarshal(data, &varLocationDetailed1) + err = json.Unmarshal(data, &varCreateLocation200Response) if err != nil { return err } - *o = LocationDetailed1(varLocationDetailed1) + *o = CreateLocation200Response(varCreateLocation200Response) additionalProperties := make(map[string]interface{}) @@ -381,38 +381,38 @@ func (o *LocationDetailed1) UnmarshalJSON(data []byte) (err error) { return err } -type NullableLocationDetailed1 struct { - value *LocationDetailed1 +type NullableCreateLocation200Response struct { + value *CreateLocation200Response isSet bool } -func (v NullableLocationDetailed1) Get() *LocationDetailed1 { +func (v NullableCreateLocation200Response) Get() *CreateLocation200Response { return v.value } -func (v *NullableLocationDetailed1) Set(val *LocationDetailed1) { +func (v *NullableCreateLocation200Response) Set(val *CreateLocation200Response) { v.value = val v.isSet = true } -func (v NullableLocationDetailed1) IsSet() bool { +func (v NullableCreateLocation200Response) IsSet() bool { return v.isSet } -func (v *NullableLocationDetailed1) Unset() { +func (v *NullableCreateLocation200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableLocationDetailed1(val *LocationDetailed1) *NullableLocationDetailed1 { - return &NullableLocationDetailed1{value: val, isSet: true} +func NewNullableCreateLocation200Response(val *CreateLocation200Response) *NullableCreateLocation200Response { + return &NullableCreateLocation200Response{value: val, isSet: true} } -func (v NullableLocationDetailed1) MarshalJSON() ([]byte, error) { +func (v NullableCreateLocation200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableLocationDetailed1) UnmarshalJSON(src []byte) error { +func (v *NullableCreateLocation200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_create_notify_workflow_action_using_email_parameters_to.go b/pkg/api/v3/model_create_notify_workflow_action_using_email_parameters_to.go index 61c73b23..bfd2e1b7 100644 --- a/pkg/api/v3/model_create_notify_workflow_action_using_email_parameters_to.go +++ b/pkg/api/v3/model_create_notify_workflow_action_using_email_parameters_to.go @@ -22,6 +22,7 @@ type CreateNotifyWorkflowActionUsingEmailParametersTo struct { CreateNotifyWorkflowActionUsingEmailParametersToOneOf1 *CreateNotifyWorkflowActionUsingEmailParametersToOneOf1 CreateNotifyWorkflowActionUsingEmailParametersToOneOf2 *CreateNotifyWorkflowActionUsingEmailParametersToOneOf2 CreateNotifyWorkflowActionUsingEmailParametersToOneOf3 *CreateNotifyWorkflowActionUsingEmailParametersToOneOf3 + CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 } // CreateNotifyWorkflowActionUsingEmailParametersToOneOfAsCreateNotifyWorkflowActionUsingEmailParametersTo is a convenience function that returns CreateNotifyWorkflowActionUsingEmailParametersToOneOf wrapped in CreateNotifyWorkflowActionUsingEmailParametersTo @@ -52,6 +53,13 @@ func CreateNotifyWorkflowActionUsingEmailParametersToOneOf3AsCreateNotifyWorkflo } } +// CreateNotifyWorkflowActionUsingEmailParametersToOneOf4AsCreateNotifyWorkflowActionUsingEmailParametersTo is a convenience function that returns CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 wrapped in CreateNotifyWorkflowActionUsingEmailParametersTo +func CreateNotifyWorkflowActionUsingEmailParametersToOneOf4AsCreateNotifyWorkflowActionUsingEmailParametersTo(v *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) CreateNotifyWorkflowActionUsingEmailParametersTo { + return CreateNotifyWorkflowActionUsingEmailParametersTo{ + CreateNotifyWorkflowActionUsingEmailParametersToOneOf4: v, + } +} + // Unmarshal JSON data into one of the pointers in the struct func (dst *CreateNotifyWorkflowActionUsingEmailParametersTo) UnmarshalJSON(data []byte) error { var err error @@ -124,12 +132,30 @@ func (dst *CreateNotifyWorkflowActionUsingEmailParametersTo) UnmarshalJSON(data dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf3 = nil } + // try to unmarshal data into CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 + err = newStrictDecoder(data).Decode(&dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) + if err == nil { + jsonCreateNotifyWorkflowActionUsingEmailParametersToOneOf4, _ := json.Marshal(dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) + if string(jsonCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) == "{}" { // empty struct + dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 = nil + } else { + if err = validator.Validate(dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4); err != nil { + dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 = nil + } else { + match++ + } + } + } else { + dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 = nil + } + if match > 1 { // more than 1 match // reset to nil dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf = nil dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf1 = nil dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf2 = nil dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf3 = nil + dst.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 = nil return fmt.Errorf("data matches more than one schema in oneOf(CreateNotifyWorkflowActionUsingEmailParametersTo)") } else if match == 1 { @@ -157,6 +183,10 @@ func (src CreateNotifyWorkflowActionUsingEmailParametersTo) MarshalJSON() ([]byt return json.Marshal(&src.CreateNotifyWorkflowActionUsingEmailParametersToOneOf3) } + if src.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 != nil { + return json.Marshal(&src.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) + } + return nil, nil // no data in oneOf schemas } @@ -181,6 +211,10 @@ func (obj *CreateNotifyWorkflowActionUsingEmailParametersTo) GetActualInstance() return obj.CreateNotifyWorkflowActionUsingEmailParametersToOneOf3 } + if obj.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 != nil { + return obj.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 + } + // all schemas are nil return nil } @@ -203,6 +237,10 @@ func (obj CreateNotifyWorkflowActionUsingEmailParametersTo) GetActualInstanceVal return *obj.CreateNotifyWorkflowActionUsingEmailParametersToOneOf3 } + if obj.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 != nil { + return *obj.CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 + } + // all schemas are nil return nil } diff --git a/pkg/api/v3/model_create_notify_workflow_action_using_email_parameters_to_one_of_4.go b/pkg/api/v3/model_create_notify_workflow_action_using_email_parameters_to_one_of_4.go new file mode 100644 index 00000000..9aadbb5f --- /dev/null +++ b/pkg/api/v3/model_create_notify_workflow_action_using_email_parameters_to_one_of_4.go @@ -0,0 +1,166 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateNotifyWorkflowActionUsingEmailParametersToOneOf4{} + +// CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 struct for CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 +type CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 struct { + Type ENUMORGANIZATIONADMINS `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 + +// NewCreateNotifyWorkflowActionUsingEmailParametersToOneOf4 instantiates a new CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 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 NewCreateNotifyWorkflowActionUsingEmailParametersToOneOf4(type_ ENUMORGANIZATIONADMINS) *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 { + this := CreateNotifyWorkflowActionUsingEmailParametersToOneOf4{} + this.Type = type_ + return &this +} + +// NewCreateNotifyWorkflowActionUsingEmailParametersToOneOf4WithDefaults instantiates a new CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 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 NewCreateNotifyWorkflowActionUsingEmailParametersToOneOf4WithDefaults() *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 { + this := CreateNotifyWorkflowActionUsingEmailParametersToOneOf4{} + return &this +} + +// GetType returns the Type field value +func (o *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) GetType() ENUMORGANIZATIONADMINS { + if o == nil { + var ret ENUMORGANIZATIONADMINS + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) GetTypeOk() (*ENUMORGANIZATIONADMINS, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) SetType(v ENUMORGANIZATIONADMINS) { + o.Type = v +} + +func (o CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateNotifyWorkflowActionUsingEmailParametersToOneOf4 := _CreateNotifyWorkflowActionUsingEmailParametersToOneOf4{} + + err = json.Unmarshal(data, &varCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) + + if err != nil { + return err + } + + *o = CreateNotifyWorkflowActionUsingEmailParametersToOneOf4(varCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4 struct { + value *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 + isSet bool +} + +func (v NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) Get() *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4 { + return v.value +} + +func (v *NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) Set(val *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) { + v.value = val + v.isSet = true +} + +func (v NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4(val *CreateNotifyWorkflowActionUsingEmailParametersToOneOf4) *NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4 { + return &NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4{value: val, isSet: true} +} + +func (v NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateNotifyWorkflowActionUsingEmailParametersToOneOf4) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_pentest_rest_profile_request.go b/pkg/api/v3/model_create_pentest_rest_profile_request.go new file mode 100644 index 00000000..8851b30d --- /dev/null +++ b/pkg/api/v3/model_create_pentest_rest_profile_request.go @@ -0,0 +1,580 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreatePentestRestProfileRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreatePentestRestProfileRequest{} + +// CreatePentestRestProfileRequest struct for CreatePentestRestProfileRequest +type CreatePentestRestProfileRequest struct { + // The asset ID for the profile + AssetId string `json:"assetId"` + // The configuration as JSON string + Configuration *string `json:"configuration,omitempty"` + // The cron string + Cron *string `json:"cron,omitempty"` + // The name of the profile + Name string `json:"name"` + // The description of the profile + Description *string `json:"description,omitempty"` + // The proxy ID for the profile + ProxyId *string `json:"proxyId,omitempty"` + // The ID of the asset schema for the profile + SchemaId *string `json:"schemaId,omitempty"` + // The tags IDs for the profile + TagsIds []string `json:"tagsIds,omitempty"` + // The extra asset IDs for the profile + ExtraAssetIds []string `json:"extraAssetIds,omitempty"` + // Whether to use all available extra assets for the profile + UseAllAvailableExtraAssets *bool `json:"useAllAvailableExtraAssets,omitempty"` + Mode *ENUMPROPERTIESMODE `json:"mode,omitempty"` + // Whether to start the scan immediately + Start *bool `json:"start,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreatePentestRestProfileRequest CreatePentestRestProfileRequest + +// NewCreatePentestRestProfileRequest instantiates a new CreatePentestRestProfileRequest 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 NewCreatePentestRestProfileRequest(assetId string, name string) *CreatePentestRestProfileRequest { + this := CreatePentestRestProfileRequest{} + this.AssetId = assetId + this.Name = name + var start bool = true + this.Start = &start + return &this +} + +// NewCreatePentestRestProfileRequestWithDefaults instantiates a new CreatePentestRestProfileRequest 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 NewCreatePentestRestProfileRequestWithDefaults() *CreatePentestRestProfileRequest { + this := CreatePentestRestProfileRequest{} + var start bool = true + this.Start = &start + return &this +} + +// GetAssetId returns the AssetId field value +func (o *CreatePentestRestProfileRequest) GetAssetId() string { + if o == nil { + var ret string + return ret + } + + return o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetAssetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssetId, true +} + +// SetAssetId sets field value +func (o *CreatePentestRestProfileRequest) SetAssetId(v string) { + o.AssetId = v +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetConfiguration() string { + if o == nil || IsNil(o.Configuration) { + var ret string + return ret + } + return *o.Configuration +} + +// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetConfigurationOk() (*string, bool) { + if o == nil || IsNil(o.Configuration) { + return nil, false + } + return o.Configuration, true +} + +// HasConfiguration returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasConfiguration() bool { + if o != nil && !IsNil(o.Configuration) { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given string and assigns it to the Configuration field. +func (o *CreatePentestRestProfileRequest) SetConfiguration(v string) { + o.Configuration = &v +} + +// GetCron returns the Cron field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetCron() string { + if o == nil || IsNil(o.Cron) { + var ret string + return ret + } + return *o.Cron +} + +// GetCronOk returns a tuple with the Cron field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetCronOk() (*string, bool) { + if o == nil || IsNil(o.Cron) { + return nil, false + } + return o.Cron, true +} + +// HasCron returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasCron() bool { + if o != nil && !IsNil(o.Cron) { + return true + } + + return false +} + +// SetCron gets a reference to the given string and assigns it to the Cron field. +func (o *CreatePentestRestProfileRequest) SetCron(v string) { + o.Cron = &v +} + +// GetName returns the Name field value +func (o *CreatePentestRestProfileRequest) 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 *CreatePentestRestProfileRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreatePentestRestProfileRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *CreatePentestRestProfileRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreatePentestRestProfileRequest) SetDescription(v string) { + o.Description = &v +} + +// GetProxyId returns the ProxyId field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetProxyId() string { + if o == nil || IsNil(o.ProxyId) { + var ret string + return ret + } + return *o.ProxyId +} + +// GetProxyIdOk returns a tuple with the ProxyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetProxyIdOk() (*string, bool) { + if o == nil || IsNil(o.ProxyId) { + return nil, false + } + return o.ProxyId, true +} + +// HasProxyId returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasProxyId() bool { + if o != nil && !IsNil(o.ProxyId) { + return true + } + + return false +} + +// SetProxyId gets a reference to the given string and assigns it to the ProxyId field. +func (o *CreatePentestRestProfileRequest) SetProxyId(v string) { + o.ProxyId = &v +} + +// GetSchemaId returns the SchemaId field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetSchemaId() string { + if o == nil || IsNil(o.SchemaId) { + var ret string + return ret + } + return *o.SchemaId +} + +// GetSchemaIdOk returns a tuple with the SchemaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetSchemaIdOk() (*string, bool) { + if o == nil || IsNil(o.SchemaId) { + return nil, false + } + return o.SchemaId, true +} + +// HasSchemaId returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasSchemaId() bool { + if o != nil && !IsNil(o.SchemaId) { + return true + } + + return false +} + +// SetSchemaId gets a reference to the given string and assigns it to the SchemaId field. +func (o *CreatePentestRestProfileRequest) SetSchemaId(v string) { + o.SchemaId = &v +} + +// GetTagsIds returns the TagsIds field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetTagsIds() []string { + if o == nil || IsNil(o.TagsIds) { + var ret []string + return ret + } + return o.TagsIds +} + +// GetTagsIdsOk returns a tuple with the TagsIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetTagsIdsOk() ([]string, bool) { + if o == nil || IsNil(o.TagsIds) { + return nil, false + } + return o.TagsIds, true +} + +// HasTagsIds returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasTagsIds() bool { + if o != nil && !IsNil(o.TagsIds) { + return true + } + + return false +} + +// SetTagsIds gets a reference to the given []string and assigns it to the TagsIds field. +func (o *CreatePentestRestProfileRequest) SetTagsIds(v []string) { + o.TagsIds = v +} + +// GetExtraAssetIds returns the ExtraAssetIds field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetExtraAssetIds() []string { + if o == nil || IsNil(o.ExtraAssetIds) { + var ret []string + return ret + } + return o.ExtraAssetIds +} + +// GetExtraAssetIdsOk returns a tuple with the ExtraAssetIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetExtraAssetIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ExtraAssetIds) { + return nil, false + } + return o.ExtraAssetIds, true +} + +// HasExtraAssetIds returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasExtraAssetIds() bool { + if o != nil && !IsNil(o.ExtraAssetIds) { + return true + } + + return false +} + +// SetExtraAssetIds gets a reference to the given []string and assigns it to the ExtraAssetIds field. +func (o *CreatePentestRestProfileRequest) SetExtraAssetIds(v []string) { + o.ExtraAssetIds = v +} + +// GetUseAllAvailableExtraAssets returns the UseAllAvailableExtraAssets field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetUseAllAvailableExtraAssets() bool { + if o == nil || IsNil(o.UseAllAvailableExtraAssets) { + var ret bool + return ret + } + return *o.UseAllAvailableExtraAssets +} + +// GetUseAllAvailableExtraAssetsOk returns a tuple with the UseAllAvailableExtraAssets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetUseAllAvailableExtraAssetsOk() (*bool, bool) { + if o == nil || IsNil(o.UseAllAvailableExtraAssets) { + return nil, false + } + return o.UseAllAvailableExtraAssets, true +} + +// HasUseAllAvailableExtraAssets returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasUseAllAvailableExtraAssets() bool { + if o != nil && !IsNil(o.UseAllAvailableExtraAssets) { + return true + } + + return false +} + +// SetUseAllAvailableExtraAssets gets a reference to the given bool and assigns it to the UseAllAvailableExtraAssets field. +func (o *CreatePentestRestProfileRequest) SetUseAllAvailableExtraAssets(v bool) { + o.UseAllAvailableExtraAssets = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetMode() ENUMPROPERTIESMODE { + if o == nil || IsNil(o.Mode) { + var ret ENUMPROPERTIESMODE + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetModeOk() (*ENUMPROPERTIESMODE, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given ENUMPROPERTIESMODE and assigns it to the Mode field. +func (o *CreatePentestRestProfileRequest) SetMode(v ENUMPROPERTIESMODE) { + o.Mode = &v +} + +// GetStart returns the Start field value if set, zero value otherwise. +func (o *CreatePentestRestProfileRequest) GetStart() bool { + if o == nil || IsNil(o.Start) { + var ret bool + return ret + } + return *o.Start +} + +// GetStartOk returns a tuple with the Start field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatePentestRestProfileRequest) GetStartOk() (*bool, bool) { + if o == nil || IsNil(o.Start) { + return nil, false + } + return o.Start, true +} + +// HasStart returns a boolean if a field has been set. +func (o *CreatePentestRestProfileRequest) HasStart() bool { + if o != nil && !IsNil(o.Start) { + return true + } + + return false +} + +// SetStart gets a reference to the given bool and assigns it to the Start field. +func (o *CreatePentestRestProfileRequest) SetStart(v bool) { + o.Start = &v +} + +func (o CreatePentestRestProfileRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreatePentestRestProfileRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["assetId"] = o.AssetId + if !IsNil(o.Configuration) { + toSerialize["configuration"] = o.Configuration + } + if !IsNil(o.Cron) { + toSerialize["cron"] = o.Cron + } + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.ProxyId) { + toSerialize["proxyId"] = o.ProxyId + } + if !IsNil(o.SchemaId) { + toSerialize["schemaId"] = o.SchemaId + } + if !IsNil(o.TagsIds) { + toSerialize["tagsIds"] = o.TagsIds + } + if !IsNil(o.ExtraAssetIds) { + toSerialize["extraAssetIds"] = o.ExtraAssetIds + } + if !IsNil(o.UseAllAvailableExtraAssets) { + toSerialize["useAllAvailableExtraAssets"] = o.UseAllAvailableExtraAssets + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + if !IsNil(o.Start) { + toSerialize["start"] = o.Start + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreatePentestRestProfileRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "assetId", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreatePentestRestProfileRequest := _CreatePentestRestProfileRequest{} + + err = json.Unmarshal(data, &varCreatePentestRestProfileRequest) + + if err != nil { + return err + } + + *o = CreatePentestRestProfileRequest(varCreatePentestRestProfileRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assetId") + delete(additionalProperties, "configuration") + delete(additionalProperties, "cron") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "proxyId") + delete(additionalProperties, "schemaId") + delete(additionalProperties, "tagsIds") + delete(additionalProperties, "extraAssetIds") + delete(additionalProperties, "useAllAvailableExtraAssets") + delete(additionalProperties, "mode") + delete(additionalProperties, "start") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreatePentestRestProfileRequest struct { + value *CreatePentestRestProfileRequest + isSet bool +} + +func (v NullableCreatePentestRestProfileRequest) Get() *CreatePentestRestProfileRequest { + return v.value +} + +func (v *NullableCreatePentestRestProfileRequest) Set(val *CreatePentestRestProfileRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreatePentestRestProfileRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreatePentestRestProfileRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreatePentestRestProfileRequest(val *CreatePentestRestProfileRequest) *NullableCreatePentestRestProfileRequest { + return &NullableCreatePentestRestProfileRequest{value: val, isSet: true} +} + +func (v NullableCreatePentestRestProfileRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreatePentestRestProfileRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_create_tag_200_response.go b/pkg/api/v3/model_create_tag_200_response.go new file mode 100644 index 00000000..a6f2c89d --- /dev/null +++ b/pkg/api/v3/model_create_tag_200_response.go @@ -0,0 +1,227 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateTag200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateTag200Response{} + +// CreateTag200Response struct for CreateTag200Response +type CreateTag200Response struct { + // The id of the tag + Id string `json:"id"` + // The name of the tag + Name string `json:"name"` + // The color of the tag + Color string `json:"color"` + AdditionalProperties map[string]interface{} +} + +type _CreateTag200Response CreateTag200Response + +// NewCreateTag200Response instantiates a new CreateTag200Response 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 NewCreateTag200Response(id string, name string, color string) *CreateTag200Response { + this := CreateTag200Response{} + this.Id = id + this.Name = name + this.Color = color + return &this +} + +// NewCreateTag200ResponseWithDefaults instantiates a new CreateTag200Response 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 NewCreateTag200ResponseWithDefaults() *CreateTag200Response { + this := CreateTag200Response{} + return &this +} + +// GetId returns the Id field value +func (o *CreateTag200Response) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CreateTag200Response) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CreateTag200Response) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *CreateTag200Response) 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 *CreateTag200Response) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateTag200Response) SetName(v string) { + o.Name = v +} + +// GetColor returns the Color field value +func (o *CreateTag200Response) GetColor() string { + if o == nil { + var ret string + return ret + } + + return o.Color +} + +// GetColorOk returns a tuple with the Color field value +// and a boolean to check if the value has been set. +func (o *CreateTag200Response) GetColorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Color, true +} + +// SetColor sets field value +func (o *CreateTag200Response) SetColor(v string) { + o.Color = v +} + +func (o CreateTag200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateTag200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["color"] = o.Color + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateTag200Response) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "name", + "color", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateTag200Response := _CreateTag200Response{} + + err = json.Unmarshal(data, &varCreateTag200Response) + + if err != nil { + return err + } + + *o = CreateTag200Response(varCreateTag200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "color") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateTag200Response struct { + value *CreateTag200Response + isSet bool +} + +func (v NullableCreateTag200Response) Get() *CreateTag200Response { + return v.value +} + +func (v *NullableCreateTag200Response) Set(val *CreateTag200Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateTag200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateTag200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateTag200Response(val *CreateTag200Response) *NullableCreateTag200Response { + return &NullableCreateTag200Response{value: val, isSet: true} +} + +func (v NullableCreateTag200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateTag200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_upload_summary.go b/pkg/api/v3/model_create_upload_signed_url_200_response.go similarity index 56% rename from pkg/api/v3/model_upload_summary.go rename to pkg/api/v3/model_create_upload_signed_url_200_response.go index 658954ac..1cf5ef1c 100644 --- a/pkg/api/v3/model_upload_summary.go +++ b/pkg/api/v3/model_create_upload_signed_url_200_response.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the UploadSummary type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UploadSummary{} +// checks if the CreateUploadSignedUrl200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateUploadSignedUrl200Response{} -// UploadSummary Summary information about an upload -type UploadSummary struct { +// CreateUploadSignedUrl200Response struct for CreateUploadSignedUrl200Response +type CreateUploadSignedUrl200Response struct { // The signed URL to upload a file to the Escape Platform. Url string `json:"url"` // The signed URL ID to upload a file to the Escape Platform. @@ -27,29 +27,29 @@ type UploadSummary struct { AdditionalProperties map[string]interface{} } -type _UploadSummary UploadSummary +type _CreateUploadSignedUrl200Response CreateUploadSignedUrl200Response -// NewUploadSummary instantiates a new UploadSummary object +// NewCreateUploadSignedUrl200Response instantiates a new CreateUploadSignedUrl200Response 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 NewUploadSummary(url string, id string) *UploadSummary { - this := UploadSummary{} +func NewCreateUploadSignedUrl200Response(url string, id string) *CreateUploadSignedUrl200Response { + this := CreateUploadSignedUrl200Response{} this.Url = url this.Id = id return &this } -// NewUploadSummaryWithDefaults instantiates a new UploadSummary object +// NewCreateUploadSignedUrl200ResponseWithDefaults instantiates a new CreateUploadSignedUrl200Response 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 NewUploadSummaryWithDefaults() *UploadSummary { - this := UploadSummary{} +func NewCreateUploadSignedUrl200ResponseWithDefaults() *CreateUploadSignedUrl200Response { + this := CreateUploadSignedUrl200Response{} return &this } // GetUrl returns the Url field value -func (o *UploadSummary) GetUrl() string { +func (o *CreateUploadSignedUrl200Response) GetUrl() string { if o == nil { var ret string return ret @@ -60,7 +60,7 @@ func (o *UploadSummary) GetUrl() string { // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. -func (o *UploadSummary) GetUrlOk() (*string, bool) { +func (o *CreateUploadSignedUrl200Response) GetUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -68,12 +68,12 @@ func (o *UploadSummary) GetUrlOk() (*string, bool) { } // SetUrl sets field value -func (o *UploadSummary) SetUrl(v string) { +func (o *CreateUploadSignedUrl200Response) SetUrl(v string) { o.Url = v } // GetId returns the Id field value -func (o *UploadSummary) GetId() string { +func (o *CreateUploadSignedUrl200Response) GetId() string { if o == nil { var ret string return ret @@ -84,7 +84,7 @@ func (o *UploadSummary) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *UploadSummary) GetIdOk() (*string, bool) { +func (o *CreateUploadSignedUrl200Response) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -92,11 +92,11 @@ func (o *UploadSummary) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *UploadSummary) SetId(v string) { +func (o *CreateUploadSignedUrl200Response) SetId(v string) { o.Id = v } -func (o UploadSummary) MarshalJSON() ([]byte, error) { +func (o CreateUploadSignedUrl200Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -104,7 +104,7 @@ func (o UploadSummary) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o UploadSummary) ToMap() (map[string]interface{}, error) { +func (o CreateUploadSignedUrl200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["url"] = o.Url toSerialize["id"] = o.Id @@ -116,7 +116,7 @@ func (o UploadSummary) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *UploadSummary) UnmarshalJSON(data []byte) (err error) { +func (o *CreateUploadSignedUrl200Response) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -139,15 +139,15 @@ func (o *UploadSummary) UnmarshalJSON(data []byte) (err error) { } } - varUploadSummary := _UploadSummary{} + varCreateUploadSignedUrl200Response := _CreateUploadSignedUrl200Response{} - err = json.Unmarshal(data, &varUploadSummary) + err = json.Unmarshal(data, &varCreateUploadSignedUrl200Response) if err != nil { return err } - *o = UploadSummary(varUploadSummary) + *o = CreateUploadSignedUrl200Response(varCreateUploadSignedUrl200Response) additionalProperties := make(map[string]interface{}) @@ -160,38 +160,38 @@ func (o *UploadSummary) UnmarshalJSON(data []byte) (err error) { return err } -type NullableUploadSummary struct { - value *UploadSummary +type NullableCreateUploadSignedUrl200Response struct { + value *CreateUploadSignedUrl200Response isSet bool } -func (v NullableUploadSummary) Get() *UploadSummary { +func (v NullableCreateUploadSignedUrl200Response) Get() *CreateUploadSignedUrl200Response { return v.value } -func (v *NullableUploadSummary) Set(val *UploadSummary) { +func (v *NullableCreateUploadSignedUrl200Response) Set(val *CreateUploadSignedUrl200Response) { v.value = val v.isSet = true } -func (v NullableUploadSummary) IsSet() bool { +func (v NullableCreateUploadSignedUrl200Response) IsSet() bool { return v.isSet } -func (v *NullableUploadSummary) Unset() { +func (v *NullableCreateUploadSignedUrl200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableUploadSummary(val *UploadSummary) *NullableUploadSummary { - return &NullableUploadSummary{value: val, isSet: true} +func NewNullableCreateUploadSignedUrl200Response(val *CreateUploadSignedUrl200Response) *NullableCreateUploadSignedUrl200Response { + return &NullableCreateUploadSignedUrl200Response{value: val, isSet: true} } -func (v NullableUploadSummary) MarshalJSON() ([]byte, error) { +func (v NullableCreateUploadSignedUrl200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableUploadSummary) UnmarshalJSON(src []byte) error { +func (v *NullableCreateUploadSignedUrl200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_assets.go b/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_assets.go index 6fe9b019..e907b454 100644 --- a/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_assets.go +++ b/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_assets.go @@ -20,8 +20,8 @@ var _ MappedNullable = &CreateWorkflowFilterUsingCustomFilterOnAssets{} // CreateWorkflowFilterUsingCustomFilterOnAssets struct for CreateWorkflowFilterUsingCustomFilterOnAssets type CreateWorkflowFilterUsingCustomFilterOnAssets struct { - Type ENUMASSETS `json:"type"` - Filter CreateWorkflowFilterUsingCustomFilterOnAssetsFilter `json:"filter"` + Type ENUMASSETS `json:"type"` + Filter interface{} `json:"filter"` AdditionalProperties map[string]interface{} } @@ -31,7 +31,7 @@ type _CreateWorkflowFilterUsingCustomFilterOnAssets CreateWorkflowFilterUsingCus // 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 NewCreateWorkflowFilterUsingCustomFilterOnAssets(type_ ENUMASSETS, filter CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) *CreateWorkflowFilterUsingCustomFilterOnAssets { +func NewCreateWorkflowFilterUsingCustomFilterOnAssets(type_ ENUMASSETS, filter interface{}) *CreateWorkflowFilterUsingCustomFilterOnAssets { this := CreateWorkflowFilterUsingCustomFilterOnAssets{} this.Type = type_ this.Filter = filter @@ -71,9 +71,10 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnAssets) SetType(v ENUMASSETS) { } // GetFilter returns the Filter field value -func (o *CreateWorkflowFilterUsingCustomFilterOnAssets) GetFilter() CreateWorkflowFilterUsingCustomFilterOnAssetsFilter { +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CreateWorkflowFilterUsingCustomFilterOnAssets) GetFilter() interface{} { if o == nil { - var ret CreateWorkflowFilterUsingCustomFilterOnAssetsFilter + var ret interface{} return ret } @@ -82,15 +83,16 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnAssets) GetFilter() CreateWorkfl // GetFilterOk returns a tuple with the Filter field value // and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssets) GetFilterOk() (*CreateWorkflowFilterUsingCustomFilterOnAssetsFilter, bool) { - if o == nil { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateWorkflowFilterUsingCustomFilterOnAssets) GetFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.Filter) { return nil, false } return &o.Filter, true } // SetFilter sets field value -func (o *CreateWorkflowFilterUsingCustomFilterOnAssets) SetFilter(v CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) { +func (o *CreateWorkflowFilterUsingCustomFilterOnAssets) SetFilter(v interface{}) { o.Filter = v } @@ -105,7 +107,9 @@ func (o CreateWorkflowFilterUsingCustomFilterOnAssets) MarshalJSON() ([]byte, er func (o CreateWorkflowFilterUsingCustomFilterOnAssets) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type - toSerialize["filter"] = o.Filter + if o.Filter != nil { + toSerialize["filter"] = o.Filter + } for key, value := range o.AdditionalProperties { toSerialize[key] = value diff --git a/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_assets_filter.go b/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_assets_filter.go deleted file mode 100644 index efaf9978..00000000 --- a/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_assets_filter.go +++ /dev/null @@ -1,1226 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the CreateWorkflowFilterUsingCustomFilterOnAssetsFilter type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateWorkflowFilterUsingCustomFilterOnAssetsFilter{} - -// CreateWorkflowFilterUsingCustomFilterOnAssetsFilter struct for CreateWorkflowFilterUsingCustomFilterOnAssetsFilter -type CreateWorkflowFilterUsingCustomFilterOnAssetsFilter struct { - Search *string `json:"search,omitempty"` - Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks,omitempty"` - TagIds []string `json:"tagIds,omitempty"` - IntegrationIds []string `json:"integrationIds,omitempty"` - Types []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE `json:"types,omitempty"` - Classes []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS `json:"classes,omitempty"` - ProjectIds []string `json:"projectIds,omitempty"` - NoProjects *bool `json:"noProjects,omitempty"` - ApplicationIds []string `json:"applicationIds,omitempty"` - FoundByProfileIds []string `json:"foundByProfileIds,omitempty"` - ScanIds []string `json:"scanIds,omitempty"` - ScannerKinds []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS `json:"scannerKinds,omitempty"` - Domains []string `json:"domains,omitempty"` - Environments []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESENVIRONMENT `json:"environments,omitempty"` - CloudProviders []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER `json:"cloudProviders,omitempty"` - WafProviders []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESWAFPROVIDER `json:"wafProviders,omitempty"` - Statuses []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS `json:"statuses,omitempty"` - Severities []ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY `json:"severities,omitempty"` - SourceAssetIds []string `json:"sourceAssetIds,omitempty"` - SourceAssets *bool `json:"sourceAssets,omitempty"` - ParentAssetIds []string `json:"parentAssetIds,omitempty"` - SchemaIds []string `json:"schemaIds,omitempty"` - AssetIds []string `json:"assetIds,omitempty"` - BlacklistAssetIds []string `json:"blacklistAssetIds,omitempty"` - ManuallyCreated *bool `json:"manuallyCreated,omitempty"` - Visibility []ENUMPROPERTIESVISIBILITY `json:"visibility,omitempty"` - Ports []float32 `json:"ports,omitempty"` - Frameworks []ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS `json:"frameworks,omitempty"` - PrioritizeFavorites *bool `json:"prioritizeFavorites,omitempty"` - NoTags *bool `json:"noTags,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _CreateWorkflowFilterUsingCustomFilterOnAssetsFilter CreateWorkflowFilterUsingCustomFilterOnAssetsFilter - -// NewCreateWorkflowFilterUsingCustomFilterOnAssetsFilter instantiates a new CreateWorkflowFilterUsingCustomFilterOnAssetsFilter 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 NewCreateWorkflowFilterUsingCustomFilterOnAssetsFilter() *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter { - this := CreateWorkflowFilterUsingCustomFilterOnAssetsFilter{} - return &this -} - -// NewCreateWorkflowFilterUsingCustomFilterOnAssetsFilterWithDefaults instantiates a new CreateWorkflowFilterUsingCustomFilterOnAssetsFilter 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 NewCreateWorkflowFilterUsingCustomFilterOnAssetsFilterWithDefaults() *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter { - this := CreateWorkflowFilterUsingCustomFilterOnAssetsFilter{} - return &this -} - -// GetSearch returns the Search field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSearch() string { - if o == nil || IsNil(o.Search) { - var ret string - return ret - } - return *o.Search -} - -// GetSearchOk returns a tuple with the Search field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSearchOk() (*string, bool) { - if o == nil || IsNil(o.Search) { - return nil, false - } - return o.Search, true -} - -// HasSearch returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasSearch() bool { - if o != nil && !IsNil(o.Search) { - return true - } - - return false -} - -// SetSearch gets a reference to the given string and assigns it to the Search field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetSearch(v string) { - o.Search = &v -} - -// GetRisks returns the Risks field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS { - if o == nil || IsNil(o.Risks) { - var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS - return ret - } - return o.Risks -} - -// GetRisksOk returns a tuple with the Risks field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, bool) { - if o == nil || IsNil(o.Risks) { - return nil, false - } - return o.Risks, true -} - -// HasRisks returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasRisks() bool { - if o != nil && !IsNil(o.Risks) { - return true - } - - return false -} - -// SetRisks gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS and assigns it to the Risks field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetRisks(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS) { - o.Risks = v -} - -// GetTagIds returns the TagIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetTagIds() []string { - if o == nil || IsNil(o.TagIds) { - var ret []string - return ret - } - return o.TagIds -} - -// GetTagIdsOk returns a tuple with the TagIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetTagIdsOk() ([]string, bool) { - if o == nil || IsNil(o.TagIds) { - return nil, false - } - return o.TagIds, true -} - -// HasTagIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasTagIds() bool { - if o != nil && !IsNil(o.TagIds) { - return true - } - - return false -} - -// SetTagIds gets a reference to the given []string and assigns it to the TagIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetTagIds(v []string) { - o.TagIds = v -} - -// GetIntegrationIds returns the IntegrationIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetIntegrationIds() []string { - if o == nil || IsNil(o.IntegrationIds) { - var ret []string - return ret - } - return o.IntegrationIds -} - -// GetIntegrationIdsOk returns a tuple with the IntegrationIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetIntegrationIdsOk() ([]string, bool) { - if o == nil || IsNil(o.IntegrationIds) { - return nil, false - } - return o.IntegrationIds, true -} - -// HasIntegrationIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasIntegrationIds() bool { - if o != nil && !IsNil(o.IntegrationIds) { - return true - } - - return false -} - -// SetIntegrationIds gets a reference to the given []string and assigns it to the IntegrationIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetIntegrationIds(v []string) { - o.IntegrationIds = v -} - -// GetTypes returns the Types field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetTypes() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE { - if o == nil || IsNil(o.Types) { - var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE - return ret - } - return o.Types -} - -// GetTypesOk returns a tuple with the Types field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetTypesOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, bool) { - if o == nil || IsNil(o.Types) { - return nil, false - } - return o.Types, true -} - -// HasTypes returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasTypes() bool { - if o != nil && !IsNil(o.Types) { - return true - } - - return false -} - -// SetTypes gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE and assigns it to the Types field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetTypes(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE) { - o.Types = v -} - -// GetClasses returns the Classes field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetClasses() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS { - if o == nil || IsNil(o.Classes) { - var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS - return ret - } - return o.Classes -} - -// GetClassesOk returns a tuple with the Classes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetClassesOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, bool) { - if o == nil || IsNil(o.Classes) { - return nil, false - } - return o.Classes, true -} - -// HasClasses returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasClasses() bool { - if o != nil && !IsNil(o.Classes) { - return true - } - - return false -} - -// SetClasses gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS and assigns it to the Classes field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetClasses(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS) { - o.Classes = v -} - -// GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetProjectIds() []string { - if o == nil || IsNil(o.ProjectIds) { - var ret []string - return ret - } - return o.ProjectIds -} - -// GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetProjectIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ProjectIds) { - return nil, false - } - return o.ProjectIds, true -} - -// HasProjectIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasProjectIds() bool { - if o != nil && !IsNil(o.ProjectIds) { - return true - } - - return false -} - -// SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetProjectIds(v []string) { - o.ProjectIds = v -} - -// GetNoProjects returns the NoProjects field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetNoProjects() bool { - if o == nil || IsNil(o.NoProjects) { - var ret bool - return ret - } - return *o.NoProjects -} - -// GetNoProjectsOk returns a tuple with the NoProjects field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetNoProjectsOk() (*bool, bool) { - if o == nil || IsNil(o.NoProjects) { - return nil, false - } - return o.NoProjects, true -} - -// HasNoProjects returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasNoProjects() bool { - if o != nil && !IsNil(o.NoProjects) { - return true - } - - return false -} - -// SetNoProjects gets a reference to the given bool and assigns it to the NoProjects field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetNoProjects(v bool) { - o.NoProjects = &v -} - -// GetApplicationIds returns the ApplicationIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetApplicationIds() []string { - if o == nil || IsNil(o.ApplicationIds) { - var ret []string - return ret - } - return o.ApplicationIds -} - -// GetApplicationIdsOk returns a tuple with the ApplicationIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetApplicationIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ApplicationIds) { - return nil, false - } - return o.ApplicationIds, true -} - -// HasApplicationIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasApplicationIds() bool { - if o != nil && !IsNil(o.ApplicationIds) { - return true - } - - return false -} - -// SetApplicationIds gets a reference to the given []string and assigns it to the ApplicationIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetApplicationIds(v []string) { - o.ApplicationIds = v -} - -// GetFoundByProfileIds returns the FoundByProfileIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetFoundByProfileIds() []string { - if o == nil || IsNil(o.FoundByProfileIds) { - var ret []string - return ret - } - return o.FoundByProfileIds -} - -// GetFoundByProfileIdsOk returns a tuple with the FoundByProfileIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetFoundByProfileIdsOk() ([]string, bool) { - if o == nil || IsNil(o.FoundByProfileIds) { - return nil, false - } - return o.FoundByProfileIds, true -} - -// HasFoundByProfileIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasFoundByProfileIds() bool { - if o != nil && !IsNil(o.FoundByProfileIds) { - return true - } - - return false -} - -// SetFoundByProfileIds gets a reference to the given []string and assigns it to the FoundByProfileIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetFoundByProfileIds(v []string) { - o.FoundByProfileIds = v -} - -// GetScanIds returns the ScanIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetScanIds() []string { - if o == nil || IsNil(o.ScanIds) { - var ret []string - return ret - } - return o.ScanIds -} - -// GetScanIdsOk returns a tuple with the ScanIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetScanIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ScanIds) { - return nil, false - } - return o.ScanIds, true -} - -// HasScanIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasScanIds() bool { - if o != nil && !IsNil(o.ScanIds) { - return true - } - - return false -} - -// SetScanIds gets a reference to the given []string and assigns it to the ScanIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetScanIds(v []string) { - o.ScanIds = v -} - -// GetScannerKinds returns the ScannerKinds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetScannerKinds() []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS { - if o == nil || IsNil(o.ScannerKinds) { - var ret []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS - return ret - } - return o.ScannerKinds -} - -// GetScannerKindsOk returns a tuple with the ScannerKinds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetScannerKindsOk() ([]ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS, bool) { - if o == nil || IsNil(o.ScannerKinds) { - return nil, false - } - return o.ScannerKinds, true -} - -// HasScannerKinds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasScannerKinds() bool { - if o != nil && !IsNil(o.ScannerKinds) { - return true - } - - return false -} - -// SetScannerKinds gets a reference to the given []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS and assigns it to the ScannerKinds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetScannerKinds(v []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS) { - o.ScannerKinds = v -} - -// GetDomains returns the Domains field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetDomains() []string { - if o == nil || IsNil(o.Domains) { - var ret []string - return ret - } - return o.Domains -} - -// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetDomainsOk() ([]string, bool) { - if o == nil || IsNil(o.Domains) { - return nil, false - } - return o.Domains, true -} - -// HasDomains returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasDomains() bool { - if o != nil && !IsNil(o.Domains) { - return true - } - - return false -} - -// SetDomains gets a reference to the given []string and assigns it to the Domains field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetDomains(v []string) { - o.Domains = v -} - -// GetEnvironments returns the Environments field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetEnvironments() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESENVIRONMENT { - if o == nil || IsNil(o.Environments) { - var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESENVIRONMENT - return ret - } - return o.Environments -} - -// GetEnvironmentsOk returns a tuple with the Environments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetEnvironmentsOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESENVIRONMENT, bool) { - if o == nil || IsNil(o.Environments) { - return nil, false - } - return o.Environments, true -} - -// HasEnvironments returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasEnvironments() bool { - if o != nil && !IsNil(o.Environments) { - return true - } - - return false -} - -// SetEnvironments gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESENVIRONMENT and assigns it to the Environments field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetEnvironments(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESENVIRONMENT) { - o.Environments = v -} - -// GetCloudProviders returns the CloudProviders field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetCloudProviders() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER { - if o == nil || IsNil(o.CloudProviders) { - var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER - return ret - } - return o.CloudProviders -} - -// GetCloudProvidersOk returns a tuple with the CloudProviders field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetCloudProvidersOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER, bool) { - if o == nil || IsNil(o.CloudProviders) { - return nil, false - } - return o.CloudProviders, true -} - -// HasCloudProviders returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasCloudProviders() bool { - if o != nil && !IsNil(o.CloudProviders) { - return true - } - - return false -} - -// SetCloudProviders gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER and assigns it to the CloudProviders field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetCloudProviders(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESCLOUDPROVIDER) { - o.CloudProviders = v -} - -// GetWafProviders returns the WafProviders field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetWafProviders() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESWAFPROVIDER { - if o == nil || IsNil(o.WafProviders) { - var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESWAFPROVIDER - return ret - } - return o.WafProviders -} - -// GetWafProvidersOk returns a tuple with the WafProviders field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetWafProvidersOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESWAFPROVIDER, bool) { - if o == nil || IsNil(o.WafProviders) { - return nil, false - } - return o.WafProviders, true -} - -// HasWafProviders returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasWafProviders() bool { - if o != nil && !IsNil(o.WafProviders) { - return true - } - - return false -} - -// SetWafProviders gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESWAFPROVIDER and assigns it to the WafProviders field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetWafProviders(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESWAFPROVIDER) { - o.WafProviders = v -} - -// GetStatuses returns the Statuses field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetStatuses() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS { - if o == nil || IsNil(o.Statuses) { - var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS - return ret - } - return o.Statuses -} - -// GetStatusesOk returns a tuple with the Statuses field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetStatusesOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, bool) { - if o == nil || IsNil(o.Statuses) { - return nil, false - } - return o.Statuses, true -} - -// HasStatuses returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasStatuses() bool { - if o != nil && !IsNil(o.Statuses) { - return true - } - - return false -} - -// SetStatuses gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS and assigns it to the Statuses field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetStatuses(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS) { - o.Statuses = v -} - -// GetSeverities returns the Severities field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSeverities() []ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY { - if o == nil || IsNil(o.Severities) { - var ret []ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY - return ret - } - return o.Severities -} - -// GetSeveritiesOk returns a tuple with the Severities field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSeveritiesOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY, bool) { - if o == nil || IsNil(o.Severities) { - return nil, false - } - return o.Severities, true -} - -// HasSeverities returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasSeverities() bool { - if o != nil && !IsNil(o.Severities) { - return true - } - - return false -} - -// SetSeverities gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY and assigns it to the Severities field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetSeverities(v []ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY) { - o.Severities = v -} - -// GetSourceAssetIds returns the SourceAssetIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSourceAssetIds() []string { - if o == nil || IsNil(o.SourceAssetIds) { - var ret []string - return ret - } - return o.SourceAssetIds -} - -// GetSourceAssetIdsOk returns a tuple with the SourceAssetIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSourceAssetIdsOk() ([]string, bool) { - if o == nil || IsNil(o.SourceAssetIds) { - return nil, false - } - return o.SourceAssetIds, true -} - -// HasSourceAssetIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasSourceAssetIds() bool { - if o != nil && !IsNil(o.SourceAssetIds) { - return true - } - - return false -} - -// SetSourceAssetIds gets a reference to the given []string and assigns it to the SourceAssetIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetSourceAssetIds(v []string) { - o.SourceAssetIds = v -} - -// GetSourceAssets returns the SourceAssets field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSourceAssets() bool { - if o == nil || IsNil(o.SourceAssets) { - var ret bool - return ret - } - return *o.SourceAssets -} - -// GetSourceAssetsOk returns a tuple with the SourceAssets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSourceAssetsOk() (*bool, bool) { - if o == nil || IsNil(o.SourceAssets) { - return nil, false - } - return o.SourceAssets, true -} - -// HasSourceAssets returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasSourceAssets() bool { - if o != nil && !IsNil(o.SourceAssets) { - return true - } - - return false -} - -// SetSourceAssets gets a reference to the given bool and assigns it to the SourceAssets field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetSourceAssets(v bool) { - o.SourceAssets = &v -} - -// GetParentAssetIds returns the ParentAssetIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetParentAssetIds() []string { - if o == nil || IsNil(o.ParentAssetIds) { - var ret []string - return ret - } - return o.ParentAssetIds -} - -// GetParentAssetIdsOk returns a tuple with the ParentAssetIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetParentAssetIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ParentAssetIds) { - return nil, false - } - return o.ParentAssetIds, true -} - -// HasParentAssetIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasParentAssetIds() bool { - if o != nil && !IsNil(o.ParentAssetIds) { - return true - } - - return false -} - -// SetParentAssetIds gets a reference to the given []string and assigns it to the ParentAssetIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetParentAssetIds(v []string) { - o.ParentAssetIds = v -} - -// GetSchemaIds returns the SchemaIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSchemaIds() []string { - if o == nil || IsNil(o.SchemaIds) { - var ret []string - return ret - } - return o.SchemaIds -} - -// GetSchemaIdsOk returns a tuple with the SchemaIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetSchemaIdsOk() ([]string, bool) { - if o == nil || IsNil(o.SchemaIds) { - return nil, false - } - return o.SchemaIds, true -} - -// HasSchemaIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasSchemaIds() bool { - if o != nil && !IsNil(o.SchemaIds) { - return true - } - - return false -} - -// SetSchemaIds gets a reference to the given []string and assigns it to the SchemaIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetSchemaIds(v []string) { - o.SchemaIds = v -} - -// GetAssetIds returns the AssetIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetAssetIds() []string { - if o == nil || IsNil(o.AssetIds) { - var ret []string - return ret - } - return o.AssetIds -} - -// GetAssetIdsOk returns a tuple with the AssetIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetAssetIdsOk() ([]string, bool) { - if o == nil || IsNil(o.AssetIds) { - return nil, false - } - return o.AssetIds, true -} - -// HasAssetIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasAssetIds() bool { - if o != nil && !IsNil(o.AssetIds) { - return true - } - - return false -} - -// SetAssetIds gets a reference to the given []string and assigns it to the AssetIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetAssetIds(v []string) { - o.AssetIds = v -} - -// GetBlacklistAssetIds returns the BlacklistAssetIds field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetBlacklistAssetIds() []string { - if o == nil || IsNil(o.BlacklistAssetIds) { - var ret []string - return ret - } - return o.BlacklistAssetIds -} - -// GetBlacklistAssetIdsOk returns a tuple with the BlacklistAssetIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetBlacklistAssetIdsOk() ([]string, bool) { - if o == nil || IsNil(o.BlacklistAssetIds) { - return nil, false - } - return o.BlacklistAssetIds, true -} - -// HasBlacklistAssetIds returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasBlacklistAssetIds() bool { - if o != nil && !IsNil(o.BlacklistAssetIds) { - return true - } - - return false -} - -// SetBlacklistAssetIds gets a reference to the given []string and assigns it to the BlacklistAssetIds field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetBlacklistAssetIds(v []string) { - o.BlacklistAssetIds = v -} - -// GetManuallyCreated returns the ManuallyCreated field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetManuallyCreated() bool { - if o == nil || IsNil(o.ManuallyCreated) { - var ret bool - return ret - } - return *o.ManuallyCreated -} - -// GetManuallyCreatedOk returns a tuple with the ManuallyCreated field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetManuallyCreatedOk() (*bool, bool) { - if o == nil || IsNil(o.ManuallyCreated) { - return nil, false - } - return o.ManuallyCreated, true -} - -// HasManuallyCreated returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasManuallyCreated() bool { - if o != nil && !IsNil(o.ManuallyCreated) { - return true - } - - return false -} - -// SetManuallyCreated gets a reference to the given bool and assigns it to the ManuallyCreated field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetManuallyCreated(v bool) { - o.ManuallyCreated = &v -} - -// GetVisibility returns the Visibility field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetVisibility() []ENUMPROPERTIESVISIBILITY { - if o == nil || IsNil(o.Visibility) { - var ret []ENUMPROPERTIESVISIBILITY - return ret - } - return o.Visibility -} - -// GetVisibilityOk returns a tuple with the Visibility field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetVisibilityOk() ([]ENUMPROPERTIESVISIBILITY, bool) { - if o == nil || IsNil(o.Visibility) { - return nil, false - } - return o.Visibility, true -} - -// HasVisibility returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasVisibility() bool { - if o != nil && !IsNil(o.Visibility) { - return true - } - - return false -} - -// SetVisibility gets a reference to the given []ENUMPROPERTIESVISIBILITY and assigns it to the Visibility field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetVisibility(v []ENUMPROPERTIESVISIBILITY) { - o.Visibility = v -} - -// GetPorts returns the Ports field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetPorts() []float32 { - if o == nil || IsNil(o.Ports) { - var ret []float32 - return ret - } - return o.Ports -} - -// GetPortsOk returns a tuple with the Ports field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetPortsOk() ([]float32, bool) { - if o == nil || IsNil(o.Ports) { - return nil, false - } - return o.Ports, true -} - -// HasPorts returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasPorts() bool { - if o != nil && !IsNil(o.Ports) { - return true - } - - return false -} - -// SetPorts gets a reference to the given []float32 and assigns it to the Ports field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetPorts(v []float32) { - o.Ports = v -} - -// GetFrameworks returns the Frameworks field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetFrameworks() []ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS { - if o == nil || IsNil(o.Frameworks) { - var ret []ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS - return ret - } - return o.Frameworks -} - -// GetFrameworksOk returns a tuple with the Frameworks field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetFrameworksOk() ([]ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS, bool) { - if o == nil || IsNil(o.Frameworks) { - return nil, false - } - return o.Frameworks, true -} - -// HasFrameworks returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasFrameworks() bool { - if o != nil && !IsNil(o.Frameworks) { - return true - } - - return false -} - -// SetFrameworks gets a reference to the given []ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS and assigns it to the Frameworks field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetFrameworks(v []ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) { - o.Frameworks = v -} - -// GetPrioritizeFavorites returns the PrioritizeFavorites field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetPrioritizeFavorites() bool { - if o == nil || IsNil(o.PrioritizeFavorites) { - var ret bool - return ret - } - return *o.PrioritizeFavorites -} - -// GetPrioritizeFavoritesOk returns a tuple with the PrioritizeFavorites field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetPrioritizeFavoritesOk() (*bool, bool) { - if o == nil || IsNil(o.PrioritizeFavorites) { - return nil, false - } - return o.PrioritizeFavorites, true -} - -// HasPrioritizeFavorites returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasPrioritizeFavorites() bool { - if o != nil && !IsNil(o.PrioritizeFavorites) { - return true - } - - return false -} - -// SetPrioritizeFavorites gets a reference to the given bool and assigns it to the PrioritizeFavorites field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetPrioritizeFavorites(v bool) { - o.PrioritizeFavorites = &v -} - -// GetNoTags returns the NoTags field value if set, zero value otherwise. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetNoTags() bool { - if o == nil || IsNil(o.NoTags) { - var ret bool - return ret - } - return *o.NoTags -} - -// GetNoTagsOk returns a tuple with the NoTags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) GetNoTagsOk() (*bool, bool) { - if o == nil || IsNil(o.NoTags) { - return nil, false - } - return o.NoTags, true -} - -// HasNoTags returns a boolean if a field has been set. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) HasNoTags() bool { - if o != nil && !IsNil(o.NoTags) { - return true - } - - return false -} - -// SetNoTags gets a reference to the given bool and assigns it to the NoTags field. -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) SetNoTags(v bool) { - o.NoTags = &v -} - -func (o CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Search) { - toSerialize["search"] = o.Search - } - if !IsNil(o.Risks) { - toSerialize["risks"] = o.Risks - } - if !IsNil(o.TagIds) { - toSerialize["tagIds"] = o.TagIds - } - if !IsNil(o.IntegrationIds) { - toSerialize["integrationIds"] = o.IntegrationIds - } - if !IsNil(o.Types) { - toSerialize["types"] = o.Types - } - if !IsNil(o.Classes) { - toSerialize["classes"] = o.Classes - } - if !IsNil(o.ProjectIds) { - toSerialize["projectIds"] = o.ProjectIds - } - if !IsNil(o.NoProjects) { - toSerialize["noProjects"] = o.NoProjects - } - if !IsNil(o.ApplicationIds) { - toSerialize["applicationIds"] = o.ApplicationIds - } - if !IsNil(o.FoundByProfileIds) { - toSerialize["foundByProfileIds"] = o.FoundByProfileIds - } - if !IsNil(o.ScanIds) { - toSerialize["scanIds"] = o.ScanIds - } - if !IsNil(o.ScannerKinds) { - toSerialize["scannerKinds"] = o.ScannerKinds - } - if !IsNil(o.Domains) { - toSerialize["domains"] = o.Domains - } - if !IsNil(o.Environments) { - toSerialize["environments"] = o.Environments - } - if !IsNil(o.CloudProviders) { - toSerialize["cloudProviders"] = o.CloudProviders - } - if !IsNil(o.WafProviders) { - toSerialize["wafProviders"] = o.WafProviders - } - if !IsNil(o.Statuses) { - toSerialize["statuses"] = o.Statuses - } - if !IsNil(o.Severities) { - toSerialize["severities"] = o.Severities - } - if !IsNil(o.SourceAssetIds) { - toSerialize["sourceAssetIds"] = o.SourceAssetIds - } - if !IsNil(o.SourceAssets) { - toSerialize["sourceAssets"] = o.SourceAssets - } - if !IsNil(o.ParentAssetIds) { - toSerialize["parentAssetIds"] = o.ParentAssetIds - } - if !IsNil(o.SchemaIds) { - toSerialize["schemaIds"] = o.SchemaIds - } - if !IsNil(o.AssetIds) { - toSerialize["assetIds"] = o.AssetIds - } - if !IsNil(o.BlacklistAssetIds) { - toSerialize["blacklistAssetIds"] = o.BlacklistAssetIds - } - if !IsNil(o.ManuallyCreated) { - toSerialize["manuallyCreated"] = o.ManuallyCreated - } - if !IsNil(o.Visibility) { - toSerialize["visibility"] = o.Visibility - } - if !IsNil(o.Ports) { - toSerialize["ports"] = o.Ports - } - if !IsNil(o.Frameworks) { - toSerialize["frameworks"] = o.Frameworks - } - if !IsNil(o.PrioritizeFavorites) { - toSerialize["prioritizeFavorites"] = o.PrioritizeFavorites - } - if !IsNil(o.NoTags) { - toSerialize["noTags"] = o.NoTags - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) UnmarshalJSON(data []byte) (err error) { - varCreateWorkflowFilterUsingCustomFilterOnAssetsFilter := _CreateWorkflowFilterUsingCustomFilterOnAssetsFilter{} - - err = json.Unmarshal(data, &varCreateWorkflowFilterUsingCustomFilterOnAssetsFilter) - - if err != nil { - return err - } - - *o = CreateWorkflowFilterUsingCustomFilterOnAssetsFilter(varCreateWorkflowFilterUsingCustomFilterOnAssetsFilter) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "search") - delete(additionalProperties, "risks") - delete(additionalProperties, "tagIds") - delete(additionalProperties, "integrationIds") - delete(additionalProperties, "types") - delete(additionalProperties, "classes") - delete(additionalProperties, "projectIds") - delete(additionalProperties, "noProjects") - delete(additionalProperties, "applicationIds") - delete(additionalProperties, "foundByProfileIds") - delete(additionalProperties, "scanIds") - delete(additionalProperties, "scannerKinds") - delete(additionalProperties, "domains") - delete(additionalProperties, "environments") - delete(additionalProperties, "cloudProviders") - delete(additionalProperties, "wafProviders") - delete(additionalProperties, "statuses") - delete(additionalProperties, "severities") - delete(additionalProperties, "sourceAssetIds") - delete(additionalProperties, "sourceAssets") - delete(additionalProperties, "parentAssetIds") - delete(additionalProperties, "schemaIds") - delete(additionalProperties, "assetIds") - delete(additionalProperties, "blacklistAssetIds") - delete(additionalProperties, "manuallyCreated") - delete(additionalProperties, "visibility") - delete(additionalProperties, "ports") - delete(additionalProperties, "frameworks") - delete(additionalProperties, "prioritizeFavorites") - delete(additionalProperties, "noTags") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter struct { - value *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter - isSet bool -} - -func (v NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter) Get() *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter { - return v.value -} - -func (v *NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter) Set(val *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) { - v.value = val - v.isSet = true -} - -func (v NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter(val *CreateWorkflowFilterUsingCustomFilterOnAssetsFilter) *NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter { - return &NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter{value: val, isSet: true} -} - -func (v NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateWorkflowFilterUsingCustomFilterOnAssetsFilter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_issues_filter.go b/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_issues_filter.go index 7567a0f6..8432eafa 100644 --- a/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_issues_filter.go +++ b/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_issues_filter.go @@ -29,8 +29,11 @@ type CreateWorkflowFilterUsingCustomFilterOnIssuesFilter struct { Categories []ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY `json:"categories,omitempty"` ScannerKinds []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS `json:"scannerKinds,omitempty"` AssetClasses []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS `json:"assetClasses,omitempty"` + AssetTypes []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE `json:"assetTypes,omitempty"` TagIds []string `json:"tagIds,omitempty"` + NoTags *bool `json:"noTags,omitempty"` ScanIds []string `json:"scanIds,omitempty"` + SecurityTestUids []string `json:"securityTestUids,omitempty"` Status []ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS `json:"status,omitempty"` Ids []string `json:"ids,omitempty"` BlacklistedIds []string `json:"blacklistedIds,omitempty"` @@ -385,6 +388,38 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) SetAssetClasses(v o.AssetClasses = v } +// GetAssetTypes returns the AssetTypes field value if set, zero value otherwise. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetAssetTypes() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE { + if o == nil || IsNil(o.AssetTypes) { + var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE + return ret + } + return o.AssetTypes +} + +// GetAssetTypesOk returns a tuple with the AssetTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetAssetTypesOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, bool) { + if o == nil || IsNil(o.AssetTypes) { + return nil, false + } + return o.AssetTypes, true +} + +// HasAssetTypes returns a boolean if a field has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) HasAssetTypes() bool { + if o != nil && !IsNil(o.AssetTypes) { + return true + } + + return false +} + +// SetAssetTypes gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE and assigns it to the AssetTypes field. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) SetAssetTypes(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE) { + o.AssetTypes = v +} + // GetTagIds returns the TagIds field value if set, zero value otherwise. func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetTagIds() []string { if o == nil || IsNil(o.TagIds) { @@ -417,6 +452,38 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) SetTagIds(v []stri o.TagIds = v } +// GetNoTags returns the NoTags field value if set, zero value otherwise. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetNoTags() bool { + if o == nil || IsNil(o.NoTags) { + var ret bool + return ret + } + return *o.NoTags +} + +// GetNoTagsOk returns a tuple with the NoTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetNoTagsOk() (*bool, bool) { + if o == nil || IsNil(o.NoTags) { + return nil, false + } + return o.NoTags, true +} + +// HasNoTags returns a boolean if a field has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) HasNoTags() bool { + if o != nil && !IsNil(o.NoTags) { + return true + } + + return false +} + +// SetNoTags gets a reference to the given bool and assigns it to the NoTags field. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) SetNoTags(v bool) { + o.NoTags = &v +} + // GetScanIds returns the ScanIds field value if set, zero value otherwise. func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetScanIds() []string { if o == nil || IsNil(o.ScanIds) { @@ -449,6 +516,38 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) SetScanIds(v []str o.ScanIds = v } +// GetSecurityTestUids returns the SecurityTestUids field value if set, zero value otherwise. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetSecurityTestUids() []string { + if o == nil || IsNil(o.SecurityTestUids) { + var ret []string + return ret + } + return o.SecurityTestUids +} + +// GetSecurityTestUidsOk returns a tuple with the SecurityTestUids field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetSecurityTestUidsOk() ([]string, bool) { + if o == nil || IsNil(o.SecurityTestUids) { + return nil, false + } + return o.SecurityTestUids, true +} + +// HasSecurityTestUids returns a boolean if a field has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) HasSecurityTestUids() bool { + if o != nil && !IsNil(o.SecurityTestUids) { + return true + } + + return false +} + +// SetSecurityTestUids gets a reference to the given []string and assigns it to the SecurityTestUids field. +func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) SetSecurityTestUids(v []string) { + o.SecurityTestUids = v +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) GetStatus() []ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS { if o == nil || IsNil(o.Status) { @@ -873,12 +972,21 @@ func (o CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) ToMap() (map[string if !IsNil(o.AssetClasses) { toSerialize["assetClasses"] = o.AssetClasses } + if !IsNil(o.AssetTypes) { + toSerialize["assetTypes"] = o.AssetTypes + } if !IsNil(o.TagIds) { toSerialize["tagIds"] = o.TagIds } + if !IsNil(o.NoTags) { + toSerialize["noTags"] = o.NoTags + } if !IsNil(o.ScanIds) { toSerialize["scanIds"] = o.ScanIds } + if !IsNil(o.SecurityTestUids) { + toSerialize["securityTestUids"] = o.SecurityTestUids + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -947,8 +1055,11 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnIssuesFilter) UnmarshalJSON(data delete(additionalProperties, "categories") delete(additionalProperties, "scannerKinds") delete(additionalProperties, "assetClasses") + delete(additionalProperties, "assetTypes") delete(additionalProperties, "tagIds") + delete(additionalProperties, "noTags") delete(additionalProperties, "scanIds") + delete(additionalProperties, "securityTestUids") delete(additionalProperties, "status") delete(additionalProperties, "ids") delete(additionalProperties, "blacklistedIds") diff --git a/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_profiles_filter.go b/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_profiles_filter.go index 83d823bc..f9745f71 100644 --- a/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_profiles_filter.go +++ b/pkg/api/v3/model_create_workflow_filter_using_custom_filter_on_profiles_filter.go @@ -19,21 +19,26 @@ var _ MappedNullable = &CreateWorkflowFilterUsingCustomFilterOnProfilesFilter{} // CreateWorkflowFilterUsingCustomFilterOnProfilesFilter struct for CreateWorkflowFilterUsingCustomFilterOnProfilesFilter type CreateWorkflowFilterUsingCustomFilterOnProfilesFilter struct { - Ids []string `json:"ids,omitempty"` - Search *string `json:"search,omitempty"` - Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks,omitempty"` - TagIds []string `json:"tagIds,omitempty"` - ProjectIds []string `json:"projectIds,omitempty"` - NoProjects *bool `json:"noProjects,omitempty"` - AssetIds []string `json:"assetIds,omitempty"` - AssetSchemaIds []string `json:"assetSchemaIds,omitempty"` - IssueIds []string `json:"issueIds,omitempty"` - Kinds []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS `json:"kinds,omitempty"` - Domains []string `json:"domains,omitempty"` - Initiators []ENUMPROPERTIESDATAITEMSPROPERTIESINITIATORSITEMS `json:"initiators,omitempty"` - LastScanStatuses []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESLASTSCANSTATUSESITEMS `json:"lastScanStatuses,omitempty"` - AssetClasses []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS `json:"assetClasses,omitempty"` - AssetStatuses []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS `json:"assetStatuses,omitempty"` + Ids []string `json:"ids,omitempty"` + Search *string `json:"search,omitempty"` + Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks,omitempty"` + TagIds []string `json:"tagIds,omitempty"` + NoTags *bool `json:"noTags,omitempty"` + ProjectIds []string `json:"projectIds,omitempty"` + NoProjects *bool `json:"noProjects,omitempty"` + AssetIds []string `json:"assetIds,omitempty"` + AssetSchemaIds []string `json:"assetSchemaIds,omitempty"` + IssueIds []string `json:"issueIds,omitempty"` + Kinds []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS `json:"kinds,omitempty"` + Domains []string `json:"domains,omitempty"` + Initiators []ENUMPROPERTIESDATAITEMSPROPERTIESINITIATORSITEMS `json:"initiators,omitempty"` + LastScanStatuses []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESLASTSCANSTATUSESITEMS `json:"lastScanStatuses,omitempty"` + ProblemSeverities []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS `json:"problemSeverities,omitempty"` + ProblemCodes []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS `json:"problemCodes,omitempty"` + AssetClasses []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS `json:"assetClasses,omitempty"` + AssetStatuses []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS `json:"assetStatuses,omitempty"` + AssetTypes []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE `json:"assetTypes,omitempty"` + ScanIds []string `json:"scanIds,omitempty"` AdditionalProperties map[string]interface{} } @@ -184,6 +189,38 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) SetTagIds(v []st o.TagIds = v } +// GetNoTags returns the NoTags field value if set, zero value otherwise. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetNoTags() bool { + if o == nil || IsNil(o.NoTags) { + var ret bool + return ret + } + return *o.NoTags +} + +// GetNoTagsOk returns a tuple with the NoTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetNoTagsOk() (*bool, bool) { + if o == nil || IsNil(o.NoTags) { + return nil, false + } + return o.NoTags, true +} + +// HasNoTags returns a boolean if a field has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) HasNoTags() bool { + if o != nil && !IsNil(o.NoTags) { + return true + } + + return false +} + +// SetNoTags gets a reference to the given bool and assigns it to the NoTags field. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) SetNoTags(v bool) { + o.NoTags = &v +} + // GetProjectIds returns the ProjectIds field value if set, zero value otherwise. func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetProjectIds() []string { if o == nil || IsNil(o.ProjectIds) { @@ -472,6 +509,70 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) SetLastScanStatu o.LastScanStatuses = v } +// GetProblemSeverities returns the ProblemSeverities field value if set, zero value otherwise. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetProblemSeverities() []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS { + if o == nil || IsNil(o.ProblemSeverities) { + var ret []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS + return ret + } + return o.ProblemSeverities +} + +// GetProblemSeveritiesOk returns a tuple with the ProblemSeverities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetProblemSeveritiesOk() ([]ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS, bool) { + if o == nil || IsNil(o.ProblemSeverities) { + return nil, false + } + return o.ProblemSeverities, true +} + +// HasProblemSeverities returns a boolean if a field has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) HasProblemSeverities() bool { + if o != nil && !IsNil(o.ProblemSeverities) { + return true + } + + return false +} + +// SetProblemSeverities gets a reference to the given []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS and assigns it to the ProblemSeverities field. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) SetProblemSeverities(v []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) { + o.ProblemSeverities = v +} + +// GetProblemCodes returns the ProblemCodes field value if set, zero value otherwise. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetProblemCodes() []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS { + if o == nil || IsNil(o.ProblemCodes) { + var ret []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS + return ret + } + return o.ProblemCodes +} + +// GetProblemCodesOk returns a tuple with the ProblemCodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetProblemCodesOk() ([]ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS, bool) { + if o == nil || IsNil(o.ProblemCodes) { + return nil, false + } + return o.ProblemCodes, true +} + +// HasProblemCodes returns a boolean if a field has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) HasProblemCodes() bool { + if o != nil && !IsNil(o.ProblemCodes) { + return true + } + + return false +} + +// SetProblemCodes gets a reference to the given []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS and assigns it to the ProblemCodes field. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) SetProblemCodes(v []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) { + o.ProblemCodes = v +} + // GetAssetClasses returns the AssetClasses field value if set, zero value otherwise. func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetAssetClasses() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS { if o == nil || IsNil(o.AssetClasses) { @@ -536,6 +637,70 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) SetAssetStatuses o.AssetStatuses = v } +// GetAssetTypes returns the AssetTypes field value if set, zero value otherwise. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetAssetTypes() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE { + if o == nil || IsNil(o.AssetTypes) { + var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE + return ret + } + return o.AssetTypes +} + +// GetAssetTypesOk returns a tuple with the AssetTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetAssetTypesOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, bool) { + if o == nil || IsNil(o.AssetTypes) { + return nil, false + } + return o.AssetTypes, true +} + +// HasAssetTypes returns a boolean if a field has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) HasAssetTypes() bool { + if o != nil && !IsNil(o.AssetTypes) { + return true + } + + return false +} + +// SetAssetTypes gets a reference to the given []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE and assigns it to the AssetTypes field. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) SetAssetTypes(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE) { + o.AssetTypes = v +} + +// GetScanIds returns the ScanIds field value if set, zero value otherwise. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetScanIds() []string { + if o == nil || IsNil(o.ScanIds) { + var ret []string + return ret + } + return o.ScanIds +} + +// GetScanIdsOk returns a tuple with the ScanIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) GetScanIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ScanIds) { + return nil, false + } + return o.ScanIds, true +} + +// HasScanIds returns a boolean if a field has been set. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) HasScanIds() bool { + if o != nil && !IsNil(o.ScanIds) { + return true + } + + return false +} + +// SetScanIds gets a reference to the given []string and assigns it to the ScanIds field. +func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) SetScanIds(v []string) { + o.ScanIds = v +} + func (o CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -558,6 +723,9 @@ func (o CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) ToMap() (map[stri if !IsNil(o.TagIds) { toSerialize["tagIds"] = o.TagIds } + if !IsNil(o.NoTags) { + toSerialize["noTags"] = o.NoTags + } if !IsNil(o.ProjectIds) { toSerialize["projectIds"] = o.ProjectIds } @@ -585,12 +753,24 @@ func (o CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) ToMap() (map[stri if !IsNil(o.LastScanStatuses) { toSerialize["lastScanStatuses"] = o.LastScanStatuses } + if !IsNil(o.ProblemSeverities) { + toSerialize["problemSeverities"] = o.ProblemSeverities + } + if !IsNil(o.ProblemCodes) { + toSerialize["problemCodes"] = o.ProblemCodes + } if !IsNil(o.AssetClasses) { toSerialize["assetClasses"] = o.AssetClasses } if !IsNil(o.AssetStatuses) { toSerialize["assetStatuses"] = o.AssetStatuses } + if !IsNil(o.AssetTypes) { + toSerialize["assetTypes"] = o.AssetTypes + } + if !IsNil(o.ScanIds) { + toSerialize["scanIds"] = o.ScanIds + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -617,6 +797,7 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) UnmarshalJSON(da delete(additionalProperties, "search") delete(additionalProperties, "risks") delete(additionalProperties, "tagIds") + delete(additionalProperties, "noTags") delete(additionalProperties, "projectIds") delete(additionalProperties, "noProjects") delete(additionalProperties, "assetIds") @@ -626,8 +807,12 @@ func (o *CreateWorkflowFilterUsingCustomFilterOnProfilesFilter) UnmarshalJSON(da delete(additionalProperties, "domains") delete(additionalProperties, "initiators") delete(additionalProperties, "lastScanStatuses") + delete(additionalProperties, "problemSeverities") + delete(additionalProperties, "problemCodes") delete(additionalProperties, "assetClasses") delete(additionalProperties, "assetStatuses") + delete(additionalProperties, "assetTypes") + delete(additionalProperties, "scanIds") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_create_workflow_request.go b/pkg/api/v3/model_create_workflow_request.go index 18f3eefe..8382fedc 100644 --- a/pkg/api/v3/model_create_workflow_request.go +++ b/pkg/api/v3/model_create_workflow_request.go @@ -28,7 +28,7 @@ type CreateWorkflowRequest struct { // The throttle in milliseconds for the workflow. ThrottleMs *float32 `json:"throttleMs,omitempty"` Filters []UpdateWorkflowRequestFiltersInner `json:"filters"` - Actions []UpdateWorkflowRequestActionsInner `json:"actions"` + Actions []CreateWorkflowRequestActionsInner `json:"actions"` // Optional list of project IDs to create the integration for ProjectIds []string `json:"projectIds,omitempty"` AdditionalProperties map[string]interface{} @@ -40,7 +40,7 @@ type _CreateWorkflowRequest CreateWorkflowRequest // 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 NewCreateWorkflowRequest(organizationId string, name string, trigger ENUMPROPERTIESTRIGGER, filters []UpdateWorkflowRequestFiltersInner, actions []UpdateWorkflowRequestActionsInner) *CreateWorkflowRequest { +func NewCreateWorkflowRequest(organizationId string, name string, trigger ENUMPROPERTIESTRIGGER, filters []UpdateWorkflowRequestFiltersInner, actions []CreateWorkflowRequestActionsInner) *CreateWorkflowRequest { this := CreateWorkflowRequest{} this.OrganizationId = organizationId this.Name = name @@ -187,9 +187,9 @@ func (o *CreateWorkflowRequest) SetFilters(v []UpdateWorkflowRequestFiltersInner } // GetActions returns the Actions field value -func (o *CreateWorkflowRequest) GetActions() []UpdateWorkflowRequestActionsInner { +func (o *CreateWorkflowRequest) GetActions() []CreateWorkflowRequestActionsInner { if o == nil { - var ret []UpdateWorkflowRequestActionsInner + var ret []CreateWorkflowRequestActionsInner return ret } @@ -198,7 +198,7 @@ func (o *CreateWorkflowRequest) GetActions() []UpdateWorkflowRequestActionsInner // GetActionsOk returns a tuple with the Actions field value // and a boolean to check if the value has been set. -func (o *CreateWorkflowRequest) GetActionsOk() ([]UpdateWorkflowRequestActionsInner, bool) { +func (o *CreateWorkflowRequest) GetActionsOk() ([]CreateWorkflowRequestActionsInner, bool) { if o == nil { return nil, false } @@ -206,7 +206,7 @@ func (o *CreateWorkflowRequest) GetActionsOk() ([]UpdateWorkflowRequestActionsIn } // SetActions sets field value -func (o *CreateWorkflowRequest) SetActions(v []UpdateWorkflowRequestActionsInner) { +func (o *CreateWorkflowRequest) SetActions(v []CreateWorkflowRequestActionsInner) { o.Actions = v } diff --git a/pkg/api/v3/model_create_workflow_request_actions_inner.go b/pkg/api/v3/model_create_workflow_request_actions_inner.go new file mode 100644 index 00000000..f9ea1af9 --- /dev/null +++ b/pkg/api/v3/model_create_workflow_request_actions_inner.go @@ -0,0 +1,193 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// CreateWorkflowRequestActionsInner struct for CreateWorkflowRequestActionsInner +type CreateWorkflowRequestActionsInner struct { + CreateExportWorkflowActionUsingJira1 *CreateExportWorkflowActionUsingJira1 + CreateExportWorkflowActionUsingWebhook *CreateExportWorkflowActionUsingWebhook + CreateExportWorkflowActionUsingWiz *CreateExportWorkflowActionUsingWiz + CreateNotifyWorkflowActionUsingDiscord *CreateNotifyWorkflowActionUsingDiscord + CreateNotifyWorkflowActionUsingEmail *CreateNotifyWorkflowActionUsingEmail + CreateNotifyWorkflowActionUsingSlack *CreateNotifyWorkflowActionUsingSlack + CreateNotifyWorkflowActionUsingTeams *CreateNotifyWorkflowActionUsingTeams +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *CreateWorkflowRequestActionsInner) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into CreateExportWorkflowActionUsingJira1 + err = json.Unmarshal(data, &dst.CreateExportWorkflowActionUsingJira1) + if err == nil { + jsonCreateExportWorkflowActionUsingJira1, _ := json.Marshal(dst.CreateExportWorkflowActionUsingJira1) + if string(jsonCreateExportWorkflowActionUsingJira1) == "{}" { // empty struct + dst.CreateExportWorkflowActionUsingJira1 = nil + } else { + return nil // data stored in dst.CreateExportWorkflowActionUsingJira1, return on the first match + } + } else { + dst.CreateExportWorkflowActionUsingJira1 = nil + } + + // try to unmarshal JSON data into CreateExportWorkflowActionUsingWebhook + err = json.Unmarshal(data, &dst.CreateExportWorkflowActionUsingWebhook) + if err == nil { + jsonCreateExportWorkflowActionUsingWebhook, _ := json.Marshal(dst.CreateExportWorkflowActionUsingWebhook) + if string(jsonCreateExportWorkflowActionUsingWebhook) == "{}" { // empty struct + dst.CreateExportWorkflowActionUsingWebhook = nil + } else { + return nil // data stored in dst.CreateExportWorkflowActionUsingWebhook, return on the first match + } + } else { + dst.CreateExportWorkflowActionUsingWebhook = nil + } + + // try to unmarshal JSON data into CreateExportWorkflowActionUsingWiz + err = json.Unmarshal(data, &dst.CreateExportWorkflowActionUsingWiz) + if err == nil { + jsonCreateExportWorkflowActionUsingWiz, _ := json.Marshal(dst.CreateExportWorkflowActionUsingWiz) + if string(jsonCreateExportWorkflowActionUsingWiz) == "{}" { // empty struct + dst.CreateExportWorkflowActionUsingWiz = nil + } else { + return nil // data stored in dst.CreateExportWorkflowActionUsingWiz, return on the first match + } + } else { + dst.CreateExportWorkflowActionUsingWiz = nil + } + + // try to unmarshal JSON data into CreateNotifyWorkflowActionUsingDiscord + err = json.Unmarshal(data, &dst.CreateNotifyWorkflowActionUsingDiscord) + if err == nil { + jsonCreateNotifyWorkflowActionUsingDiscord, _ := json.Marshal(dst.CreateNotifyWorkflowActionUsingDiscord) + if string(jsonCreateNotifyWorkflowActionUsingDiscord) == "{}" { // empty struct + dst.CreateNotifyWorkflowActionUsingDiscord = nil + } else { + return nil // data stored in dst.CreateNotifyWorkflowActionUsingDiscord, return on the first match + } + } else { + dst.CreateNotifyWorkflowActionUsingDiscord = nil + } + + // try to unmarshal JSON data into CreateNotifyWorkflowActionUsingEmail + err = json.Unmarshal(data, &dst.CreateNotifyWorkflowActionUsingEmail) + if err == nil { + jsonCreateNotifyWorkflowActionUsingEmail, _ := json.Marshal(dst.CreateNotifyWorkflowActionUsingEmail) + if string(jsonCreateNotifyWorkflowActionUsingEmail) == "{}" { // empty struct + dst.CreateNotifyWorkflowActionUsingEmail = nil + } else { + return nil // data stored in dst.CreateNotifyWorkflowActionUsingEmail, return on the first match + } + } else { + dst.CreateNotifyWorkflowActionUsingEmail = nil + } + + // try to unmarshal JSON data into CreateNotifyWorkflowActionUsingSlack + err = json.Unmarshal(data, &dst.CreateNotifyWorkflowActionUsingSlack) + if err == nil { + jsonCreateNotifyWorkflowActionUsingSlack, _ := json.Marshal(dst.CreateNotifyWorkflowActionUsingSlack) + if string(jsonCreateNotifyWorkflowActionUsingSlack) == "{}" { // empty struct + dst.CreateNotifyWorkflowActionUsingSlack = nil + } else { + return nil // data stored in dst.CreateNotifyWorkflowActionUsingSlack, return on the first match + } + } else { + dst.CreateNotifyWorkflowActionUsingSlack = nil + } + + // try to unmarshal JSON data into CreateNotifyWorkflowActionUsingTeams + err = json.Unmarshal(data, &dst.CreateNotifyWorkflowActionUsingTeams) + if err == nil { + jsonCreateNotifyWorkflowActionUsingTeams, _ := json.Marshal(dst.CreateNotifyWorkflowActionUsingTeams) + if string(jsonCreateNotifyWorkflowActionUsingTeams) == "{}" { // empty struct + dst.CreateNotifyWorkflowActionUsingTeams = nil + } else { + return nil // data stored in dst.CreateNotifyWorkflowActionUsingTeams, return on the first match + } + } else { + dst.CreateNotifyWorkflowActionUsingTeams = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(CreateWorkflowRequestActionsInner)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateWorkflowRequestActionsInner) MarshalJSON() ([]byte, error) { + if src.CreateExportWorkflowActionUsingJira1 != nil { + return json.Marshal(&src.CreateExportWorkflowActionUsingJira1) + } + + if src.CreateExportWorkflowActionUsingWebhook != nil { + return json.Marshal(&src.CreateExportWorkflowActionUsingWebhook) + } + + if src.CreateExportWorkflowActionUsingWiz != nil { + return json.Marshal(&src.CreateExportWorkflowActionUsingWiz) + } + + if src.CreateNotifyWorkflowActionUsingDiscord != nil { + return json.Marshal(&src.CreateNotifyWorkflowActionUsingDiscord) + } + + if src.CreateNotifyWorkflowActionUsingEmail != nil { + return json.Marshal(&src.CreateNotifyWorkflowActionUsingEmail) + } + + if src.CreateNotifyWorkflowActionUsingSlack != nil { + return json.Marshal(&src.CreateNotifyWorkflowActionUsingSlack) + } + + if src.CreateNotifyWorkflowActionUsingTeams != nil { + return json.Marshal(&src.CreateNotifyWorkflowActionUsingTeams) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableCreateWorkflowRequestActionsInner struct { + value *CreateWorkflowRequestActionsInner + isSet bool +} + +func (v NullableCreateWorkflowRequestActionsInner) Get() *CreateWorkflowRequestActionsInner { + return v.value +} + +func (v *NullableCreateWorkflowRequestActionsInner) Set(val *CreateWorkflowRequestActionsInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateWorkflowRequestActionsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateWorkflowRequestActionsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateWorkflowRequestActionsInner(val *CreateWorkflowRequestActionsInner) *NullableCreateWorkflowRequestActionsInner { + return &NullableCreateWorkflowRequestActionsInner{value: val, isSet: true} +} + +func (v NullableCreateWorkflowRequestActionsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateWorkflowRequestActionsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_createakamai_integration_200_response.go b/pkg/api/v3/model_createakamai_integration_200_response.go index 07a2e31c..26cb7941 100644 --- a/pkg/api/v3/model_createakamai_integration_200_response.go +++ b/pkg/api/v3/model_createakamai_integration_200_response.go @@ -43,7 +43,7 @@ type CreateakamaiIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreateakamaiIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreateakamaiIntegration200Response) SetParameters(v CreateakamaiIntegra } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreateakamaiIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreateakamaiIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreateakamaiIntegration200Response) GetLocation() LocationDetailed1 { // 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 *CreateakamaiIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreateakamaiIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreateakamaiIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreateakamaiIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreateakamaiIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_createaws_integration_200_response.go b/pkg/api/v3/model_createaws_integration_200_response.go index 5331de11..5d681774 100644 --- a/pkg/api/v3/model_createaws_integration_200_response.go +++ b/pkg/api/v3/model_createaws_integration_200_response.go @@ -43,7 +43,7 @@ type CreateawsIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreateawsIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreateawsIntegration200Response) SetParameters(v CreateawsIntegrationRe } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreateawsIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreateawsIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreateawsIntegration200Response) GetLocation() LocationDetailed1 { // 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 *CreateawsIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreateawsIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreateawsIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreateawsIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreateawsIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_createazure_integration_200_response.go b/pkg/api/v3/model_createazure_integration_200_response.go index f23368d6..73f7b9c5 100644 --- a/pkg/api/v3/model_createazure_integration_200_response.go +++ b/pkg/api/v3/model_createazure_integration_200_response.go @@ -43,7 +43,7 @@ type CreateazureIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreateazureIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreateazureIntegration200Response) SetParameters(v CreateazureIntegrati } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreateazureIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreateazureIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreateazureIntegration200Response) GetLocation() LocationDetailed1 { // 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 *CreateazureIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreateazureIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreateazureIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreateazureIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreateazureIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_createbitbucket_repo_integration_200_response.go b/pkg/api/v3/model_createbitbucket_integration_200_response.go similarity index 60% rename from pkg/api/v3/model_createbitbucket_repo_integration_200_response.go rename to pkg/api/v3/model_createbitbucket_integration_200_response.go index b8542641..27b7ee54 100644 --- a/pkg/api/v3/model_createbitbucket_repo_integration_200_response.go +++ b/pkg/api/v3/model_createbitbucket_integration_200_response.go @@ -16,11 +16,11 @@ import ( "time" ) -// checks if the CreatebitbucketRepoIntegration200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreatebitbucketRepoIntegration200Response{} +// checks if the CreatebitbucketIntegration200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreatebitbucketIntegration200Response{} -// CreatebitbucketRepoIntegration200Response struct for CreatebitbucketRepoIntegration200Response -type CreatebitbucketRepoIntegration200Response struct { +// CreatebitbucketIntegration200Response struct for CreatebitbucketIntegration200Response +type CreatebitbucketIntegration200Response struct { // The id of the integration Id string `json:"id"` // The name of the integration @@ -41,20 +41,20 @@ type CreatebitbucketRepoIntegration200Response struct { // The id of the organization the integration belongs to OrganizationId string `json:"organizationId"` // The projects of the integration - Projects []ListProjects200ResponseDataInner `json:"projects"` - Parameters CreatebitbucketRepoIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Projects []ListProjects200ResponseDataInner `json:"projects"` + Parameters CreatebitbucketIntegrationRequestParameters `json:"parameters"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } -type _CreatebitbucketRepoIntegration200Response CreatebitbucketRepoIntegration200Response +type _CreatebitbucketIntegration200Response CreatebitbucketIntegration200Response -// NewCreatebitbucketRepoIntegration200Response instantiates a new CreatebitbucketRepoIntegration200Response object +// NewCreatebitbucketIntegration200Response instantiates a new CreatebitbucketIntegration200Response 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 NewCreatebitbucketRepoIntegration200Response(id string, name string, createdAt time.Time, updatedAt time.Time, kind ENUMPROPERTIESDATAITEMSPROPERTIESKIND, valid bool, validationErrors []string, organizationId string, projects []ListProjects200ResponseDataInner, parameters CreatebitbucketRepoIntegrationRequestParameters) *CreatebitbucketRepoIntegration200Response { - this := CreatebitbucketRepoIntegration200Response{} +func NewCreatebitbucketIntegration200Response(id string, name string, createdAt time.Time, updatedAt time.Time, kind ENUMPROPERTIESDATAITEMSPROPERTIESKIND, valid bool, validationErrors []string, organizationId string, projects []ListProjects200ResponseDataInner, parameters CreatebitbucketIntegrationRequestParameters) *CreatebitbucketIntegration200Response { + this := CreatebitbucketIntegration200Response{} this.Id = id this.Name = name this.CreatedAt = createdAt @@ -68,16 +68,16 @@ func NewCreatebitbucketRepoIntegration200Response(id string, name string, create return &this } -// NewCreatebitbucketRepoIntegration200ResponseWithDefaults instantiates a new CreatebitbucketRepoIntegration200Response object +// NewCreatebitbucketIntegration200ResponseWithDefaults instantiates a new CreatebitbucketIntegration200Response 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 NewCreatebitbucketRepoIntegration200ResponseWithDefaults() *CreatebitbucketRepoIntegration200Response { - this := CreatebitbucketRepoIntegration200Response{} +func NewCreatebitbucketIntegration200ResponseWithDefaults() *CreatebitbucketIntegration200Response { + this := CreatebitbucketIntegration200Response{} return &this } // GetId returns the Id field value -func (o *CreatebitbucketRepoIntegration200Response) GetId() string { +func (o *CreatebitbucketIntegration200Response) GetId() string { if o == nil { var ret string return ret @@ -88,7 +88,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetIdOk() (*string, bool) { +func (o *CreatebitbucketIntegration200Response) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -96,12 +96,12 @@ func (o *CreatebitbucketRepoIntegration200Response) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetId(v string) { +func (o *CreatebitbucketIntegration200Response) SetId(v string) { o.Id = v } // GetName returns the Name field value -func (o *CreatebitbucketRepoIntegration200Response) GetName() string { +func (o *CreatebitbucketIntegration200Response) GetName() string { if o == nil { var ret string return ret @@ -112,7 +112,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetNameOk() (*string, bool) { +func (o *CreatebitbucketIntegration200Response) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -120,12 +120,12 @@ func (o *CreatebitbucketRepoIntegration200Response) GetNameOk() (*string, bool) } // SetName sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetName(v string) { +func (o *CreatebitbucketIntegration200Response) SetName(v string) { o.Name = v } // GetCreatedAt returns the CreatedAt field value -func (o *CreatebitbucketRepoIntegration200Response) GetCreatedAt() time.Time { +func (o *CreatebitbucketIntegration200Response) GetCreatedAt() time.Time { if o == nil { var ret time.Time return ret @@ -136,7 +136,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetCreatedAt() time.Time { // GetCreatedAtOk returns a tuple with the CreatedAt field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetCreatedAtOk() (*time.Time, bool) { +func (o *CreatebitbucketIntegration200Response) GetCreatedAtOk() (*time.Time, bool) { if o == nil { return nil, false } @@ -144,12 +144,12 @@ func (o *CreatebitbucketRepoIntegration200Response) GetCreatedAtOk() (*time.Time } // SetCreatedAt sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetCreatedAt(v time.Time) { +func (o *CreatebitbucketIntegration200Response) SetCreatedAt(v time.Time) { o.CreatedAt = v } // GetUpdatedAt returns the UpdatedAt field value -func (o *CreatebitbucketRepoIntegration200Response) GetUpdatedAt() time.Time { +func (o *CreatebitbucketIntegration200Response) GetUpdatedAt() time.Time { if o == nil { var ret time.Time return ret @@ -160,7 +160,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetUpdatedAt() time.Time { // GetUpdatedAtOk returns a tuple with the UpdatedAt field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetUpdatedAtOk() (*time.Time, bool) { +func (o *CreatebitbucketIntegration200Response) GetUpdatedAtOk() (*time.Time, bool) { if o == nil { return nil, false } @@ -168,12 +168,12 @@ func (o *CreatebitbucketRepoIntegration200Response) GetUpdatedAtOk() (*time.Time } // SetUpdatedAt sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetUpdatedAt(v time.Time) { +func (o *CreatebitbucketIntegration200Response) SetUpdatedAt(v time.Time) { o.UpdatedAt = v } // GetScheduledForDeletionAt returns the ScheduledForDeletionAt field value if set, zero value otherwise. -func (o *CreatebitbucketRepoIntegration200Response) GetScheduledForDeletionAt() time.Time { +func (o *CreatebitbucketIntegration200Response) GetScheduledForDeletionAt() time.Time { if o == nil || IsNil(o.ScheduledForDeletionAt) { var ret time.Time return ret @@ -183,7 +183,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetScheduledForDeletionAt() // GetScheduledForDeletionAtOk returns a tuple with the ScheduledForDeletionAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetScheduledForDeletionAtOk() (*time.Time, bool) { +func (o *CreatebitbucketIntegration200Response) GetScheduledForDeletionAtOk() (*time.Time, bool) { if o == nil || IsNil(o.ScheduledForDeletionAt) { return nil, false } @@ -191,7 +191,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetScheduledForDeletionAtOk( } // HasScheduledForDeletionAt returns a boolean if a field has been set. -func (o *CreatebitbucketRepoIntegration200Response) HasScheduledForDeletionAt() bool { +func (o *CreatebitbucketIntegration200Response) HasScheduledForDeletionAt() bool { if o != nil && !IsNil(o.ScheduledForDeletionAt) { return true } @@ -200,12 +200,12 @@ func (o *CreatebitbucketRepoIntegration200Response) HasScheduledForDeletionAt() } // SetScheduledForDeletionAt gets a reference to the given time.Time and assigns it to the ScheduledForDeletionAt field. -func (o *CreatebitbucketRepoIntegration200Response) SetScheduledForDeletionAt(v time.Time) { +func (o *CreatebitbucketIntegration200Response) SetScheduledForDeletionAt(v time.Time) { o.ScheduledForDeletionAt = &v } // GetLastPullWorkflowAt returns the LastPullWorkflowAt field value if set, zero value otherwise. -func (o *CreatebitbucketRepoIntegration200Response) GetLastPullWorkflowAt() time.Time { +func (o *CreatebitbucketIntegration200Response) GetLastPullWorkflowAt() time.Time { if o == nil || IsNil(o.LastPullWorkflowAt) { var ret time.Time return ret @@ -215,7 +215,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetLastPullWorkflowAt() time // GetLastPullWorkflowAtOk returns a tuple with the LastPullWorkflowAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetLastPullWorkflowAtOk() (*time.Time, bool) { +func (o *CreatebitbucketIntegration200Response) GetLastPullWorkflowAtOk() (*time.Time, bool) { if o == nil || IsNil(o.LastPullWorkflowAt) { return nil, false } @@ -223,7 +223,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetLastPullWorkflowAtOk() (* } // HasLastPullWorkflowAt returns a boolean if a field has been set. -func (o *CreatebitbucketRepoIntegration200Response) HasLastPullWorkflowAt() bool { +func (o *CreatebitbucketIntegration200Response) HasLastPullWorkflowAt() bool { if o != nil && !IsNil(o.LastPullWorkflowAt) { return true } @@ -232,12 +232,12 @@ func (o *CreatebitbucketRepoIntegration200Response) HasLastPullWorkflowAt() bool } // SetLastPullWorkflowAt gets a reference to the given time.Time and assigns it to the LastPullWorkflowAt field. -func (o *CreatebitbucketRepoIntegration200Response) SetLastPullWorkflowAt(v time.Time) { +func (o *CreatebitbucketIntegration200Response) SetLastPullWorkflowAt(v time.Time) { o.LastPullWorkflowAt = &v } // GetKind returns the Kind field value -func (o *CreatebitbucketRepoIntegration200Response) GetKind() ENUMPROPERTIESDATAITEMSPROPERTIESKIND { +func (o *CreatebitbucketIntegration200Response) GetKind() ENUMPROPERTIESDATAITEMSPROPERTIESKIND { if o == nil { var ret ENUMPROPERTIESDATAITEMSPROPERTIESKIND return ret @@ -248,7 +248,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetKind() ENUMPROPERTIESDATA // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetKindOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESKIND, bool) { +func (o *CreatebitbucketIntegration200Response) GetKindOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESKIND, bool) { if o == nil { return nil, false } @@ -256,12 +256,12 @@ func (o *CreatebitbucketRepoIntegration200Response) GetKindOk() (*ENUMPROPERTIES } // SetKind sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetKind(v ENUMPROPERTIESDATAITEMSPROPERTIESKIND) { +func (o *CreatebitbucketIntegration200Response) SetKind(v ENUMPROPERTIESDATAITEMSPROPERTIESKIND) { o.Kind = v } // GetValid returns the Valid field value -func (o *CreatebitbucketRepoIntegration200Response) GetValid() bool { +func (o *CreatebitbucketIntegration200Response) GetValid() bool { if o == nil { var ret bool return ret @@ -272,7 +272,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetValid() bool { // GetValidOk returns a tuple with the Valid field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetValidOk() (*bool, bool) { +func (o *CreatebitbucketIntegration200Response) GetValidOk() (*bool, bool) { if o == nil { return nil, false } @@ -280,12 +280,12 @@ func (o *CreatebitbucketRepoIntegration200Response) GetValidOk() (*bool, bool) { } // SetValid sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetValid(v bool) { +func (o *CreatebitbucketIntegration200Response) SetValid(v bool) { o.Valid = v } // GetValidationErrors returns the ValidationErrors field value -func (o *CreatebitbucketRepoIntegration200Response) GetValidationErrors() []string { +func (o *CreatebitbucketIntegration200Response) GetValidationErrors() []string { if o == nil { var ret []string return ret @@ -296,7 +296,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetValidationErrors() []stri // GetValidationErrorsOk returns a tuple with the ValidationErrors field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetValidationErrorsOk() ([]string, bool) { +func (o *CreatebitbucketIntegration200Response) GetValidationErrorsOk() ([]string, bool) { if o == nil { return nil, false } @@ -304,12 +304,12 @@ func (o *CreatebitbucketRepoIntegration200Response) GetValidationErrorsOk() ([]s } // SetValidationErrors sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetValidationErrors(v []string) { +func (o *CreatebitbucketIntegration200Response) SetValidationErrors(v []string) { o.ValidationErrors = v } // GetOrganizationId returns the OrganizationId field value -func (o *CreatebitbucketRepoIntegration200Response) GetOrganizationId() string { +func (o *CreatebitbucketIntegration200Response) GetOrganizationId() string { if o == nil { var ret string return ret @@ -320,7 +320,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetOrganizationId() string { // GetOrganizationIdOk returns a tuple with the OrganizationId field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetOrganizationIdOk() (*string, bool) { +func (o *CreatebitbucketIntegration200Response) GetOrganizationIdOk() (*string, bool) { if o == nil { return nil, false } @@ -328,12 +328,12 @@ func (o *CreatebitbucketRepoIntegration200Response) GetOrganizationIdOk() (*stri } // SetOrganizationId sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetOrganizationId(v string) { +func (o *CreatebitbucketIntegration200Response) SetOrganizationId(v string) { o.OrganizationId = v } // GetProjects returns the Projects field value -func (o *CreatebitbucketRepoIntegration200Response) GetProjects() []ListProjects200ResponseDataInner { +func (o *CreatebitbucketIntegration200Response) GetProjects() []ListProjects200ResponseDataInner { if o == nil { var ret []ListProjects200ResponseDataInner return ret @@ -344,7 +344,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetProjects() []ListProjects // GetProjectsOk returns a tuple with the Projects field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetProjectsOk() ([]ListProjects200ResponseDataInner, bool) { +func (o *CreatebitbucketIntegration200Response) GetProjectsOk() ([]ListProjects200ResponseDataInner, bool) { if o == nil { return nil, false } @@ -352,14 +352,14 @@ func (o *CreatebitbucketRepoIntegration200Response) GetProjectsOk() ([]ListProje } // SetProjects sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetProjects(v []ListProjects200ResponseDataInner) { +func (o *CreatebitbucketIntegration200Response) SetProjects(v []ListProjects200ResponseDataInner) { o.Projects = v } // GetParameters returns the Parameters field value -func (o *CreatebitbucketRepoIntegration200Response) GetParameters() CreatebitbucketRepoIntegrationRequestParameters { +func (o *CreatebitbucketIntegration200Response) GetParameters() CreatebitbucketIntegrationRequestParameters { if o == nil { - var ret CreatebitbucketRepoIntegrationRequestParameters + var ret CreatebitbucketIntegrationRequestParameters return ret } @@ -368,7 +368,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetParameters() Createbitbuc // GetParametersOk returns a tuple with the Parameters field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegration200Response) GetParametersOk() (*CreatebitbucketRepoIntegrationRequestParameters, bool) { +func (o *CreatebitbucketIntegration200Response) GetParametersOk() (*CreatebitbucketIntegrationRequestParameters, bool) { if o == nil { return nil, false } @@ -376,14 +376,14 @@ func (o *CreatebitbucketRepoIntegration200Response) GetParametersOk() (*Createbi } // SetParameters sets field value -func (o *CreatebitbucketRepoIntegration200Response) SetParameters(v CreatebitbucketRepoIntegrationRequestParameters) { +func (o *CreatebitbucketIntegration200Response) SetParameters(v CreatebitbucketIntegrationRequestParameters) { o.Parameters = v } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreatebitbucketRepoIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreatebitbucketIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetLocation() LocationDetail // 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 *CreatebitbucketRepoIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreatebitbucketIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -399,7 +399,7 @@ func (o *CreatebitbucketRepoIntegration200Response) GetLocationOk() (*LocationDe } // HasLocation returns a boolean if a field has been set. -func (o *CreatebitbucketRepoIntegration200Response) HasLocation() bool { +func (o *CreatebitbucketIntegration200Response) HasLocation() bool { if o != nil && !IsNil(o.Location) { return true } @@ -407,12 +407,12 @@ func (o *CreatebitbucketRepoIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreatebitbucketRepoIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreatebitbucketIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } -func (o CreatebitbucketRepoIntegration200Response) MarshalJSON() ([]byte, error) { +func (o CreatebitbucketIntegration200Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -420,7 +420,7 @@ func (o CreatebitbucketRepoIntegration200Response) MarshalJSON() ([]byte, error) return json.Marshal(toSerialize) } -func (o CreatebitbucketRepoIntegration200Response) ToMap() (map[string]interface{}, error) { +func (o CreatebitbucketIntegration200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["name"] = o.Name @@ -449,7 +449,7 @@ func (o CreatebitbucketRepoIntegration200Response) ToMap() (map[string]interface return toSerialize, nil } -func (o *CreatebitbucketRepoIntegration200Response) UnmarshalJSON(data []byte) (err error) { +func (o *CreatebitbucketIntegration200Response) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -480,15 +480,15 @@ func (o *CreatebitbucketRepoIntegration200Response) UnmarshalJSON(data []byte) ( } } - varCreatebitbucketRepoIntegration200Response := _CreatebitbucketRepoIntegration200Response{} + varCreatebitbucketIntegration200Response := _CreatebitbucketIntegration200Response{} - err = json.Unmarshal(data, &varCreatebitbucketRepoIntegration200Response) + err = json.Unmarshal(data, &varCreatebitbucketIntegration200Response) if err != nil { return err } - *o = CreatebitbucketRepoIntegration200Response(varCreatebitbucketRepoIntegration200Response) + *o = CreatebitbucketIntegration200Response(varCreatebitbucketIntegration200Response) additionalProperties := make(map[string]interface{}) @@ -512,38 +512,38 @@ func (o *CreatebitbucketRepoIntegration200Response) UnmarshalJSON(data []byte) ( return err } -type NullableCreatebitbucketRepoIntegration200Response struct { - value *CreatebitbucketRepoIntegration200Response +type NullableCreatebitbucketIntegration200Response struct { + value *CreatebitbucketIntegration200Response isSet bool } -func (v NullableCreatebitbucketRepoIntegration200Response) Get() *CreatebitbucketRepoIntegration200Response { +func (v NullableCreatebitbucketIntegration200Response) Get() *CreatebitbucketIntegration200Response { return v.value } -func (v *NullableCreatebitbucketRepoIntegration200Response) Set(val *CreatebitbucketRepoIntegration200Response) { +func (v *NullableCreatebitbucketIntegration200Response) Set(val *CreatebitbucketIntegration200Response) { v.value = val v.isSet = true } -func (v NullableCreatebitbucketRepoIntegration200Response) IsSet() bool { +func (v NullableCreatebitbucketIntegration200Response) IsSet() bool { return v.isSet } -func (v *NullableCreatebitbucketRepoIntegration200Response) Unset() { +func (v *NullableCreatebitbucketIntegration200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableCreatebitbucketRepoIntegration200Response(val *CreatebitbucketRepoIntegration200Response) *NullableCreatebitbucketRepoIntegration200Response { - return &NullableCreatebitbucketRepoIntegration200Response{value: val, isSet: true} +func NewNullableCreatebitbucketIntegration200Response(val *CreatebitbucketIntegration200Response) *NullableCreatebitbucketIntegration200Response { + return &NullableCreatebitbucketIntegration200Response{value: val, isSet: true} } -func (v NullableCreatebitbucketRepoIntegration200Response) MarshalJSON() ([]byte, error) { +func (v NullableCreatebitbucketIntegration200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCreatebitbucketRepoIntegration200Response) UnmarshalJSON(src []byte) error { +func (v *NullableCreatebitbucketIntegration200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_createbitbucket_repo_integration_request.go b/pkg/api/v3/model_createbitbucket_integration_request.go similarity index 59% rename from pkg/api/v3/model_createbitbucket_repo_integration_request.go rename to pkg/api/v3/model_createbitbucket_integration_request.go index 3104aef0..059fcc7c 100644 --- a/pkg/api/v3/model_createbitbucket_repo_integration_request.go +++ b/pkg/api/v3/model_createbitbucket_integration_request.go @@ -15,16 +15,16 @@ import ( "fmt" ) -// checks if the CreatebitbucketRepoIntegrationRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreatebitbucketRepoIntegrationRequest{} +// checks if the CreatebitbucketIntegrationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreatebitbucketIntegrationRequest{} -// CreatebitbucketRepoIntegrationRequest struct for CreatebitbucketRepoIntegrationRequest -type CreatebitbucketRepoIntegrationRequest struct { +// CreatebitbucketIntegrationRequest struct for CreatebitbucketIntegrationRequest +type CreatebitbucketIntegrationRequest struct { // The organization ID to create the integration for OrganizationId *string `json:"organizationId,omitempty"` // The name of the integration - Name string `json:"name"` - Parameters CreatebitbucketRepoIntegrationRequestParameters `json:"parameters"` + Name string `json:"name"` + Parameters CreatebitbucketIntegrationRequestParameters `json:"parameters"` // Optional proxy ID to create the integration for ProxyId *string `json:"proxyId,omitempty"` // Optional list of project IDs to create the integration for @@ -32,29 +32,29 @@ type CreatebitbucketRepoIntegrationRequest struct { AdditionalProperties map[string]interface{} } -type _CreatebitbucketRepoIntegrationRequest CreatebitbucketRepoIntegrationRequest +type _CreatebitbucketIntegrationRequest CreatebitbucketIntegrationRequest -// NewCreatebitbucketRepoIntegrationRequest instantiates a new CreatebitbucketRepoIntegrationRequest object +// NewCreatebitbucketIntegrationRequest instantiates a new CreatebitbucketIntegrationRequest 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 NewCreatebitbucketRepoIntegrationRequest(name string, parameters CreatebitbucketRepoIntegrationRequestParameters) *CreatebitbucketRepoIntegrationRequest { - this := CreatebitbucketRepoIntegrationRequest{} +func NewCreatebitbucketIntegrationRequest(name string, parameters CreatebitbucketIntegrationRequestParameters) *CreatebitbucketIntegrationRequest { + this := CreatebitbucketIntegrationRequest{} this.Name = name this.Parameters = parameters return &this } -// NewCreatebitbucketRepoIntegrationRequestWithDefaults instantiates a new CreatebitbucketRepoIntegrationRequest object +// NewCreatebitbucketIntegrationRequestWithDefaults instantiates a new CreatebitbucketIntegrationRequest 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 NewCreatebitbucketRepoIntegrationRequestWithDefaults() *CreatebitbucketRepoIntegrationRequest { - this := CreatebitbucketRepoIntegrationRequest{} +func NewCreatebitbucketIntegrationRequestWithDefaults() *CreatebitbucketIntegrationRequest { + this := CreatebitbucketIntegrationRequest{} return &this } // GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *CreatebitbucketRepoIntegrationRequest) GetOrganizationId() string { +func (o *CreatebitbucketIntegrationRequest) GetOrganizationId() string { if o == nil || IsNil(o.OrganizationId) { var ret string return ret @@ -64,7 +64,7 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetOrganizationId() string { // GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequest) GetOrganizationIdOk() (*string, bool) { +func (o *CreatebitbucketIntegrationRequest) GetOrganizationIdOk() (*string, bool) { if o == nil || IsNil(o.OrganizationId) { return nil, false } @@ -72,7 +72,7 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetOrganizationIdOk() (*string, } // HasOrganizationId returns a boolean if a field has been set. -func (o *CreatebitbucketRepoIntegrationRequest) HasOrganizationId() bool { +func (o *CreatebitbucketIntegrationRequest) HasOrganizationId() bool { if o != nil && !IsNil(o.OrganizationId) { return true } @@ -81,12 +81,12 @@ func (o *CreatebitbucketRepoIntegrationRequest) HasOrganizationId() bool { } // SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *CreatebitbucketRepoIntegrationRequest) SetOrganizationId(v string) { +func (o *CreatebitbucketIntegrationRequest) SetOrganizationId(v string) { o.OrganizationId = &v } // GetName returns the Name field value -func (o *CreatebitbucketRepoIntegrationRequest) GetName() string { +func (o *CreatebitbucketIntegrationRequest) GetName() string { if o == nil { var ret string return ret @@ -97,7 +97,7 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequest) GetNameOk() (*string, bool) { +func (o *CreatebitbucketIntegrationRequest) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -105,14 +105,14 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *CreatebitbucketRepoIntegrationRequest) SetName(v string) { +func (o *CreatebitbucketIntegrationRequest) SetName(v string) { o.Name = v } // GetParameters returns the Parameters field value -func (o *CreatebitbucketRepoIntegrationRequest) GetParameters() CreatebitbucketRepoIntegrationRequestParameters { +func (o *CreatebitbucketIntegrationRequest) GetParameters() CreatebitbucketIntegrationRequestParameters { if o == nil { - var ret CreatebitbucketRepoIntegrationRequestParameters + var ret CreatebitbucketIntegrationRequestParameters return ret } @@ -121,7 +121,7 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetParameters() CreatebitbucketR // GetParametersOk returns a tuple with the Parameters field value // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequest) GetParametersOk() (*CreatebitbucketRepoIntegrationRequestParameters, bool) { +func (o *CreatebitbucketIntegrationRequest) GetParametersOk() (*CreatebitbucketIntegrationRequestParameters, bool) { if o == nil { return nil, false } @@ -129,12 +129,12 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetParametersOk() (*Createbitbuc } // SetParameters sets field value -func (o *CreatebitbucketRepoIntegrationRequest) SetParameters(v CreatebitbucketRepoIntegrationRequestParameters) { +func (o *CreatebitbucketIntegrationRequest) SetParameters(v CreatebitbucketIntegrationRequestParameters) { o.Parameters = v } // GetProxyId returns the ProxyId field value if set, zero value otherwise. -func (o *CreatebitbucketRepoIntegrationRequest) GetProxyId() string { +func (o *CreatebitbucketIntegrationRequest) GetProxyId() string { if o == nil || IsNil(o.ProxyId) { var ret string return ret @@ -144,7 +144,7 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetProxyId() string { // GetProxyIdOk returns a tuple with the ProxyId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequest) GetProxyIdOk() (*string, bool) { +func (o *CreatebitbucketIntegrationRequest) GetProxyIdOk() (*string, bool) { if o == nil || IsNil(o.ProxyId) { return nil, false } @@ -152,7 +152,7 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetProxyIdOk() (*string, bool) { } // HasProxyId returns a boolean if a field has been set. -func (o *CreatebitbucketRepoIntegrationRequest) HasProxyId() bool { +func (o *CreatebitbucketIntegrationRequest) HasProxyId() bool { if o != nil && !IsNil(o.ProxyId) { return true } @@ -161,12 +161,12 @@ func (o *CreatebitbucketRepoIntegrationRequest) HasProxyId() bool { } // SetProxyId gets a reference to the given string and assigns it to the ProxyId field. -func (o *CreatebitbucketRepoIntegrationRequest) SetProxyId(v string) { +func (o *CreatebitbucketIntegrationRequest) SetProxyId(v string) { o.ProxyId = &v } // GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreatebitbucketRepoIntegrationRequest) GetProjectIds() []string { +func (o *CreatebitbucketIntegrationRequest) GetProjectIds() []string { if o == nil || IsNil(o.ProjectIds) { var ret []string return ret @@ -176,7 +176,7 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetProjectIds() []string { // GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequest) GetProjectIdsOk() ([]string, bool) { +func (o *CreatebitbucketIntegrationRequest) GetProjectIdsOk() ([]string, bool) { if o == nil || IsNil(o.ProjectIds) { return nil, false } @@ -184,7 +184,7 @@ func (o *CreatebitbucketRepoIntegrationRequest) GetProjectIdsOk() ([]string, boo } // HasProjectIds returns a boolean if a field has been set. -func (o *CreatebitbucketRepoIntegrationRequest) HasProjectIds() bool { +func (o *CreatebitbucketIntegrationRequest) HasProjectIds() bool { if o != nil && !IsNil(o.ProjectIds) { return true } @@ -193,11 +193,11 @@ func (o *CreatebitbucketRepoIntegrationRequest) HasProjectIds() bool { } // SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreatebitbucketRepoIntegrationRequest) SetProjectIds(v []string) { +func (o *CreatebitbucketIntegrationRequest) SetProjectIds(v []string) { o.ProjectIds = v } -func (o CreatebitbucketRepoIntegrationRequest) MarshalJSON() ([]byte, error) { +func (o CreatebitbucketIntegrationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -205,7 +205,7 @@ func (o CreatebitbucketRepoIntegrationRequest) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o CreatebitbucketRepoIntegrationRequest) ToMap() (map[string]interface{}, error) { +func (o CreatebitbucketIntegrationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.OrganizationId) { toSerialize["organizationId"] = o.OrganizationId @@ -226,7 +226,7 @@ func (o CreatebitbucketRepoIntegrationRequest) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *CreatebitbucketRepoIntegrationRequest) UnmarshalJSON(data []byte) (err error) { +func (o *CreatebitbucketIntegrationRequest) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -249,15 +249,15 @@ func (o *CreatebitbucketRepoIntegrationRequest) UnmarshalJSON(data []byte) (err } } - varCreatebitbucketRepoIntegrationRequest := _CreatebitbucketRepoIntegrationRequest{} + varCreatebitbucketIntegrationRequest := _CreatebitbucketIntegrationRequest{} - err = json.Unmarshal(data, &varCreatebitbucketRepoIntegrationRequest) + err = json.Unmarshal(data, &varCreatebitbucketIntegrationRequest) if err != nil { return err } - *o = CreatebitbucketRepoIntegrationRequest(varCreatebitbucketRepoIntegrationRequest) + *o = CreatebitbucketIntegrationRequest(varCreatebitbucketIntegrationRequest) additionalProperties := make(map[string]interface{}) @@ -273,38 +273,38 @@ func (o *CreatebitbucketRepoIntegrationRequest) UnmarshalJSON(data []byte) (err return err } -type NullableCreatebitbucketRepoIntegrationRequest struct { - value *CreatebitbucketRepoIntegrationRequest +type NullableCreatebitbucketIntegrationRequest struct { + value *CreatebitbucketIntegrationRequest isSet bool } -func (v NullableCreatebitbucketRepoIntegrationRequest) Get() *CreatebitbucketRepoIntegrationRequest { +func (v NullableCreatebitbucketIntegrationRequest) Get() *CreatebitbucketIntegrationRequest { return v.value } -func (v *NullableCreatebitbucketRepoIntegrationRequest) Set(val *CreatebitbucketRepoIntegrationRequest) { +func (v *NullableCreatebitbucketIntegrationRequest) Set(val *CreatebitbucketIntegrationRequest) { v.value = val v.isSet = true } -func (v NullableCreatebitbucketRepoIntegrationRequest) IsSet() bool { +func (v NullableCreatebitbucketIntegrationRequest) IsSet() bool { return v.isSet } -func (v *NullableCreatebitbucketRepoIntegrationRequest) Unset() { +func (v *NullableCreatebitbucketIntegrationRequest) Unset() { v.value = nil v.isSet = false } -func NewNullableCreatebitbucketRepoIntegrationRequest(val *CreatebitbucketRepoIntegrationRequest) *NullableCreatebitbucketRepoIntegrationRequest { - return &NullableCreatebitbucketRepoIntegrationRequest{value: val, isSet: true} +func NewNullableCreatebitbucketIntegrationRequest(val *CreatebitbucketIntegrationRequest) *NullableCreatebitbucketIntegrationRequest { + return &NullableCreatebitbucketIntegrationRequest{value: val, isSet: true} } -func (v NullableCreatebitbucketRepoIntegrationRequest) MarshalJSON() ([]byte, error) { +func (v NullableCreatebitbucketIntegrationRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCreatebitbucketRepoIntegrationRequest) UnmarshalJSON(src []byte) error { +func (v *NullableCreatebitbucketIntegrationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_createbitbucket_integration_request_parameters.go b/pkg/api/v3/model_createbitbucket_integration_request_parameters.go new file mode 100644 index 00000000..91238c64 --- /dev/null +++ b/pkg/api/v3/model_createbitbucket_integration_request_parameters.go @@ -0,0 +1,298 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreatebitbucketIntegrationRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreatebitbucketIntegrationRequestParameters{} + +// CreatebitbucketIntegrationRequestParameters The parameters of the integration +type CreatebitbucketIntegrationRequestParameters struct { + Email string `json:"email"` + ApiKey string `json:"api_key"` + WorkspaceSlug string `json:"workspace_slug"` + InstanceUrl *string `json:"instance_url,omitempty"` + LocationId *string `json:"location_id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreatebitbucketIntegrationRequestParameters CreatebitbucketIntegrationRequestParameters + +// NewCreatebitbucketIntegrationRequestParameters instantiates a new CreatebitbucketIntegrationRequestParameters 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 NewCreatebitbucketIntegrationRequestParameters(email string, apiKey string, workspaceSlug string) *CreatebitbucketIntegrationRequestParameters { + this := CreatebitbucketIntegrationRequestParameters{} + this.Email = email + this.ApiKey = apiKey + this.WorkspaceSlug = workspaceSlug + return &this +} + +// NewCreatebitbucketIntegrationRequestParametersWithDefaults instantiates a new CreatebitbucketIntegrationRequestParameters 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 NewCreatebitbucketIntegrationRequestParametersWithDefaults() *CreatebitbucketIntegrationRequestParameters { + this := CreatebitbucketIntegrationRequestParameters{} + return &this +} + +// GetEmail returns the Email field value +func (o *CreatebitbucketIntegrationRequestParameters) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *CreatebitbucketIntegrationRequestParameters) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *CreatebitbucketIntegrationRequestParameters) SetEmail(v string) { + o.Email = v +} + +// GetApiKey returns the ApiKey field value +func (o *CreatebitbucketIntegrationRequestParameters) GetApiKey() string { + if o == nil { + var ret string + return ret + } + + return o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value +// and a boolean to check if the value has been set. +func (o *CreatebitbucketIntegrationRequestParameters) GetApiKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiKey, true +} + +// SetApiKey sets field value +func (o *CreatebitbucketIntegrationRequestParameters) SetApiKey(v string) { + o.ApiKey = v +} + +// GetWorkspaceSlug returns the WorkspaceSlug field value +func (o *CreatebitbucketIntegrationRequestParameters) GetWorkspaceSlug() string { + if o == nil { + var ret string + return ret + } + + return o.WorkspaceSlug +} + +// GetWorkspaceSlugOk returns a tuple with the WorkspaceSlug field value +// and a boolean to check if the value has been set. +func (o *CreatebitbucketIntegrationRequestParameters) GetWorkspaceSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkspaceSlug, true +} + +// SetWorkspaceSlug sets field value +func (o *CreatebitbucketIntegrationRequestParameters) SetWorkspaceSlug(v string) { + o.WorkspaceSlug = v +} + +// GetInstanceUrl returns the InstanceUrl field value if set, zero value otherwise. +func (o *CreatebitbucketIntegrationRequestParameters) GetInstanceUrl() string { + if o == nil || IsNil(o.InstanceUrl) { + var ret string + return ret + } + return *o.InstanceUrl +} + +// GetInstanceUrlOk returns a tuple with the InstanceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatebitbucketIntegrationRequestParameters) GetInstanceUrlOk() (*string, bool) { + if o == nil || IsNil(o.InstanceUrl) { + return nil, false + } + return o.InstanceUrl, true +} + +// HasInstanceUrl returns a boolean if a field has been set. +func (o *CreatebitbucketIntegrationRequestParameters) HasInstanceUrl() bool { + if o != nil && !IsNil(o.InstanceUrl) { + return true + } + + return false +} + +// SetInstanceUrl gets a reference to the given string and assigns it to the InstanceUrl field. +func (o *CreatebitbucketIntegrationRequestParameters) SetInstanceUrl(v string) { + o.InstanceUrl = &v +} + +// GetLocationId returns the LocationId field value if set, zero value otherwise. +func (o *CreatebitbucketIntegrationRequestParameters) GetLocationId() string { + if o == nil || IsNil(o.LocationId) { + var ret string + return ret + } + return *o.LocationId +} + +// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreatebitbucketIntegrationRequestParameters) GetLocationIdOk() (*string, bool) { + if o == nil || IsNil(o.LocationId) { + return nil, false + } + return o.LocationId, true +} + +// HasLocationId returns a boolean if a field has been set. +func (o *CreatebitbucketIntegrationRequestParameters) HasLocationId() bool { + if o != nil && !IsNil(o.LocationId) { + return true + } + + return false +} + +// SetLocationId gets a reference to the given string and assigns it to the LocationId field. +func (o *CreatebitbucketIntegrationRequestParameters) SetLocationId(v string) { + o.LocationId = &v +} + +func (o CreatebitbucketIntegrationRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreatebitbucketIntegrationRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + toSerialize["api_key"] = o.ApiKey + toSerialize["workspace_slug"] = o.WorkspaceSlug + if !IsNil(o.InstanceUrl) { + toSerialize["instance_url"] = o.InstanceUrl + } + if !IsNil(o.LocationId) { + toSerialize["location_id"] = o.LocationId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreatebitbucketIntegrationRequestParameters) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "email", + "api_key", + "workspace_slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreatebitbucketIntegrationRequestParameters := _CreatebitbucketIntegrationRequestParameters{} + + err = json.Unmarshal(data, &varCreatebitbucketIntegrationRequestParameters) + + if err != nil { + return err + } + + *o = CreatebitbucketIntegrationRequestParameters(varCreatebitbucketIntegrationRequestParameters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "email") + delete(additionalProperties, "api_key") + delete(additionalProperties, "workspace_slug") + delete(additionalProperties, "instance_url") + delete(additionalProperties, "location_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreatebitbucketIntegrationRequestParameters struct { + value *CreatebitbucketIntegrationRequestParameters + isSet bool +} + +func (v NullableCreatebitbucketIntegrationRequestParameters) Get() *CreatebitbucketIntegrationRequestParameters { + return v.value +} + +func (v *NullableCreatebitbucketIntegrationRequestParameters) Set(val *CreatebitbucketIntegrationRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableCreatebitbucketIntegrationRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCreatebitbucketIntegrationRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreatebitbucketIntegrationRequestParameters(val *CreatebitbucketIntegrationRequestParameters) *NullableCreatebitbucketIntegrationRequestParameters { + return &NullableCreatebitbucketIntegrationRequestParameters{value: val, isSet: true} +} + +func (v NullableCreatebitbucketIntegrationRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreatebitbucketIntegrationRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_createbitbucket_repo_integration_request_parameters.go b/pkg/api/v3/model_createbitbucket_repo_integration_request_parameters.go deleted file mode 100644 index f6220363..00000000 --- a/pkg/api/v3/model_createbitbucket_repo_integration_request_parameters.go +++ /dev/null @@ -1,298 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the CreatebitbucketRepoIntegrationRequestParameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreatebitbucketRepoIntegrationRequestParameters{} - -// CreatebitbucketRepoIntegrationRequestParameters The parameters of the integration -type CreatebitbucketRepoIntegrationRequestParameters struct { - ApiKey string `json:"api_key"` - WorkspaceName string `json:"workspace_name"` - RepositoryName string `json:"repository_name"` - Username *string `json:"username,omitempty"` - InstanceUrl *string `json:"instance_url,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _CreatebitbucketRepoIntegrationRequestParameters CreatebitbucketRepoIntegrationRequestParameters - -// NewCreatebitbucketRepoIntegrationRequestParameters instantiates a new CreatebitbucketRepoIntegrationRequestParameters 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 NewCreatebitbucketRepoIntegrationRequestParameters(apiKey string, workspaceName string, repositoryName string) *CreatebitbucketRepoIntegrationRequestParameters { - this := CreatebitbucketRepoIntegrationRequestParameters{} - this.ApiKey = apiKey - this.WorkspaceName = workspaceName - this.RepositoryName = repositoryName - return &this -} - -// NewCreatebitbucketRepoIntegrationRequestParametersWithDefaults instantiates a new CreatebitbucketRepoIntegrationRequestParameters 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 NewCreatebitbucketRepoIntegrationRequestParametersWithDefaults() *CreatebitbucketRepoIntegrationRequestParameters { - this := CreatebitbucketRepoIntegrationRequestParameters{} - return &this -} - -// GetApiKey returns the ApiKey field value -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetApiKey() string { - if o == nil { - var ret string - return ret - } - - return o.ApiKey -} - -// GetApiKeyOk returns a tuple with the ApiKey field value -// and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetApiKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApiKey, true -} - -// SetApiKey sets field value -func (o *CreatebitbucketRepoIntegrationRequestParameters) SetApiKey(v string) { - o.ApiKey = v -} - -// GetWorkspaceName returns the WorkspaceName field value -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetWorkspaceName() string { - if o == nil { - var ret string - return ret - } - - return o.WorkspaceName -} - -// GetWorkspaceNameOk returns a tuple with the WorkspaceName field value -// and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetWorkspaceNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.WorkspaceName, true -} - -// SetWorkspaceName sets field value -func (o *CreatebitbucketRepoIntegrationRequestParameters) SetWorkspaceName(v string) { - o.WorkspaceName = v -} - -// GetRepositoryName returns the RepositoryName field value -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetRepositoryName() string { - if o == nil { - var ret string - return ret - } - - return o.RepositoryName -} - -// GetRepositoryNameOk returns a tuple with the RepositoryName field value -// and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetRepositoryNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RepositoryName, true -} - -// SetRepositoryName sets field value -func (o *CreatebitbucketRepoIntegrationRequestParameters) SetRepositoryName(v string) { - o.RepositoryName = v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetUsername() string { - if o == nil || IsNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetUsernameOk() (*string, bool) { - if o == nil || IsNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *CreatebitbucketRepoIntegrationRequestParameters) HasUsername() bool { - if o != nil && !IsNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *CreatebitbucketRepoIntegrationRequestParameters) SetUsername(v string) { - o.Username = &v -} - -// GetInstanceUrl returns the InstanceUrl field value if set, zero value otherwise. -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetInstanceUrl() string { - if o == nil || IsNil(o.InstanceUrl) { - var ret string - return ret - } - return *o.InstanceUrl -} - -// GetInstanceUrlOk returns a tuple with the InstanceUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreatebitbucketRepoIntegrationRequestParameters) GetInstanceUrlOk() (*string, bool) { - if o == nil || IsNil(o.InstanceUrl) { - return nil, false - } - return o.InstanceUrl, true -} - -// HasInstanceUrl returns a boolean if a field has been set. -func (o *CreatebitbucketRepoIntegrationRequestParameters) HasInstanceUrl() bool { - if o != nil && !IsNil(o.InstanceUrl) { - return true - } - - return false -} - -// SetInstanceUrl gets a reference to the given string and assigns it to the InstanceUrl field. -func (o *CreatebitbucketRepoIntegrationRequestParameters) SetInstanceUrl(v string) { - o.InstanceUrl = &v -} - -func (o CreatebitbucketRepoIntegrationRequestParameters) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreatebitbucketRepoIntegrationRequestParameters) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["api_key"] = o.ApiKey - toSerialize["workspace_name"] = o.WorkspaceName - toSerialize["repository_name"] = o.RepositoryName - if !IsNil(o.Username) { - toSerialize["username"] = o.Username - } - if !IsNil(o.InstanceUrl) { - toSerialize["instance_url"] = o.InstanceUrl - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *CreatebitbucketRepoIntegrationRequestParameters) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "api_key", - "workspace_name", - "repository_name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreatebitbucketRepoIntegrationRequestParameters := _CreatebitbucketRepoIntegrationRequestParameters{} - - err = json.Unmarshal(data, &varCreatebitbucketRepoIntegrationRequestParameters) - - if err != nil { - return err - } - - *o = CreatebitbucketRepoIntegrationRequestParameters(varCreatebitbucketRepoIntegrationRequestParameters) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "api_key") - delete(additionalProperties, "workspace_name") - delete(additionalProperties, "repository_name") - delete(additionalProperties, "username") - delete(additionalProperties, "instance_url") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableCreatebitbucketRepoIntegrationRequestParameters struct { - value *CreatebitbucketRepoIntegrationRequestParameters - isSet bool -} - -func (v NullableCreatebitbucketRepoIntegrationRequestParameters) Get() *CreatebitbucketRepoIntegrationRequestParameters { - return v.value -} - -func (v *NullableCreatebitbucketRepoIntegrationRequestParameters) Set(val *CreatebitbucketRepoIntegrationRequestParameters) { - v.value = val - v.isSet = true -} - -func (v NullableCreatebitbucketRepoIntegrationRequestParameters) IsSet() bool { - return v.isSet -} - -func (v *NullableCreatebitbucketRepoIntegrationRequestParameters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreatebitbucketRepoIntegrationRequestParameters(val *CreatebitbucketRepoIntegrationRequestParameters) *NullableCreatebitbucketRepoIntegrationRequestParameters { - return &NullableCreatebitbucketRepoIntegrationRequestParameters{value: val, isSet: true} -} - -func (v NullableCreatebitbucketRepoIntegrationRequestParameters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreatebitbucketRepoIntegrationRequestParameters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_createcloudflare_integration_200_response.go b/pkg/api/v3/model_createcloudflare_integration_200_response.go index 052959f9..a43893fd 100644 --- a/pkg/api/v3/model_createcloudflare_integration_200_response.go +++ b/pkg/api/v3/model_createcloudflare_integration_200_response.go @@ -43,7 +43,7 @@ type CreatecloudflareIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreatecloudflareIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreatecloudflareIntegration200Response) SetParameters(v Createcloudflar } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreatecloudflareIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreatecloudflareIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreatecloudflareIntegration200Response) GetLocation() LocationDetailed1 // 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 *CreatecloudflareIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreatecloudflareIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreatecloudflareIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreatecloudflareIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreatecloudflareIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_createcustom_integration_200_response.go b/pkg/api/v3/model_createcustom_integration_200_response.go index 961d5953..6e9c7c11 100644 --- a/pkg/api/v3/model_createcustom_integration_200_response.go +++ b/pkg/api/v3/model_createcustom_integration_200_response.go @@ -43,7 +43,7 @@ type CreatecustomIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreatecustomIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreatecustomIntegration200Response) SetParameters(v CreatecustomIntegra } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreatecustomIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreatecustomIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreatecustomIntegration200Response) GetLocation() LocationDetailed1 { // 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 *CreatecustomIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreatecustomIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreatecustomIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreatecustomIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreatecustomIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_createapigee_integration_200_response.go b/pkg/api/v3/model_creategcp_integration_200_response.go similarity index 62% rename from pkg/api/v3/model_createapigee_integration_200_response.go rename to pkg/api/v3/model_creategcp_integration_200_response.go index a6389027..ab8ecff4 100644 --- a/pkg/api/v3/model_createapigee_integration_200_response.go +++ b/pkg/api/v3/model_creategcp_integration_200_response.go @@ -16,11 +16,11 @@ import ( "time" ) -// checks if the CreateapigeeIntegration200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateapigeeIntegration200Response{} +// checks if the CreategcpIntegration200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreategcpIntegration200Response{} -// CreateapigeeIntegration200Response struct for CreateapigeeIntegration200Response -type CreateapigeeIntegration200Response struct { +// CreategcpIntegration200Response struct for CreategcpIntegration200Response +type CreategcpIntegration200Response struct { // The id of the integration Id string `json:"id"` // The name of the integration @@ -41,20 +41,20 @@ type CreateapigeeIntegration200Response struct { // The id of the organization the integration belongs to OrganizationId string `json:"organizationId"` // The projects of the integration - Projects []ListProjects200ResponseDataInner `json:"projects"` - Parameters CreateapigeeIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Projects []ListProjects200ResponseDataInner `json:"projects"` + Parameters CreategcpIntegrationRequestParameters `json:"parameters"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } -type _CreateapigeeIntegration200Response CreateapigeeIntegration200Response +type _CreategcpIntegration200Response CreategcpIntegration200Response -// NewCreateapigeeIntegration200Response instantiates a new CreateapigeeIntegration200Response object +// NewCreategcpIntegration200Response instantiates a new CreategcpIntegration200Response 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 NewCreateapigeeIntegration200Response(id string, name string, createdAt time.Time, updatedAt time.Time, kind ENUMPROPERTIESDATAITEMSPROPERTIESKIND, valid bool, validationErrors []string, organizationId string, projects []ListProjects200ResponseDataInner, parameters CreateapigeeIntegrationRequestParameters) *CreateapigeeIntegration200Response { - this := CreateapigeeIntegration200Response{} +func NewCreategcpIntegration200Response(id string, name string, createdAt time.Time, updatedAt time.Time, kind ENUMPROPERTIESDATAITEMSPROPERTIESKIND, valid bool, validationErrors []string, organizationId string, projects []ListProjects200ResponseDataInner, parameters CreategcpIntegrationRequestParameters) *CreategcpIntegration200Response { + this := CreategcpIntegration200Response{} this.Id = id this.Name = name this.CreatedAt = createdAt @@ -68,16 +68,16 @@ func NewCreateapigeeIntegration200Response(id string, name string, createdAt tim return &this } -// NewCreateapigeeIntegration200ResponseWithDefaults instantiates a new CreateapigeeIntegration200Response object +// NewCreategcpIntegration200ResponseWithDefaults instantiates a new CreategcpIntegration200Response 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 NewCreateapigeeIntegration200ResponseWithDefaults() *CreateapigeeIntegration200Response { - this := CreateapigeeIntegration200Response{} +func NewCreategcpIntegration200ResponseWithDefaults() *CreategcpIntegration200Response { + this := CreategcpIntegration200Response{} return &this } // GetId returns the Id field value -func (o *CreateapigeeIntegration200Response) GetId() string { +func (o *CreategcpIntegration200Response) GetId() string { if o == nil { var ret string return ret @@ -88,7 +88,7 @@ func (o *CreateapigeeIntegration200Response) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetIdOk() (*string, bool) { +func (o *CreategcpIntegration200Response) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -96,12 +96,12 @@ func (o *CreateapigeeIntegration200Response) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *CreateapigeeIntegration200Response) SetId(v string) { +func (o *CreategcpIntegration200Response) SetId(v string) { o.Id = v } // GetName returns the Name field value -func (o *CreateapigeeIntegration200Response) GetName() string { +func (o *CreategcpIntegration200Response) GetName() string { if o == nil { var ret string return ret @@ -112,7 +112,7 @@ func (o *CreateapigeeIntegration200Response) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetNameOk() (*string, bool) { +func (o *CreategcpIntegration200Response) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -120,12 +120,12 @@ func (o *CreateapigeeIntegration200Response) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *CreateapigeeIntegration200Response) SetName(v string) { +func (o *CreategcpIntegration200Response) SetName(v string) { o.Name = v } // GetCreatedAt returns the CreatedAt field value -func (o *CreateapigeeIntegration200Response) GetCreatedAt() time.Time { +func (o *CreategcpIntegration200Response) GetCreatedAt() time.Time { if o == nil { var ret time.Time return ret @@ -136,7 +136,7 @@ func (o *CreateapigeeIntegration200Response) GetCreatedAt() time.Time { // GetCreatedAtOk returns a tuple with the CreatedAt field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetCreatedAtOk() (*time.Time, bool) { +func (o *CreategcpIntegration200Response) GetCreatedAtOk() (*time.Time, bool) { if o == nil { return nil, false } @@ -144,12 +144,12 @@ func (o *CreateapigeeIntegration200Response) GetCreatedAtOk() (*time.Time, bool) } // SetCreatedAt sets field value -func (o *CreateapigeeIntegration200Response) SetCreatedAt(v time.Time) { +func (o *CreategcpIntegration200Response) SetCreatedAt(v time.Time) { o.CreatedAt = v } // GetUpdatedAt returns the UpdatedAt field value -func (o *CreateapigeeIntegration200Response) GetUpdatedAt() time.Time { +func (o *CreategcpIntegration200Response) GetUpdatedAt() time.Time { if o == nil { var ret time.Time return ret @@ -160,7 +160,7 @@ func (o *CreateapigeeIntegration200Response) GetUpdatedAt() time.Time { // GetUpdatedAtOk returns a tuple with the UpdatedAt field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetUpdatedAtOk() (*time.Time, bool) { +func (o *CreategcpIntegration200Response) GetUpdatedAtOk() (*time.Time, bool) { if o == nil { return nil, false } @@ -168,12 +168,12 @@ func (o *CreateapigeeIntegration200Response) GetUpdatedAtOk() (*time.Time, bool) } // SetUpdatedAt sets field value -func (o *CreateapigeeIntegration200Response) SetUpdatedAt(v time.Time) { +func (o *CreategcpIntegration200Response) SetUpdatedAt(v time.Time) { o.UpdatedAt = v } // GetScheduledForDeletionAt returns the ScheduledForDeletionAt field value if set, zero value otherwise. -func (o *CreateapigeeIntegration200Response) GetScheduledForDeletionAt() time.Time { +func (o *CreategcpIntegration200Response) GetScheduledForDeletionAt() time.Time { if o == nil || IsNil(o.ScheduledForDeletionAt) { var ret time.Time return ret @@ -183,7 +183,7 @@ func (o *CreateapigeeIntegration200Response) GetScheduledForDeletionAt() time.Ti // GetScheduledForDeletionAtOk returns a tuple with the ScheduledForDeletionAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetScheduledForDeletionAtOk() (*time.Time, bool) { +func (o *CreategcpIntegration200Response) GetScheduledForDeletionAtOk() (*time.Time, bool) { if o == nil || IsNil(o.ScheduledForDeletionAt) { return nil, false } @@ -191,7 +191,7 @@ func (o *CreateapigeeIntegration200Response) GetScheduledForDeletionAtOk() (*tim } // HasScheduledForDeletionAt returns a boolean if a field has been set. -func (o *CreateapigeeIntegration200Response) HasScheduledForDeletionAt() bool { +func (o *CreategcpIntegration200Response) HasScheduledForDeletionAt() bool { if o != nil && !IsNil(o.ScheduledForDeletionAt) { return true } @@ -200,12 +200,12 @@ func (o *CreateapigeeIntegration200Response) HasScheduledForDeletionAt() bool { } // SetScheduledForDeletionAt gets a reference to the given time.Time and assigns it to the ScheduledForDeletionAt field. -func (o *CreateapigeeIntegration200Response) SetScheduledForDeletionAt(v time.Time) { +func (o *CreategcpIntegration200Response) SetScheduledForDeletionAt(v time.Time) { o.ScheduledForDeletionAt = &v } // GetLastPullWorkflowAt returns the LastPullWorkflowAt field value if set, zero value otherwise. -func (o *CreateapigeeIntegration200Response) GetLastPullWorkflowAt() time.Time { +func (o *CreategcpIntegration200Response) GetLastPullWorkflowAt() time.Time { if o == nil || IsNil(o.LastPullWorkflowAt) { var ret time.Time return ret @@ -215,7 +215,7 @@ func (o *CreateapigeeIntegration200Response) GetLastPullWorkflowAt() time.Time { // GetLastPullWorkflowAtOk returns a tuple with the LastPullWorkflowAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetLastPullWorkflowAtOk() (*time.Time, bool) { +func (o *CreategcpIntegration200Response) GetLastPullWorkflowAtOk() (*time.Time, bool) { if o == nil || IsNil(o.LastPullWorkflowAt) { return nil, false } @@ -223,7 +223,7 @@ func (o *CreateapigeeIntegration200Response) GetLastPullWorkflowAtOk() (*time.Ti } // HasLastPullWorkflowAt returns a boolean if a field has been set. -func (o *CreateapigeeIntegration200Response) HasLastPullWorkflowAt() bool { +func (o *CreategcpIntegration200Response) HasLastPullWorkflowAt() bool { if o != nil && !IsNil(o.LastPullWorkflowAt) { return true } @@ -232,12 +232,12 @@ func (o *CreateapigeeIntegration200Response) HasLastPullWorkflowAt() bool { } // SetLastPullWorkflowAt gets a reference to the given time.Time and assigns it to the LastPullWorkflowAt field. -func (o *CreateapigeeIntegration200Response) SetLastPullWorkflowAt(v time.Time) { +func (o *CreategcpIntegration200Response) SetLastPullWorkflowAt(v time.Time) { o.LastPullWorkflowAt = &v } // GetKind returns the Kind field value -func (o *CreateapigeeIntegration200Response) GetKind() ENUMPROPERTIESDATAITEMSPROPERTIESKIND { +func (o *CreategcpIntegration200Response) GetKind() ENUMPROPERTIESDATAITEMSPROPERTIESKIND { if o == nil { var ret ENUMPROPERTIESDATAITEMSPROPERTIESKIND return ret @@ -248,7 +248,7 @@ func (o *CreateapigeeIntegration200Response) GetKind() ENUMPROPERTIESDATAITEMSPR // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetKindOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESKIND, bool) { +func (o *CreategcpIntegration200Response) GetKindOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESKIND, bool) { if o == nil { return nil, false } @@ -256,12 +256,12 @@ func (o *CreateapigeeIntegration200Response) GetKindOk() (*ENUMPROPERTIESDATAITE } // SetKind sets field value -func (o *CreateapigeeIntegration200Response) SetKind(v ENUMPROPERTIESDATAITEMSPROPERTIESKIND) { +func (o *CreategcpIntegration200Response) SetKind(v ENUMPROPERTIESDATAITEMSPROPERTIESKIND) { o.Kind = v } // GetValid returns the Valid field value -func (o *CreateapigeeIntegration200Response) GetValid() bool { +func (o *CreategcpIntegration200Response) GetValid() bool { if o == nil { var ret bool return ret @@ -272,7 +272,7 @@ func (o *CreateapigeeIntegration200Response) GetValid() bool { // GetValidOk returns a tuple with the Valid field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetValidOk() (*bool, bool) { +func (o *CreategcpIntegration200Response) GetValidOk() (*bool, bool) { if o == nil { return nil, false } @@ -280,12 +280,12 @@ func (o *CreateapigeeIntegration200Response) GetValidOk() (*bool, bool) { } // SetValid sets field value -func (o *CreateapigeeIntegration200Response) SetValid(v bool) { +func (o *CreategcpIntegration200Response) SetValid(v bool) { o.Valid = v } // GetValidationErrors returns the ValidationErrors field value -func (o *CreateapigeeIntegration200Response) GetValidationErrors() []string { +func (o *CreategcpIntegration200Response) GetValidationErrors() []string { if o == nil { var ret []string return ret @@ -296,7 +296,7 @@ func (o *CreateapigeeIntegration200Response) GetValidationErrors() []string { // GetValidationErrorsOk returns a tuple with the ValidationErrors field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetValidationErrorsOk() ([]string, bool) { +func (o *CreategcpIntegration200Response) GetValidationErrorsOk() ([]string, bool) { if o == nil { return nil, false } @@ -304,12 +304,12 @@ func (o *CreateapigeeIntegration200Response) GetValidationErrorsOk() ([]string, } // SetValidationErrors sets field value -func (o *CreateapigeeIntegration200Response) SetValidationErrors(v []string) { +func (o *CreategcpIntegration200Response) SetValidationErrors(v []string) { o.ValidationErrors = v } // GetOrganizationId returns the OrganizationId field value -func (o *CreateapigeeIntegration200Response) GetOrganizationId() string { +func (o *CreategcpIntegration200Response) GetOrganizationId() string { if o == nil { var ret string return ret @@ -320,7 +320,7 @@ func (o *CreateapigeeIntegration200Response) GetOrganizationId() string { // GetOrganizationIdOk returns a tuple with the OrganizationId field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetOrganizationIdOk() (*string, bool) { +func (o *CreategcpIntegration200Response) GetOrganizationIdOk() (*string, bool) { if o == nil { return nil, false } @@ -328,12 +328,12 @@ func (o *CreateapigeeIntegration200Response) GetOrganizationIdOk() (*string, boo } // SetOrganizationId sets field value -func (o *CreateapigeeIntegration200Response) SetOrganizationId(v string) { +func (o *CreategcpIntegration200Response) SetOrganizationId(v string) { o.OrganizationId = v } // GetProjects returns the Projects field value -func (o *CreateapigeeIntegration200Response) GetProjects() []ListProjects200ResponseDataInner { +func (o *CreategcpIntegration200Response) GetProjects() []ListProjects200ResponseDataInner { if o == nil { var ret []ListProjects200ResponseDataInner return ret @@ -344,7 +344,7 @@ func (o *CreateapigeeIntegration200Response) GetProjects() []ListProjects200Resp // GetProjectsOk returns a tuple with the Projects field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetProjectsOk() ([]ListProjects200ResponseDataInner, bool) { +func (o *CreategcpIntegration200Response) GetProjectsOk() ([]ListProjects200ResponseDataInner, bool) { if o == nil { return nil, false } @@ -352,14 +352,14 @@ func (o *CreateapigeeIntegration200Response) GetProjectsOk() ([]ListProjects200R } // SetProjects sets field value -func (o *CreateapigeeIntegration200Response) SetProjects(v []ListProjects200ResponseDataInner) { +func (o *CreategcpIntegration200Response) SetProjects(v []ListProjects200ResponseDataInner) { o.Projects = v } // GetParameters returns the Parameters field value -func (o *CreateapigeeIntegration200Response) GetParameters() CreateapigeeIntegrationRequestParameters { +func (o *CreategcpIntegration200Response) GetParameters() CreategcpIntegrationRequestParameters { if o == nil { - var ret CreateapigeeIntegrationRequestParameters + var ret CreategcpIntegrationRequestParameters return ret } @@ -368,7 +368,7 @@ func (o *CreateapigeeIntegration200Response) GetParameters() CreateapigeeIntegra // GetParametersOk returns a tuple with the Parameters field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegration200Response) GetParametersOk() (*CreateapigeeIntegrationRequestParameters, bool) { +func (o *CreategcpIntegration200Response) GetParametersOk() (*CreategcpIntegrationRequestParameters, bool) { if o == nil { return nil, false } @@ -376,14 +376,14 @@ func (o *CreateapigeeIntegration200Response) GetParametersOk() (*CreateapigeeInt } // SetParameters sets field value -func (o *CreateapigeeIntegration200Response) SetParameters(v CreateapigeeIntegrationRequestParameters) { +func (o *CreategcpIntegration200Response) SetParameters(v CreategcpIntegrationRequestParameters) { o.Parameters = v } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreateapigeeIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreategcpIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreateapigeeIntegration200Response) GetLocation() LocationDetailed1 { // 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 *CreateapigeeIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreategcpIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -399,7 +399,7 @@ func (o *CreateapigeeIntegration200Response) GetLocationOk() (*LocationDetailed1 } // HasLocation returns a boolean if a field has been set. -func (o *CreateapigeeIntegration200Response) HasLocation() bool { +func (o *CreategcpIntegration200Response) HasLocation() bool { if o != nil && !IsNil(o.Location) { return true } @@ -407,12 +407,12 @@ func (o *CreateapigeeIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreateapigeeIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreategcpIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } -func (o CreateapigeeIntegration200Response) MarshalJSON() ([]byte, error) { +func (o CreategcpIntegration200Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -420,7 +420,7 @@ func (o CreateapigeeIntegration200Response) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o CreateapigeeIntegration200Response) ToMap() (map[string]interface{}, error) { +func (o CreategcpIntegration200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["name"] = o.Name @@ -449,7 +449,7 @@ func (o CreateapigeeIntegration200Response) ToMap() (map[string]interface{}, err return toSerialize, nil } -func (o *CreateapigeeIntegration200Response) UnmarshalJSON(data []byte) (err error) { +func (o *CreategcpIntegration200Response) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -480,15 +480,15 @@ func (o *CreateapigeeIntegration200Response) UnmarshalJSON(data []byte) (err err } } - varCreateapigeeIntegration200Response := _CreateapigeeIntegration200Response{} + varCreategcpIntegration200Response := _CreategcpIntegration200Response{} - err = json.Unmarshal(data, &varCreateapigeeIntegration200Response) + err = json.Unmarshal(data, &varCreategcpIntegration200Response) if err != nil { return err } - *o = CreateapigeeIntegration200Response(varCreateapigeeIntegration200Response) + *o = CreategcpIntegration200Response(varCreategcpIntegration200Response) additionalProperties := make(map[string]interface{}) @@ -512,38 +512,38 @@ func (o *CreateapigeeIntegration200Response) UnmarshalJSON(data []byte) (err err return err } -type NullableCreateapigeeIntegration200Response struct { - value *CreateapigeeIntegration200Response +type NullableCreategcpIntegration200Response struct { + value *CreategcpIntegration200Response isSet bool } -func (v NullableCreateapigeeIntegration200Response) Get() *CreateapigeeIntegration200Response { +func (v NullableCreategcpIntegration200Response) Get() *CreategcpIntegration200Response { return v.value } -func (v *NullableCreateapigeeIntegration200Response) Set(val *CreateapigeeIntegration200Response) { +func (v *NullableCreategcpIntegration200Response) Set(val *CreategcpIntegration200Response) { v.value = val v.isSet = true } -func (v NullableCreateapigeeIntegration200Response) IsSet() bool { +func (v NullableCreategcpIntegration200Response) IsSet() bool { return v.isSet } -func (v *NullableCreateapigeeIntegration200Response) Unset() { +func (v *NullableCreategcpIntegration200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableCreateapigeeIntegration200Response(val *CreateapigeeIntegration200Response) *NullableCreateapigeeIntegration200Response { - return &NullableCreateapigeeIntegration200Response{value: val, isSet: true} +func NewNullableCreategcpIntegration200Response(val *CreategcpIntegration200Response) *NullableCreategcpIntegration200Response { + return &NullableCreategcpIntegration200Response{value: val, isSet: true} } -func (v NullableCreateapigeeIntegration200Response) MarshalJSON() ([]byte, error) { +func (v NullableCreategcpIntegration200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCreateapigeeIntegration200Response) UnmarshalJSON(src []byte) error { +func (v *NullableCreategcpIntegration200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_createapigee_integration_request.go b/pkg/api/v3/model_creategcp_integration_request.go similarity index 62% rename from pkg/api/v3/model_createapigee_integration_request.go rename to pkg/api/v3/model_creategcp_integration_request.go index 4f8cf921..c9869877 100644 --- a/pkg/api/v3/model_createapigee_integration_request.go +++ b/pkg/api/v3/model_creategcp_integration_request.go @@ -15,16 +15,16 @@ import ( "fmt" ) -// checks if the CreateapigeeIntegrationRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateapigeeIntegrationRequest{} +// checks if the CreategcpIntegrationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreategcpIntegrationRequest{} -// CreateapigeeIntegrationRequest struct for CreateapigeeIntegrationRequest -type CreateapigeeIntegrationRequest struct { +// CreategcpIntegrationRequest struct for CreategcpIntegrationRequest +type CreategcpIntegrationRequest struct { // The organization ID to create the integration for OrganizationId *string `json:"organizationId,omitempty"` // The name of the integration - Name string `json:"name"` - Parameters CreateapigeeIntegrationRequestParameters `json:"parameters"` + Name string `json:"name"` + Parameters CreategcpIntegrationRequestParameters `json:"parameters"` // Optional proxy ID to create the integration for ProxyId *string `json:"proxyId,omitempty"` // Optional list of project IDs to create the integration for @@ -32,29 +32,29 @@ type CreateapigeeIntegrationRequest struct { AdditionalProperties map[string]interface{} } -type _CreateapigeeIntegrationRequest CreateapigeeIntegrationRequest +type _CreategcpIntegrationRequest CreategcpIntegrationRequest -// NewCreateapigeeIntegrationRequest instantiates a new CreateapigeeIntegrationRequest object +// NewCreategcpIntegrationRequest instantiates a new CreategcpIntegrationRequest 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 NewCreateapigeeIntegrationRequest(name string, parameters CreateapigeeIntegrationRequestParameters) *CreateapigeeIntegrationRequest { - this := CreateapigeeIntegrationRequest{} +func NewCreategcpIntegrationRequest(name string, parameters CreategcpIntegrationRequestParameters) *CreategcpIntegrationRequest { + this := CreategcpIntegrationRequest{} this.Name = name this.Parameters = parameters return &this } -// NewCreateapigeeIntegrationRequestWithDefaults instantiates a new CreateapigeeIntegrationRequest object +// NewCreategcpIntegrationRequestWithDefaults instantiates a new CreategcpIntegrationRequest 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 NewCreateapigeeIntegrationRequestWithDefaults() *CreateapigeeIntegrationRequest { - this := CreateapigeeIntegrationRequest{} +func NewCreategcpIntegrationRequestWithDefaults() *CreategcpIntegrationRequest { + this := CreategcpIntegrationRequest{} return &this } // GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. -func (o *CreateapigeeIntegrationRequest) GetOrganizationId() string { +func (o *CreategcpIntegrationRequest) GetOrganizationId() string { if o == nil || IsNil(o.OrganizationId) { var ret string return ret @@ -64,7 +64,7 @@ func (o *CreateapigeeIntegrationRequest) GetOrganizationId() string { // GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequest) GetOrganizationIdOk() (*string, bool) { +func (o *CreategcpIntegrationRequest) GetOrganizationIdOk() (*string, bool) { if o == nil || IsNil(o.OrganizationId) { return nil, false } @@ -72,7 +72,7 @@ func (o *CreateapigeeIntegrationRequest) GetOrganizationIdOk() (*string, bool) { } // HasOrganizationId returns a boolean if a field has been set. -func (o *CreateapigeeIntegrationRequest) HasOrganizationId() bool { +func (o *CreategcpIntegrationRequest) HasOrganizationId() bool { if o != nil && !IsNil(o.OrganizationId) { return true } @@ -81,12 +81,12 @@ func (o *CreateapigeeIntegrationRequest) HasOrganizationId() bool { } // SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. -func (o *CreateapigeeIntegrationRequest) SetOrganizationId(v string) { +func (o *CreategcpIntegrationRequest) SetOrganizationId(v string) { o.OrganizationId = &v } // GetName returns the Name field value -func (o *CreateapigeeIntegrationRequest) GetName() string { +func (o *CreategcpIntegrationRequest) GetName() string { if o == nil { var ret string return ret @@ -97,7 +97,7 @@ func (o *CreateapigeeIntegrationRequest) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequest) GetNameOk() (*string, bool) { +func (o *CreategcpIntegrationRequest) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -105,14 +105,14 @@ func (o *CreateapigeeIntegrationRequest) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *CreateapigeeIntegrationRequest) SetName(v string) { +func (o *CreategcpIntegrationRequest) SetName(v string) { o.Name = v } // GetParameters returns the Parameters field value -func (o *CreateapigeeIntegrationRequest) GetParameters() CreateapigeeIntegrationRequestParameters { +func (o *CreategcpIntegrationRequest) GetParameters() CreategcpIntegrationRequestParameters { if o == nil { - var ret CreateapigeeIntegrationRequestParameters + var ret CreategcpIntegrationRequestParameters return ret } @@ -121,7 +121,7 @@ func (o *CreateapigeeIntegrationRequest) GetParameters() CreateapigeeIntegration // GetParametersOk returns a tuple with the Parameters field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequest) GetParametersOk() (*CreateapigeeIntegrationRequestParameters, bool) { +func (o *CreategcpIntegrationRequest) GetParametersOk() (*CreategcpIntegrationRequestParameters, bool) { if o == nil { return nil, false } @@ -129,12 +129,12 @@ func (o *CreateapigeeIntegrationRequest) GetParametersOk() (*CreateapigeeIntegra } // SetParameters sets field value -func (o *CreateapigeeIntegrationRequest) SetParameters(v CreateapigeeIntegrationRequestParameters) { +func (o *CreategcpIntegrationRequest) SetParameters(v CreategcpIntegrationRequestParameters) { o.Parameters = v } // GetProxyId returns the ProxyId field value if set, zero value otherwise. -func (o *CreateapigeeIntegrationRequest) GetProxyId() string { +func (o *CreategcpIntegrationRequest) GetProxyId() string { if o == nil || IsNil(o.ProxyId) { var ret string return ret @@ -144,7 +144,7 @@ func (o *CreateapigeeIntegrationRequest) GetProxyId() string { // GetProxyIdOk returns a tuple with the ProxyId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequest) GetProxyIdOk() (*string, bool) { +func (o *CreategcpIntegrationRequest) GetProxyIdOk() (*string, bool) { if o == nil || IsNil(o.ProxyId) { return nil, false } @@ -152,7 +152,7 @@ func (o *CreateapigeeIntegrationRequest) GetProxyIdOk() (*string, bool) { } // HasProxyId returns a boolean if a field has been set. -func (o *CreateapigeeIntegrationRequest) HasProxyId() bool { +func (o *CreategcpIntegrationRequest) HasProxyId() bool { if o != nil && !IsNil(o.ProxyId) { return true } @@ -161,12 +161,12 @@ func (o *CreateapigeeIntegrationRequest) HasProxyId() bool { } // SetProxyId gets a reference to the given string and assigns it to the ProxyId field. -func (o *CreateapigeeIntegrationRequest) SetProxyId(v string) { +func (o *CreategcpIntegrationRequest) SetProxyId(v string) { o.ProxyId = &v } // GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *CreateapigeeIntegrationRequest) GetProjectIds() []string { +func (o *CreategcpIntegrationRequest) GetProjectIds() []string { if o == nil || IsNil(o.ProjectIds) { var ret []string return ret @@ -176,7 +176,7 @@ func (o *CreateapigeeIntegrationRequest) GetProjectIds() []string { // GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequest) GetProjectIdsOk() ([]string, bool) { +func (o *CreategcpIntegrationRequest) GetProjectIdsOk() ([]string, bool) { if o == nil || IsNil(o.ProjectIds) { return nil, false } @@ -184,7 +184,7 @@ func (o *CreateapigeeIntegrationRequest) GetProjectIdsOk() ([]string, bool) { } // HasProjectIds returns a boolean if a field has been set. -func (o *CreateapigeeIntegrationRequest) HasProjectIds() bool { +func (o *CreategcpIntegrationRequest) HasProjectIds() bool { if o != nil && !IsNil(o.ProjectIds) { return true } @@ -193,11 +193,11 @@ func (o *CreateapigeeIntegrationRequest) HasProjectIds() bool { } // SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *CreateapigeeIntegrationRequest) SetProjectIds(v []string) { +func (o *CreategcpIntegrationRequest) SetProjectIds(v []string) { o.ProjectIds = v } -func (o CreateapigeeIntegrationRequest) MarshalJSON() ([]byte, error) { +func (o CreategcpIntegrationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -205,7 +205,7 @@ func (o CreateapigeeIntegrationRequest) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o CreateapigeeIntegrationRequest) ToMap() (map[string]interface{}, error) { +func (o CreategcpIntegrationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.OrganizationId) { toSerialize["organizationId"] = o.OrganizationId @@ -226,7 +226,7 @@ func (o CreateapigeeIntegrationRequest) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *CreateapigeeIntegrationRequest) UnmarshalJSON(data []byte) (err error) { +func (o *CreategcpIntegrationRequest) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -249,15 +249,15 @@ func (o *CreateapigeeIntegrationRequest) UnmarshalJSON(data []byte) (err error) } } - varCreateapigeeIntegrationRequest := _CreateapigeeIntegrationRequest{} + varCreategcpIntegrationRequest := _CreategcpIntegrationRequest{} - err = json.Unmarshal(data, &varCreateapigeeIntegrationRequest) + err = json.Unmarshal(data, &varCreategcpIntegrationRequest) if err != nil { return err } - *o = CreateapigeeIntegrationRequest(varCreateapigeeIntegrationRequest) + *o = CreategcpIntegrationRequest(varCreategcpIntegrationRequest) additionalProperties := make(map[string]interface{}) @@ -273,38 +273,38 @@ func (o *CreateapigeeIntegrationRequest) UnmarshalJSON(data []byte) (err error) return err } -type NullableCreateapigeeIntegrationRequest struct { - value *CreateapigeeIntegrationRequest +type NullableCreategcpIntegrationRequest struct { + value *CreategcpIntegrationRequest isSet bool } -func (v NullableCreateapigeeIntegrationRequest) Get() *CreateapigeeIntegrationRequest { +func (v NullableCreategcpIntegrationRequest) Get() *CreategcpIntegrationRequest { return v.value } -func (v *NullableCreateapigeeIntegrationRequest) Set(val *CreateapigeeIntegrationRequest) { +func (v *NullableCreategcpIntegrationRequest) Set(val *CreategcpIntegrationRequest) { v.value = val v.isSet = true } -func (v NullableCreateapigeeIntegrationRequest) IsSet() bool { +func (v NullableCreategcpIntegrationRequest) IsSet() bool { return v.isSet } -func (v *NullableCreateapigeeIntegrationRequest) Unset() { +func (v *NullableCreategcpIntegrationRequest) Unset() { v.value = nil v.isSet = false } -func NewNullableCreateapigeeIntegrationRequest(val *CreateapigeeIntegrationRequest) *NullableCreateapigeeIntegrationRequest { - return &NullableCreateapigeeIntegrationRequest{value: val, isSet: true} +func NewNullableCreategcpIntegrationRequest(val *CreategcpIntegrationRequest) *NullableCreategcpIntegrationRequest { + return &NullableCreategcpIntegrationRequest{value: val, isSet: true} } -func (v NullableCreateapigeeIntegrationRequest) MarshalJSON() ([]byte, error) { +func (v NullableCreategcpIntegrationRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCreateapigeeIntegrationRequest) UnmarshalJSON(src []byte) error { +func (v *NullableCreategcpIntegrationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_updateapigee_integration_request_parameters.go b/pkg/api/v3/model_creategcp_integration_request_parameters.go similarity index 63% rename from pkg/api/v3/model_updateapigee_integration_request_parameters.go rename to pkg/api/v3/model_creategcp_integration_request_parameters.go index 60a53989..fb7b324d 100644 --- a/pkg/api/v3/model_updateapigee_integration_request_parameters.go +++ b/pkg/api/v3/model_creategcp_integration_request_parameters.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the UpdateapigeeIntegrationRequestParameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateapigeeIntegrationRequestParameters{} +// checks if the CreategcpIntegrationRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreategcpIntegrationRequestParameters{} -// UpdateapigeeIntegrationRequestParameters The new parameters of the integration -type UpdateapigeeIntegrationRequestParameters struct { +// CreategcpIntegrationRequestParameters The parameters of the integration +type CreategcpIntegrationRequestParameters struct { AuthProviderX509CertUrl string `json:"auth_provider_x509_cert_url"` AuthUri string `json:"auth_uri"` ClientEmail string `json:"client_email"` @@ -34,14 +34,14 @@ type UpdateapigeeIntegrationRequestParameters struct { AdditionalProperties map[string]interface{} } -type _UpdateapigeeIntegrationRequestParameters UpdateapigeeIntegrationRequestParameters +type _CreategcpIntegrationRequestParameters CreategcpIntegrationRequestParameters -// NewUpdateapigeeIntegrationRequestParameters instantiates a new UpdateapigeeIntegrationRequestParameters object +// NewCreategcpIntegrationRequestParameters instantiates a new CreategcpIntegrationRequestParameters 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 NewUpdateapigeeIntegrationRequestParameters(authProviderX509CertUrl string, authUri string, clientEmail string, clientId string, clientX509CertUrl string, privateKey string, privateKeyId string, projectId string, tokenUri string, type_ string, universeDomain string) *UpdateapigeeIntegrationRequestParameters { - this := UpdateapigeeIntegrationRequestParameters{} +func NewCreategcpIntegrationRequestParameters(authProviderX509CertUrl string, authUri string, clientEmail string, clientId string, clientX509CertUrl string, privateKey string, privateKeyId string, projectId string, tokenUri string, type_ string, universeDomain string) *CreategcpIntegrationRequestParameters { + this := CreategcpIntegrationRequestParameters{} this.AuthProviderX509CertUrl = authProviderX509CertUrl this.AuthUri = authUri this.ClientEmail = clientEmail @@ -56,16 +56,16 @@ func NewUpdateapigeeIntegrationRequestParameters(authProviderX509CertUrl string, return &this } -// NewUpdateapigeeIntegrationRequestParametersWithDefaults instantiates a new UpdateapigeeIntegrationRequestParameters object +// NewCreategcpIntegrationRequestParametersWithDefaults instantiates a new CreategcpIntegrationRequestParameters 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 NewUpdateapigeeIntegrationRequestParametersWithDefaults() *UpdateapigeeIntegrationRequestParameters { - this := UpdateapigeeIntegrationRequestParameters{} +func NewCreategcpIntegrationRequestParametersWithDefaults() *CreategcpIntegrationRequestParameters { + this := CreategcpIntegrationRequestParameters{} return &this } // GetAuthProviderX509CertUrl returns the AuthProviderX509CertUrl field value -func (o *UpdateapigeeIntegrationRequestParameters) GetAuthProviderX509CertUrl() string { +func (o *CreategcpIntegrationRequestParameters) GetAuthProviderX509CertUrl() string { if o == nil { var ret string return ret @@ -76,7 +76,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetAuthProviderX509CertUrl() // GetAuthProviderX509CertUrlOk returns a tuple with the AuthProviderX509CertUrl field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetAuthProviderX509CertUrlOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetAuthProviderX509CertUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -84,12 +84,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetAuthProviderX509CertUrlOk( } // SetAuthProviderX509CertUrl sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetAuthProviderX509CertUrl(v string) { +func (o *CreategcpIntegrationRequestParameters) SetAuthProviderX509CertUrl(v string) { o.AuthProviderX509CertUrl = v } // GetAuthUri returns the AuthUri field value -func (o *UpdateapigeeIntegrationRequestParameters) GetAuthUri() string { +func (o *CreategcpIntegrationRequestParameters) GetAuthUri() string { if o == nil { var ret string return ret @@ -100,7 +100,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetAuthUri() string { // GetAuthUriOk returns a tuple with the AuthUri field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetAuthUriOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetAuthUriOk() (*string, bool) { if o == nil { return nil, false } @@ -108,12 +108,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetAuthUriOk() (*string, bool } // SetAuthUri sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetAuthUri(v string) { +func (o *CreategcpIntegrationRequestParameters) SetAuthUri(v string) { o.AuthUri = v } // GetClientEmail returns the ClientEmail field value -func (o *UpdateapigeeIntegrationRequestParameters) GetClientEmail() string { +func (o *CreategcpIntegrationRequestParameters) GetClientEmail() string { if o == nil { var ret string return ret @@ -124,7 +124,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetClientEmail() string { // GetClientEmailOk returns a tuple with the ClientEmail field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetClientEmailOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetClientEmailOk() (*string, bool) { if o == nil { return nil, false } @@ -132,12 +132,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetClientEmailOk() (*string, } // SetClientEmail sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetClientEmail(v string) { +func (o *CreategcpIntegrationRequestParameters) SetClientEmail(v string) { o.ClientEmail = v } // GetClientId returns the ClientId field value -func (o *UpdateapigeeIntegrationRequestParameters) GetClientId() string { +func (o *CreategcpIntegrationRequestParameters) GetClientId() string { if o == nil { var ret string return ret @@ -148,7 +148,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetClientId() string { // GetClientIdOk returns a tuple with the ClientId field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetClientIdOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetClientIdOk() (*string, bool) { if o == nil { return nil, false } @@ -156,12 +156,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetClientIdOk() (*string, boo } // SetClientId sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetClientId(v string) { +func (o *CreategcpIntegrationRequestParameters) SetClientId(v string) { o.ClientId = v } // GetClientX509CertUrl returns the ClientX509CertUrl field value -func (o *UpdateapigeeIntegrationRequestParameters) GetClientX509CertUrl() string { +func (o *CreategcpIntegrationRequestParameters) GetClientX509CertUrl() string { if o == nil { var ret string return ret @@ -172,7 +172,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetClientX509CertUrl() string // GetClientX509CertUrlOk returns a tuple with the ClientX509CertUrl field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetClientX509CertUrlOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetClientX509CertUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -180,12 +180,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetClientX509CertUrlOk() (*st } // SetClientX509CertUrl sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetClientX509CertUrl(v string) { +func (o *CreategcpIntegrationRequestParameters) SetClientX509CertUrl(v string) { o.ClientX509CertUrl = v } // GetPrivateKey returns the PrivateKey field value -func (o *UpdateapigeeIntegrationRequestParameters) GetPrivateKey() string { +func (o *CreategcpIntegrationRequestParameters) GetPrivateKey() string { if o == nil { var ret string return ret @@ -196,7 +196,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetPrivateKey() string { // GetPrivateKeyOk returns a tuple with the PrivateKey field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetPrivateKeyOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetPrivateKeyOk() (*string, bool) { if o == nil { return nil, false } @@ -204,12 +204,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetPrivateKeyOk() (*string, b } // SetPrivateKey sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetPrivateKey(v string) { +func (o *CreategcpIntegrationRequestParameters) SetPrivateKey(v string) { o.PrivateKey = v } // GetPrivateKeyId returns the PrivateKeyId field value -func (o *UpdateapigeeIntegrationRequestParameters) GetPrivateKeyId() string { +func (o *CreategcpIntegrationRequestParameters) GetPrivateKeyId() string { if o == nil { var ret string return ret @@ -220,7 +220,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetPrivateKeyId() string { // GetPrivateKeyIdOk returns a tuple with the PrivateKeyId field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetPrivateKeyIdOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetPrivateKeyIdOk() (*string, bool) { if o == nil { return nil, false } @@ -228,12 +228,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetPrivateKeyIdOk() (*string, } // SetPrivateKeyId sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetPrivateKeyId(v string) { +func (o *CreategcpIntegrationRequestParameters) SetPrivateKeyId(v string) { o.PrivateKeyId = v } // GetProjectId returns the ProjectId field value -func (o *UpdateapigeeIntegrationRequestParameters) GetProjectId() string { +func (o *CreategcpIntegrationRequestParameters) GetProjectId() string { if o == nil { var ret string return ret @@ -244,7 +244,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetProjectId() string { // GetProjectIdOk returns a tuple with the ProjectId field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetProjectIdOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetProjectIdOk() (*string, bool) { if o == nil { return nil, false } @@ -252,12 +252,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetProjectIdOk() (*string, bo } // SetProjectId sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetProjectId(v string) { +func (o *CreategcpIntegrationRequestParameters) SetProjectId(v string) { o.ProjectId = v } // GetTokenUri returns the TokenUri field value -func (o *UpdateapigeeIntegrationRequestParameters) GetTokenUri() string { +func (o *CreategcpIntegrationRequestParameters) GetTokenUri() string { if o == nil { var ret string return ret @@ -268,7 +268,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetTokenUri() string { // GetTokenUriOk returns a tuple with the TokenUri field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetTokenUriOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetTokenUriOk() (*string, bool) { if o == nil { return nil, false } @@ -276,12 +276,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetTokenUriOk() (*string, boo } // SetTokenUri sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetTokenUri(v string) { +func (o *CreategcpIntegrationRequestParameters) SetTokenUri(v string) { o.TokenUri = v } // GetType returns the Type field value -func (o *UpdateapigeeIntegrationRequestParameters) GetType() string { +func (o *CreategcpIntegrationRequestParameters) GetType() string { if o == nil { var ret string return ret @@ -292,7 +292,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetTypeOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -300,12 +300,12 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetType(v string) { +func (o *CreategcpIntegrationRequestParameters) SetType(v string) { o.Type = v } // GetUniverseDomain returns the UniverseDomain field value -func (o *UpdateapigeeIntegrationRequestParameters) GetUniverseDomain() string { +func (o *CreategcpIntegrationRequestParameters) GetUniverseDomain() string { if o == nil { var ret string return ret @@ -316,7 +316,7 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetUniverseDomain() string { // GetUniverseDomainOk returns a tuple with the UniverseDomain field value // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequestParameters) GetUniverseDomainOk() (*string, bool) { +func (o *CreategcpIntegrationRequestParameters) GetUniverseDomainOk() (*string, bool) { if o == nil { return nil, false } @@ -324,11 +324,11 @@ func (o *UpdateapigeeIntegrationRequestParameters) GetUniverseDomainOk() (*strin } // SetUniverseDomain sets field value -func (o *UpdateapigeeIntegrationRequestParameters) SetUniverseDomain(v string) { +func (o *CreategcpIntegrationRequestParameters) SetUniverseDomain(v string) { o.UniverseDomain = v } -func (o UpdateapigeeIntegrationRequestParameters) MarshalJSON() ([]byte, error) { +func (o CreategcpIntegrationRequestParameters) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -336,7 +336,7 @@ func (o UpdateapigeeIntegrationRequestParameters) MarshalJSON() ([]byte, error) return json.Marshal(toSerialize) } -func (o UpdateapigeeIntegrationRequestParameters) ToMap() (map[string]interface{}, error) { +func (o CreategcpIntegrationRequestParameters) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["auth_provider_x509_cert_url"] = o.AuthProviderX509CertUrl toSerialize["auth_uri"] = o.AuthUri @@ -357,7 +357,7 @@ func (o UpdateapigeeIntegrationRequestParameters) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *UpdateapigeeIntegrationRequestParameters) UnmarshalJSON(data []byte) (err error) { +func (o *CreategcpIntegrationRequestParameters) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -389,15 +389,15 @@ func (o *UpdateapigeeIntegrationRequestParameters) UnmarshalJSON(data []byte) (e } } - varUpdateapigeeIntegrationRequestParameters := _UpdateapigeeIntegrationRequestParameters{} + varCreategcpIntegrationRequestParameters := _CreategcpIntegrationRequestParameters{} - err = json.Unmarshal(data, &varUpdateapigeeIntegrationRequestParameters) + err = json.Unmarshal(data, &varCreategcpIntegrationRequestParameters) if err != nil { return err } - *o = UpdateapigeeIntegrationRequestParameters(varUpdateapigeeIntegrationRequestParameters) + *o = CreategcpIntegrationRequestParameters(varCreategcpIntegrationRequestParameters) additionalProperties := make(map[string]interface{}) @@ -419,38 +419,38 @@ func (o *UpdateapigeeIntegrationRequestParameters) UnmarshalJSON(data []byte) (e return err } -type NullableUpdateapigeeIntegrationRequestParameters struct { - value *UpdateapigeeIntegrationRequestParameters +type NullableCreategcpIntegrationRequestParameters struct { + value *CreategcpIntegrationRequestParameters isSet bool } -func (v NullableUpdateapigeeIntegrationRequestParameters) Get() *UpdateapigeeIntegrationRequestParameters { +func (v NullableCreategcpIntegrationRequestParameters) Get() *CreategcpIntegrationRequestParameters { return v.value } -func (v *NullableUpdateapigeeIntegrationRequestParameters) Set(val *UpdateapigeeIntegrationRequestParameters) { +func (v *NullableCreategcpIntegrationRequestParameters) Set(val *CreategcpIntegrationRequestParameters) { v.value = val v.isSet = true } -func (v NullableUpdateapigeeIntegrationRequestParameters) IsSet() bool { +func (v NullableCreategcpIntegrationRequestParameters) IsSet() bool { return v.isSet } -func (v *NullableUpdateapigeeIntegrationRequestParameters) Unset() { +func (v *NullableCreategcpIntegrationRequestParameters) Unset() { v.value = nil v.isSet = false } -func NewNullableUpdateapigeeIntegrationRequestParameters(val *UpdateapigeeIntegrationRequestParameters) *NullableUpdateapigeeIntegrationRequestParameters { - return &NullableUpdateapigeeIntegrationRequestParameters{value: val, isSet: true} +func NewNullableCreategcpIntegrationRequestParameters(val *CreategcpIntegrationRequestParameters) *NullableCreategcpIntegrationRequestParameters { + return &NullableCreategcpIntegrationRequestParameters{value: val, isSet: true} } -func (v NullableUpdateapigeeIntegrationRequestParameters) MarshalJSON() ([]byte, error) { +func (v NullableCreategcpIntegrationRequestParameters) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableUpdateapigeeIntegrationRequestParameters) UnmarshalJSON(src []byte) error { +func (v *NullableCreategcpIntegrationRequestParameters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_creategitlab_integration_200_response.go b/pkg/api/v3/model_creategitlab_integration_200_response.go index d1ee7c89..ce7d7086 100644 --- a/pkg/api/v3/model_creategitlab_integration_200_response.go +++ b/pkg/api/v3/model_creategitlab_integration_200_response.go @@ -43,7 +43,7 @@ type CreategitlabIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreategitlabIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreategitlabIntegration200Response) SetParameters(v CreategitlabIntegra } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreategitlabIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreategitlabIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreategitlabIntegration200Response) GetLocation() LocationDetailed1 { // 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 *CreategitlabIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreategitlabIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreategitlabIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreategitlabIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreategitlabIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_createjira_integration_200_response.go b/pkg/api/v3/model_createjira_integration_200_response.go index ac1210f6..428102ae 100644 --- a/pkg/api/v3/model_createjira_integration_200_response.go +++ b/pkg/api/v3/model_createjira_integration_200_response.go @@ -43,7 +43,7 @@ type CreatejiraIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreatejiraIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreatejiraIntegration200Response) SetParameters(v CreatejiraIntegration } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreatejiraIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreatejiraIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreatejiraIntegration200Response) GetLocation() LocationDetailed1 { // 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 *CreatejiraIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreatejiraIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreatejiraIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreatejiraIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreatejiraIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_createkubernetes_integration_200_response.go b/pkg/api/v3/model_createkubernetes_integration_200_response.go index 4190724c..1e6f9f11 100644 --- a/pkg/api/v3/model_createkubernetes_integration_200_response.go +++ b/pkg/api/v3/model_createkubernetes_integration_200_response.go @@ -43,7 +43,7 @@ type CreatekubernetesIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreatekubernetesIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreatekubernetesIntegration200Response) SetParameters(v Createkubernete } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreatekubernetesIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreatekubernetesIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreatekubernetesIntegration200Response) GetLocation() LocationDetailed1 // 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 *CreatekubernetesIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreatekubernetesIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreatekubernetesIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreatekubernetesIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreatekubernetesIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_createwiz_integration_200_response.go b/pkg/api/v3/model_createwiz_integration_200_response.go index ae5ecb7e..56f9dc31 100644 --- a/pkg/api/v3/model_createwiz_integration_200_response.go +++ b/pkg/api/v3/model_createwiz_integration_200_response.go @@ -43,7 +43,7 @@ type CreatewizIntegration200Response struct { // The projects of the integration Projects []ListProjects200ResponseDataInner `json:"projects"` Parameters CreatewizIntegrationRequestParameters `json:"parameters"` - Location *LocationDetailed1 `json:"location,omitempty"` + Location *LocationDetailed `json:"location,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,9 +381,9 @@ func (o *CreatewizIntegration200Response) SetParameters(v CreatewizIntegrationRe } // GetLocation returns the Location field value if set, zero value otherwise. -func (o *CreatewizIntegration200Response) GetLocation() LocationDetailed1 { +func (o *CreatewizIntegration200Response) GetLocation() LocationDetailed { if o == nil || IsNil(o.Location) { - var ret LocationDetailed1 + var ret LocationDetailed return ret } return *o.Location @@ -391,7 +391,7 @@ func (o *CreatewizIntegration200Response) GetLocation() LocationDetailed1 { // 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 *CreatewizIntegration200Response) GetLocationOk() (*LocationDetailed1, bool) { +func (o *CreatewizIntegration200Response) GetLocationOk() (*LocationDetailed, bool) { if o == nil || IsNil(o.Location) { return nil, false } @@ -407,8 +407,8 @@ func (o *CreatewizIntegration200Response) HasLocation() bool { return false } -// SetLocation gets a reference to the given LocationDetailed1 and assigns it to the Location field. -func (o *CreatewizIntegration200Response) SetLocation(v LocationDetailed1) { +// SetLocation gets a reference to the given LocationDetailed and assigns it to the Location field. +func (o *CreatewizIntegration200Response) SetLocation(v LocationDetailed) { o.Location = &v } diff --git a/pkg/api/v3/model_custom_rule_rule_one_of_1.go b/pkg/api/v3/model_custom_rule_rule_one_of_1.go index b464bae2..858f5af7 100644 --- a/pkg/api/v3/model_custom_rule_rule_one_of_1.go +++ b/pkg/api/v3/model_custom_rule_rule_one_of_1.go @@ -20,12 +20,12 @@ var _ MappedNullable = &CustomRuleRuleOneOf1{} // CustomRuleRuleOneOf1 struct for CustomRuleRuleOneOf1 type CustomRuleRuleOneOf1 struct { - Id string `json:"id"` - Alert CreateCustomRuleRequestContentRuleOneOfAlert `json:"alert"` - Type ENUMWEBAPP `json:"type"` - Seed []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"seed"` - Detect []CreateCustomRuleRequestContentRuleOneOf1DetectInner `json:"detect"` - Extractors []interface{} `json:"extractors,omitempty"` + Id string `json:"id"` + Alert CreateCustomRuleRequestContentRuleOneOfAlert `json:"alert"` + Type ENUMWEBAPP `json:"type"` + Seed []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"seed"` + Detect []CreateCustomRuleRequestContentRuleOneOf1DetectInner `json:"detect"` + Extractors []interface{} `json:"extractors,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,7 +35,7 @@ type _CustomRuleRuleOneOf1 CustomRuleRuleOneOf1 // 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 NewCustomRuleRuleOneOf1(id string, alert CreateCustomRuleRequestContentRuleOneOfAlert, type_ ENUMWEBAPP, seed []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, detect []CreateCustomRuleRequestContentRuleOneOf1DetectInner) *CustomRuleRuleOneOf1 { +func NewCustomRuleRuleOneOf1(id string, alert CreateCustomRuleRequestContentRuleOneOfAlert, type_ ENUMWEBAPP, seed []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, detect []CreateCustomRuleRequestContentRuleOneOf1DetectInner) *CustomRuleRuleOneOf1 { this := CustomRuleRuleOneOf1{} this.Id = id this.Alert = alert @@ -126,9 +126,9 @@ func (o *CustomRuleRuleOneOf1) SetType(v ENUMWEBAPP) { } // GetSeed returns the Seed field value -func (o *CustomRuleRuleOneOf1) GetSeed() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { +func (o *CustomRuleRuleOneOf1) GetSeed() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner return ret } @@ -137,7 +137,7 @@ func (o *CustomRuleRuleOneOf1) GetSeed() []ProfileDetailedConfigurationAuthentic // GetSeedOk returns a tuple with the Seed field value // and a boolean to check if the value has been set. -func (o *CustomRuleRuleOneOf1) GetSeedOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { +func (o *CustomRuleRuleOneOf1) GetSeedOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { if o == nil { return nil, false } @@ -145,7 +145,7 @@ func (o *CustomRuleRuleOneOf1) GetSeedOk() ([]ProfileDetailedConfigurationAuthen } // SetSeed sets field value -func (o *CustomRuleRuleOneOf1) SetSeed(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { +func (o *CustomRuleRuleOneOf1) SetSeed(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { o.Seed = v } diff --git a/pkg/api/v3/model_enum_akamai_account.go b/pkg/api/v3/model_enum_akamai_account.go deleted file mode 100644 index abfeba64..00000000 --- a/pkg/api/v3/model_enum_akamai_account.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMAKAMAIACCOUNT the model 'ENUMAKAMAIACCOUNT' -type ENUMAKAMAIACCOUNT string - -// List of ENUM_AKAMAI_ACCOUNT -const ( - ENUMAKAMAIACCOUNT_AKAMAI_ACCOUNT ENUMAKAMAIACCOUNT = "AKAMAI_ACCOUNT" -) - -// All allowed values of ENUMAKAMAIACCOUNT enum -var AllowedENUMAKAMAIACCOUNTEnumValues = []ENUMAKAMAIACCOUNT{ - "AKAMAI_ACCOUNT", -} - -func (v *ENUMAKAMAIACCOUNT) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMAKAMAIACCOUNT(value) - for _, existing := range AllowedENUMAKAMAIACCOUNTEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMAKAMAIACCOUNT", value) -} - -// NewENUMAKAMAIACCOUNTFromValue returns a pointer to a valid ENUMAKAMAIACCOUNT -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMAKAMAIACCOUNTFromValue(v string) (*ENUMAKAMAIACCOUNT, error) { - ev := ENUMAKAMAIACCOUNT(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMAKAMAIACCOUNT: valid values are %v", v, AllowedENUMAKAMAIACCOUNTEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMAKAMAIACCOUNT) IsValid() bool { - for _, existing := range AllowedENUMAKAMAIACCOUNTEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_AKAMAI_ACCOUNT value -func (v ENUMAKAMAIACCOUNT) Ptr() *ENUMAKAMAIACCOUNT { - return &v -} - -type NullableENUMAKAMAIACCOUNT struct { - value *ENUMAKAMAIACCOUNT - isSet bool -} - -func (v NullableENUMAKAMAIACCOUNT) Get() *ENUMAKAMAIACCOUNT { - return v.value -} - -func (v *NullableENUMAKAMAIACCOUNT) Set(val *ENUMAKAMAIACCOUNT) { - v.value = val - v.isSet = true -} - -func (v NullableENUMAKAMAIACCOUNT) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMAKAMAIACCOUNT) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMAKAMAIACCOUNT(val *ENUMAKAMAIACCOUNT) *NullableENUMAKAMAIACCOUNT { - return &NullableENUMAKAMAIACCOUNT{value: val, isSet: true} -} - -func (v NullableENUMAKAMAIACCOUNT) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMAKAMAIACCOUNT) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_aws_account.go b/pkg/api/v3/model_enum_aws_account.go deleted file mode 100644 index 55edda5f..00000000 --- a/pkg/api/v3/model_enum_aws_account.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMAWSACCOUNT the model 'ENUMAWSACCOUNT' -type ENUMAWSACCOUNT string - -// List of ENUM_AWS_ACCOUNT -const ( - ENUMAWSACCOUNT_AWS_ACCOUNT ENUMAWSACCOUNT = "AWS_ACCOUNT" -) - -// All allowed values of ENUMAWSACCOUNT enum -var AllowedENUMAWSACCOUNTEnumValues = []ENUMAWSACCOUNT{ - "AWS_ACCOUNT", -} - -func (v *ENUMAWSACCOUNT) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMAWSACCOUNT(value) - for _, existing := range AllowedENUMAWSACCOUNTEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMAWSACCOUNT", value) -} - -// NewENUMAWSACCOUNTFromValue returns a pointer to a valid ENUMAWSACCOUNT -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMAWSACCOUNTFromValue(v string) (*ENUMAWSACCOUNT, error) { - ev := ENUMAWSACCOUNT(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMAWSACCOUNT: valid values are %v", v, AllowedENUMAWSACCOUNTEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMAWSACCOUNT) IsValid() bool { - for _, existing := range AllowedENUMAWSACCOUNTEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_AWS_ACCOUNT value -func (v ENUMAWSACCOUNT) Ptr() *ENUMAWSACCOUNT { - return &v -} - -type NullableENUMAWSACCOUNT struct { - value *ENUMAWSACCOUNT - isSet bool -} - -func (v NullableENUMAWSACCOUNT) Get() *ENUMAWSACCOUNT { - return v.value -} - -func (v *NullableENUMAWSACCOUNT) Set(val *ENUMAWSACCOUNT) { - v.value = val - v.isSet = true -} - -func (v NullableENUMAWSACCOUNT) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMAWSACCOUNT) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMAWSACCOUNT(val *ENUMAWSACCOUNT) *NullableENUMAWSACCOUNT { - return &NullableENUMAWSACCOUNT{value: val, isSet: true} -} - -func (v NullableENUMAWSACCOUNT) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMAWSACCOUNT) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_aws_lambda.go b/pkg/api/v3/model_enum_aws_lambda.go new file mode 100644 index 00000000..eb0a471e --- /dev/null +++ b/pkg/api/v3/model_enum_aws_lambda.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMAWSLAMBDA the model 'ENUMAWSLAMBDA' +type ENUMAWSLAMBDA string + +// List of ENUM_AWS_LAMBDA +const ( + ENUMAWSLAMBDA_AWS_LAMBDA ENUMAWSLAMBDA = "AWS_LAMBDA" +) + +// All allowed values of ENUMAWSLAMBDA enum +var AllowedENUMAWSLAMBDAEnumValues = []ENUMAWSLAMBDA{ + "AWS_LAMBDA", +} + +func (v *ENUMAWSLAMBDA) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMAWSLAMBDA(value) + for _, existing := range AllowedENUMAWSLAMBDAEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMAWSLAMBDA", value) +} + +// NewENUMAWSLAMBDAFromValue returns a pointer to a valid ENUMAWSLAMBDA +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMAWSLAMBDAFromValue(v string) (*ENUMAWSLAMBDA, error) { + ev := ENUMAWSLAMBDA(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMAWSLAMBDA: valid values are %v", v, AllowedENUMAWSLAMBDAEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMAWSLAMBDA) IsValid() bool { + for _, existing := range AllowedENUMAWSLAMBDAEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_AWS_LAMBDA value +func (v ENUMAWSLAMBDA) Ptr() *ENUMAWSLAMBDA { + return &v +} + +type NullableENUMAWSLAMBDA struct { + value *ENUMAWSLAMBDA + isSet bool +} + +func (v NullableENUMAWSLAMBDA) Get() *ENUMAWSLAMBDA { + return v.value +} + +func (v *NullableENUMAWSLAMBDA) Set(val *ENUMAWSLAMBDA) { + v.value = val + v.isSet = true +} + +func (v NullableENUMAWSLAMBDA) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMAWSLAMBDA) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMAWSLAMBDA(val *ENUMAWSLAMBDA) *NullableENUMAWSLAMBDA { + return &NullableENUMAWSLAMBDA{value: val, isSet: true} +} + +func (v NullableENUMAWSLAMBDA) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMAWSLAMBDA) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_bitbucket_organization.go b/pkg/api/v3/model_enum_bitbucket_organization.go new file mode 100644 index 00000000..297caadb --- /dev/null +++ b/pkg/api/v3/model_enum_bitbucket_organization.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMBITBUCKETORGANIZATION the model 'ENUMBITBUCKETORGANIZATION' +type ENUMBITBUCKETORGANIZATION string + +// List of ENUM_BITBUCKET_ORGANIZATION +const ( + ENUMBITBUCKETORGANIZATION_BITBUCKET_ORGANIZATION ENUMBITBUCKETORGANIZATION = "BITBUCKET_ORGANIZATION" +) + +// All allowed values of ENUMBITBUCKETORGANIZATION enum +var AllowedENUMBITBUCKETORGANIZATIONEnumValues = []ENUMBITBUCKETORGANIZATION{ + "BITBUCKET_ORGANIZATION", +} + +func (v *ENUMBITBUCKETORGANIZATION) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMBITBUCKETORGANIZATION(value) + for _, existing := range AllowedENUMBITBUCKETORGANIZATIONEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMBITBUCKETORGANIZATION", value) +} + +// NewENUMBITBUCKETORGANIZATIONFromValue returns a pointer to a valid ENUMBITBUCKETORGANIZATION +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMBITBUCKETORGANIZATIONFromValue(v string) (*ENUMBITBUCKETORGANIZATION, error) { + ev := ENUMBITBUCKETORGANIZATION(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMBITBUCKETORGANIZATION: valid values are %v", v, AllowedENUMBITBUCKETORGANIZATIONEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMBITBUCKETORGANIZATION) IsValid() bool { + for _, existing := range AllowedENUMBITBUCKETORGANIZATIONEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_BITBUCKET_ORGANIZATION value +func (v ENUMBITBUCKETORGANIZATION) Ptr() *ENUMBITBUCKETORGANIZATION { + return &v +} + +type NullableENUMBITBUCKETORGANIZATION struct { + value *ENUMBITBUCKETORGANIZATION + isSet bool +} + +func (v NullableENUMBITBUCKETORGANIZATION) Get() *ENUMBITBUCKETORGANIZATION { + return v.value +} + +func (v *NullableENUMBITBUCKETORGANIZATION) Set(val *ENUMBITBUCKETORGANIZATION) { + v.value = val + v.isSet = true +} + +func (v NullableENUMBITBUCKETORGANIZATION) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMBITBUCKETORGANIZATION) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMBITBUCKETORGANIZATION(val *ENUMBITBUCKETORGANIZATION) *NullableENUMBITBUCKETORGANIZATION { + return &NullableENUMBITBUCKETORGANIZATION{value: val, isSet: true} +} + +func (v NullableENUMBITBUCKETORGANIZATION) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMBITBUCKETORGANIZATION) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_bitbucket_repository.go b/pkg/api/v3/model_enum_bitbucket_repository.go new file mode 100644 index 00000000..fb022611 --- /dev/null +++ b/pkg/api/v3/model_enum_bitbucket_repository.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMBITBUCKETREPOSITORY the model 'ENUMBITBUCKETREPOSITORY' +type ENUMBITBUCKETREPOSITORY string + +// List of ENUM_BITBUCKET_REPOSITORY +const ( + ENUMBITBUCKETREPOSITORY_BITBUCKET_REPOSITORY ENUMBITBUCKETREPOSITORY = "BITBUCKET_REPOSITORY" +) + +// All allowed values of ENUMBITBUCKETREPOSITORY enum +var AllowedENUMBITBUCKETREPOSITORYEnumValues = []ENUMBITBUCKETREPOSITORY{ + "BITBUCKET_REPOSITORY", +} + +func (v *ENUMBITBUCKETREPOSITORY) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMBITBUCKETREPOSITORY(value) + for _, existing := range AllowedENUMBITBUCKETREPOSITORYEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMBITBUCKETREPOSITORY", value) +} + +// NewENUMBITBUCKETREPOSITORYFromValue returns a pointer to a valid ENUMBITBUCKETREPOSITORY +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMBITBUCKETREPOSITORYFromValue(v string) (*ENUMBITBUCKETREPOSITORY, error) { + ev := ENUMBITBUCKETREPOSITORY(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMBITBUCKETREPOSITORY: valid values are %v", v, AllowedENUMBITBUCKETREPOSITORYEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMBITBUCKETREPOSITORY) IsValid() bool { + for _, existing := range AllowedENUMBITBUCKETREPOSITORYEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_BITBUCKET_REPOSITORY value +func (v ENUMBITBUCKETREPOSITORY) Ptr() *ENUMBITBUCKETREPOSITORY { + return &v +} + +type NullableENUMBITBUCKETREPOSITORY struct { + value *ENUMBITBUCKETREPOSITORY + isSet bool +} + +func (v NullableENUMBITBUCKETREPOSITORY) Get() *ENUMBITBUCKETREPOSITORY { + return v.value +} + +func (v *NullableENUMBITBUCKETREPOSITORY) Set(val *ENUMBITBUCKETREPOSITORY) { + v.value = val + v.isSet = true +} + +func (v NullableENUMBITBUCKETREPOSITORY) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMBITBUCKETREPOSITORY) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMBITBUCKETREPOSITORY(val *ENUMBITBUCKETREPOSITORY) *NullableENUMBITBUCKETREPOSITORY { + return &NullableENUMBITBUCKETREPOSITORY{value: val, isSet: true} +} + +func (v NullableENUMBITBUCKETREPOSITORY) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMBITBUCKETREPOSITORY) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_browser_use.go b/pkg/api/v3/model_enum_browser_use.go deleted file mode 100644 index 4c521fb8..00000000 --- a/pkg/api/v3/model_enum_browser_use.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMBROWSERUSE the model 'ENUMBROWSERUSE' -type ENUMBROWSERUSE string - -// List of ENUM_BROWSER_USE -const ( - ENUMBROWSERUSE_BROWSER_USE ENUMBROWSERUSE = "browser_use" -) - -// All allowed values of ENUMBROWSERUSE enum -var AllowedENUMBROWSERUSEEnumValues = []ENUMBROWSERUSE{ - "browser_use", -} - -func (v *ENUMBROWSERUSE) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMBROWSERUSE(value) - for _, existing := range AllowedENUMBROWSERUSEEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMBROWSERUSE", value) -} - -// NewENUMBROWSERUSEFromValue returns a pointer to a valid ENUMBROWSERUSE -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMBROWSERUSEFromValue(v string) (*ENUMBROWSERUSE, error) { - ev := ENUMBROWSERUSE(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMBROWSERUSE: valid values are %v", v, AllowedENUMBROWSERUSEEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMBROWSERUSE) IsValid() bool { - for _, existing := range AllowedENUMBROWSERUSEEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_BROWSER_USE value -func (v ENUMBROWSERUSE) Ptr() *ENUMBROWSERUSE { - return &v -} - -type NullableENUMBROWSERUSE struct { - value *ENUMBROWSERUSE - isSet bool -} - -func (v NullableENUMBROWSERUSE) Get() *ENUMBROWSERUSE { - return v.value -} - -func (v *NullableENUMBROWSERUSE) Set(val *ENUMBROWSERUSE) { - v.value = val - v.isSet = true -} - -func (v NullableENUMBROWSERUSE) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMBROWSERUSE) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMBROWSERUSE(val *ENUMBROWSERUSE) *NullableENUMBROWSERUSE { - return &NullableENUMBROWSERUSE{value: val, isSet: true} -} - -func (v NullableENUMBROWSERUSE) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMBROWSERUSE) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_cdn.go b/pkg/api/v3/model_enum_cdn.go deleted file mode 100644 index 258ad3eb..00000000 --- a/pkg/api/v3/model_enum_cdn.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMCDN the model 'ENUMCDN' -type ENUMCDN string - -// List of ENUM_CDN -const ( - ENUMCDN_CDN ENUMCDN = "CDN" -) - -// All allowed values of ENUMCDN enum -var AllowedENUMCDNEnumValues = []ENUMCDN{ - "CDN", -} - -func (v *ENUMCDN) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMCDN(value) - for _, existing := range AllowedENUMCDNEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMCDN", value) -} - -// NewENUMCDNFromValue returns a pointer to a valid ENUMCDN -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMCDNFromValue(v string) (*ENUMCDN, error) { - ev := ENUMCDN(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMCDN: valid values are %v", v, AllowedENUMCDNEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMCDN) IsValid() bool { - for _, existing := range AllowedENUMCDNEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_CDN value -func (v ENUMCDN) Ptr() *ENUMCDN { - return &v -} - -type NullableENUMCDN struct { - value *ENUMCDN - isSet bool -} - -func (v NullableENUMCDN) Get() *ENUMCDN { - return v.value -} - -func (v *NullableENUMCDN) Set(val *ENUMCDN) { - v.value = val - v.isSet = true -} - -func (v NullableENUMCDN) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMCDN) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMCDN(val *ENUMCDN) *NullableENUMCDN { - return &NullableENUMCDN{value: val, isSet: true} -} - -func (v NullableENUMCDN) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMCDN) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_cloud_component.go b/pkg/api/v3/model_enum_cloud_component.go new file mode 100644 index 00000000..a0480b4a --- /dev/null +++ b/pkg/api/v3/model_enum_cloud_component.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMCLOUDCOMPONENT the model 'ENUMCLOUDCOMPONENT' +type ENUMCLOUDCOMPONENT string + +// List of ENUM_CLOUD_COMPONENT +const ( + ENUMCLOUDCOMPONENT_CLOUD_COMPONENT ENUMCLOUDCOMPONENT = "CLOUD_COMPONENT" +) + +// All allowed values of ENUMCLOUDCOMPONENT enum +var AllowedENUMCLOUDCOMPONENTEnumValues = []ENUMCLOUDCOMPONENT{ + "CLOUD_COMPONENT", +} + +func (v *ENUMCLOUDCOMPONENT) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMCLOUDCOMPONENT(value) + for _, existing := range AllowedENUMCLOUDCOMPONENTEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMCLOUDCOMPONENT", value) +} + +// NewENUMCLOUDCOMPONENTFromValue returns a pointer to a valid ENUMCLOUDCOMPONENT +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMCLOUDCOMPONENTFromValue(v string) (*ENUMCLOUDCOMPONENT, error) { + ev := ENUMCLOUDCOMPONENT(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMCLOUDCOMPONENT: valid values are %v", v, AllowedENUMCLOUDCOMPONENTEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMCLOUDCOMPONENT) IsValid() bool { + for _, existing := range AllowedENUMCLOUDCOMPONENTEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_CLOUD_COMPONENT value +func (v ENUMCLOUDCOMPONENT) Ptr() *ENUMCLOUDCOMPONENT { + return &v +} + +type NullableENUMCLOUDCOMPONENT struct { + value *ENUMCLOUDCOMPONENT + isSet bool +} + +func (v NullableENUMCLOUDCOMPONENT) Get() *ENUMCLOUDCOMPONENT { + return v.value +} + +func (v *NullableENUMCLOUDCOMPONENT) Set(val *ENUMCLOUDCOMPONENT) { + v.value = val + v.isSet = true +} + +func (v NullableENUMCLOUDCOMPONENT) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMCLOUDCOMPONENT) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMCLOUDCOMPONENT(val *ENUMCLOUDCOMPONENT) *NullableENUMCLOUDCOMPONENT { + return &NullableENUMCLOUDCOMPONENT{value: val, isSet: true} +} + +func (v NullableENUMCLOUDCOMPONENT) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMCLOUDCOMPONENT) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_cloudflare_account.go b/pkg/api/v3/model_enum_cloudflare_account.go deleted file mode 100644 index b56fa7ec..00000000 --- a/pkg/api/v3/model_enum_cloudflare_account.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMCLOUDFLAREACCOUNT the model 'ENUMCLOUDFLAREACCOUNT' -type ENUMCLOUDFLAREACCOUNT string - -// List of ENUM_CLOUDFLARE_ACCOUNT -const ( - ENUMCLOUDFLAREACCOUNT_CLOUDFLARE_ACCOUNT ENUMCLOUDFLAREACCOUNT = "CLOUDFLARE_ACCOUNT" -) - -// All allowed values of ENUMCLOUDFLAREACCOUNT enum -var AllowedENUMCLOUDFLAREACCOUNTEnumValues = []ENUMCLOUDFLAREACCOUNT{ - "CLOUDFLARE_ACCOUNT", -} - -func (v *ENUMCLOUDFLAREACCOUNT) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMCLOUDFLAREACCOUNT(value) - for _, existing := range AllowedENUMCLOUDFLAREACCOUNTEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMCLOUDFLAREACCOUNT", value) -} - -// NewENUMCLOUDFLAREACCOUNTFromValue returns a pointer to a valid ENUMCLOUDFLAREACCOUNT -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMCLOUDFLAREACCOUNTFromValue(v string) (*ENUMCLOUDFLAREACCOUNT, error) { - ev := ENUMCLOUDFLAREACCOUNT(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMCLOUDFLAREACCOUNT: valid values are %v", v, AllowedENUMCLOUDFLAREACCOUNTEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMCLOUDFLAREACCOUNT) IsValid() bool { - for _, existing := range AllowedENUMCLOUDFLAREACCOUNTEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_CLOUDFLARE_ACCOUNT value -func (v ENUMCLOUDFLAREACCOUNT) Ptr() *ENUMCLOUDFLAREACCOUNT { - return &v -} - -type NullableENUMCLOUDFLAREACCOUNT struct { - value *ENUMCLOUDFLAREACCOUNT - isSet bool -} - -func (v NullableENUMCLOUDFLAREACCOUNT) Get() *ENUMCLOUDFLAREACCOUNT { - return v.value -} - -func (v *NullableENUMCLOUDFLAREACCOUNT) Set(val *ENUMCLOUDFLAREACCOUNT) { - v.value = val - v.isSet = true -} - -func (v NullableENUMCLOUDFLAREACCOUNT) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMCLOUDFLAREACCOUNT) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMCLOUDFLAREACCOUNT(val *ENUMCLOUDFLAREACCOUNT) *NullableENUMCLOUDFLAREACCOUNT { - return &NullableENUMCLOUDFLAREACCOUNT{value: val, isSet: true} -} - -func (v NullableENUMCLOUDFLAREACCOUNT) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMCLOUDFLAREACCOUNT) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_cspm.go b/pkg/api/v3/model_enum_cspm.go deleted file mode 100644 index 1d63e1c8..00000000 --- a/pkg/api/v3/model_enum_cspm.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMCSPM the model 'ENUMCSPM' -type ENUMCSPM string - -// List of ENUM_CSPM -const ( - ENUMCSPM_CSPM ENUMCSPM = "CSPM" -) - -// All allowed values of ENUMCSPM enum -var AllowedENUMCSPMEnumValues = []ENUMCSPM{ - "CSPM", -} - -func (v *ENUMCSPM) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMCSPM(value) - for _, existing := range AllowedENUMCSPMEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMCSPM", value) -} - -// NewENUMCSPMFromValue returns a pointer to a valid ENUMCSPM -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMCSPMFromValue(v string) (*ENUMCSPM, error) { - ev := ENUMCSPM(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMCSPM: valid values are %v", v, AllowedENUMCSPMEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMCSPM) IsValid() bool { - for _, existing := range AllowedENUMCSPMEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_CSPM value -func (v ENUMCSPM) Ptr() *ENUMCSPM { - return &v -} - -type NullableENUMCSPM struct { - value *ENUMCSPM - isSet bool -} - -func (v NullableENUMCSPM) Get() *ENUMCSPM { - return v.value -} - -func (v *NullableENUMCSPM) Set(val *ENUMCSPM) { - v.value = val - v.isSet = true -} - -func (v NullableENUMCSPM) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMCSPM) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMCSPM(val *ENUMCSPM) *NullableENUMCSPM { - return &NullableENUMCSPM{value: val, isSet: true} -} - -func (v NullableENUMCSPM) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMCSPM) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_dev_tools.go b/pkg/api/v3/model_enum_dev_tools.go deleted file mode 100644 index 20fdad74..00000000 --- a/pkg/api/v3/model_enum_dev_tools.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMDEVTOOLS the model 'ENUMDEVTOOLS' -type ENUMDEVTOOLS string - -// List of ENUM_DEV_TOOLS -const ( - ENUMDEVTOOLS_DEV_TOOLS ENUMDEVTOOLS = "DEV_TOOLS" -) - -// All allowed values of ENUMDEVTOOLS enum -var AllowedENUMDEVTOOLSEnumValues = []ENUMDEVTOOLS{ - "DEV_TOOLS", -} - -func (v *ENUMDEVTOOLS) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMDEVTOOLS(value) - for _, existing := range AllowedENUMDEVTOOLSEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMDEVTOOLS", value) -} - -// NewENUMDEVTOOLSFromValue returns a pointer to a valid ENUMDEVTOOLS -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMDEVTOOLSFromValue(v string) (*ENUMDEVTOOLS, error) { - ev := ENUMDEVTOOLS(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMDEVTOOLS: valid values are %v", v, AllowedENUMDEVTOOLSEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMDEVTOOLS) IsValid() bool { - for _, existing := range AllowedENUMDEVTOOLSEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_DEV_TOOLS value -func (v ENUMDEVTOOLS) Ptr() *ENUMDEVTOOLS { - return &v -} - -type NullableENUMDEVTOOLS struct { - value *ENUMDEVTOOLS - isSet bool -} - -func (v NullableENUMDEVTOOLS) Get() *ENUMDEVTOOLS { - return v.value -} - -func (v *NullableENUMDEVTOOLS) Set(val *ENUMDEVTOOLS) { - v.value = val - v.isSet = true -} - -func (v NullableENUMDEVTOOLS) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMDEVTOOLS) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMDEVTOOLS(val *ENUMDEVTOOLS) *NullableENUMDEVTOOLS { - return &NullableENUMDEVTOOLS{value: val, isSet: true} -} - -func (v NullableENUMDEVTOOLS) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMDEVTOOLS) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_gcp_project.go b/pkg/api/v3/model_enum_gcp_project.go deleted file mode 100644 index cc6aa6f5..00000000 --- a/pkg/api/v3/model_enum_gcp_project.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMGCPPROJECT the model 'ENUMGCPPROJECT' -type ENUMGCPPROJECT string - -// List of ENUM_GCP_PROJECT -const ( - ENUMGCPPROJECT_GCP_PROJECT ENUMGCPPROJECT = "GCP_PROJECT" -) - -// All allowed values of ENUMGCPPROJECT enum -var AllowedENUMGCPPROJECTEnumValues = []ENUMGCPPROJECT{ - "GCP_PROJECT", -} - -func (v *ENUMGCPPROJECT) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMGCPPROJECT(value) - for _, existing := range AllowedENUMGCPPROJECTEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMGCPPROJECT", value) -} - -// NewENUMGCPPROJECTFromValue returns a pointer to a valid ENUMGCPPROJECT -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMGCPPROJECTFromValue(v string) (*ENUMGCPPROJECT, error) { - ev := ENUMGCPPROJECT(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMGCPPROJECT: valid values are %v", v, AllowedENUMGCPPROJECTEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMGCPPROJECT) IsValid() bool { - for _, existing := range AllowedENUMGCPPROJECTEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_GCP_PROJECT value -func (v ENUMGCPPROJECT) Ptr() *ENUMGCPPROJECT { - return &v -} - -type NullableENUMGCPPROJECT struct { - value *ENUMGCPPROJECT - isSet bool -} - -func (v NullableENUMGCPPROJECT) Get() *ENUMGCPPROJECT { - return v.value -} - -func (v *NullableENUMGCPPROJECT) Set(val *ENUMGCPPROJECT) { - v.value = val - v.isSet = true -} - -func (v NullableENUMGCPPROJECT) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMGCPPROJECT) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMGCPPROJECT(val *ENUMGCPPROJECT) *NullableENUMGCPPROJECT { - return &NullableENUMGCPPROJECT{value: val, isSet: true} -} - -func (v NullableENUMGCPPROJECT) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMGCPPROJECT) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_kubernetes_cluster.go b/pkg/api/v3/model_enum_kubernetes_cluster.go deleted file mode 100644 index f774d61c..00000000 --- a/pkg/api/v3/model_enum_kubernetes_cluster.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMKUBERNETESCLUSTER the model 'ENUMKUBERNETESCLUSTER' -type ENUMKUBERNETESCLUSTER string - -// List of ENUM_KUBERNETES_CLUSTER -const ( - ENUMKUBERNETESCLUSTER_KUBERNETES_CLUSTER ENUMKUBERNETESCLUSTER = "KUBERNETES_CLUSTER" -) - -// All allowed values of ENUMKUBERNETESCLUSTER enum -var AllowedENUMKUBERNETESCLUSTEREnumValues = []ENUMKUBERNETESCLUSTER{ - "KUBERNETES_CLUSTER", -} - -func (v *ENUMKUBERNETESCLUSTER) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMKUBERNETESCLUSTER(value) - for _, existing := range AllowedENUMKUBERNETESCLUSTEREnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMKUBERNETESCLUSTER", value) -} - -// NewENUMKUBERNETESCLUSTERFromValue returns a pointer to a valid ENUMKUBERNETESCLUSTER -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMKUBERNETESCLUSTERFromValue(v string) (*ENUMKUBERNETESCLUSTER, error) { - ev := ENUMKUBERNETESCLUSTER(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMKUBERNETESCLUSTER: valid values are %v", v, AllowedENUMKUBERNETESCLUSTEREnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMKUBERNETESCLUSTER) IsValid() bool { - for _, existing := range AllowedENUMKUBERNETESCLUSTEREnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_KUBERNETES_CLUSTER value -func (v ENUMKUBERNETESCLUSTER) Ptr() *ENUMKUBERNETESCLUSTER { - return &v -} - -type NullableENUMKUBERNETESCLUSTER struct { - value *ENUMKUBERNETESCLUSTER - isSet bool -} - -func (v NullableENUMKUBERNETESCLUSTER) Get() *ENUMKUBERNETESCLUSTER { - return v.value -} - -func (v *NullableENUMKUBERNETESCLUSTER) Set(val *ENUMKUBERNETESCLUSTER) { - v.value = val - v.isSet = true -} - -func (v NullableENUMKUBERNETESCLUSTER) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMKUBERNETESCLUSTER) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMKUBERNETESCLUSTER(val *ENUMKUBERNETESCLUSTER) *NullableENUMKUBERNETESCLUSTER { - return &NullableENUMKUBERNETESCLUSTER{value: val, isSet: true} -} - -func (v NullableENUMKUBERNETESCLUSTER) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMKUBERNETESCLUSTER) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_organizationadmins.go b/pkg/api/v3/model_enum_organizationadmins.go new file mode 100644 index 00000000..e6cb6039 --- /dev/null +++ b/pkg/api/v3/model_enum_organizationadmins.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMORGANIZATIONADMINS the model 'ENUMORGANIZATIONADMINS' +type ENUMORGANIZATIONADMINS string + +// List of ENUM_ORGANIZATIONADMINS +const ( + ENUMORGANIZATIONADMINS_ORGANIZATION_ADMINS ENUMORGANIZATIONADMINS = "organizationAdmins" +) + +// All allowed values of ENUMORGANIZATIONADMINS enum +var AllowedENUMORGANIZATIONADMINSEnumValues = []ENUMORGANIZATIONADMINS{ + "organizationAdmins", +} + +func (v *ENUMORGANIZATIONADMINS) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMORGANIZATIONADMINS(value) + for _, existing := range AllowedENUMORGANIZATIONADMINSEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMORGANIZATIONADMINS", value) +} + +// NewENUMORGANIZATIONADMINSFromValue returns a pointer to a valid ENUMORGANIZATIONADMINS +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMORGANIZATIONADMINSFromValue(v string) (*ENUMORGANIZATIONADMINS, error) { + ev := ENUMORGANIZATIONADMINS(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMORGANIZATIONADMINS: valid values are %v", v, AllowedENUMORGANIZATIONADMINSEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMORGANIZATIONADMINS) IsValid() bool { + for _, existing := range AllowedENUMORGANIZATIONADMINSEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_ORGANIZATIONADMINS value +func (v ENUMORGANIZATIONADMINS) Ptr() *ENUMORGANIZATIONADMINS { + return &v +} + +type NullableENUMORGANIZATIONADMINS struct { + value *ENUMORGANIZATIONADMINS + isSet bool +} + +func (v NullableENUMORGANIZATIONADMINS) Get() *ENUMORGANIZATIONADMINS { + return v.value +} + +func (v *NullableENUMORGANIZATIONADMINS) Set(val *ENUMORGANIZATIONADMINS) { + v.value = val + v.isSet = true +} + +func (v NullableENUMORGANIZATIONADMINS) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMORGANIZATIONADMINS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMORGANIZATIONADMINS(val *ENUMORGANIZATIONADMINS) *NullableENUMORGANIZATIONADMINS { + return &NullableENUMORGANIZATIONADMINS{value: val, isSet: true} +} + +func (v NullableENUMORGANIZATIONADMINS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMORGANIZATIONADMINS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_package.go b/pkg/api/v3/model_enum_package.go new file mode 100644 index 00000000..64568087 --- /dev/null +++ b/pkg/api/v3/model_enum_package.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPACKAGE the model 'ENUMPACKAGE' +type ENUMPACKAGE string + +// List of ENUM_PACKAGE +const ( + ENUMPACKAGE_PACKAGE ENUMPACKAGE = "PACKAGE" +) + +// All allowed values of ENUMPACKAGE enum +var AllowedENUMPACKAGEEnumValues = []ENUMPACKAGE{ + "PACKAGE", +} + +func (v *ENUMPACKAGE) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPACKAGE(value) + for _, existing := range AllowedENUMPACKAGEEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPACKAGE", value) +} + +// NewENUMPACKAGEFromValue returns a pointer to a valid ENUMPACKAGE +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPACKAGEFromValue(v string) (*ENUMPACKAGE, error) { + ev := ENUMPACKAGE(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPACKAGE: valid values are %v", v, AllowedENUMPACKAGEEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPACKAGE) IsValid() bool { + for _, existing := range AllowedENUMPACKAGEEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PACKAGE value +func (v ENUMPACKAGE) Ptr() *ENUMPACKAGE { + return &v +} + +type NullableENUMPACKAGE struct { + value *ENUMPACKAGE + isSet bool +} + +func (v NullableENUMPACKAGE) Get() *ENUMPACKAGE { + return v.value +} + +func (v *NullableENUMPACKAGE) Set(val *ENUMPACKAGE) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPACKAGE) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPACKAGE) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPACKAGE(val *ENUMPACKAGE) *NullableENUMPACKAGE { + return &NullableENUMPACKAGE{value: val, isSet: true} +} + +func (v NullableENUMPACKAGE) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPACKAGE) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_postman_organization.go b/pkg/api/v3/model_enum_postman_organization.go deleted file mode 100644 index 9b3783a5..00000000 --- a/pkg/api/v3/model_enum_postman_organization.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMPOSTMANORGANIZATION the model 'ENUMPOSTMANORGANIZATION' -type ENUMPOSTMANORGANIZATION string - -// List of ENUM_POSTMAN_ORGANIZATION -const ( - ENUMPOSTMANORGANIZATION_POSTMAN_ORGANIZATION ENUMPOSTMANORGANIZATION = "POSTMAN_ORGANIZATION" -) - -// All allowed values of ENUMPOSTMANORGANIZATION enum -var AllowedENUMPOSTMANORGANIZATIONEnumValues = []ENUMPOSTMANORGANIZATION{ - "POSTMAN_ORGANIZATION", -} - -func (v *ENUMPOSTMANORGANIZATION) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMPOSTMANORGANIZATION(value) - for _, existing := range AllowedENUMPOSTMANORGANIZATIONEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMPOSTMANORGANIZATION", value) -} - -// NewENUMPOSTMANORGANIZATIONFromValue returns a pointer to a valid ENUMPOSTMANORGANIZATION -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMPOSTMANORGANIZATIONFromValue(v string) (*ENUMPOSTMANORGANIZATION, error) { - ev := ENUMPOSTMANORGANIZATION(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMPOSTMANORGANIZATION: valid values are %v", v, AllowedENUMPOSTMANORGANIZATIONEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMPOSTMANORGANIZATION) IsValid() bool { - for _, existing := range AllowedENUMPOSTMANORGANIZATIONEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_POSTMAN_ORGANIZATION value -func (v ENUMPOSTMANORGANIZATION) Ptr() *ENUMPOSTMANORGANIZATION { - return &v -} - -type NullableENUMPOSTMANORGANIZATION struct { - value *ENUMPOSTMANORGANIZATION - isSet bool -} - -func (v NullableENUMPOSTMANORGANIZATION) Get() *ENUMPOSTMANORGANIZATION { - return v.value -} - -func (v *NullableENUMPOSTMANORGANIZATION) Set(val *ENUMPOSTMANORGANIZATION) { - v.value = val - v.isSet = true -} - -func (v NullableENUMPOSTMANORGANIZATION) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMPOSTMANORGANIZATION) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMPOSTMANORGANIZATION(val *ENUMPOSTMANORGANIZATION) *NullableENUMPOSTMANORGANIZATION { - return &NullableENUMPOSTMANORGANIZATION{value: val, isSet: true} -} - -func (v NullableENUMPOSTMANORGANIZATION) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMPOSTMANORGANIZATION) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_properties_actions_items_2_properties_parameters_properties_minseverity.go b/pkg/api/v3/model_enum_properties_actions_items_2_properties_parameters_properties_minseverity.go new file mode 100644 index 00000000..022ded19 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_actions_items_2_properties_parameters_properties_minseverity.go @@ -0,0 +1,116 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY The minimum severity of the issues to export +type ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY string + +// List of ENUM_PROPERTIES_ACTIONS_ITEMS_2_PROPERTIES_PARAMETERS_PROPERTIES_MINSEVERITY +const ( + ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY_CRITICAL ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY = "CRITICAL" + ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY_HIGH ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY = "HIGH" + ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY_INFO ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY = "INFO" + ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY_LOW ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY = "LOW" + ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY_MEDIUM ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY = "MEDIUM" +) + +// All allowed values of ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY enum +var AllowedENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITYEnumValues = []ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY{ + "CRITICAL", + "HIGH", + "INFO", + "LOW", + "MEDIUM", +} + +func (v *ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY(value) + for _, existing := range AllowedENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITYEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY", value) +} + +// NewENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITYFromValue returns a pointer to a valid ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITYFromValue(v string) (*ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY, error) { + ev := ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY: valid values are %v", v, AllowedENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITYEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITYEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_ACTIONS_ITEMS_2_PROPERTIES_PARAMETERS_PROPERTIES_MINSEVERITY value +func (v ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) Ptr() *ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY { + return &v +} + +type NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY struct { + value *ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY + isSet bool +} + +func (v NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) Get() *ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY { + return v.value +} + +func (v *NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) Set(val *ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY(val *ENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) *NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY { + return &NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESACTIONSITEMS2PROPERTIESPARAMETERSPROPERTIESMINSEVERITY) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_actions_items_properties_internalaction.go b/pkg/api/v3/model_enum_properties_actions_items_properties_internalaction.go new file mode 100644 index 00000000..68d82b49 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_actions_items_properties_internalaction.go @@ -0,0 +1,110 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION the model 'ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION' +type ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION string + +// List of ENUM_PROPERTIES_ACTIONS_ITEMS_PROPERTIES_INTERNALACTION +const ( + ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION_UPDATE_ASSET ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION = "UPDATE_ASSET" + ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION_UPDATE_ISSUE ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION = "UPDATE_ISSUE" +) + +// All allowed values of ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION enum +var AllowedENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTIONEnumValues = []ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION{ + "UPDATE_ASSET", + "UPDATE_ISSUE", +} + +func (v *ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION(value) + for _, existing := range AllowedENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTIONEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION", value) +} + +// NewENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTIONFromValue returns a pointer to a valid ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTIONFromValue(v string) (*ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION, error) { + ev := ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION: valid values are %v", v, AllowedENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTIONEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTIONEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_ACTIONS_ITEMS_PROPERTIES_INTERNALACTION value +func (v ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) Ptr() *ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION { + return &v +} + +type NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION struct { + value *ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION + isSet bool +} + +func (v NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) Get() *ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION { + return v.value +} + +func (v *NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) Set(val *ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION(val *ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) *NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION { + return &NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_actions_items_properties_type.go b/pkg/api/v3/model_enum_properties_actions_items_properties_type.go index b8f2d6ed..3497519b 100644 --- a/pkg/api/v3/model_enum_properties_actions_items_properties_type.go +++ b/pkg/api/v3/model_enum_properties_actions_items_properties_type.go @@ -20,12 +20,14 @@ type ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE string // List of ENUM_PROPERTIES_ACTIONS_ITEMS_PROPERTIES_TYPE const ( + ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE_ACT ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE = "ACT" ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE_EXPORT ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE = "EXPORT" ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE_NOTIFY ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE = "NOTIFY" ) // All allowed values of ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE enum var AllowedENUMPROPERTIESACTIONSITEMSPROPERTIESTYPEEnumValues = []ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE{ + "ACT", "EXPORT", "NOTIFY", } diff --git a/pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_0_properties_parameters_properties_method.go b/pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_0_properties_parameters_properties_method.go new file mode 100644 index 00000000..88230d1f --- /dev/null +++ b/pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_0_properties_parameters_properties_method.go @@ -0,0 +1,124 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD the model 'ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD' +type ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD string + +// List of ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_AUTHENTICATION_PROPERTIES_PROCEDURES_ITEMS_PROPERTIES_OPERATIONS_ITEMS_0_PROPERTIES_PARAMETERS_PROPERTIES_METHOD +const ( + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_CONNECT ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "CONNECT" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_DELETE ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "DELETE" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_GET ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "GET" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_HEAD ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "HEAD" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_OPTIONS ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "OPTIONS" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_PATCH ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "PATCH" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_POST ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "POST" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_PUT ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "PUT" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD_TRACE ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD = "TRACE" +) + +// All allowed values of ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD enum +var AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHODEnumValues = []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD{ + "CONNECT", + "DELETE", + "GET", + "HEAD", + "OPTIONS", + "PATCH", + "POST", + "PUT", + "TRACE", +} + +func (v *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD(value) + for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHODEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD", value) +} + +// NewENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHODFromValue returns a pointer to a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHODFromValue(v string) (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, error) { + ev := ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD: valid values are %v", v, AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHODEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHODEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_AUTHENTICATION_PROPERTIES_PROCEDURES_ITEMS_PROPERTIES_OPERATIONS_ITEMS_0_PROPERTIES_PARAMETERS_PROPERTIES_METHOD value +func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) Ptr() *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { + return &v +} + +type NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD struct { + value *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD + isSet bool +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) Get() *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { + return v.value +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) Set(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { + return &NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_5_properties_parameters_properties_environment.go b/pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_4_properties_parameters_properties_environment.go similarity index 68% rename from pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_5_properties_parameters_properties_environment.go rename to pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_4_properties_parameters_properties_environment.go index bf7815e7..64020bf4 100644 --- a/pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_5_properties_parameters_properties_environment.go +++ b/pkg/api/v3/model_enum_properties_configuration_properties_authentication_properties_procedures_items_properties_operations_items_4_properties_parameters_properties_environment.go @@ -15,52 +15,52 @@ import ( "fmt" ) -// ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT the model 'ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT' -type ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT string +// ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT the model 'ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT' +type ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT string -// List of ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_AUTHENTICATION_PROPERTIES_PROCEDURES_ITEMS_PROPERTIES_OPERATIONS_ITEMS_5_PROPERTIES_PARAMETERS_PROPERTIES_ENVIRONMENT +// List of ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_AUTHENTICATION_PROPERTIES_PROCEDURES_ITEMS_PROPERTIES_OPERATIONS_ITEMS_4_PROPERTIES_PARAMETERS_PROPERTIES_ENVIRONMENT const ( - ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT_BP ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT = "BP" - ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT_CE ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT = "CE" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT_BP ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT = "BP" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT_CE ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT = "CE" ) -// All allowed values of ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT enum -var AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENTEnumValues = []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT{ +// All allowed values of ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT enum +var AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENTEnumValues = []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT{ "BP", "CE", } -func (v *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) UnmarshalJSON(src []byte) error { +func (v *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) if err != nil { return err } - enumTypeValue := ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT(value) - for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENTEnumValues { + enumTypeValue := ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT(value) + for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENTEnumValues { if existing == enumTypeValue { *v = enumTypeValue return nil } } - return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT", value) + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT", value) } -// NewENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENTFromValue returns a pointer to a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT +// NewENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENTFromValue returns a pointer to a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT // for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENTFromValue(v string) (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT, error) { - ev := ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT(v) +func NewENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENTFromValue(v string) (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT, error) { + ev := ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT(v) if ev.IsValid() { return &ev, nil } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT: valid values are %v", v, AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENTEnumValues) + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT: valid values are %v", v, AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENTEnumValues) } } // IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) IsValid() bool { - for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENTEnumValues { +func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENTEnumValues { if existing == v { return true } @@ -68,43 +68,43 @@ func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESI return false } -// Ptr returns reference to ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_AUTHENTICATION_PROPERTIES_PROCEDURES_ITEMS_PROPERTIES_OPERATIONS_ITEMS_5_PROPERTIES_PARAMETERS_PROPERTIES_ENVIRONMENT value -func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) Ptr() *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { +// Ptr returns reference to ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_AUTHENTICATION_PROPERTIES_PROCEDURES_ITEMS_PROPERTIES_OPERATIONS_ITEMS_4_PROPERTIES_PARAMETERS_PROPERTIES_ENVIRONMENT value +func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) Ptr() *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { return &v } -type NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT struct { - value *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT +type NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT struct { + value *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT isSet bool } -func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) Get() *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) Get() *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { return v.value } -func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) Set(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) { +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) Set(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) { v.value = val v.isSet = true } -func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) IsSet() bool { +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) IsSet() bool { return v.isSet } -func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) Unset() { +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) Unset() { v.value = nil v.isSet = false } -func NewNullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { - return &NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT{value: val, isSet: true} +func NewNullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { + return &NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT{value: val, isSet: true} } -func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) MarshalJSON() ([]byte, error) { +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) UnmarshalJSON(src []byte) error { +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_enum_properties_configuration_properties_automated_pentesting_properties_business_logic_agent_properties_test_mode.go b/pkg/api/v3/model_enum_properties_configuration_properties_automated_pentesting_properties_business_logic_agent_properties_test_mode.go new file mode 100644 index 00000000..d83795c3 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_configuration_properties_automated_pentesting_properties_business_logic_agent_properties_test_mode.go @@ -0,0 +1,110 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE the model 'ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE' +type ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE string + +// List of ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_AUTOMATED_PENTESTING_PROPERTIES_BUSINESS_LOGIC_AGENT_PROPERTIES_TEST_MODE +const ( + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE_PRIVILEGE_ESCALATION ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE = "privilege_escalation" + ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE_TENANT_ISOLATION ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE = "tenant_isolation" +) + +// All allowed values of ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE enum +var AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODEEnumValues = []ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE{ + "privilege_escalation", + "tenant_isolation", +} + +func (v *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE(value) + for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODEEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE", value) +} + +// NewENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODEFromValue returns a pointer to a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODEFromValue(v string) (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE, error) { + ev := ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE: valid values are %v", v, AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODEEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODEEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_AUTOMATED_PENTESTING_PROPERTIES_BUSINESS_LOGIC_AGENT_PROPERTIES_TEST_MODE value +func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) Ptr() *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE { + return &v +} + +type NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE struct { + value *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE + isSet bool +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) Get() *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE { + return v.value +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) Set(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE { + return &NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_configuration_properties_graphql_api_dast_properties_exploration_depth.go b/pkg/api/v3/model_enum_properties_configuration_properties_graphql_api_dast_properties_exploration_depth.go new file mode 100644 index 00000000..446b3675 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_configuration_properties_graphql_api_dast_properties_exploration_depth.go @@ -0,0 +1,112 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH the model 'ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH' +type ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH string + +// List of ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_GRAPHQL_API_DAST_PROPERTIES_EXPLORATION_DEPTH +const ( + ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH_BALANCED ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH = "balanced" + ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH_DEEP ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH = "deep" + ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH_LIGHT ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH = "light" +) + +// All allowed values of ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH enum +var AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTHEnumValues = []ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH{ + "balanced", + "deep", + "light", +} + +func (v *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH(value) + for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTHEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH", value) +} + +// NewENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTHFromValue returns a pointer to a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTHFromValue(v string) (*ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH, error) { + ev := ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH: valid values are %v", v, AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTHEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTHEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_GRAPHQL_API_DAST_PROPERTIES_EXPLORATION_DEPTH value +func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) Ptr() *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH { + return &v +} + +type NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH struct { + value *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH + isSet bool +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) Get() *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH { + return v.value +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) Set(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH { + return &NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_configuration_properties_security_tests_properties_high_number_of_custom_scalars_properties_assets_allowed_items.go b/pkg/api/v3/model_enum_properties_configuration_properties_security_tests_properties_high_number_of_custom_scalars_properties_assets_allowed_items.go deleted file mode 100644 index 1104ebf0..00000000 --- a/pkg/api/v3/model_enum_properties_configuration_properties_security_tests_properties_high_number_of_custom_scalars_properties_assets_allowed_items.go +++ /dev/null @@ -1,158 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS the model 'ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS' -type ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS string - -// List of ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_SECURITY_TESTS_PROPERTIES_HIGH_NUMBER_OF_CUSTOM_SCALARS_PROPERTIES_ASSETS_ALLOWED_ITEMS -const ( - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_AKAMAI_ACCOUNT ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "AKAMAI_ACCOUNT" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_AWS_ACCOUNT ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "AWS_ACCOUNT" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_AZURE_TENANT ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "AZURE_TENANT" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_CLOUDFLARE_ACCOUNT ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "CLOUDFLARE_ACCOUNT" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_DNS ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "DNS" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_GCP_PROJECT ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "GCP_PROJECT" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_GITHUB_ORGANIZATION ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "GITHUB_ORGANIZATION" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_GITHUB_REPOSITORY ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "GITHUB_REPOSITORY" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_GITLAB_GROUP ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "GITLAB_GROUP" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_GITLAB_REPOSITORY ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "GITLAB_REPOSITORY" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_GRAPHQL ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "GRAPHQL" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_GRAPHQL_SCHEMA ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "GRAPHQL_SCHEMA" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_GRPC ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "GRPC" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_IPV4 ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "IPV4" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_IPV4_RANGE ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "IPV4_RANGE" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_IPV6 ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "IPV6" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_KUBERNETES_CLUSTER ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "KUBERNETES_CLUSTER" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_MCP ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "MCP" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_OPENAPI ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "OPENAPI" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_POSTMAN_COLLECTION ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "POSTMAN_COLLECTION" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_POSTMAN_ORGANIZATION ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "POSTMAN_ORGANIZATION" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_REST ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "REST" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_WEBAPP ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "WEBAPP" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_WEBSOCKET ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "WEBSOCKET" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_WIZ_ACCOUNT ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "WIZ_ACCOUNT" - ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS_WP_JSON ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS = "WP_JSON" -) - -// All allowed values of ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS enum -var AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMSEnumValues = []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS{ - "AKAMAI_ACCOUNT", - "AWS_ACCOUNT", - "AZURE_TENANT", - "CLOUDFLARE_ACCOUNT", - "DNS", - "GCP_PROJECT", - "GITHUB_ORGANIZATION", - "GITHUB_REPOSITORY", - "GITLAB_GROUP", - "GITLAB_REPOSITORY", - "GRAPHQL", - "GRAPHQL_SCHEMA", - "GRPC", - "IPV4", - "IPV4_RANGE", - "IPV6", - "KUBERNETES_CLUSTER", - "MCP", - "OPENAPI", - "POSTMAN_COLLECTION", - "POSTMAN_ORGANIZATION", - "REST", - "WEBAPP", - "WEBSOCKET", - "WIZ_ACCOUNT", - "WP_JSON", -} - -func (v *ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS(value) - for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMSEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS", value) -} - -// NewENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMSFromValue returns a pointer to a valid ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMSFromValue(v string) (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, error) { - ev := ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS: valid values are %v", v, AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMSEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) IsValid() bool { - for _, existing := range AllowedENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMSEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_PROPERTIES_CONFIGURATION_PROPERTIES_SECURITY_TESTS_PROPERTIES_HIGH_NUMBER_OF_CUSTOM_SCALARS_PROPERTIES_ASSETS_ALLOWED_ITEMS value -func (v ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) Ptr() *ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - return &v -} - -type NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS struct { - value *ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - isSet bool -} - -func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) Get() *ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - return v.value -} - -func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) Set(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - v.value = val - v.isSet = true -} - -func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS(val *ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - return &NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS{value: val, isSet: true} -} - -func (v NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_0_properties_in_items.go b/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_0_properties_in_items.go new file mode 100644 index 00000000..73a0e55f --- /dev/null +++ b/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_0_properties_in_items.go @@ -0,0 +1,110 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS the model 'ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS' +type ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS string + +// List of ENUM_PROPERTIES_CONTENT_PROPERTIES_RULE_0_PROPERTIES_TRANSFORM_PROPERTIES_TRIGGER_ITEMS_0_PROPERTIES_IN_ITEMS +const ( + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS_GRAPHQL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS = "GRAPHQL" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS_REST ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS = "REST" +) + +// All allowed values of ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS enum +var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMSEnumValues = []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS{ + "GRAPHQL", + "REST", +} + +func (v *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS(value) + for _, existing := range AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMSEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS", value) +} + +// NewENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMSFromValue returns a pointer to a valid ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMSFromValue(v string) (*ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS, error) { + ev := ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS: valid values are %v", v, AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMSEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMSEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_CONTENT_PROPERTIES_RULE_0_PROPERTIES_TRANSFORM_PROPERTIES_TRIGGER_ITEMS_0_PROPERTIES_IN_ITEMS value +func (v ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) Ptr() *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS { + return &v +} + +type NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS struct { + value *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS + isSet bool +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) Get() *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS { + return v.value +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) Set(val *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS(val *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS { + return &NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS0PROPERTIESINITEMS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_5_properties_in_items.go b/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_5_properties_in_items.go new file mode 100644 index 00000000..ae510124 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_5_properties_in_items.go @@ -0,0 +1,114 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS the model 'ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS' +type ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS string + +// List of ENUM_PROPERTIES_CONTENT_PROPERTIES_RULE_0_PROPERTIES_TRANSFORM_PROPERTIES_TRIGGER_ITEMS_5_PROPERTIES_IN_ITEMS +const ( + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS_CREATE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS = "CREATE" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS_DELETE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS = "DELETE" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS_READ ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS = "READ" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS_UPDATE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS = "UPDATE" +) + +// All allowed values of ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS enum +var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMSEnumValues = []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS{ + "CREATE", + "DELETE", + "READ", + "UPDATE", +} + +func (v *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS(value) + for _, existing := range AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMSEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS", value) +} + +// NewENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMSFromValue returns a pointer to a valid ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMSFromValue(v string) (*ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS, error) { + ev := ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS: valid values are %v", v, AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMSEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMSEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_CONTENT_PROPERTIES_RULE_0_PROPERTIES_TRANSFORM_PROPERTIES_TRIGGER_ITEMS_5_PROPERTIES_IN_ITEMS value +func (v ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) Ptr() *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS { + return &v +} + +type NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS struct { + value *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS + isSet bool +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) Get() *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS { + return v.value +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) Set(val *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS(val *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS { + return &NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS5PROPERTIESINITEMS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_7_properties_type_properties_in_items.go b/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_7_properties_type_properties_in_items.go new file mode 100644 index 00000000..627eadba --- /dev/null +++ b/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_7_properties_type_properties_in_items.go @@ -0,0 +1,568 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS the model 'ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS' +type ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS string + +// List of ENUM_PROPERTIES_CONTENT_PROPERTIES_RULE_0_PROPERTIES_TRANSFORM_PROPERTIES_TRIGGER_ITEMS_7_PROPERTIES_TYPE_PROPERTIES_IN_ITEMS +const ( + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ADOBE_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "adobe_client_secret" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_AGE_SECRET_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "age_secret_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ALIBABA_ACCESS_KEY_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "alibaba_access_key_id" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ALIBABA_SECRET_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "alibaba_secret_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_AMOUNT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "amount" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_APPLICATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "application" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_AREA_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "area_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ASANA_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "asana_client_secret" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ATLASSIAN_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "atlassian_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_AUTHENTICATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "authentication" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_AUTHOR ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "author" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_AUTHORIZATION_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "authorization_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_AWS_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "aws_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_AWS_MWS_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "aws_mws_id" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BANK ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "bank" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BANK_ACCOUNT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "bank_account" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BANK_CARD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "bank_card" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BASE64 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "base64" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BCRYPT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "bcrypt" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BEAMER_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "beamer_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BEARER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "bearer" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BEARER_UUID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "bearer_uuid" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BITBUCKET_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "bitbucket_client_secret" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BITCOIN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "bitcoin" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BODY_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "body_type" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BOOLEAN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "boolean" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BOOLEAN_WANNABE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "boolean_wannabe" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_BUILDING ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "building" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CARD_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "card_type" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CATEGORY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "category" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CITY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "city" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CLOJARS_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "clojars_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_COMMAND ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "command" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_COMMIT_HASH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "commit_hash" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CONFIRMATION_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "confirmation_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CONTENT_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "content_type" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_COUNTRY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "country" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_COUNTRY_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "country_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_COUNTY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "county" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_COUPON_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "coupon_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CUID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "cuid" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CURRENCY_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "currency_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_CVV ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "cvv" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DASH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "dash" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DATABRICKS_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "databricks_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DATADOG_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "datadog_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DATE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "date" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DATETIME ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "datetime" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DELIVERY_METHOD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "delivery_method" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DEVICE_NAME ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "device_name" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DEVICE_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "device_type" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "did" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DIGITALOCEAN_PAT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "digitalocean_pat" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DIRECTORY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "directory" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DISCOUNT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "discount" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DOCUMENT_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "document_type" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DOPPLER_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "doppler_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DRIVING_LICENSE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "driving_license" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DROPBOX_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "dropbox_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DROPBOX_LONG_LIVED_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "dropbox_long_lived_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DROPBOX_SHORT_LIVED_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "dropbox_short_lived_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DUFFEL_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "duffel_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DURATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "duration" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_DYNATRACE_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "dynatrace_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_E_COMMERCE_INDICATOR ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "e_commerce_indicator" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_EMAIL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "email" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ENVIRONMENT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "environment" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ETHEREUM ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "ethereum" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_EVENT_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "event_type" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_FACEBOOK ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "facebook" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_FEE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "fee" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_FILE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "file" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_FLOAT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "float" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_FORM ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "form" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_FRENCH_PHONE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "french_phone" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_FUNC ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "func" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GENDER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "gender" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GITHUB_APP_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "github_app_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GITHUB_FINE_GRAINED_PAT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "github_fine_grained_pat" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GITHUB_OAUTH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "github_oauth" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GITHUB_PAT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "github_pat" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GITHUB_REFRESH_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "github_refresh_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GITLAB_PAT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "gitlab_pat" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GITLAB_RRT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "gitlab_rrt" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GOOGLE_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "google_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_GRAFANA_SERVICE_ACCOUNT_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "grafana_service_account_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HASH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "hash" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HASHICORP_TF_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "hashicorp_tf_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HEALTH_INSURANCE_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "health_insurance_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HEROKU_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "heroku_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HEX_COLOR_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "hex_color_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HEXADECIMAL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "hexadecimal" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HOST ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "host" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HOUSE_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "house_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HSL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "hsl" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HSLA ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "hsla" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HTML_BODY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "html_body" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HTTP_METHOD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "http_method" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HUBSPOT_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "hubspot_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_HUGGINGFACE_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "huggingface_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "id" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_IDENTITY_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "identity_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_INJECTION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "injection" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_INTEGER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "integer" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_INTERCOM_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "intercom_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_IPC_PATENT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "ipc_patent" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_IPV4 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "ipv4" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_IPV6 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "ipv6" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ISBN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "isbn" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ITEM ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "item" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_JFROG_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "jfrog_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_JOIN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "join" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_JSON ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "json" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_JWT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "jwt" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LANGUAGE_ISO_639_1 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "language_iso_639_1" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LANGUAGE_ISO_639_2 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "language_iso_639_2" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LATITUDE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "latitude" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LAUNCHDARKLY_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "launchdarkly_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LEGAL_NAME ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "legal_name" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LIMIT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "limit" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LINEAR_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "linear_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LINEAR_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "linear_client_secret" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LINKEDIN_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "linkedin_client_secret" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LLM_INPUT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "llm_input" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LOB_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "lob_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LOCALE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "locale" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LOCATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "location" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_LONGITUDE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "longitude" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MAC ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "mac" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MAILCHIMP_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "mailchimp_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MAILGUN_PRIVATE_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "mailgun_private_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MAILGUN_SIGNING_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "mailgun_signing_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MASK ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "mask" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MD5 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "md5" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MEDICAL_RECORD_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "medical_record_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MERCHANT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "merchant" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MESSAGEBIRD_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "messagebird_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MICROSOFT_TEAMS_WEBHOOK ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "microsoft_teams_webhook" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MONERO ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "monero" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MONGO_DB_OBJECT_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "mongo_db_object_id" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_MONTH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "month" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_NAVIGATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "navigation" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_NETLIFY_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "netlify_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_NEW_RELIC_USER_API_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "new_relic_user_api_id" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_NPM_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "npm_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_OFFSET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "offset" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_OKTA_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "okta_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_OPENAI_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "openai_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PAGINATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "pagination" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PAGINATION_LIMIT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "pagination_limit" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PAGINATION_WANNABE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "pagination_wannabe" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PASSPORT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "passport" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PASSWORD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "password" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PERMISSION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "permission" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PHONE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "phone" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PIN_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "pin_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PLAN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "plan" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PLANETSCALE_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "planetscale_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PLANETSCALE_PASSWORD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "planetscale_password" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_POLICY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "policy" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PORT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "port" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_POSTMAN_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "postman_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PRESCRIPTION_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "prescription_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PRICE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "price" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PRIVATE_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "private_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PROTOCOL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "protocol" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PUBNUBPUBLISHKEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "pubnubpublishkey" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PULUMI_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "pulumi_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_PYPI_UPLOAD_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "pypi_upload_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_REASON_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "reason_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_REFERENCE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "reference" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_REGION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "region" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_RETURN_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "return_type" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_RGB ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "rgb" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_RGBA ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "rgba" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ROLE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "role" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_RUBYGEMS_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "rubygems_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SEARCH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "search" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "secret" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SENDGRID_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "sendgrid_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SENDINBLUE_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "sendinblue_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SENTRY_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "sentry_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SERIAL_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "serial_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SHA1 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "sha1" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SHA256 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "sha256" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SHIPPING_METHOD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "shipping_method" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SHIPPO_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "shippo_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SHOPIFY_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "shopify_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SHOPIFY_CUSTOM_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "shopify_custom_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SHOPIFY_PRIVATE_APP_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "shopify_private_app_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SHOPIFY_SHARED_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "shopify_shared_secret" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SIDEKIQ_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "sidekiq_secret" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SLACK_BOT_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "slack_bot_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SLACK_LEGACY_WORKSPACE_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "slack_legacy_workspace_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SLACK_USER_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "slack_user_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SLACK_WEBHOOK_URL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "slack_webhook_url" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SLUG ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "slug" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SOCIAL_SECURITY_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "social_security_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SOFTWARE_COMPONENT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "software_component" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SSH_URL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "ssh_url" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_STATUS ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "status" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_STATUS_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "status_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_STATUS_MESSAGE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "status_message" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_STREET_ADDRESS ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "street_address" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_STRING ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "string" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_STRIPE_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "stripe_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_STRIPE_PUBLIC_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "stripe_public_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_SUMOLOGIC_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "sumologic_access_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_TIME ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "time" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_TIMESTAMP ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "timestamp" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_TITLE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "title" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_TWITCH_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "twitch_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_TWITTER_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "twitter_api_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_TYPEFORM_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "typeform_api_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_UNSANITIZED_PAYLOAD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "unsanitized_payload" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_UPLOAD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "upload" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_URI ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "uri" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_URL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "url" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_US_BANK_ACCOUNT_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "us_bank_account_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_US_BANK_ROUTING_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "us_bank_routing_number" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_US_ZIP_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "us_zip_code" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_USER_AGENT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "user_agent" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_USERNAME ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "username" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_UUID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "uuid" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_VAULT_SERVICE_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "vault_service_token" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_VEHICLE_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "vehicle_type" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_VERSION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "version" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_VIEW ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "view" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_YEAR ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "year" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ZENDESK_SECRET_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "zendesk_secret_key" + ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS_ZIP_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS = "zip_code" +) + +// All allowed values of ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS enum +var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMSEnumValues = []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS{ + "adobe_client_secret", + "age_secret_key", + "alibaba_access_key_id", + "alibaba_secret_key", + "amount", + "application", + "area_code", + "asana_client_secret", + "atlassian_api_token", + "authentication", + "author", + "authorization_code", + "aws_access_token", + "aws_mws_id", + "bank", + "bank_account", + "bank_card", + "base64", + "bcrypt", + "beamer_api_token", + "bearer", + "bearer_uuid", + "bitbucket_client_secret", + "bitcoin", + "body_type", + "boolean", + "boolean_wannabe", + "building", + "card_type", + "category", + "city", + "clojars_api_token", + "command", + "commit_hash", + "confirmation_code", + "content_type", + "country", + "country_code", + "county", + "coupon_code", + "cuid", + "currency_code", + "cvv", + "dash", + "databricks_api_token", + "datadog_access_token", + "date", + "datetime", + "delivery_method", + "device_name", + "device_type", + "did", + "digitalocean_pat", + "directory", + "discount", + "document_type", + "doppler_api_token", + "driving_license", + "dropbox_api_token", + "dropbox_long_lived_api_token", + "dropbox_short_lived_api_token", + "duffel_api_token", + "duration", + "dynatrace_api_token", + "e_commerce_indicator", + "email", + "environment", + "ethereum", + "event_type", + "facebook", + "fee", + "file", + "float", + "form", + "french_phone", + "func", + "gender", + "github_app_token", + "github_fine_grained_pat", + "github_oauth", + "github_pat", + "github_refresh_token", + "gitlab_pat", + "gitlab_rrt", + "google_api_key", + "grafana_service_account_token", + "hash", + "hashicorp_tf_api_token", + "health_insurance_number", + "heroku_api_key", + "hex_color_code", + "hexadecimal", + "host", + "house_number", + "hsl", + "hsla", + "html_body", + "http_method", + "hubspot_api_key", + "huggingface_token", + "id", + "identity_number", + "injection", + "integer", + "intercom_api_key", + "ipc_patent", + "ipv4", + "ipv6", + "isbn", + "item", + "jfrog_api_key", + "join", + "json", + "jwt", + "language_iso_639_1", + "language_iso_639_2", + "latitude", + "launchdarkly_access_token", + "legal_name", + "limit", + "linear_api_key", + "linear_client_secret", + "linkedin_client_secret", + "llm_input", + "lob_api_key", + "locale", + "location", + "longitude", + "mac", + "mailchimp_api_key", + "mailgun_private_api_token", + "mailgun_signing_key", + "mask", + "md5", + "medical_record_number", + "merchant", + "messagebird_api_token", + "microsoft_teams_webhook", + "monero", + "mongo_db_object_id", + "month", + "navigation", + "netlify_access_token", + "new_relic_user_api_id", + "npm_access_token", + "offset", + "okta_access_token", + "openai_api_key", + "pagination", + "pagination_limit", + "pagination_wannabe", + "passport", + "password", + "permission", + "phone", + "pin_code", + "plan", + "planetscale_api_token", + "planetscale_password", + "policy", + "port", + "postman_api_token", + "prescription_number", + "price", + "private_key", + "protocol", + "pubnubpublishkey", + "pulumi_api_token", + "pypi_upload_token", + "reason_code", + "reference", + "region", + "return_type", + "rgb", + "rgba", + "role", + "rubygems_api_token", + "search", + "secret", + "sendgrid_api_token", + "sendinblue_api_token", + "sentry_access_token", + "serial_number", + "sha1", + "sha256", + "shipping_method", + "shippo_api_token", + "shopify_access_token", + "shopify_custom_access_token", + "shopify_private_app_access_token", + "shopify_shared_secret", + "sidekiq_secret", + "slack_bot_token", + "slack_legacy_workspace_token", + "slack_user_token", + "slack_webhook_url", + "slug", + "social_security_number", + "software_component", + "ssh_url", + "status", + "status_code", + "status_message", + "street_address", + "string", + "stripe_access_token", + "stripe_public_access_token", + "sumologic_access_token", + "time", + "timestamp", + "title", + "twitch_api_token", + "twitter_api_key", + "typeform_api_token", + "unsanitized_payload", + "upload", + "uri", + "url", + "us_bank_account_number", + "us_bank_routing_number", + "us_zip_code", + "user_agent", + "username", + "uuid", + "vault_service_token", + "vehicle_type", + "version", + "view", + "year", + "zendesk_secret_key", + "zip_code", +} + +func (v *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS(value) + for _, existing := range AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMSEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS", value) +} + +// NewENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMSFromValue returns a pointer to a valid ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMSFromValue(v string) (*ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS, error) { + ev := ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS: valid values are %v", v, AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMSEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMSEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_CONTENT_PROPERTIES_RULE_0_PROPERTIES_TRANSFORM_PROPERTIES_TRIGGER_ITEMS_7_PROPERTIES_TYPE_PROPERTIES_IN_ITEMS value +func (v ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) Ptr() *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS { + return &v +} + +type NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS struct { + value *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS + isSet bool +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) Get() *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS { + return v.value +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) Set(val *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS(val *ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS { + return &NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESINITEMS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_7_properties_type_properties_is.go b/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_7_properties_type_properties_is.go index 573b6324..a8c20d67 100644 --- a/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_7_properties_type_properties_is.go +++ b/pkg/api/v3/model_enum_properties_content_properties_rule_0_properties_transform_properties_trigger_items_7_properties_type_properties_is.go @@ -20,16 +20,13 @@ type ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITE // List of ENUM_PROPERTIES_CONTENT_PROPERTIES_RULE_0_PROPERTIES_TRANSFORM_PROPERTIES_TRIGGER_ITEMS_7_PROPERTIES_TYPE_PROPERTIES_IS const ( - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ADOBE_CLIENT_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "adobe_client_id" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ADOBE_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "adobe_client_secret" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_AGE_SECRET_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "age_secret_key" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ALGOLIA_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "algolia_api_key" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ALIBABA_ACCESS_KEY_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "alibaba_access_key_id" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ALIBABA_SECRET_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "alibaba_secret_key" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_AMOUNT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "amount" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_APPLICATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "application" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_AREA_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "area_code" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ASANA_CLIENT_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "asana_client_id" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ASANA_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "asana_client_secret" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ATLASSIAN_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "atlassian_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_AUTHENTICATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "authentication" @@ -45,7 +42,6 @@ const ( ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_BEAMER_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "beamer_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_BEARER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "bearer" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_BEARER_UUID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "bearer_uuid" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_BITBUCKET_CLIENT_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "bitbucket_client_id" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_BITBUCKET_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "bitbucket_client_secret" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_BITCOIN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "bitcoin" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_BODY_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "body_type" @@ -60,7 +56,6 @@ const ( ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_COMMIT_HASH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "commit_hash" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_CONFIRMATION_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "confirmation_code" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_CONTENT_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "content_type" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_CONTENTFUL_DELIVERY_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "contentful_delivery_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_COUNTRY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "country" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_COUNTRY_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "country_code" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_COUNTY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "county" @@ -90,28 +85,17 @@ const ( ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_DURATION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "duration" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_DYNATRACE_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "dynatrace_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_E_COMMERCE_INDICATOR ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "e_commerce_indicator" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_EASYPOST_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "easypost_api_token" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_EASYPOST_TEST_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "easypost_test_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_EMAIL ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "email" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ENVIRONMENT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "environment" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ETHEREUM ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "ethereum" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ETSY_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "etsy_access_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_EVENT_TYPE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "event_type" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FACEBOOK ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "facebook" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FASTLY_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "fastly_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FEE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "fee" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FILE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "file" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FINICITY_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "finicity_api_token" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FINICITY_CLIENT_SECRET ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "finicity_client_secret" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FLICKR_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "flickr_access_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FLOAT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "float" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FLUTTERWAVE_ENCRYPTION_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "flutterwave_encryption_key" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FLUTTERWAVE_SECRET_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "flutterwave_secret_key" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FORM ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "form" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FRAMEIO_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "frameio_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FRENCH_PHONE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "french_phone" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_FUNC ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "func" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GCP_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "gcp_api_key" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GENDER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "gender" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GITHUB_APP_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "github_app_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GITHUB_FINE_GRAINED_PAT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "github_fine_grained_pat" @@ -121,9 +105,7 @@ const ( ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GITLAB_PAT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "gitlab_pat" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GITLAB_RRT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "gitlab_rrt" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GOOGLE_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "google_api_key" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GRAFANA_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "grafana_api_key" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GRAFANA_SERVICE_ACCOUNT_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "grafana_service_account_token" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_GRAPHCMS ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "graphcms" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_HASH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "hash" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_HASHICORP_TF_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "hashicorp_tf_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_HEALTH_INSURANCE_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "health_insurance_number" @@ -141,17 +123,14 @@ const ( ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ID ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "id" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_IDENTITY_NUMBER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "identity_number" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_INJECTION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "injection" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_INSTAGRAM_OAUTH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "instagram_oauth" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_INTEGER ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "integer" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_INTERCOM_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "intercom_api_key" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_IPC_PATENT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "ipc_patent" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_IPSTACK_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "ipstack_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_IPV4 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "ipv4" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_IPV6 ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "ipv6" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ISBN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "isbn" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_ITEM ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "item" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_JFROG_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "jfrog_api_key" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_JIRATOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "jiratoken" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_JOIN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "join" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_JSON ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "json" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_JWT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "jwt" @@ -194,7 +173,6 @@ const ( ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_PAGINATION_WANNABE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "pagination_wannabe" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_PASSPORT ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "passport" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_PASSWORD ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "password" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_PAYPALOAUTH ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "paypaloauth" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_PERMISSION ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "permission" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_PHONE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "phone" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_PIN_CODE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "pin_code" @@ -250,11 +228,9 @@ const ( ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_STRIPE_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "stripe_access_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_STRIPE_PUBLIC_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "stripe_public_access_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_SUMOLOGIC_ACCESS_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "sumologic_access_token" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_THINKIFIC ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "thinkific" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_TIME ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "time" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_TIMESTAMP ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "timestamp" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_TITLE ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "title" - ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_TWILIO_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "twilio_api_key" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_TWITCH_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "twitch_api_token" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_TWITTER_API_KEY ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "twitter_api_key" ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS_TYPEFORM_API_TOKEN ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS = "typeform_api_token" @@ -279,16 +255,13 @@ const ( // All allowed values of ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS enum var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESISEnumValues = []ENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIGGERITEMS7PROPERTIESTYPEPROPERTIESIS{ - "adobe_client_id", "adobe_client_secret", "age_secret_key", - "algolia_api_key", "alibaba_access_key_id", "alibaba_secret_key", "amount", "application", "area_code", - "asana_client_id", "asana_client_secret", "atlassian_api_token", "authentication", @@ -304,7 +277,6 @@ var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIG "beamer_api_token", "bearer", "bearer_uuid", - "bitbucket_client_id", "bitbucket_client_secret", "bitcoin", "body_type", @@ -319,7 +291,6 @@ var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIG "commit_hash", "confirmation_code", "content_type", - "contentful_delivery_api_token", "country", "country_code", "county", @@ -349,28 +320,17 @@ var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIG "duration", "dynatrace_api_token", "e_commerce_indicator", - "easypost_api_token", - "easypost_test_api_token", "email", "environment", "ethereum", - "etsy_access_token", "event_type", "facebook", - "fastly_api_token", "fee", "file", - "finicity_api_token", - "finicity_client_secret", - "flickr_access_token", "float", - "flutterwave_encryption_key", - "flutterwave_secret_key", "form", - "frameio_api_token", "french_phone", "func", - "gcp_api_key", "gender", "github_app_token", "github_fine_grained_pat", @@ -380,9 +340,7 @@ var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIG "gitlab_pat", "gitlab_rrt", "google_api_key", - "grafana_api_key", "grafana_service_account_token", - "graphcms", "hash", "hashicorp_tf_api_token", "health_insurance_number", @@ -400,17 +358,14 @@ var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIG "id", "identity_number", "injection", - "instagram_oauth", "integer", "intercom_api_key", "ipc_patent", - "ipstack_token", "ipv4", "ipv6", "isbn", "item", "jfrog_api_key", - "jiratoken", "join", "json", "jwt", @@ -453,7 +408,6 @@ var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIG "pagination_wannabe", "passport", "password", - "paypaloauth", "permission", "phone", "pin_code", @@ -509,11 +463,9 @@ var AllowedENUMPROPERTIESCONTENTPROPERTIESRULE0PROPERTIESTRANSFORMPROPERTIESTRIG "stripe_access_token", "stripe_public_access_token", "sumologic_access_token", - "thinkific", "time", "timestamp", "title", - "twilio_api_key", "twitch_api_token", "twitter_api_key", "typeform_api_token", diff --git a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_class.go b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_class.go index 224bb9fa..bedfd280 100644 --- a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_class.go +++ b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_class.go @@ -22,7 +22,9 @@ type ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS string const ( ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_API_SERVICE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "API_SERVICE" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_CDN ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "CDN" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_CLOUD_COMPONENT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "CLOUD_COMPONENT" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_CLOUD_HOSTING ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "CLOUD_HOSTING" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_CODE_PROJECT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "CODE_PROJECT" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_CSPM ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "CSPM" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_DEV_TOOLS ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "DEV_TOOLS" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_FRONTEND ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "FRONTEND" @@ -31,13 +33,16 @@ const ( ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_REPOSITORY ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "REPOSITORY" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_SCHEMA ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "SCHEMA" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_SOURCE_CODE_MANAGEMENT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "SOURCE_CODE_MANAGEMENT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS_TECHNOLOGY ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS = "TECHNOLOGY" ) // All allowed values of ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS enum var AllowedENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASSEnumValues = []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS{ "API_SERVICE", "CDN", + "CLOUD_COMPONENT", "CLOUD_HOSTING", + "CODE_PROJECT", "CSPM", "DEV_TOOLS", "FRONTEND", @@ -46,6 +51,7 @@ var AllowedENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASSEnumValues = []E "REPOSITORY", "SCHEMA", "SOURCE_CODE_MANAGEMENT", + "TECHNOLOGY", } func (v *ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS) UnmarshalJSON(src []byte) error { diff --git a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_risks_items.go b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_risks_items.go index bc7cc4f8..a6fa29b8 100644 --- a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_risks_items.go +++ b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_risks_items.go @@ -23,6 +23,7 @@ const ( ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS_CRITICAL_FINDING ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS = "CRITICAL_FINDING" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS_EXPOSED ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS = "EXPOSED" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS_OPEN_SCHEMA ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS = "OPEN_SCHEMA" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS_PRIVATE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS = "PRIVATE" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS_PROD_ONLY_MODE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS = "PROD_ONLY_MODE" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS_SENSITIVE_DATA ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS = "SENSITIVE_DATA" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS_UNAUTHENTICATED ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS = "UNAUTHENTICATED" @@ -33,6 +34,7 @@ var AllowedENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMSEnumValues "CRITICAL_FINDING", "EXPOSED", "OPEN_SCHEMA", + "PRIVATE", "PROD_ONLY_MODE", "SENSITIVE_DATA", "UNAUTHENTICATED", diff --git a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_service_properties_type.go b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_service_properties_type.go index 899c321c..30a46ce0 100644 --- a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_service_properties_type.go +++ b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_service_properties_type.go @@ -24,6 +24,7 @@ const ( ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE_GRPC ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE = "GRPC" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE_MCP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE = "MCP" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE_REST ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE = "REST" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE_SOAP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE = "SOAP" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE_WEBSOCKET ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE = "WEBSOCKET" ) @@ -33,6 +34,7 @@ var AllowedENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSERVICEPROPERTIESTYPE "GRPC", "MCP", "REST", + "SOAP", "WEBSOCKET", } diff --git a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_status.go b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_status.go index 6772531b..60bd8e4c 100644 --- a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_status.go +++ b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_status.go @@ -24,7 +24,6 @@ const ( ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS_FALSE_POSITIVE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS = "FALSE_POSITIVE" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS_MONITORED ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS = "MONITORED" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS_OUT_OF_SCOPE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS = "OUT_OF_SCOPE" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS_PERMANENT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS = "PERMANENT" ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS_THIRD_PARTY ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS = "THIRD_PARTY" ) @@ -34,7 +33,6 @@ var AllowedENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUSEnumValues = [] "FALSE_POSITIVE", "MONITORED", "OUT_OF_SCOPE", - "PERMANENT", "THIRD_PARTY", } diff --git a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_type.go b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_type.go index bfd9d054..1af6b9a0 100644 --- a/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_type.go +++ b/pkg/api/v3/model_enum_properties_data_items_properties_asset_properties_type.go @@ -20,44 +20,56 @@ type ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE string // List of ENUM_PROPERTIES_DATA_ITEMS_PROPERTIES_ASSET_PROPERTIES_TYPE const ( - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_AKAMAI_ACCOUNT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "AKAMAI_ACCOUNT" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_AWS_ACCOUNT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "AWS_ACCOUNT" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_AZURE_TENANT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "AZURE_TENANT" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_BURPSUITE_EXPORT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "BURPSUITE_EXPORT" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_CLOUDFLARE_ACCOUNT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "CLOUDFLARE_ACCOUNT" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_DNS ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "DNS" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GCP_PROJECT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GCP_PROJECT" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GITHUB_ORGANIZATION ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GITHUB_ORGANIZATION" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GITHUB_REPOSITORY ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GITHUB_REPOSITORY" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GITLAB_GROUP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GITLAB_GROUP" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GITLAB_REPOSITORY ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GITLAB_REPOSITORY" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GRAPHQL ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GRAPHQL" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GRAPHQL_SCHEMA ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GRAPHQL_SCHEMA" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GRPC ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GRPC" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_HAR_EXPORT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "HAR_EXPORT" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_INSOMNIA ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "INSOMNIA" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_IPV4 ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "IPV4" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_IPV4_RANGE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "IPV4_RANGE" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_IPV6 ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "IPV6" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_KUBERNETES_CLUSTER ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "KUBERNETES_CLUSTER" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_MCP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "MCP" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_OPENAPI ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "OPENAPI" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_POSTMAN_COLLECTION ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "POSTMAN_COLLECTION" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_POSTMAN_ORGANIZATION ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "POSTMAN_ORGANIZATION" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_REST ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "REST" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_WEBAPP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "WEBAPP" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_WEBSOCKET ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "WEBSOCKET" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_WIZ_ACCOUNT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "WIZ_ACCOUNT" - ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_WP_JSON ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "WP_JSON" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_AKAMAI_ACCOUNT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "AKAMAI_ACCOUNT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_AWS_ACCOUNT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "AWS_ACCOUNT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_AWS_LAMBDA ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "AWS_LAMBDA" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_AZURE_TENANT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "AZURE_TENANT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_BITBUCKET_ORGANIZATION ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "BITBUCKET_ORGANIZATION" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_BITBUCKET_REPOSITORY ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "BITBUCKET_REPOSITORY" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_BURPSUITE_EXPORT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "BURPSUITE_EXPORT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_CLOUDFLARE_ACCOUNT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "CLOUDFLARE_ACCOUNT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_CODE_PROJECT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "CODE_PROJECT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_DNS ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "DNS" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GCP_PROJECT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GCP_PROJECT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GITHUB_ORGANIZATION ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GITHUB_ORGANIZATION" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GITHUB_REPOSITORY ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GITHUB_REPOSITORY" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GITLAB_GROUP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GITLAB_GROUP" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GITLAB_REPOSITORY ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GITLAB_REPOSITORY" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GRAPHQL ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GRAPHQL" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GRAPHQL_SCHEMA ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GRAPHQL_SCHEMA" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_GRPC ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "GRPC" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_HAR_EXPORT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "HAR_EXPORT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_INSOMNIA ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "INSOMNIA" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_IPV4 ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "IPV4" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_IPV4_RANGE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "IPV4_RANGE" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_IPV6 ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "IPV6" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_KUBERNETES_CLUSTER ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "KUBERNETES_CLUSTER" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_MCP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "MCP" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_OPENAPI ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "OPENAPI" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_PACKAGE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "PACKAGE" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_POSTMAN_COLLECTION ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "POSTMAN_COLLECTION" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_POSTMAN_ENVIRONMENT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "POSTMAN_ENVIRONMENT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_POSTMAN_ORGANIZATION ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "POSTMAN_ORGANIZATION" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_REST ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "REST" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_SOAP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "SOAP" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_SOFTWARE ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "SOFTWARE" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_WEBAPP ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "WEBAPP" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_WEBSOCKET ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "WEBSOCKET" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_WIZ_ACCOUNT ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "WIZ_ACCOUNT" + ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE_WP_JSON ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE = "WP_JSON" ) // All allowed values of ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE enum var AllowedENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPEEnumValues = []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE{ "AKAMAI_ACCOUNT", "AWS_ACCOUNT", + "AWS_LAMBDA", "AZURE_TENANT", + "BITBUCKET_ORGANIZATION", + "BITBUCKET_REPOSITORY", "BURPSUITE_EXPORT", "CLOUDFLARE_ACCOUNT", + "CODE_PROJECT", "DNS", "GCP_PROJECT", "GITHUB_ORGANIZATION", @@ -75,9 +87,13 @@ var AllowedENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPEEnumValues = []EN "KUBERNETES_CLUSTER", "MCP", "OPENAPI", + "PACKAGE", "POSTMAN_COLLECTION", + "POSTMAN_ENVIRONMENT", "POSTMAN_ORGANIZATION", "REST", + "SOAP", + "SOFTWARE", "WEBAPP", "WEBSOCKET", "WIZ_ACCOUNT", diff --git a/pkg/api/v3/model_enum_properties_data_items_properties_kind.go b/pkg/api/v3/model_enum_properties_data_items_properties_kind.go index 265ac39e..5d60d688 100644 --- a/pkg/api/v3/model_enum_properties_data_items_properties_kind.go +++ b/pkg/api/v3/model_enum_properties_data_items_properties_kind.go @@ -21,10 +21,8 @@ type ENUMPROPERTIESDATAITEMSPROPERTIESKIND string // List of ENUM_PROPERTIES_DATA_ITEMS_PROPERTIES_KIND const ( ENUMPROPERTIESDATAITEMSPROPERTIESKIND_AKAMAI ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "AKAMAI" - ENUMPROPERTIESDATAITEMSPROPERTIESKIND_APIGEE ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "APIGEE" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_AWS ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "AWS" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_AZURE ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "AZURE" - ENUMPROPERTIESDATAITEMSPROPERTIESKIND_AZURE_DEVOPS ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "AZURE_DEVOPS" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_BITBUCKET_REPO ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "BITBUCKET_REPO" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_CLOUDFLARE ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "CLOUDFLARE" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_CUSTOM ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "CUSTOM" @@ -35,8 +33,6 @@ const ( ENUMPROPERTIESDATAITEMSPROPERTIESKIND_GITHUB_API_KEY ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "GITHUB_API_KEY" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_GITLAB_API_KEY ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "GITLAB_API_KEY" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_JIRA ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "JIRA" - ENUMPROPERTIESDATAITEMSPROPERTIESKIND_KONG_GATEWAY ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "KONG_GATEWAY" - ENUMPROPERTIESDATAITEMSPROPERTIESKIND_KONG_KONNECT ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "KONG_KONNECT" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_KUBERNETES ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "KUBERNETES" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_POSTMAN_API_KEY ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "POSTMAN_API_KEY" ENUMPROPERTIESDATAITEMSPROPERTIESKIND_SLACK_WEBHOOK ENUMPROPERTIESDATAITEMSPROPERTIESKIND = "SLACK_WEBHOOK" @@ -48,10 +44,8 @@ const ( // All allowed values of ENUMPROPERTIESDATAITEMSPROPERTIESKIND enum var AllowedENUMPROPERTIESDATAITEMSPROPERTIESKINDEnumValues = []ENUMPROPERTIESDATAITEMSPROPERTIESKIND{ "AKAMAI", - "APIGEE", "AWS", "AZURE", - "AZURE_DEVOPS", "BITBUCKET_REPO", "CLOUDFLARE", "CUSTOM", @@ -62,8 +56,6 @@ var AllowedENUMPROPERTIESDATAITEMSPROPERTIESKINDEnumValues = []ENUMPROPERTIESDAT "GITHUB_API_KEY", "GITLAB_API_KEY", "JIRA", - "KONG_GATEWAY", - "KONG_KONNECT", "KUBERNETES", "POSTMAN_API_KEY", "SLACK_WEBHOOK", diff --git a/pkg/api/v3/model_enum_properties_filters_items_1_properties_filter_properties_scannerkinds_items.go b/pkg/api/v3/model_enum_properties_filters_items_1_properties_filter_properties_scannerkinds_items.go index 10179f19..270d35be 100644 --- a/pkg/api/v3/model_enum_properties_filters_items_1_properties_filter_properties_scannerkinds_items.go +++ b/pkg/api/v3/model_enum_properties_filters_items_1_properties_filter_properties_scannerkinds_items.go @@ -20,47 +20,62 @@ type ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS stri // List of ENUM_PROPERTIES_FILTERS_ITEMS_1_PROPERTIES_FILTER_PROPERTIES_SCANNERKINDS_ITEMS const ( - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_AKAMAI_ACCOUNT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_AKAMAI_ACCOUNT" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_AWS_ACCOUNT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_AWS_ACCOUNT" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_AZURE_TENANT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_AZURE_TENANT" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_BURPSUITE_EXPORT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_BURPSUITE_EXPORT" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_CLOUDFLARE_ACCOUNT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_CLOUDFLARE_ACCOUNT" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_DNS ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_DNS" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GCP_PROJECT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GCP_PROJECT" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GITHUB_ORGANIZATION ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GITHUB_ORGANIZATION" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GITHUB_REPOSITORY ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GITHUB_REPOSITORY" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GITLAB_GROUP ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GITLAB_GROUP" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GITLAB_REPOSITORY ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GITLAB_REPOSITORY" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GRAPHQL ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GRAPHQL" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GRAPHQL_SCHEMA ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GRAPHQL_SCHEMA" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GRPC ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GRPC" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_HAR_EXPORT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_HAR_EXPORT" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_INSOMNIA ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_INSOMNIA" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_IPV4 ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_IPV4" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_IPV4_RANGE ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_IPV4_RANGE" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_IPV6 ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_IPV6" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_KUBERNETES_CLUSTER ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_KUBERNETES_CLUSTER" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_MCP ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_MCP" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_OPENAPI ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_OPENAPI" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_POSTMAN_COLLECTION ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_POSTMAN_COLLECTION" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_POSTMAN_ORGANIZATION ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_POSTMAN_ORGANIZATION" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_REST ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_REST" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_WEBAPP ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_WEBAPP" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_WEBSOCKET ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_WEBSOCKET" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_WIZ_ACCOUNT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_WIZ_ACCOUNT" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_WP_JSON ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_WP_JSON" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_BLST_GRAPHQL ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "BLST_GRAPHQL" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_BLST_REST ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "BLST_REST" - ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_FRONTEND_DAST ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "FRONTEND_DAST" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_AKAMAI_ACCOUNT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_AKAMAI_ACCOUNT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_AWS_ACCOUNT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_AWS_ACCOUNT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_AWS_LAMBDA ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_AWS_LAMBDA" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_AZURE_TENANT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_AZURE_TENANT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_BITBUCKET_ORGANIZATION ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_BITBUCKET_ORGANIZATION" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_BITBUCKET_REPOSITORY ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_BITBUCKET_REPOSITORY" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_BURPSUITE_EXPORT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_BURPSUITE_EXPORT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_CLOUDFLARE_ACCOUNT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_CLOUDFLARE_ACCOUNT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_CODE_PROJECT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_CODE_PROJECT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_DNS ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_DNS" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GCP_PROJECT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GCP_PROJECT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GITHUB_ORGANIZATION ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GITHUB_ORGANIZATION" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GITHUB_REPOSITORY ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GITHUB_REPOSITORY" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GITLAB_GROUP ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GITLAB_GROUP" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GITLAB_REPOSITORY ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GITLAB_REPOSITORY" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GRAPHQL ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GRAPHQL" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GRAPHQL_SCHEMA ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GRAPHQL_SCHEMA" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_GRPC ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_GRPC" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_HAR_EXPORT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_HAR_EXPORT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_INSOMNIA ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_INSOMNIA" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_IPV4 ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_IPV4" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_IPV4_RANGE ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_IPV4_RANGE" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_IPV6 ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_IPV6" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_KUBERNETES_CLUSTER ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_KUBERNETES_CLUSTER" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_MCP ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_MCP" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_OPENAPI ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_OPENAPI" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_PACKAGE ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_PACKAGE" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_POSTMAN_COLLECTION ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_POSTMAN_COLLECTION" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_POSTMAN_ENVIRONMENT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_POSTMAN_ENVIRONMENT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_POSTMAN_ORGANIZATION ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_POSTMAN_ORGANIZATION" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_REST ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_REST" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_SOAP ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_SOAP" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_SOFTWARE ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_SOFTWARE" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_WEBAPP ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_WEBAPP" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_WEBSOCKET ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_WEBSOCKET" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_WIZ_ACCOUNT ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_WIZ_ACCOUNT" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_ASM_WP_JSON ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "ASM_WP_JSON" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_AUTOMATED_PENTEST_GRAPHQL ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "AUTOMATED_PENTEST_GRAPHQL" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_AUTOMATED_PENTEST_REST ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "AUTOMATED_PENTEST_REST" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_AUTOMATED_PENTEST_WEBAPP ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "AUTOMATED_PENTEST_WEBAPP" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_BLST_GRAPHQL ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "BLST_GRAPHQL" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_BLST_REST ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "BLST_REST" + ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS_FRONTEND_DAST ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS = "FRONTEND_DAST" ) // All allowed values of ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS enum var AllowedENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMSEnumValues = []ENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEMS{ "ASM_AKAMAI_ACCOUNT", "ASM_AWS_ACCOUNT", + "ASM_AWS_LAMBDA", "ASM_AZURE_TENANT", + "ASM_BITBUCKET_ORGANIZATION", + "ASM_BITBUCKET_REPOSITORY", "ASM_BURPSUITE_EXPORT", "ASM_CLOUDFLARE_ACCOUNT", + "ASM_CODE_PROJECT", "ASM_DNS", "ASM_GCP_PROJECT", "ASM_GITHUB_ORGANIZATION", @@ -78,13 +93,20 @@ var AllowedENUMPROPERTIESFILTERSITEMS1PROPERTIESFILTERPROPERTIESSCANNERKINDSITEM "ASM_KUBERNETES_CLUSTER", "ASM_MCP", "ASM_OPENAPI", + "ASM_PACKAGE", "ASM_POSTMAN_COLLECTION", + "ASM_POSTMAN_ENVIRONMENT", "ASM_POSTMAN_ORGANIZATION", "ASM_REST", + "ASM_SOAP", + "ASM_SOFTWARE", "ASM_WEBAPP", "ASM_WEBSOCKET", "ASM_WIZ_ACCOUNT", "ASM_WP_JSON", + "AUTOMATED_PENTEST_GRAPHQL", + "AUTOMATED_PENTEST_REST", + "AUTOMATED_PENTEST_WEBAPP", "BLST_GRAPHQL", "BLST_REST", "FRONTEND_DAST", diff --git a/pkg/api/v3/model_enum_properties_filters_items_2_properties_filter_properties_problemcodes_items.go b/pkg/api/v3/model_enum_properties_filters_items_2_properties_filter_properties_problemcodes_items.go new file mode 100644 index 00000000..a1d72721 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_filters_items_2_properties_filter_properties_problemcodes_items.go @@ -0,0 +1,132 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS the model 'ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS' +type ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS string + +// List of ENUM_PROPERTIES_FILTERS_ITEMS_2_PROPERTIES_FILTER_PROPERTIES_PROBLEMCODES_ITEMS +const ( + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_AUTH_FAILURE ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "AUTH_FAILURE" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_BLOCKED_BY_WAF ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "BLOCKED_BY_WAF" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_CAPTCHA_HIT ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "CAPTCHA_HIT" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_CONFIGURATION_IMPROVEMENT ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "CONFIGURATION_IMPROVEMENT" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_HIGH_NUMBER_OF_ERROR_ENDPOINTS ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "HIGH_NUMBER_OF_ERROR_ENDPOINTS" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_INTEGRATION_ERROR ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "INTEGRATION_ERROR" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_NO_AUTHENTICATION_CONFIGURED ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "NO_AUTHENTICATION_CONFIGURED" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_NO_SCHEMA_FOUND ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "NO_SCHEMA_FOUND" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_PL_FAILURE ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "PL_FAILURE" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_RATE_LIMIT_EXCEEDED ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "RATE_LIMIT_EXCEEDED" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_SCHEMA_IMPROVEMENT ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "SCHEMA_IMPROVEMENT" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_TIMEOUT ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "TIMEOUT" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS_UNREACHABLE_ASSET ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS = "UNREACHABLE_ASSET" +) + +// All allowed values of ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS enum +var AllowedENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMSEnumValues = []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS{ + "AUTH_FAILURE", + "BLOCKED_BY_WAF", + "CAPTCHA_HIT", + "CONFIGURATION_IMPROVEMENT", + "HIGH_NUMBER_OF_ERROR_ENDPOINTS", + "INTEGRATION_ERROR", + "NO_AUTHENTICATION_CONFIGURED", + "NO_SCHEMA_FOUND", + "PL_FAILURE", + "RATE_LIMIT_EXCEEDED", + "SCHEMA_IMPROVEMENT", + "TIMEOUT", + "UNREACHABLE_ASSET", +} + +func (v *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS(value) + for _, existing := range AllowedENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMSEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS", value) +} + +// NewENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMSFromValue returns a pointer to a valid ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMSFromValue(v string) (*ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS, error) { + ev := ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS: valid values are %v", v, AllowedENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMSEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMSEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_FILTERS_ITEMS_2_PROPERTIES_FILTER_PROPERTIES_PROBLEMCODES_ITEMS value +func (v ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) Ptr() *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS { + return &v +} + +type NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS struct { + value *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS + isSet bool +} + +func (v NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) Get() *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS { + return v.value +} + +func (v *NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) Set(val *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS(val *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) *NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS { + return &NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMCODESITEMS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_filters_items_2_properties_filter_properties_problemseverities_items.go b/pkg/api/v3/model_enum_properties_filters_items_2_properties_filter_properties_problemseverities_items.go new file mode 100644 index 00000000..b11ae99b --- /dev/null +++ b/pkg/api/v3/model_enum_properties_filters_items_2_properties_filter_properties_problemseverities_items.go @@ -0,0 +1,112 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS the model 'ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS' +type ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS string + +// List of ENUM_PROPERTIES_FILTERS_ITEMS_2_PROPERTIES_FILTER_PROPERTIES_PROBLEMSEVERITIES_ITEMS +const ( + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS_ERROR ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS = "ERROR" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS_INFO ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS = "INFO" + ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS_WARNING ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS = "WARNING" +) + +// All allowed values of ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS enum +var AllowedENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMSEnumValues = []ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS{ + "ERROR", + "INFO", + "WARNING", +} + +func (v *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS(value) + for _, existing := range AllowedENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMSEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS", value) +} + +// NewENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMSFromValue returns a pointer to a valid ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMSFromValue(v string) (*ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS, error) { + ev := ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS: valid values are %v", v, AllowedENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMSEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMSEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_FILTERS_ITEMS_2_PROPERTIES_FILTER_PROPERTIES_PROBLEMSEVERITIES_ITEMS value +func (v ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) Ptr() *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS { + return &v +} + +type NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS struct { + value *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS + isSet bool +} + +func (v NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) Get() *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS { + return v.value +} + +func (v *NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) Set(val *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS(val *ENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) *NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS { + return &NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESFILTERSITEMS2PROPERTIESFILTERPROPERTIESPROBLEMSEVERITIESITEMS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_filters_items_3_properties_filter_properties_frameworks_items.go b/pkg/api/v3/model_enum_properties_filters_items_3_properties_filter_properties_frameworks_items.go deleted file mode 100644 index cf33a546..00000000 --- a/pkg/api/v3/model_enum_properties_filters_items_3_properties_filter_properties_frameworks_items.go +++ /dev/null @@ -1,152 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS the model 'ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS' -type ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS string - -// List of ENUM_PROPERTIES_FILTERS_ITEMS_3_PROPERTIES_FILTER_PROPERTIES_FRAMEWORKS_ITEMS -const ( - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_FRONTEND_ANGULAR ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "FRONTEND_ANGULAR" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_FRONTEND_JAVASCRIPT ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "FRONTEND_JAVASCRIPT" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_FRONTEND_JQUERY ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "FRONTEND_JQUERY" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_FRONTEND_REACT ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "FRONTEND_REACT" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_FRONTEND_SVELTE ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "FRONTEND_SVELTE" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_FRONTEND_VUE ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "FRONTEND_VUE" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_GRAPHQL_APOLLO ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "GRAPHQL_APOLLO" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_GRAPHQL_GRAPHQLYOGA ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "GRAPHQL_GRAPHQLYOGA" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_ASP_NET ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_ASP_NET" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_DJANGO ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_DJANGO" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_EXPRESS_JS ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_EXPRESS_JS" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_FASTAPI ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_FASTAPI" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_FLASK ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_FLASK" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_GIN ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_GIN" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_HONO ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_HONO" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_LARAVEL ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_LARAVEL" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_NESTJS ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_NESTJS" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_NEXTJS ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_NEXTJS" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_NUXTJS ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_NUXTJS" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_RUBY_ON_RAILS ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_RUBY_ON_RAILS" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_SPRING_BOOT ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_SPRING_BOOT" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_REST_SYMFONY ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "REST_SYMFONY" - ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS_UNKNOWN ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS = "UNKNOWN" -) - -// All allowed values of ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS enum -var AllowedENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMSEnumValues = []ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS{ - "FRONTEND_ANGULAR", - "FRONTEND_JAVASCRIPT", - "FRONTEND_JQUERY", - "FRONTEND_REACT", - "FRONTEND_SVELTE", - "FRONTEND_VUE", - "GRAPHQL_APOLLO", - "GRAPHQL_GRAPHQLYOGA", - "REST_ASP_NET", - "REST_DJANGO", - "REST_EXPRESS_JS", - "REST_FASTAPI", - "REST_FLASK", - "REST_GIN", - "REST_HONO", - "REST_LARAVEL", - "REST_NESTJS", - "REST_NEXTJS", - "REST_NUXTJS", - "REST_RUBY_ON_RAILS", - "REST_SPRING_BOOT", - "REST_SYMFONY", - "UNKNOWN", -} - -func (v *ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS(value) - for _, existing := range AllowedENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMSEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS", value) -} - -// NewENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMSFromValue returns a pointer to a valid ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMSFromValue(v string) (*ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS, error) { - ev := ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS: valid values are %v", v, AllowedENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMSEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) IsValid() bool { - for _, existing := range AllowedENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMSEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_PROPERTIES_FILTERS_ITEMS_3_PROPERTIES_FILTER_PROPERTIES_FRAMEWORKS_ITEMS value -func (v ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) Ptr() *ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS { - return &v -} - -type NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS struct { - value *ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS - isSet bool -} - -func (v NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) Get() *ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS { - return v.value -} - -func (v *NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) Set(val *ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) { - v.value = val - v.isSet = true -} - -func (v NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS(val *ENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) *NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS { - return &NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS{value: val, isSet: true} -} - -func (v NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMPROPERTIESFILTERSITEMS3PROPERTIESFILTERPROPERTIESFRAMEWORKSITEMS) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enum_properties_filters_items_properties_type.go b/pkg/api/v3/model_enum_properties_filters_items_properties_type.go index 000e2b6b..9a4d7284 100644 --- a/pkg/api/v3/model_enum_properties_filters_items_properties_type.go +++ b/pkg/api/v3/model_enum_properties_filters_items_properties_type.go @@ -20,18 +20,20 @@ type ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE string // List of ENUM_PROPERTIES_FILTERS_ITEMS_PROPERTIES_TYPE const ( - ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_ASSETS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "ASSETS" - ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_EVENTS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "EVENTS" - ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_ISSUES ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "ISSUES" - ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_LOCATIONS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "LOCATIONS" - ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_PROFILES ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "PROFILES" - ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_SCANS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "SCANS" + ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_ASSETS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "ASSETS" + ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_EVENTS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "EVENTS" + ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_INTEGRATIONS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "INTEGRATIONS" + ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_ISSUES ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "ISSUES" + ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_LOCATIONS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "LOCATIONS" + ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_PROFILES ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "PROFILES" + ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE_SCANS ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE = "SCANS" ) // All allowed values of ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE enum var AllowedENUMPROPERTIESFILTERSITEMSPROPERTIESTYPEEnumValues = []ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE{ "ASSETS", "EVENTS", + "INTEGRATIONS", "ISSUES", "LOCATIONS", "PROFILES", diff --git a/pkg/api/v3/model_enum_properties_mode.go b/pkg/api/v3/model_enum_properties_mode.go new file mode 100644 index 00000000..8ff7f561 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_mode.go @@ -0,0 +1,110 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESMODE The scan mode for the profile +type ENUMPROPERTIESMODE string + +// List of ENUM_PROPERTIES_MODE +const ( + ENUMPROPERTIESMODE_READ_ONLY ENUMPROPERTIESMODE = "read_only" + ENUMPROPERTIESMODE_READ_WRITE ENUMPROPERTIESMODE = "read_write" +) + +// All allowed values of ENUMPROPERTIESMODE enum +var AllowedENUMPROPERTIESMODEEnumValues = []ENUMPROPERTIESMODE{ + "read_only", + "read_write", +} + +func (v *ENUMPROPERTIESMODE) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESMODE(value) + for _, existing := range AllowedENUMPROPERTIESMODEEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESMODE", value) +} + +// NewENUMPROPERTIESMODEFromValue returns a pointer to a valid ENUMPROPERTIESMODE +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESMODEFromValue(v string) (*ENUMPROPERTIESMODE, error) { + ev := ENUMPROPERTIESMODE(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESMODE: valid values are %v", v, AllowedENUMPROPERTIESMODEEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESMODE) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESMODEEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_MODE value +func (v ENUMPROPERTIESMODE) Ptr() *ENUMPROPERTIESMODE { + return &v +} + +type NullableENUMPROPERTIESMODE struct { + value *ENUMPROPERTIESMODE + isSet bool +} + +func (v NullableENUMPROPERTIESMODE) Get() *ENUMPROPERTIESMODE { + return v.value +} + +func (v *NullableENUMPROPERTIESMODE) Set(val *ENUMPROPERTIESMODE) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESMODE) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESMODE) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESMODE(val *ENUMPROPERTIESMODE) *NullableENUMPROPERTIESMODE { + return &NullableENUMPROPERTIESMODE{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESMODE) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESMODE) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_package_type.go b/pkg/api/v3/model_enum_properties_package_type.go new file mode 100644 index 00000000..7a7dd3d6 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_package_type.go @@ -0,0 +1,182 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESPACKAGETYPE the model 'ENUMPROPERTIESPACKAGETYPE' +type ENUMPROPERTIESPACKAGETYPE string + +// List of ENUM_PROPERTIES_PACKAGE_TYPE +const ( + ENUMPROPERTIESPACKAGETYPE_ALPM ENUMPROPERTIESPACKAGETYPE = "ALPM" + ENUMPROPERTIESPACKAGETYPE_APK ENUMPROPERTIESPACKAGETYPE = "APK" + ENUMPROPERTIESPACKAGETYPE_BAZEL ENUMPROPERTIESPACKAGETYPE = "BAZEL" + ENUMPROPERTIESPACKAGETYPE_BITBUCKET ENUMPROPERTIESPACKAGETYPE = "BITBUCKET" + ENUMPROPERTIESPACKAGETYPE_BITNAMI ENUMPROPERTIESPACKAGETYPE = "BITNAMI" + ENUMPROPERTIESPACKAGETYPE_CARGO ENUMPROPERTIESPACKAGETYPE = "CARGO" + ENUMPROPERTIESPACKAGETYPE_COCOAPODS ENUMPROPERTIESPACKAGETYPE = "COCOAPODS" + ENUMPROPERTIESPACKAGETYPE_COMPOSER ENUMPROPERTIESPACKAGETYPE = "COMPOSER" + ENUMPROPERTIESPACKAGETYPE_CONAN ENUMPROPERTIESPACKAGETYPE = "CONAN" + ENUMPROPERTIESPACKAGETYPE_CONDA ENUMPROPERTIESPACKAGETYPE = "CONDA" + ENUMPROPERTIESPACKAGETYPE_CPAN ENUMPROPERTIESPACKAGETYPE = "CPAN" + ENUMPROPERTIESPACKAGETYPE_CRAN ENUMPROPERTIESPACKAGETYPE = "CRAN" + ENUMPROPERTIESPACKAGETYPE_DEB ENUMPROPERTIESPACKAGETYPE = "DEB" + ENUMPROPERTIESPACKAGETYPE_DOCKER ENUMPROPERTIESPACKAGETYPE = "DOCKER" + ENUMPROPERTIESPACKAGETYPE_GEM ENUMPROPERTIESPACKAGETYPE = "GEM" + ENUMPROPERTIESPACKAGETYPE_GENERIC ENUMPROPERTIESPACKAGETYPE = "GENERIC" + ENUMPROPERTIESPACKAGETYPE_GITHUB ENUMPROPERTIESPACKAGETYPE = "GITHUB" + ENUMPROPERTIESPACKAGETYPE_GO ENUMPROPERTIESPACKAGETYPE = "GO" + ENUMPROPERTIESPACKAGETYPE_HACKAGE ENUMPROPERTIESPACKAGETYPE = "HACKAGE" + ENUMPROPERTIESPACKAGETYPE_HEX ENUMPROPERTIESPACKAGETYPE = "HEX" + ENUMPROPERTIESPACKAGETYPE_HUGGINGFACE ENUMPROPERTIESPACKAGETYPE = "HUGGINGFACE" + ENUMPROPERTIESPACKAGETYPE_JULIA ENUMPROPERTIESPACKAGETYPE = "JULIA" + ENUMPROPERTIESPACKAGETYPE_LUAROCKS ENUMPROPERTIESPACKAGETYPE = "LUAROCKS" + ENUMPROPERTIESPACKAGETYPE_MAVEN ENUMPROPERTIESPACKAGETYPE = "MAVEN" + ENUMPROPERTIESPACKAGETYPE_MLFLOW ENUMPROPERTIESPACKAGETYPE = "MLFLOW" + ENUMPROPERTIESPACKAGETYPE_NPM ENUMPROPERTIESPACKAGETYPE = "NPM" + ENUMPROPERTIESPACKAGETYPE_NUGET ENUMPROPERTIESPACKAGETYPE = "NUGET" + ENUMPROPERTIESPACKAGETYPE_OCI ENUMPROPERTIESPACKAGETYPE = "OCI" + ENUMPROPERTIESPACKAGETYPE_OPAM ENUMPROPERTIESPACKAGETYPE = "OPAM" + ENUMPROPERTIESPACKAGETYPE_OTP ENUMPROPERTIESPACKAGETYPE = "OTP" + ENUMPROPERTIESPACKAGETYPE_PUB ENUMPROPERTIESPACKAGETYPE = "PUB" + ENUMPROPERTIESPACKAGETYPE_PYPI ENUMPROPERTIESPACKAGETYPE = "PYPI" + ENUMPROPERTIESPACKAGETYPE_QPKG ENUMPROPERTIESPACKAGETYPE = "QPKG" + ENUMPROPERTIESPACKAGETYPE_RPM ENUMPROPERTIESPACKAGETYPE = "RPM" + ENUMPROPERTIESPACKAGETYPE_SWID ENUMPROPERTIESPACKAGETYPE = "SWID" + ENUMPROPERTIESPACKAGETYPE_SWIFT ENUMPROPERTIESPACKAGETYPE = "SWIFT" + ENUMPROPERTIESPACKAGETYPE_VSCODE_EXTENSION ENUMPROPERTIESPACKAGETYPE = "VSCODE_EXTENSION" + ENUMPROPERTIESPACKAGETYPE_YOCTO ENUMPROPERTIESPACKAGETYPE = "YOCTO" +) + +// All allowed values of ENUMPROPERTIESPACKAGETYPE enum +var AllowedENUMPROPERTIESPACKAGETYPEEnumValues = []ENUMPROPERTIESPACKAGETYPE{ + "ALPM", + "APK", + "BAZEL", + "BITBUCKET", + "BITNAMI", + "CARGO", + "COCOAPODS", + "COMPOSER", + "CONAN", + "CONDA", + "CPAN", + "CRAN", + "DEB", + "DOCKER", + "GEM", + "GENERIC", + "GITHUB", + "GO", + "HACKAGE", + "HEX", + "HUGGINGFACE", + "JULIA", + "LUAROCKS", + "MAVEN", + "MLFLOW", + "NPM", + "NUGET", + "OCI", + "OPAM", + "OTP", + "PUB", + "PYPI", + "QPKG", + "RPM", + "SWID", + "SWIFT", + "VSCODE_EXTENSION", + "YOCTO", +} + +func (v *ENUMPROPERTIESPACKAGETYPE) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESPACKAGETYPE(value) + for _, existing := range AllowedENUMPROPERTIESPACKAGETYPEEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESPACKAGETYPE", value) +} + +// NewENUMPROPERTIESPACKAGETYPEFromValue returns a pointer to a valid ENUMPROPERTIESPACKAGETYPE +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESPACKAGETYPEFromValue(v string) (*ENUMPROPERTIESPACKAGETYPE, error) { + ev := ENUMPROPERTIESPACKAGETYPE(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESPACKAGETYPE: valid values are %v", v, AllowedENUMPROPERTIESPACKAGETYPEEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESPACKAGETYPE) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESPACKAGETYPEEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_PACKAGE_TYPE value +func (v ENUMPROPERTIESPACKAGETYPE) Ptr() *ENUMPROPERTIESPACKAGETYPE { + return &v +} + +type NullableENUMPROPERTIESPACKAGETYPE struct { + value *ENUMPROPERTIESPACKAGETYPE + isSet bool +} + +func (v NullableENUMPROPERTIESPACKAGETYPE) Get() *ENUMPROPERTIESPACKAGETYPE { + return v.value +} + +func (v *NullableENUMPROPERTIESPACKAGETYPE) Set(val *ENUMPROPERTIESPACKAGETYPE) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESPACKAGETYPE) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESPACKAGETYPE) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESPACKAGETYPE(val *ENUMPROPERTIESPACKAGETYPE) *NullableENUMPROPERTIESPACKAGETYPE { + return &NullableENUMPROPERTIESPACKAGETYPE{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESPACKAGETYPE) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESPACKAGETYPE) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_properties_permissions_items.go b/pkg/api/v3/model_enum_properties_permissions_items.go index 788acca2..bf924816 100644 --- a/pkg/api/v3/model_enum_properties_permissions_items.go +++ b/pkg/api/v3/model_enum_properties_permissions_items.go @@ -25,11 +25,10 @@ const ( ENUMPROPERTIESPERMISSIONSITEMS_EDIT_CUSTOM_RULES ENUMPROPERTIESPERMISSIONSITEMS = "EDIT_CUSTOM_RULES" ENUMPROPERTIESPERMISSIONSITEMS_EDIT_INTEGRATIONS ENUMPROPERTIESPERMISSIONSITEMS = "EDIT_INTEGRATIONS" ENUMPROPERTIESPERMISSIONSITEMS_EDIT_PROFILES ENUMPROPERTIESPERMISSIONSITEMS = "EDIT_PROFILES" - ENUMPROPERTIESPERMISSIONSITEMS_EDIT_RESOURCES ENUMPROPERTIESPERMISSIONSITEMS = "EDIT_RESOURCES" ENUMPROPERTIESPERMISSIONSITEMS_EDIT_TAGS ENUMPROPERTIESPERMISSIONSITEMS = "EDIT_TAGS" ENUMPROPERTIESPERMISSIONSITEMS_EDIT_WORKFLOWS ENUMPROPERTIESPERMISSIONSITEMS = "EDIT_WORKFLOWS" ENUMPROPERTIESPERMISSIONSITEMS_MANAGE_REPORTING ENUMPROPERTIESPERMISSIONSITEMS = "MANAGE_REPORTING" - ENUMPROPERTIESPERMISSIONSITEMS_VIEW_REPORTING ENUMPROPERTIESPERMISSIONSITEMS = "VIEW_REPORTING" + ENUMPROPERTIESPERMISSIONSITEMS_VIEW_ONLY ENUMPROPERTIESPERMISSIONSITEMS = "VIEW_ONLY" ) // All allowed values of ENUMPROPERTIESPERMISSIONSITEMS enum @@ -39,11 +38,10 @@ var AllowedENUMPROPERTIESPERMISSIONSITEMSEnumValues = []ENUMPROPERTIESPERMISSION "EDIT_CUSTOM_RULES", "EDIT_INTEGRATIONS", "EDIT_PROFILES", - "EDIT_RESOURCES", "EDIT_TAGS", "EDIT_WORKFLOWS", "MANAGE_REPORTING", - "VIEW_REPORTING", + "VIEW_ONLY", } func (v *ENUMPROPERTIESPERMISSIONSITEMS) UnmarshalJSON(src []byte) error { diff --git a/pkg/api/v3/model_enum_properties_trigger.go b/pkg/api/v3/model_enum_properties_trigger.go index 622a2a59..0b9839b6 100644 --- a/pkg/api/v3/model_enum_properties_trigger.go +++ b/pkg/api/v3/model_enum_properties_trigger.go @@ -20,21 +20,23 @@ type ENUMPROPERTIESTRIGGER string // List of ENUM_PROPERTIES_TRIGGER const ( - ENUMPROPERTIESTRIGGER_ASSET_FOUND ENUMPROPERTIESTRIGGER = "ASSET_FOUND" - ENUMPROPERTIESTRIGGER_ASSET_UPDATED ENUMPROPERTIESTRIGGER = "ASSET_UPDATED" - ENUMPROPERTIESTRIGGER_ISSUE_UPDATED ENUMPROPERTIESTRIGGER = "ISSUE_UPDATED" - ENUMPROPERTIESTRIGGER_LOCATION_DOWN ENUMPROPERTIESTRIGGER = "LOCATION_DOWN" - ENUMPROPERTIESTRIGGER_MANUAL ENUMPROPERTIESTRIGGER = "MANUAL" - ENUMPROPERTIESTRIGGER_NEW_ISSUE ENUMPROPERTIESTRIGGER = "NEW_ISSUE" - ENUMPROPERTIESTRIGGER_SCAN_COMPLETED ENUMPROPERTIESTRIGGER = "SCAN_COMPLETED" - ENUMPROPERTIESTRIGGER_SCAN_FAILED ENUMPROPERTIESTRIGGER = "SCAN_FAILED" - ENUMPROPERTIESTRIGGER_SCAN_STARTED ENUMPROPERTIESTRIGGER = "SCAN_STARTED" + ENUMPROPERTIESTRIGGER_ASSET_FOUND ENUMPROPERTIESTRIGGER = "ASSET_FOUND" + ENUMPROPERTIESTRIGGER_ASSET_UPDATED ENUMPROPERTIESTRIGGER = "ASSET_UPDATED" + ENUMPROPERTIESTRIGGER_INTEGRATION_FAILED ENUMPROPERTIESTRIGGER = "INTEGRATION_FAILED" + ENUMPROPERTIESTRIGGER_ISSUE_UPDATED ENUMPROPERTIESTRIGGER = "ISSUE_UPDATED" + ENUMPROPERTIESTRIGGER_LOCATION_DOWN ENUMPROPERTIESTRIGGER = "LOCATION_DOWN" + ENUMPROPERTIESTRIGGER_MANUAL ENUMPROPERTIESTRIGGER = "MANUAL" + ENUMPROPERTIESTRIGGER_NEW_ISSUE ENUMPROPERTIESTRIGGER = "NEW_ISSUE" + ENUMPROPERTIESTRIGGER_SCAN_COMPLETED ENUMPROPERTIESTRIGGER = "SCAN_COMPLETED" + ENUMPROPERTIESTRIGGER_SCAN_FAILED ENUMPROPERTIESTRIGGER = "SCAN_FAILED" + ENUMPROPERTIESTRIGGER_SCAN_STARTED ENUMPROPERTIESTRIGGER = "SCAN_STARTED" ) // All allowed values of ENUMPROPERTIESTRIGGER enum var AllowedENUMPROPERTIESTRIGGEREnumValues = []ENUMPROPERTIESTRIGGER{ "ASSET_FOUND", "ASSET_UPDATED", + "INTEGRATION_FAILED", "ISSUE_UPDATED", "LOCATION_DOWN", "MANUAL", diff --git a/pkg/api/v3/model_enum_properties_well_known_technology.go b/pkg/api/v3/model_enum_properties_well_known_technology.go new file mode 100644 index 00000000..098045a4 --- /dev/null +++ b/pkg/api/v3/model_enum_properties_well_known_technology.go @@ -0,0 +1,120 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMPROPERTIESWELLKNOWNTECHNOLOGY the model 'ENUMPROPERTIESWELLKNOWNTECHNOLOGY' +type ENUMPROPERTIESWELLKNOWNTECHNOLOGY string + +// List of ENUM_PROPERTIES_WELL_KNOWN_TECHNOLOGY +const ( + ENUMPROPERTIESWELLKNOWNTECHNOLOGY_ANGULAR ENUMPROPERTIESWELLKNOWNTECHNOLOGY = "ANGULAR" + ENUMPROPERTIESWELLKNOWNTECHNOLOGY_APACHE ENUMPROPERTIESWELLKNOWNTECHNOLOGY = "APACHE" + ENUMPROPERTIESWELLKNOWNTECHNOLOGY_NGINX ENUMPROPERTIESWELLKNOWNTECHNOLOGY = "NGINX" + ENUMPROPERTIESWELLKNOWNTECHNOLOGY_REACT ENUMPROPERTIESWELLKNOWNTECHNOLOGY = "REACT" + ENUMPROPERTIESWELLKNOWNTECHNOLOGY_REDIS ENUMPROPERTIESWELLKNOWNTECHNOLOGY = "REDIS" + ENUMPROPERTIESWELLKNOWNTECHNOLOGY_SVELTE ENUMPROPERTIESWELLKNOWNTECHNOLOGY = "SVELTE" + ENUMPROPERTIESWELLKNOWNTECHNOLOGY_VUE ENUMPROPERTIESWELLKNOWNTECHNOLOGY = "VUE" +) + +// All allowed values of ENUMPROPERTIESWELLKNOWNTECHNOLOGY enum +var AllowedENUMPROPERTIESWELLKNOWNTECHNOLOGYEnumValues = []ENUMPROPERTIESWELLKNOWNTECHNOLOGY{ + "ANGULAR", + "APACHE", + "NGINX", + "REACT", + "REDIS", + "SVELTE", + "VUE", +} + +func (v *ENUMPROPERTIESWELLKNOWNTECHNOLOGY) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMPROPERTIESWELLKNOWNTECHNOLOGY(value) + for _, existing := range AllowedENUMPROPERTIESWELLKNOWNTECHNOLOGYEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMPROPERTIESWELLKNOWNTECHNOLOGY", value) +} + +// NewENUMPROPERTIESWELLKNOWNTECHNOLOGYFromValue returns a pointer to a valid ENUMPROPERTIESWELLKNOWNTECHNOLOGY +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMPROPERTIESWELLKNOWNTECHNOLOGYFromValue(v string) (*ENUMPROPERTIESWELLKNOWNTECHNOLOGY, error) { + ev := ENUMPROPERTIESWELLKNOWNTECHNOLOGY(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMPROPERTIESWELLKNOWNTECHNOLOGY: valid values are %v", v, AllowedENUMPROPERTIESWELLKNOWNTECHNOLOGYEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMPROPERTIESWELLKNOWNTECHNOLOGY) IsValid() bool { + for _, existing := range AllowedENUMPROPERTIESWELLKNOWNTECHNOLOGYEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_PROPERTIES_WELL_KNOWN_TECHNOLOGY value +func (v ENUMPROPERTIESWELLKNOWNTECHNOLOGY) Ptr() *ENUMPROPERTIESWELLKNOWNTECHNOLOGY { + return &v +} + +type NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY struct { + value *ENUMPROPERTIESWELLKNOWNTECHNOLOGY + isSet bool +} + +func (v NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY) Get() *ENUMPROPERTIESWELLKNOWNTECHNOLOGY { + return v.value +} + +func (v *NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY) Set(val *ENUMPROPERTIESWELLKNOWNTECHNOLOGY) { + v.value = val + v.isSet = true +} + +func (v NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMPROPERTIESWELLKNOWNTECHNOLOGY(val *ENUMPROPERTIESWELLKNOWNTECHNOLOGY) *NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY { + return &NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY{value: val, isSet: true} +} + +func (v NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMPROPERTIESWELLKNOWNTECHNOLOGY) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_soap.go b/pkg/api/v3/model_enum_soap.go new file mode 100644 index 00000000..7aacf62c --- /dev/null +++ b/pkg/api/v3/model_enum_soap.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMSOAP the model 'ENUMSOAP' +type ENUMSOAP string + +// List of ENUM_SOAP +const ( + ENUMSOAP_SOAP ENUMSOAP = "SOAP" +) + +// All allowed values of ENUMSOAP enum +var AllowedENUMSOAPEnumValues = []ENUMSOAP{ + "SOAP", +} + +func (v *ENUMSOAP) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMSOAP(value) + for _, existing := range AllowedENUMSOAPEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMSOAP", value) +} + +// NewENUMSOAPFromValue returns a pointer to a valid ENUMSOAP +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMSOAPFromValue(v string) (*ENUMSOAP, error) { + ev := ENUMSOAP(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMSOAP: valid values are %v", v, AllowedENUMSOAPEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMSOAP) IsValid() bool { + for _, existing := range AllowedENUMSOAPEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_SOAP value +func (v ENUMSOAP) Ptr() *ENUMSOAP { + return &v +} + +type NullableENUMSOAP struct { + value *ENUMSOAP + isSet bool +} + +func (v NullableENUMSOAP) Get() *ENUMSOAP { + return v.value +} + +func (v *NullableENUMSOAP) Set(val *ENUMSOAP) { + v.value = val + v.isSet = true +} + +func (v NullableENUMSOAP) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMSOAP) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMSOAP(val *ENUMSOAP) *NullableENUMSOAP { + return &NullableENUMSOAP{value: val, isSet: true} +} + +func (v NullableENUMSOAP) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMSOAP) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_software.go b/pkg/api/v3/model_enum_software.go new file mode 100644 index 00000000..c1caca67 --- /dev/null +++ b/pkg/api/v3/model_enum_software.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMSOFTWARE the model 'ENUMSOFTWARE' +type ENUMSOFTWARE string + +// List of ENUM_SOFTWARE +const ( + ENUMSOFTWARE_SOFTWARE ENUMSOFTWARE = "SOFTWARE" +) + +// All allowed values of ENUMSOFTWARE enum +var AllowedENUMSOFTWAREEnumValues = []ENUMSOFTWARE{ + "SOFTWARE", +} + +func (v *ENUMSOFTWARE) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMSOFTWARE(value) + for _, existing := range AllowedENUMSOFTWAREEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMSOFTWARE", value) +} + +// NewENUMSOFTWAREFromValue returns a pointer to a valid ENUMSOFTWARE +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMSOFTWAREFromValue(v string) (*ENUMSOFTWARE, error) { + ev := ENUMSOFTWARE(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMSOFTWARE: valid values are %v", v, AllowedENUMSOFTWAREEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMSOFTWARE) IsValid() bool { + for _, existing := range AllowedENUMSOFTWAREEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_SOFTWARE value +func (v ENUMSOFTWARE) Ptr() *ENUMSOFTWARE { + return &v +} + +type NullableENUMSOFTWARE struct { + value *ENUMSOFTWARE + isSet bool +} + +func (v NullableENUMSOFTWARE) Get() *ENUMSOFTWARE { + return v.value +} + +func (v *NullableENUMSOFTWARE) Set(val *ENUMSOFTWARE) { + v.value = val + v.isSet = true +} + +func (v NullableENUMSOFTWARE) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMSOFTWARE) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMSOFTWARE(val *ENUMSOFTWARE) *NullableENUMSOFTWARE { + return &NullableENUMSOFTWARE{value: val, isSet: true} +} + +func (v NullableENUMSOFTWARE) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMSOFTWARE) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_technology.go b/pkg/api/v3/model_enum_technology.go new file mode 100644 index 00000000..e505720d --- /dev/null +++ b/pkg/api/v3/model_enum_technology.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// ENUMTECHNOLOGY the model 'ENUMTECHNOLOGY' +type ENUMTECHNOLOGY string + +// List of ENUM_TECHNOLOGY +const ( + ENUMTECHNOLOGY_TECHNOLOGY ENUMTECHNOLOGY = "TECHNOLOGY" +) + +// All allowed values of ENUMTECHNOLOGY enum +var AllowedENUMTECHNOLOGYEnumValues = []ENUMTECHNOLOGY{ + "TECHNOLOGY", +} + +func (v *ENUMTECHNOLOGY) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ENUMTECHNOLOGY(value) + for _, existing := range AllowedENUMTECHNOLOGYEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ENUMTECHNOLOGY", value) +} + +// NewENUMTECHNOLOGYFromValue returns a pointer to a valid ENUMTECHNOLOGY +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewENUMTECHNOLOGYFromValue(v string) (*ENUMTECHNOLOGY, error) { + ev := ENUMTECHNOLOGY(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ENUMTECHNOLOGY: valid values are %v", v, AllowedENUMTECHNOLOGYEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ENUMTECHNOLOGY) IsValid() bool { + for _, existing := range AllowedENUMTECHNOLOGYEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ENUM_TECHNOLOGY value +func (v ENUMTECHNOLOGY) Ptr() *ENUMTECHNOLOGY { + return &v +} + +type NullableENUMTECHNOLOGY struct { + value *ENUMTECHNOLOGY + isSet bool +} + +func (v NullableENUMTECHNOLOGY) Get() *ENUMTECHNOLOGY { + return v.value +} + +func (v *NullableENUMTECHNOLOGY) Set(val *ENUMTECHNOLOGY) { + v.value = val + v.isSet = true +} + +func (v NullableENUMTECHNOLOGY) IsSet() bool { + return v.isSet +} + +func (v *NullableENUMTECHNOLOGY) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableENUMTECHNOLOGY(val *ENUMTECHNOLOGY) *NullableENUMTECHNOLOGY { + return &NullableENUMTECHNOLOGY{value: val, isSet: true} +} + +func (v NullableENUMTECHNOLOGY) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableENUMTECHNOLOGY) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_enum_wiz_account.go b/pkg/api/v3/model_enum_wiz_account.go deleted file mode 100644 index 6134cc8b..00000000 --- a/pkg/api/v3/model_enum_wiz_account.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ENUMWIZACCOUNT the model 'ENUMWIZACCOUNT' -type ENUMWIZACCOUNT string - -// List of ENUM_WIZ_ACCOUNT -const ( - ENUMWIZACCOUNT_WIZ_ACCOUNT ENUMWIZACCOUNT = "WIZ_ACCOUNT" -) - -// All allowed values of ENUMWIZACCOUNT enum -var AllowedENUMWIZACCOUNTEnumValues = []ENUMWIZACCOUNT{ - "WIZ_ACCOUNT", -} - -func (v *ENUMWIZACCOUNT) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ENUMWIZACCOUNT(value) - for _, existing := range AllowedENUMWIZACCOUNTEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ENUMWIZACCOUNT", value) -} - -// NewENUMWIZACCOUNTFromValue returns a pointer to a valid ENUMWIZACCOUNT -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewENUMWIZACCOUNTFromValue(v string) (*ENUMWIZACCOUNT, error) { - ev := ENUMWIZACCOUNT(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ENUMWIZACCOUNT: valid values are %v", v, AllowedENUMWIZACCOUNTEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ENUMWIZACCOUNT) IsValid() bool { - for _, existing := range AllowedENUMWIZACCOUNTEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ENUM_WIZ_ACCOUNT value -func (v ENUMWIZACCOUNT) Ptr() *ENUMWIZACCOUNT { - return &v -} - -type NullableENUMWIZACCOUNT struct { - value *ENUMWIZACCOUNT - isSet bool -} - -func (v NullableENUMWIZACCOUNT) Get() *ENUMWIZACCOUNT { - return v.value -} - -func (v *NullableENUMWIZACCOUNT) Set(val *ENUMWIZACCOUNT) { - v.value = val - v.isSet = true -} - -func (v NullableENUMWIZACCOUNT) IsSet() bool { - return v.isSet -} - -func (v *NullableENUMWIZACCOUNT) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableENUMWIZACCOUNT(val *ENUMWIZACCOUNT) *NullableENUMWIZACCOUNT { - return &NullableENUMWIZACCOUNT{value: val, isSet: true} -} - -func (v NullableENUMWIZACCOUNT) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableENUMWIZACCOUNT) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_enumpropertiesframework.go b/pkg/api/v3/model_enumpropertiesframework.go index 5e6bfe53..0b5aa45a 100644 --- a/pkg/api/v3/model_enumpropertiesframework.go +++ b/pkg/api/v3/model_enumpropertiesframework.go @@ -40,6 +40,7 @@ const ( ENUMPROPERTIESFRAMEWORK_REST_NEXTJS ENUMPROPERTIESFRAMEWORK = "REST_NEXTJS" ENUMPROPERTIESFRAMEWORK_REST_NUXTJS ENUMPROPERTIESFRAMEWORK = "REST_NUXTJS" ENUMPROPERTIESFRAMEWORK_REST_RUBY_ON_RAILS ENUMPROPERTIESFRAMEWORK = "REST_RUBY_ON_RAILS" + ENUMPROPERTIESFRAMEWORK_REST_SCALA_PLAY ENUMPROPERTIESFRAMEWORK = "REST_SCALA_PLAY" ENUMPROPERTIESFRAMEWORK_REST_SPRING_BOOT ENUMPROPERTIESFRAMEWORK = "REST_SPRING_BOOT" ENUMPROPERTIESFRAMEWORK_REST_SYMFONY ENUMPROPERTIESFRAMEWORK = "REST_SYMFONY" ENUMPROPERTIESFRAMEWORK_UNKNOWN ENUMPROPERTIESFRAMEWORK = "UNKNOWN" @@ -67,6 +68,7 @@ var AllowedENUMPROPERTIESFRAMEWORKEnumValues = []ENUMPROPERTIESFRAMEWORK{ "REST_NEXTJS", "REST_NUXTJS", "REST_RUBY_ON_RAILS", + "REST_SCALA_PLAY", "REST_SPRING_BOOT", "REST_SYMFONY", "UNKNOWN", diff --git a/pkg/api/v3/model_exchange_detailed.go b/pkg/api/v3/model_exchange_detailed.go index 47d36011..5acf4286 100644 --- a/pkg/api/v3/model_exchange_detailed.go +++ b/pkg/api/v3/model_exchange_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the ExchangeDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ExchangeDetailed{} -// ExchangeDetailed Detailed information about an exchange +// ExchangeDetailed The exchange of the attachment type ExchangeDetailed struct { // The date and time the exchange was created CreatedAt string `json:"createdAt"` diff --git a/pkg/api/v3/model_generated_openapi_spec_detailed.go b/pkg/api/v3/model_generated_openapi_spec_detailed.go index db3c3e1f..e2560440 100644 --- a/pkg/api/v3/model_generated_openapi_spec_detailed.go +++ b/pkg/api/v3/model_generated_openapi_spec_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the GeneratedOpenapiSpecDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &GeneratedOpenapiSpecDetailed{} -// GeneratedOpenapiSpecDetailed Detailed information about a generated openapi spec +// GeneratedOpenapiSpecDetailed The generated openapi spec of the attachment type GeneratedOpenapiSpecDetailed struct { // The id of the generated openapi spec Id string `json:"id"` diff --git a/pkg/api/v3/model_event_detailed.go b/pkg/api/v3/model_get_event_200_response.go similarity index 68% rename from pkg/api/v3/model_event_detailed.go rename to pkg/api/v3/model_get_event_200_response.go index 2bdc5977..aef9ea56 100644 --- a/pkg/api/v3/model_event_detailed.go +++ b/pkg/api/v3/model_get_event_200_response.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the EventDetailed type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &EventDetailed{} +// checks if the GetEvent200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetEvent200Response{} -// EventDetailed Detailed information about an event -type EventDetailed struct { +// GetEvent200Response struct for GetEvent200Response +type GetEvent200Response struct { // The id of the event Id string `json:"id"` // The date and time the event was created @@ -33,7 +33,7 @@ type EventDetailed struct { // The number of issues of the event IssuesCount float32 `json:"issuesCount"` Level ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL `json:"level"` - Scan *ScanDetailed `json:"scan,omitempty"` + Scan *ScanDetailed2 `json:"scan,omitempty"` // The id of the scan of the event ScanId *string `json:"scanId,omitempty"` Stage ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE `json:"stage"` @@ -42,14 +42,14 @@ type EventDetailed struct { AdditionalProperties map[string]interface{} } -type _EventDetailed EventDetailed +type _GetEvent200Response GetEvent200Response -// NewEventDetailed instantiates a new EventDetailed object +// NewGetEvent200Response instantiates a new GetEvent200Response 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 NewEventDetailed(id string, createdAt string, description string, issuesCount float32, level ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL, stage ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE, title string) *EventDetailed { - this := EventDetailed{} +func NewGetEvent200Response(id string, createdAt string, description string, issuesCount float32, level ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL, stage ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE, title string) *GetEvent200Response { + this := GetEvent200Response{} this.Id = id this.CreatedAt = createdAt this.Description = description @@ -60,16 +60,16 @@ func NewEventDetailed(id string, createdAt string, description string, issuesCou return &this } -// NewEventDetailedWithDefaults instantiates a new EventDetailed object +// NewGetEvent200ResponseWithDefaults instantiates a new GetEvent200Response 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 NewEventDetailedWithDefaults() *EventDetailed { - this := EventDetailed{} +func NewGetEvent200ResponseWithDefaults() *GetEvent200Response { + this := GetEvent200Response{} return &this } // GetId returns the Id field value -func (o *EventDetailed) GetId() string { +func (o *GetEvent200Response) GetId() string { if o == nil { var ret string return ret @@ -80,7 +80,7 @@ func (o *EventDetailed) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *EventDetailed) GetIdOk() (*string, bool) { +func (o *GetEvent200Response) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -88,12 +88,12 @@ func (o *EventDetailed) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *EventDetailed) SetId(v string) { +func (o *GetEvent200Response) SetId(v string) { o.Id = v } // GetCreatedAt returns the CreatedAt field value -func (o *EventDetailed) GetCreatedAt() string { +func (o *GetEvent200Response) GetCreatedAt() string { if o == nil { var ret string return ret @@ -104,7 +104,7 @@ func (o *EventDetailed) GetCreatedAt() string { // GetCreatedAtOk returns a tuple with the CreatedAt field value // and a boolean to check if the value has been set. -func (o *EventDetailed) GetCreatedAtOk() (*string, bool) { +func (o *GetEvent200Response) GetCreatedAtOk() (*string, bool) { if o == nil { return nil, false } @@ -112,12 +112,12 @@ func (o *EventDetailed) GetCreatedAtOk() (*string, bool) { } // SetCreatedAt sets field value -func (o *EventDetailed) SetCreatedAt(v string) { +func (o *GetEvent200Response) SetCreatedAt(v string) { o.CreatedAt = v } // GetDescription returns the Description field value -func (o *EventDetailed) GetDescription() string { +func (o *GetEvent200Response) GetDescription() string { if o == nil { var ret string return ret @@ -128,7 +128,7 @@ func (o *EventDetailed) GetDescription() string { // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. -func (o *EventDetailed) GetDescriptionOk() (*string, bool) { +func (o *GetEvent200Response) GetDescriptionOk() (*string, bool) { if o == nil { return nil, false } @@ -136,12 +136,12 @@ func (o *EventDetailed) GetDescriptionOk() (*string, bool) { } // SetDescription sets field value -func (o *EventDetailed) SetDescription(v string) { +func (o *GetEvent200Response) SetDescription(v string) { o.Description = v } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *EventDetailed) GetAttachments() []AttachmentDetailed { +func (o *GetEvent200Response) GetAttachments() []AttachmentDetailed { if o == nil || IsNil(o.Attachments) { var ret []AttachmentDetailed return ret @@ -151,7 +151,7 @@ func (o *EventDetailed) GetAttachments() []AttachmentDetailed { // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventDetailed) GetAttachmentsOk() ([]AttachmentDetailed, bool) { +func (o *GetEvent200Response) GetAttachmentsOk() ([]AttachmentDetailed, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -159,7 +159,7 @@ func (o *EventDetailed) GetAttachmentsOk() ([]AttachmentDetailed, bool) { } // HasAttachments returns a boolean if a field has been set. -func (o *EventDetailed) HasAttachments() bool { +func (o *GetEvent200Response) HasAttachments() bool { if o != nil && !IsNil(o.Attachments) { return true } @@ -168,12 +168,12 @@ func (o *EventDetailed) HasAttachments() bool { } // SetAttachments gets a reference to the given []AttachmentDetailed and assigns it to the Attachments field. -func (o *EventDetailed) SetAttachments(v []AttachmentDetailed) { +func (o *GetEvent200Response) SetAttachments(v []AttachmentDetailed) { o.Attachments = v } // GetIssues returns the Issues field value if set, zero value otherwise. -func (o *EventDetailed) GetIssues() []IssueDetailed { +func (o *GetEvent200Response) GetIssues() []IssueDetailed { if o == nil || IsNil(o.Issues) { var ret []IssueDetailed return ret @@ -183,7 +183,7 @@ func (o *EventDetailed) GetIssues() []IssueDetailed { // GetIssuesOk returns a tuple with the Issues field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventDetailed) GetIssuesOk() ([]IssueDetailed, bool) { +func (o *GetEvent200Response) GetIssuesOk() ([]IssueDetailed, bool) { if o == nil || IsNil(o.Issues) { return nil, false } @@ -191,7 +191,7 @@ func (o *EventDetailed) GetIssuesOk() ([]IssueDetailed, bool) { } // HasIssues returns a boolean if a field has been set. -func (o *EventDetailed) HasIssues() bool { +func (o *GetEvent200Response) HasIssues() bool { if o != nil && !IsNil(o.Issues) { return true } @@ -200,12 +200,12 @@ func (o *EventDetailed) HasIssues() bool { } // SetIssues gets a reference to the given []IssueDetailed and assigns it to the Issues field. -func (o *EventDetailed) SetIssues(v []IssueDetailed) { +func (o *GetEvent200Response) SetIssues(v []IssueDetailed) { o.Issues = v } // GetIssuesCount returns the IssuesCount field value -func (o *EventDetailed) GetIssuesCount() float32 { +func (o *GetEvent200Response) GetIssuesCount() float32 { if o == nil { var ret float32 return ret @@ -216,7 +216,7 @@ func (o *EventDetailed) GetIssuesCount() float32 { // GetIssuesCountOk returns a tuple with the IssuesCount field value // and a boolean to check if the value has been set. -func (o *EventDetailed) GetIssuesCountOk() (*float32, bool) { +func (o *GetEvent200Response) GetIssuesCountOk() (*float32, bool) { if o == nil { return nil, false } @@ -224,12 +224,12 @@ func (o *EventDetailed) GetIssuesCountOk() (*float32, bool) { } // SetIssuesCount sets field value -func (o *EventDetailed) SetIssuesCount(v float32) { +func (o *GetEvent200Response) SetIssuesCount(v float32) { o.IssuesCount = v } // GetLevel returns the Level field value -func (o *EventDetailed) GetLevel() ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL { +func (o *GetEvent200Response) GetLevel() ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL { if o == nil { var ret ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL return ret @@ -240,7 +240,7 @@ func (o *EventDetailed) GetLevel() ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL { // GetLevelOk returns a tuple with the Level field value // and a boolean to check if the value has been set. -func (o *EventDetailed) GetLevelOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL, bool) { +func (o *GetEvent200Response) GetLevelOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL, bool) { if o == nil { return nil, false } @@ -248,14 +248,14 @@ func (o *EventDetailed) GetLevelOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL, b } // SetLevel sets field value -func (o *EventDetailed) SetLevel(v ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL) { +func (o *GetEvent200Response) SetLevel(v ENUMPROPERTIESDATAITEMSPROPERTIESLEVEL) { o.Level = v } // GetScan returns the Scan field value if set, zero value otherwise. -func (o *EventDetailed) GetScan() ScanDetailed { +func (o *GetEvent200Response) GetScan() ScanDetailed2 { if o == nil || IsNil(o.Scan) { - var ret ScanDetailed + var ret ScanDetailed2 return ret } return *o.Scan @@ -263,7 +263,7 @@ func (o *EventDetailed) GetScan() ScanDetailed { // GetScanOk returns a tuple with the Scan field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventDetailed) GetScanOk() (*ScanDetailed, bool) { +func (o *GetEvent200Response) GetScanOk() (*ScanDetailed2, bool) { if o == nil || IsNil(o.Scan) { return nil, false } @@ -271,7 +271,7 @@ func (o *EventDetailed) GetScanOk() (*ScanDetailed, bool) { } // HasScan returns a boolean if a field has been set. -func (o *EventDetailed) HasScan() bool { +func (o *GetEvent200Response) HasScan() bool { if o != nil && !IsNil(o.Scan) { return true } @@ -279,13 +279,13 @@ func (o *EventDetailed) HasScan() bool { return false } -// SetScan gets a reference to the given ScanDetailed and assigns it to the Scan field. -func (o *EventDetailed) SetScan(v ScanDetailed) { +// SetScan gets a reference to the given ScanDetailed2 and assigns it to the Scan field. +func (o *GetEvent200Response) SetScan(v ScanDetailed2) { o.Scan = &v } // GetScanId returns the ScanId field value if set, zero value otherwise. -func (o *EventDetailed) GetScanId() string { +func (o *GetEvent200Response) GetScanId() string { if o == nil || IsNil(o.ScanId) { var ret string return ret @@ -295,7 +295,7 @@ func (o *EventDetailed) GetScanId() string { // GetScanIdOk returns a tuple with the ScanId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventDetailed) GetScanIdOk() (*string, bool) { +func (o *GetEvent200Response) GetScanIdOk() (*string, bool) { if o == nil || IsNil(o.ScanId) { return nil, false } @@ -303,7 +303,7 @@ func (o *EventDetailed) GetScanIdOk() (*string, bool) { } // HasScanId returns a boolean if a field has been set. -func (o *EventDetailed) HasScanId() bool { +func (o *GetEvent200Response) HasScanId() bool { if o != nil && !IsNil(o.ScanId) { return true } @@ -312,12 +312,12 @@ func (o *EventDetailed) HasScanId() bool { } // SetScanId gets a reference to the given string and assigns it to the ScanId field. -func (o *EventDetailed) SetScanId(v string) { +func (o *GetEvent200Response) SetScanId(v string) { o.ScanId = &v } // GetStage returns the Stage field value -func (o *EventDetailed) GetStage() ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE { +func (o *GetEvent200Response) GetStage() ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE { if o == nil { var ret ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE return ret @@ -328,7 +328,7 @@ func (o *EventDetailed) GetStage() ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE { // GetStageOk returns a tuple with the Stage field value // and a boolean to check if the value has been set. -func (o *EventDetailed) GetStageOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE, bool) { +func (o *GetEvent200Response) GetStageOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE, bool) { if o == nil { return nil, false } @@ -336,12 +336,12 @@ func (o *EventDetailed) GetStageOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE, b } // SetStage sets field value -func (o *EventDetailed) SetStage(v ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE) { +func (o *GetEvent200Response) SetStage(v ENUMPROPERTIESDATAITEMSPROPERTIESSTAGE) { o.Stage = v } // GetTitle returns the Title field value -func (o *EventDetailed) GetTitle() string { +func (o *GetEvent200Response) GetTitle() string { if o == nil { var ret string return ret @@ -352,7 +352,7 @@ func (o *EventDetailed) GetTitle() string { // GetTitleOk returns a tuple with the Title field value // and a boolean to check if the value has been set. -func (o *EventDetailed) GetTitleOk() (*string, bool) { +func (o *GetEvent200Response) GetTitleOk() (*string, bool) { if o == nil { return nil, false } @@ -360,11 +360,11 @@ func (o *EventDetailed) GetTitleOk() (*string, bool) { } // SetTitle sets field value -func (o *EventDetailed) SetTitle(v string) { +func (o *GetEvent200Response) SetTitle(v string) { o.Title = v } -func (o EventDetailed) MarshalJSON() ([]byte, error) { +func (o GetEvent200Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -372,7 +372,7 @@ func (o EventDetailed) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o EventDetailed) ToMap() (map[string]interface{}, error) { +func (o GetEvent200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["createdAt"] = o.CreatedAt @@ -401,7 +401,7 @@ func (o EventDetailed) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *EventDetailed) UnmarshalJSON(data []byte) (err error) { +func (o *GetEvent200Response) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -429,15 +429,15 @@ func (o *EventDetailed) UnmarshalJSON(data []byte) (err error) { } } - varEventDetailed := _EventDetailed{} + varGetEvent200Response := _GetEvent200Response{} - err = json.Unmarshal(data, &varEventDetailed) + err = json.Unmarshal(data, &varGetEvent200Response) if err != nil { return err } - *o = EventDetailed(varEventDetailed) + *o = GetEvent200Response(varGetEvent200Response) additionalProperties := make(map[string]interface{}) @@ -459,38 +459,38 @@ func (o *EventDetailed) UnmarshalJSON(data []byte) (err error) { return err } -type NullableEventDetailed struct { - value *EventDetailed +type NullableGetEvent200Response struct { + value *GetEvent200Response isSet bool } -func (v NullableEventDetailed) Get() *EventDetailed { +func (v NullableGetEvent200Response) Get() *GetEvent200Response { return v.value } -func (v *NullableEventDetailed) Set(val *EventDetailed) { +func (v *NullableGetEvent200Response) Set(val *GetEvent200Response) { v.value = val v.isSet = true } -func (v NullableEventDetailed) IsSet() bool { +func (v NullableGetEvent200Response) IsSet() bool { return v.isSet } -func (v *NullableEventDetailed) Unset() { +func (v *NullableGetEvent200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableEventDetailed(val *EventDetailed) *NullableEventDetailed { - return &NullableEventDetailed{value: val, isSet: true} +func NewNullableGetEvent200Response(val *GetEvent200Response) *NullableGetEvent200Response { + return &NullableGetEvent200Response{value: val, isSet: true} } -func (v NullableEventDetailed) MarshalJSON() ([]byte, error) { +func (v NullableGetEvent200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableEventDetailed) UnmarshalJSON(src []byte) error { +func (v *NullableGetEvent200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_issue_200_response.go b/pkg/api/v3/model_get_issue_200_response.go new file mode 100644 index 00000000..9a84a01e --- /dev/null +++ b/pkg/api/v3/model_get_issue_200_response.go @@ -0,0 +1,757 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetIssue200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetIssue200Response{} + +// GetIssue200Response struct for GetIssue200Response +type GetIssue200Response struct { + // The id of the issue + Id string `json:"id"` + // The name of the issue + Name string `json:"name"` + // The full name of the issue + FullName string `json:"fullName"` + Category ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY `json:"category"` + Severity ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY `json:"severity"` + Status ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS `json:"status"` + // AI-generated contextual overview for the issue + Context *string `json:"context,omitempty"` + // Array of risk types associated with the issue + Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks"` + // Unique identifier for the alert + AlertUid string `json:"alertUid"` + // When the issue was first created + CreatedAt string `json:"createdAt"` + Asset AssetDetailed2 `json:"asset"` + // ID of the last scan where this issue was seen + LastSeenScanId *string `json:"lastSeenScanId,omitempty"` + // ID of the first scan where this issue was seen + FirstSeenScanId *string `json:"firstSeenScanId,omitempty"` + // ID of the custom rule if this is a custom issue + CustomRuleId *string `json:"customRuleId,omitempty"` + // Framework used for AI remediation + AiRemediationFramework string `json:"aiRemediationFramework"` + // AI-generated remediation for the issue + Remediation *string `json:"remediation,omitempty"` + Cvss *GetIssue200ResponseCvss `json:"cvss,omitempty"` + // Compliances associated with the issue + Compliances []GetIssue200ResponseCompliancesInner `json:"compliances,omitempty"` + Links IssueSummarizedLinks `json:"links"` + AdditionalProperties map[string]interface{} +} + +type _GetIssue200Response GetIssue200Response + +// NewGetIssue200Response instantiates a new GetIssue200Response 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 NewGetIssue200Response(id string, name string, fullName string, category ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY, severity ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY, status ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, alertUid string, createdAt string, asset AssetDetailed2, aiRemediationFramework string, links IssueSummarizedLinks) *GetIssue200Response { + this := GetIssue200Response{} + this.Id = id + this.Name = name + this.FullName = fullName + this.Category = category + this.Severity = severity + this.Status = status + this.Risks = risks + this.AlertUid = alertUid + this.CreatedAt = createdAt + this.Asset = asset + this.AiRemediationFramework = aiRemediationFramework + this.Links = links + return &this +} + +// NewGetIssue200ResponseWithDefaults instantiates a new GetIssue200Response 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 NewGetIssue200ResponseWithDefaults() *GetIssue200Response { + this := GetIssue200Response{} + return &this +} + +// GetId returns the Id field value +func (o *GetIssue200Response) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetIssue200Response) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *GetIssue200Response) 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 *GetIssue200Response) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetIssue200Response) SetName(v string) { + o.Name = v +} + +// GetFullName returns the FullName field value +func (o *GetIssue200Response) GetFullName() string { + if o == nil { + var ret string + return ret + } + + return o.FullName +} + +// GetFullNameOk returns a tuple with the FullName field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetFullNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FullName, true +} + +// SetFullName sets field value +func (o *GetIssue200Response) SetFullName(v string) { + o.FullName = v +} + +// GetCategory returns the Category field value +func (o *GetIssue200Response) GetCategory() ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY + return ret + } + + return o.Category +} + +// GetCategoryOk returns a tuple with the Category field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetCategoryOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY, bool) { + if o == nil { + return nil, false + } + return &o.Category, true +} + +// SetCategory sets field value +func (o *GetIssue200Response) SetCategory(v ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY) { + o.Category = v +} + +// GetSeverity returns the Severity field value +func (o *GetIssue200Response) GetSeverity() ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY + return ret + } + + return o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetSeverityOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY, bool) { + if o == nil { + return nil, false + } + return &o.Severity, true +} + +// SetSeverity sets field value +func (o *GetIssue200Response) SetSeverity(v ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY) { + o.Severity = v +} + +// GetStatus returns the Status field value +func (o *GetIssue200Response) GetStatus() ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetStatusOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetIssue200Response) SetStatus(v ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS) { + o.Status = v +} + +// GetContext returns the Context field value if set, zero value otherwise. +func (o *GetIssue200Response) GetContext() string { + if o == nil || IsNil(o.Context) { + var ret string + return ret + } + return *o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetContextOk() (*string, bool) { + if o == nil || IsNil(o.Context) { + return nil, false + } + return o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *GetIssue200Response) HasContext() bool { + if o != nil && !IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given string and assigns it to the Context field. +func (o *GetIssue200Response) SetContext(v string) { + o.Context = &v +} + +// GetRisks returns the Risks field value +func (o *GetIssue200Response) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS { + if o == nil { + var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS + return ret + } + + return o.Risks +} + +// GetRisksOk returns a tuple with the Risks field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, bool) { + if o == nil { + return nil, false + } + return o.Risks, true +} + +// SetRisks sets field value +func (o *GetIssue200Response) SetRisks(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS) { + o.Risks = v +} + +// GetAlertUid returns the AlertUid field value +func (o *GetIssue200Response) GetAlertUid() string { + if o == nil { + var ret string + return ret + } + + return o.AlertUid +} + +// GetAlertUidOk returns a tuple with the AlertUid field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetAlertUidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AlertUid, true +} + +// SetAlertUid sets field value +func (o *GetIssue200Response) SetAlertUid(v string) { + o.AlertUid = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *GetIssue200Response) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *GetIssue200Response) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetAsset returns the Asset field value +func (o *GetIssue200Response) GetAsset() AssetDetailed2 { + if o == nil { + var ret AssetDetailed2 + return ret + } + + return o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetAssetOk() (*AssetDetailed2, bool) { + if o == nil { + return nil, false + } + return &o.Asset, true +} + +// SetAsset sets field value +func (o *GetIssue200Response) SetAsset(v AssetDetailed2) { + o.Asset = v +} + +// GetLastSeenScanId returns the LastSeenScanId field value if set, zero value otherwise. +func (o *GetIssue200Response) GetLastSeenScanId() string { + if o == nil || IsNil(o.LastSeenScanId) { + var ret string + return ret + } + return *o.LastSeenScanId +} + +// GetLastSeenScanIdOk returns a tuple with the LastSeenScanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetLastSeenScanIdOk() (*string, bool) { + if o == nil || IsNil(o.LastSeenScanId) { + return nil, false + } + return o.LastSeenScanId, true +} + +// HasLastSeenScanId returns a boolean if a field has been set. +func (o *GetIssue200Response) HasLastSeenScanId() bool { + if o != nil && !IsNil(o.LastSeenScanId) { + return true + } + + return false +} + +// SetLastSeenScanId gets a reference to the given string and assigns it to the LastSeenScanId field. +func (o *GetIssue200Response) SetLastSeenScanId(v string) { + o.LastSeenScanId = &v +} + +// GetFirstSeenScanId returns the FirstSeenScanId field value if set, zero value otherwise. +func (o *GetIssue200Response) GetFirstSeenScanId() string { + if o == nil || IsNil(o.FirstSeenScanId) { + var ret string + return ret + } + return *o.FirstSeenScanId +} + +// GetFirstSeenScanIdOk returns a tuple with the FirstSeenScanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetFirstSeenScanIdOk() (*string, bool) { + if o == nil || IsNil(o.FirstSeenScanId) { + return nil, false + } + return o.FirstSeenScanId, true +} + +// HasFirstSeenScanId returns a boolean if a field has been set. +func (o *GetIssue200Response) HasFirstSeenScanId() bool { + if o != nil && !IsNil(o.FirstSeenScanId) { + return true + } + + return false +} + +// SetFirstSeenScanId gets a reference to the given string and assigns it to the FirstSeenScanId field. +func (o *GetIssue200Response) SetFirstSeenScanId(v string) { + o.FirstSeenScanId = &v +} + +// GetCustomRuleId returns the CustomRuleId field value if set, zero value otherwise. +func (o *GetIssue200Response) GetCustomRuleId() string { + if o == nil || IsNil(o.CustomRuleId) { + var ret string + return ret + } + return *o.CustomRuleId +} + +// GetCustomRuleIdOk returns a tuple with the CustomRuleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetCustomRuleIdOk() (*string, bool) { + if o == nil || IsNil(o.CustomRuleId) { + return nil, false + } + return o.CustomRuleId, true +} + +// HasCustomRuleId returns a boolean if a field has been set. +func (o *GetIssue200Response) HasCustomRuleId() bool { + if o != nil && !IsNil(o.CustomRuleId) { + return true + } + + return false +} + +// SetCustomRuleId gets a reference to the given string and assigns it to the CustomRuleId field. +func (o *GetIssue200Response) SetCustomRuleId(v string) { + o.CustomRuleId = &v +} + +// GetAiRemediationFramework returns the AiRemediationFramework field value +func (o *GetIssue200Response) GetAiRemediationFramework() string { + if o == nil { + var ret string + return ret + } + + return o.AiRemediationFramework +} + +// GetAiRemediationFrameworkOk returns a tuple with the AiRemediationFramework field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetAiRemediationFrameworkOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AiRemediationFramework, true +} + +// SetAiRemediationFramework sets field value +func (o *GetIssue200Response) SetAiRemediationFramework(v string) { + o.AiRemediationFramework = v +} + +// GetRemediation returns the Remediation field value if set, zero value otherwise. +func (o *GetIssue200Response) GetRemediation() string { + if o == nil || IsNil(o.Remediation) { + var ret string + return ret + } + return *o.Remediation +} + +// GetRemediationOk returns a tuple with the Remediation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetRemediationOk() (*string, bool) { + if o == nil || IsNil(o.Remediation) { + return nil, false + } + return o.Remediation, true +} + +// HasRemediation returns a boolean if a field has been set. +func (o *GetIssue200Response) HasRemediation() bool { + if o != nil && !IsNil(o.Remediation) { + return true + } + + return false +} + +// SetRemediation gets a reference to the given string and assigns it to the Remediation field. +func (o *GetIssue200Response) SetRemediation(v string) { + o.Remediation = &v +} + +// GetCvss returns the Cvss field value if set, zero value otherwise. +func (o *GetIssue200Response) GetCvss() GetIssue200ResponseCvss { + if o == nil || IsNil(o.Cvss) { + var ret GetIssue200ResponseCvss + return ret + } + return *o.Cvss +} + +// GetCvssOk returns a tuple with the Cvss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetCvssOk() (*GetIssue200ResponseCvss, bool) { + if o == nil || IsNil(o.Cvss) { + return nil, false + } + return o.Cvss, true +} + +// HasCvss returns a boolean if a field has been set. +func (o *GetIssue200Response) HasCvss() bool { + if o != nil && !IsNil(o.Cvss) { + return true + } + + return false +} + +// SetCvss gets a reference to the given GetIssue200ResponseCvss and assigns it to the Cvss field. +func (o *GetIssue200Response) SetCvss(v GetIssue200ResponseCvss) { + o.Cvss = &v +} + +// GetCompliances returns the Compliances field value if set, zero value otherwise. +func (o *GetIssue200Response) GetCompliances() []GetIssue200ResponseCompliancesInner { + if o == nil || IsNil(o.Compliances) { + var ret []GetIssue200ResponseCompliancesInner + return ret + } + return o.Compliances +} + +// GetCompliancesOk returns a tuple with the Compliances field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetCompliancesOk() ([]GetIssue200ResponseCompliancesInner, bool) { + if o == nil || IsNil(o.Compliances) { + return nil, false + } + return o.Compliances, true +} + +// HasCompliances returns a boolean if a field has been set. +func (o *GetIssue200Response) HasCompliances() bool { + if o != nil && !IsNil(o.Compliances) { + return true + } + + return false +} + +// SetCompliances gets a reference to the given []GetIssue200ResponseCompliancesInner and assigns it to the Compliances field. +func (o *GetIssue200Response) SetCompliances(v []GetIssue200ResponseCompliancesInner) { + o.Compliances = v +} + +// GetLinks returns the Links field value +func (o *GetIssue200Response) GetLinks() IssueSummarizedLinks { + if o == nil { + var ret IssueSummarizedLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *GetIssue200Response) GetLinksOk() (*IssueSummarizedLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *GetIssue200Response) SetLinks(v IssueSummarizedLinks) { + o.Links = v +} + +func (o GetIssue200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetIssue200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["fullName"] = o.FullName + toSerialize["category"] = o.Category + toSerialize["severity"] = o.Severity + toSerialize["status"] = o.Status + if !IsNil(o.Context) { + toSerialize["context"] = o.Context + } + toSerialize["risks"] = o.Risks + toSerialize["alertUid"] = o.AlertUid + toSerialize["createdAt"] = o.CreatedAt + toSerialize["asset"] = o.Asset + if !IsNil(o.LastSeenScanId) { + toSerialize["lastSeenScanId"] = o.LastSeenScanId + } + if !IsNil(o.FirstSeenScanId) { + toSerialize["firstSeenScanId"] = o.FirstSeenScanId + } + if !IsNil(o.CustomRuleId) { + toSerialize["customRuleId"] = o.CustomRuleId + } + toSerialize["aiRemediationFramework"] = o.AiRemediationFramework + if !IsNil(o.Remediation) { + toSerialize["remediation"] = o.Remediation + } + if !IsNil(o.Cvss) { + toSerialize["cvss"] = o.Cvss + } + if !IsNil(o.Compliances) { + toSerialize["compliances"] = o.Compliances + } + toSerialize["links"] = o.Links + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetIssue200Response) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "name", + "fullName", + "category", + "severity", + "status", + "risks", + "alertUid", + "createdAt", + "asset", + "aiRemediationFramework", + "links", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetIssue200Response := _GetIssue200Response{} + + err = json.Unmarshal(data, &varGetIssue200Response) + + if err != nil { + return err + } + + *o = GetIssue200Response(varGetIssue200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "fullName") + delete(additionalProperties, "category") + delete(additionalProperties, "severity") + delete(additionalProperties, "status") + delete(additionalProperties, "context") + delete(additionalProperties, "risks") + delete(additionalProperties, "alertUid") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "asset") + delete(additionalProperties, "lastSeenScanId") + delete(additionalProperties, "firstSeenScanId") + delete(additionalProperties, "customRuleId") + delete(additionalProperties, "aiRemediationFramework") + delete(additionalProperties, "remediation") + delete(additionalProperties, "cvss") + delete(additionalProperties, "compliances") + delete(additionalProperties, "links") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetIssue200Response struct { + value *GetIssue200Response + isSet bool +} + +func (v NullableGetIssue200Response) Get() *GetIssue200Response { + return v.value +} + +func (v *NullableGetIssue200Response) Set(val *GetIssue200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetIssue200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetIssue200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetIssue200Response(val *GetIssue200Response) *NullableGetIssue200Response { + return &NullableGetIssue200Response{value: val, isSet: true} +} + +func (v NullableGetIssue200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetIssue200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_issue_200_response_compliances_inner.go b/pkg/api/v3/model_get_issue_200_response_compliances_inner.go new file mode 100644 index 00000000..a4ab6849 --- /dev/null +++ b/pkg/api/v3/model_get_issue_200_response_compliances_inner.go @@ -0,0 +1,197 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetIssue200ResponseCompliancesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetIssue200ResponseCompliancesInner{} + +// GetIssue200ResponseCompliancesInner struct for GetIssue200ResponseCompliancesInner +type GetIssue200ResponseCompliancesInner struct { + // The compliance framework name + Framework string `json:"framework"` + // The compliance item identifier + Item string `json:"item"` + AdditionalProperties map[string]interface{} +} + +type _GetIssue200ResponseCompliancesInner GetIssue200ResponseCompliancesInner + +// NewGetIssue200ResponseCompliancesInner instantiates a new GetIssue200ResponseCompliancesInner 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 NewGetIssue200ResponseCompliancesInner(framework string, item string) *GetIssue200ResponseCompliancesInner { + this := GetIssue200ResponseCompliancesInner{} + this.Framework = framework + this.Item = item + return &this +} + +// NewGetIssue200ResponseCompliancesInnerWithDefaults instantiates a new GetIssue200ResponseCompliancesInner 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 NewGetIssue200ResponseCompliancesInnerWithDefaults() *GetIssue200ResponseCompliancesInner { + this := GetIssue200ResponseCompliancesInner{} + return &this +} + +// GetFramework returns the Framework field value +func (o *GetIssue200ResponseCompliancesInner) GetFramework() string { + if o == nil { + var ret string + return ret + } + + return o.Framework +} + +// GetFrameworkOk returns a tuple with the Framework field value +// and a boolean to check if the value has been set. +func (o *GetIssue200ResponseCompliancesInner) GetFrameworkOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Framework, true +} + +// SetFramework sets field value +func (o *GetIssue200ResponseCompliancesInner) SetFramework(v string) { + o.Framework = v +} + +// GetItem returns the Item field value +func (o *GetIssue200ResponseCompliancesInner) GetItem() string { + if o == nil { + var ret string + return ret + } + + return o.Item +} + +// GetItemOk returns a tuple with the Item field value +// and a boolean to check if the value has been set. +func (o *GetIssue200ResponseCompliancesInner) GetItemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Item, true +} + +// SetItem sets field value +func (o *GetIssue200ResponseCompliancesInner) SetItem(v string) { + o.Item = v +} + +func (o GetIssue200ResponseCompliancesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetIssue200ResponseCompliancesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["framework"] = o.Framework + toSerialize["item"] = o.Item + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetIssue200ResponseCompliancesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "framework", + "item", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetIssue200ResponseCompliancesInner := _GetIssue200ResponseCompliancesInner{} + + err = json.Unmarshal(data, &varGetIssue200ResponseCompliancesInner) + + if err != nil { + return err + } + + *o = GetIssue200ResponseCompliancesInner(varGetIssue200ResponseCompliancesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "framework") + delete(additionalProperties, "item") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetIssue200ResponseCompliancesInner struct { + value *GetIssue200ResponseCompliancesInner + isSet bool +} + +func (v NullableGetIssue200ResponseCompliancesInner) Get() *GetIssue200ResponseCompliancesInner { + return v.value +} + +func (v *NullableGetIssue200ResponseCompliancesInner) Set(val *GetIssue200ResponseCompliancesInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetIssue200ResponseCompliancesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetIssue200ResponseCompliancesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetIssue200ResponseCompliancesInner(val *GetIssue200ResponseCompliancesInner) *NullableGetIssue200ResponseCompliancesInner { + return &NullableGetIssue200ResponseCompliancesInner{value: val, isSet: true} +} + +func (v NullableGetIssue200ResponseCompliancesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetIssue200ResponseCompliancesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_issue_200_response_cvss.go b/pkg/api/v3/model_get_issue_200_response_cvss.go new file mode 100644 index 00000000..ad54915a --- /dev/null +++ b/pkg/api/v3/model_get_issue_200_response_cvss.go @@ -0,0 +1,192 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetIssue200ResponseCvss type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetIssue200ResponseCvss{} + +// GetIssue200ResponseCvss CVSS information for the issue +type GetIssue200ResponseCvss struct { + // CVSS score of the issue + Score *float32 `json:"score,omitempty"` + // CVSS vector of the issue + Vector *string `json:"vector,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetIssue200ResponseCvss GetIssue200ResponseCvss + +// NewGetIssue200ResponseCvss instantiates a new GetIssue200ResponseCvss 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 NewGetIssue200ResponseCvss() *GetIssue200ResponseCvss { + this := GetIssue200ResponseCvss{} + return &this +} + +// NewGetIssue200ResponseCvssWithDefaults instantiates a new GetIssue200ResponseCvss 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 NewGetIssue200ResponseCvssWithDefaults() *GetIssue200ResponseCvss { + this := GetIssue200ResponseCvss{} + return &this +} + +// GetScore returns the Score field value if set, zero value otherwise. +func (o *GetIssue200ResponseCvss) GetScore() float32 { + if o == nil || IsNil(o.Score) { + var ret float32 + return ret + } + return *o.Score +} + +// GetScoreOk returns a tuple with the Score field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200ResponseCvss) GetScoreOk() (*float32, bool) { + if o == nil || IsNil(o.Score) { + return nil, false + } + return o.Score, true +} + +// HasScore returns a boolean if a field has been set. +func (o *GetIssue200ResponseCvss) HasScore() bool { + if o != nil && !IsNil(o.Score) { + return true + } + + return false +} + +// SetScore gets a reference to the given float32 and assigns it to the Score field. +func (o *GetIssue200ResponseCvss) SetScore(v float32) { + o.Score = &v +} + +// GetVector returns the Vector field value if set, zero value otherwise. +func (o *GetIssue200ResponseCvss) GetVector() string { + if o == nil || IsNil(o.Vector) { + var ret string + return ret + } + return *o.Vector +} + +// GetVectorOk returns a tuple with the Vector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetIssue200ResponseCvss) GetVectorOk() (*string, bool) { + if o == nil || IsNil(o.Vector) { + return nil, false + } + return o.Vector, true +} + +// HasVector returns a boolean if a field has been set. +func (o *GetIssue200ResponseCvss) HasVector() bool { + if o != nil && !IsNil(o.Vector) { + return true + } + + return false +} + +// SetVector gets a reference to the given string and assigns it to the Vector field. +func (o *GetIssue200ResponseCvss) SetVector(v string) { + o.Vector = &v +} + +func (o GetIssue200ResponseCvss) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetIssue200ResponseCvss) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Score) { + toSerialize["score"] = o.Score + } + if !IsNil(o.Vector) { + toSerialize["vector"] = o.Vector + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetIssue200ResponseCvss) UnmarshalJSON(data []byte) (err error) { + varGetIssue200ResponseCvss := _GetIssue200ResponseCvss{} + + err = json.Unmarshal(data, &varGetIssue200ResponseCvss) + + if err != nil { + return err + } + + *o = GetIssue200ResponseCvss(varGetIssue200ResponseCvss) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "score") + delete(additionalProperties, "vector") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetIssue200ResponseCvss struct { + value *GetIssue200ResponseCvss + isSet bool +} + +func (v NullableGetIssue200ResponseCvss) Get() *GetIssue200ResponseCvss { + return v.value +} + +func (v *NullableGetIssue200ResponseCvss) Set(val *GetIssue200ResponseCvss) { + v.value = val + v.isSet = true +} + +func (v NullableGetIssue200ResponseCvss) IsSet() bool { + return v.isSet +} + +func (v *NullableGetIssue200ResponseCvss) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetIssue200ResponseCvss(val *GetIssue200ResponseCvss) *NullableGetIssue200ResponseCvss { + return &NullableGetIssue200ResponseCvss{value: val, isSet: true} +} + +func (v NullableGetIssue200ResponseCvss) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetIssue200ResponseCvss) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_me_200_response.go b/pkg/api/v3/model_get_me_200_response.go new file mode 100644 index 00000000..47b6db39 --- /dev/null +++ b/pkg/api/v3/model_get_me_200_response.go @@ -0,0 +1,195 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetMe200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMe200Response{} + +// GetMe200Response struct for GetMe200Response +type GetMe200Response struct { + User GetMe200ResponseUser `json:"user"` + Organization GetMe200ResponseOrganization `json:"organization"` + AdditionalProperties map[string]interface{} +} + +type _GetMe200Response GetMe200Response + +// NewGetMe200Response instantiates a new GetMe200Response 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 NewGetMe200Response(user GetMe200ResponseUser, organization GetMe200ResponseOrganization) *GetMe200Response { + this := GetMe200Response{} + this.User = user + this.Organization = organization + return &this +} + +// NewGetMe200ResponseWithDefaults instantiates a new GetMe200Response 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 NewGetMe200ResponseWithDefaults() *GetMe200Response { + this := GetMe200Response{} + return &this +} + +// GetUser returns the User field value +func (o *GetMe200Response) GetUser() GetMe200ResponseUser { + if o == nil { + var ret GetMe200ResponseUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *GetMe200Response) GetUserOk() (*GetMe200ResponseUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *GetMe200Response) SetUser(v GetMe200ResponseUser) { + o.User = v +} + +// GetOrganization returns the Organization field value +func (o *GetMe200Response) GetOrganization() GetMe200ResponseOrganization { + if o == nil { + var ret GetMe200ResponseOrganization + return ret + } + + return o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value +// and a boolean to check if the value has been set. +func (o *GetMe200Response) GetOrganizationOk() (*GetMe200ResponseOrganization, bool) { + if o == nil { + return nil, false + } + return &o.Organization, true +} + +// SetOrganization sets field value +func (o *GetMe200Response) SetOrganization(v GetMe200ResponseOrganization) { + o.Organization = v +} + +func (o GetMe200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMe200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["user"] = o.User + toSerialize["organization"] = o.Organization + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetMe200Response) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "user", + "organization", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetMe200Response := _GetMe200Response{} + + err = json.Unmarshal(data, &varGetMe200Response) + + if err != nil { + return err + } + + *o = GetMe200Response(varGetMe200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "user") + delete(additionalProperties, "organization") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetMe200Response struct { + value *GetMe200Response + isSet bool +} + +func (v NullableGetMe200Response) Get() *GetMe200Response { + return v.value +} + +func (v *NullableGetMe200Response) Set(val *GetMe200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetMe200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMe200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMe200Response(val *GetMe200Response) *NullableGetMe200Response { + return &NullableGetMe200Response{value: val, isSet: true} +} + +func (v NullableGetMe200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMe200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_me_200_response_organization.go b/pkg/api/v3/model_get_me_200_response_organization.go new file mode 100644 index 00000000..149d0a47 --- /dev/null +++ b/pkg/api/v3/model_get_me_200_response_organization.go @@ -0,0 +1,197 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetMe200ResponseOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMe200ResponseOrganization{} + +// GetMe200ResponseOrganization struct for GetMe200ResponseOrganization +type GetMe200ResponseOrganization struct { + // The id of the current organization + Id string `json:"id"` + // The name of the current organization + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _GetMe200ResponseOrganization GetMe200ResponseOrganization + +// NewGetMe200ResponseOrganization instantiates a new GetMe200ResponseOrganization 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 NewGetMe200ResponseOrganization(id string, name string) *GetMe200ResponseOrganization { + this := GetMe200ResponseOrganization{} + this.Id = id + this.Name = name + return &this +} + +// NewGetMe200ResponseOrganizationWithDefaults instantiates a new GetMe200ResponseOrganization 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 NewGetMe200ResponseOrganizationWithDefaults() *GetMe200ResponseOrganization { + this := GetMe200ResponseOrganization{} + return &this +} + +// GetId returns the Id field value +func (o *GetMe200ResponseOrganization) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetMe200ResponseOrganization) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetMe200ResponseOrganization) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *GetMe200ResponseOrganization) 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 *GetMe200ResponseOrganization) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetMe200ResponseOrganization) SetName(v string) { + o.Name = v +} + +func (o GetMe200ResponseOrganization) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMe200ResponseOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetMe200ResponseOrganization) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetMe200ResponseOrganization := _GetMe200ResponseOrganization{} + + err = json.Unmarshal(data, &varGetMe200ResponseOrganization) + + if err != nil { + return err + } + + *o = GetMe200ResponseOrganization(varGetMe200ResponseOrganization) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetMe200ResponseOrganization struct { + value *GetMe200ResponseOrganization + isSet bool +} + +func (v NullableGetMe200ResponseOrganization) Get() *GetMe200ResponseOrganization { + return v.value +} + +func (v *NullableGetMe200ResponseOrganization) Set(val *GetMe200ResponseOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableGetMe200ResponseOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMe200ResponseOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMe200ResponseOrganization(val *GetMe200ResponseOrganization) *NullableGetMe200ResponseOrganization { + return &NullableGetMe200ResponseOrganization{value: val, isSet: true} +} + +func (v NullableGetMe200ResponseOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMe200ResponseOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_me_200_response_user.go b/pkg/api/v3/model_get_me_200_response_user.go new file mode 100644 index 00000000..12364922 --- /dev/null +++ b/pkg/api/v3/model_get_me_200_response_user.go @@ -0,0 +1,197 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetMe200ResponseUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMe200ResponseUser{} + +// GetMe200ResponseUser struct for GetMe200ResponseUser +type GetMe200ResponseUser struct { + // The id of the current user + Id string `json:"id"` + // The email of the current user + Email string `json:"email"` + AdditionalProperties map[string]interface{} +} + +type _GetMe200ResponseUser GetMe200ResponseUser + +// NewGetMe200ResponseUser instantiates a new GetMe200ResponseUser 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 NewGetMe200ResponseUser(id string, email string) *GetMe200ResponseUser { + this := GetMe200ResponseUser{} + this.Id = id + this.Email = email + return &this +} + +// NewGetMe200ResponseUserWithDefaults instantiates a new GetMe200ResponseUser 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 NewGetMe200ResponseUserWithDefaults() *GetMe200ResponseUser { + this := GetMe200ResponseUser{} + return &this +} + +// GetId returns the Id field value +func (o *GetMe200ResponseUser) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetMe200ResponseUser) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetMe200ResponseUser) SetId(v string) { + o.Id = v +} + +// GetEmail returns the Email field value +func (o *GetMe200ResponseUser) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *GetMe200ResponseUser) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *GetMe200ResponseUser) SetEmail(v string) { + o.Email = v +} + +func (o GetMe200ResponseUser) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMe200ResponseUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["email"] = o.Email + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetMe200ResponseUser) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "email", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetMe200ResponseUser := _GetMe200ResponseUser{} + + err = json.Unmarshal(data, &varGetMe200ResponseUser) + + if err != nil { + return err + } + + *o = GetMe200ResponseUser(varGetMe200ResponseUser) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "email") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetMe200ResponseUser struct { + value *GetMe200ResponseUser + isSet bool +} + +func (v NullableGetMe200ResponseUser) Get() *GetMe200ResponseUser { + return v.value +} + +func (v *NullableGetMe200ResponseUser) Set(val *GetMe200ResponseUser) { + v.value = val + v.isSet = true +} + +func (v NullableGetMe200ResponseUser) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMe200ResponseUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMe200ResponseUser(val *GetMe200ResponseUser) *NullableGetMe200ResponseUser { + return &NullableGetMe200ResponseUser{value: val, isSet: true} +} + +func (v NullableGetMe200ResponseUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMe200ResponseUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed.go b/pkg/api/v3/model_get_profile_200_response.go similarity index 64% rename from pkg/api/v3/model_profile_detailed.go rename to pkg/api/v3/model_get_profile_200_response.go index 4a5d8ff5..cc8071b7 100644 --- a/pkg/api/v3/model_profile_detailed.go +++ b/pkg/api/v3/model_get_profile_200_response.go @@ -15,15 +15,17 @@ import ( "fmt" ) -// checks if the ProfileDetailed type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailed{} +// checks if the GetProfile200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200Response{} -// ProfileDetailed Detailed information about a profile -type ProfileDetailed struct { +// GetProfile200Response struct for GetProfile200Response +type GetProfile200Response struct { // The id of the profile Id string `json:"id"` // The name of the profile Name string `json:"name"` + // The description of the profile + Description string `json:"description"` // The scanner kind of the profile ScannerKind string `json:"scannerKind"` // The date and time the profile was created @@ -37,11 +39,11 @@ type ProfileDetailed struct { // The score of the profile Score *float32 `json:"score,omitempty"` // The coverage of the profile - Coverage *float32 `json:"coverage,omitempty"` - Configuration ProfileDetailedConfiguration `json:"configuration"` - Asset AssetDetailed `json:"asset"` - LastResourceScan *ScanDetailed `json:"lastResourceScan,omitempty"` - LastSuccessfulResourceScan *ScanDetailed `json:"lastSuccessfulResourceScan,omitempty"` + Coverage *float32 `json:"coverage,omitempty"` + Configuration GetProfile200ResponseConfiguration `json:"configuration"` + Asset AssetDetailed `json:"asset"` + LastResourceScan *ScanDetailed `json:"lastResourceScan,omitempty"` + LastSuccessfulResourceScan *ScanDetailed1 `json:"lastSuccessfulResourceScan,omitempty"` // The risks of the profile Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks"` Statistics StatisticsDetailed `json:"statistics"` @@ -49,16 +51,17 @@ type ProfileDetailed struct { AdditionalProperties map[string]interface{} } -type _ProfileDetailed ProfileDetailed +type _GetProfile200Response GetProfile200Response -// NewProfileDetailed instantiates a new ProfileDetailed object +// NewGetProfile200Response instantiates a new GetProfile200Response 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 NewProfileDetailed(id string, name string, scannerKind string, createdAt string, updatedAt string, configuration ProfileDetailedConfiguration, asset AssetDetailed, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, statistics StatisticsDetailed, links ProfileSummarizedLinks) *ProfileDetailed { - this := ProfileDetailed{} +func NewGetProfile200Response(id string, name string, description string, scannerKind string, createdAt string, updatedAt string, configuration GetProfile200ResponseConfiguration, asset AssetDetailed, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, statistics StatisticsDetailed, links ProfileSummarizedLinks) *GetProfile200Response { + this := GetProfile200Response{} this.Id = id this.Name = name + this.Description = description this.ScannerKind = scannerKind this.CreatedAt = createdAt this.UpdatedAt = updatedAt @@ -70,16 +73,16 @@ func NewProfileDetailed(id string, name string, scannerKind string, createdAt st return &this } -// NewProfileDetailedWithDefaults instantiates a new ProfileDetailed object +// NewGetProfile200ResponseWithDefaults instantiates a new GetProfile200Response 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 NewProfileDetailedWithDefaults() *ProfileDetailed { - this := ProfileDetailed{} +func NewGetProfile200ResponseWithDefaults() *GetProfile200Response { + this := GetProfile200Response{} return &this } // GetId returns the Id field value -func (o *ProfileDetailed) GetId() string { +func (o *GetProfile200Response) GetId() string { if o == nil { var ret string return ret @@ -90,7 +93,7 @@ func (o *ProfileDetailed) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetIdOk() (*string, bool) { +func (o *GetProfile200Response) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -98,12 +101,12 @@ func (o *ProfileDetailed) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *ProfileDetailed) SetId(v string) { +func (o *GetProfile200Response) SetId(v string) { o.Id = v } // GetName returns the Name field value -func (o *ProfileDetailed) GetName() string { +func (o *GetProfile200Response) GetName() string { if o == nil { var ret string return ret @@ -114,7 +117,7 @@ func (o *ProfileDetailed) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetNameOk() (*string, bool) { +func (o *GetProfile200Response) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -122,12 +125,36 @@ func (o *ProfileDetailed) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *ProfileDetailed) SetName(v string) { +func (o *GetProfile200Response) SetName(v string) { o.Name = v } +// GetDescription returns the Description field value +func (o *GetProfile200Response) 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 *GetProfile200Response) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *GetProfile200Response) SetDescription(v string) { + o.Description = v +} + // GetScannerKind returns the ScannerKind field value -func (o *ProfileDetailed) GetScannerKind() string { +func (o *GetProfile200Response) GetScannerKind() string { if o == nil { var ret string return ret @@ -138,7 +165,7 @@ func (o *ProfileDetailed) GetScannerKind() string { // GetScannerKindOk returns a tuple with the ScannerKind field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetScannerKindOk() (*string, bool) { +func (o *GetProfile200Response) GetScannerKindOk() (*string, bool) { if o == nil { return nil, false } @@ -146,12 +173,12 @@ func (o *ProfileDetailed) GetScannerKindOk() (*string, bool) { } // SetScannerKind sets field value -func (o *ProfileDetailed) SetScannerKind(v string) { +func (o *GetProfile200Response) SetScannerKind(v string) { o.ScannerKind = v } // GetCreatedAt returns the CreatedAt field value -func (o *ProfileDetailed) GetCreatedAt() string { +func (o *GetProfile200Response) GetCreatedAt() string { if o == nil { var ret string return ret @@ -162,7 +189,7 @@ func (o *ProfileDetailed) GetCreatedAt() string { // GetCreatedAtOk returns a tuple with the CreatedAt field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetCreatedAtOk() (*string, bool) { +func (o *GetProfile200Response) GetCreatedAtOk() (*string, bool) { if o == nil { return nil, false } @@ -170,12 +197,12 @@ func (o *ProfileDetailed) GetCreatedAtOk() (*string, bool) { } // SetCreatedAt sets field value -func (o *ProfileDetailed) SetCreatedAt(v string) { +func (o *GetProfile200Response) SetCreatedAt(v string) { o.CreatedAt = v } // GetUpdatedAt returns the UpdatedAt field value -func (o *ProfileDetailed) GetUpdatedAt() string { +func (o *GetProfile200Response) GetUpdatedAt() string { if o == nil { var ret string return ret @@ -186,7 +213,7 @@ func (o *ProfileDetailed) GetUpdatedAt() string { // GetUpdatedAtOk returns a tuple with the UpdatedAt field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetUpdatedAtOk() (*string, bool) { +func (o *GetProfile200Response) GetUpdatedAtOk() (*string, bool) { if o == nil { return nil, false } @@ -194,12 +221,12 @@ func (o *ProfileDetailed) GetUpdatedAtOk() (*string, bool) { } // SetUpdatedAt sets field value -func (o *ProfileDetailed) SetUpdatedAt(v string) { +func (o *GetProfile200Response) SetUpdatedAt(v string) { o.UpdatedAt = v } // GetCron returns the Cron field value if set, zero value otherwise. -func (o *ProfileDetailed) GetCron() string { +func (o *GetProfile200Response) GetCron() string { if o == nil || IsNil(o.Cron) { var ret string return ret @@ -209,7 +236,7 @@ func (o *ProfileDetailed) GetCron() string { // GetCronOk returns a tuple with the Cron field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetCronOk() (*string, bool) { +func (o *GetProfile200Response) GetCronOk() (*string, bool) { if o == nil || IsNil(o.Cron) { return nil, false } @@ -217,7 +244,7 @@ func (o *ProfileDetailed) GetCronOk() (*string, bool) { } // HasCron returns a boolean if a field has been set. -func (o *ProfileDetailed) HasCron() bool { +func (o *GetProfile200Response) HasCron() bool { if o != nil && !IsNil(o.Cron) { return true } @@ -226,12 +253,12 @@ func (o *ProfileDetailed) HasCron() bool { } // SetCron gets a reference to the given string and assigns it to the Cron field. -func (o *ProfileDetailed) SetCron(v string) { +func (o *GetProfile200Response) SetCron(v string) { o.Cron = &v } // GetScheduledForDeletionAt returns the ScheduledForDeletionAt field value if set, zero value otherwise. -func (o *ProfileDetailed) GetScheduledForDeletionAt() string { +func (o *GetProfile200Response) GetScheduledForDeletionAt() string { if o == nil || IsNil(o.ScheduledForDeletionAt) { var ret string return ret @@ -241,7 +268,7 @@ func (o *ProfileDetailed) GetScheduledForDeletionAt() string { // GetScheduledForDeletionAtOk returns a tuple with the ScheduledForDeletionAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetScheduledForDeletionAtOk() (*string, bool) { +func (o *GetProfile200Response) GetScheduledForDeletionAtOk() (*string, bool) { if o == nil || IsNil(o.ScheduledForDeletionAt) { return nil, false } @@ -249,7 +276,7 @@ func (o *ProfileDetailed) GetScheduledForDeletionAtOk() (*string, bool) { } // HasScheduledForDeletionAt returns a boolean if a field has been set. -func (o *ProfileDetailed) HasScheduledForDeletionAt() bool { +func (o *GetProfile200Response) HasScheduledForDeletionAt() bool { if o != nil && !IsNil(o.ScheduledForDeletionAt) { return true } @@ -258,12 +285,12 @@ func (o *ProfileDetailed) HasScheduledForDeletionAt() bool { } // SetScheduledForDeletionAt gets a reference to the given string and assigns it to the ScheduledForDeletionAt field. -func (o *ProfileDetailed) SetScheduledForDeletionAt(v string) { +func (o *GetProfile200Response) SetScheduledForDeletionAt(v string) { o.ScheduledForDeletionAt = &v } // GetScore returns the Score field value if set, zero value otherwise. -func (o *ProfileDetailed) GetScore() float32 { +func (o *GetProfile200Response) GetScore() float32 { if o == nil || IsNil(o.Score) { var ret float32 return ret @@ -273,7 +300,7 @@ func (o *ProfileDetailed) GetScore() float32 { // GetScoreOk returns a tuple with the Score field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetScoreOk() (*float32, bool) { +func (o *GetProfile200Response) GetScoreOk() (*float32, bool) { if o == nil || IsNil(o.Score) { return nil, false } @@ -281,7 +308,7 @@ func (o *ProfileDetailed) GetScoreOk() (*float32, bool) { } // HasScore returns a boolean if a field has been set. -func (o *ProfileDetailed) HasScore() bool { +func (o *GetProfile200Response) HasScore() bool { if o != nil && !IsNil(o.Score) { return true } @@ -290,12 +317,12 @@ func (o *ProfileDetailed) HasScore() bool { } // SetScore gets a reference to the given float32 and assigns it to the Score field. -func (o *ProfileDetailed) SetScore(v float32) { +func (o *GetProfile200Response) SetScore(v float32) { o.Score = &v } // GetCoverage returns the Coverage field value if set, zero value otherwise. -func (o *ProfileDetailed) GetCoverage() float32 { +func (o *GetProfile200Response) GetCoverage() float32 { if o == nil || IsNil(o.Coverage) { var ret float32 return ret @@ -305,7 +332,7 @@ func (o *ProfileDetailed) GetCoverage() float32 { // GetCoverageOk returns a tuple with the Coverage field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetCoverageOk() (*float32, bool) { +func (o *GetProfile200Response) GetCoverageOk() (*float32, bool) { if o == nil || IsNil(o.Coverage) { return nil, false } @@ -313,7 +340,7 @@ func (o *ProfileDetailed) GetCoverageOk() (*float32, bool) { } // HasCoverage returns a boolean if a field has been set. -func (o *ProfileDetailed) HasCoverage() bool { +func (o *GetProfile200Response) HasCoverage() bool { if o != nil && !IsNil(o.Coverage) { return true } @@ -322,14 +349,14 @@ func (o *ProfileDetailed) HasCoverage() bool { } // SetCoverage gets a reference to the given float32 and assigns it to the Coverage field. -func (o *ProfileDetailed) SetCoverage(v float32) { +func (o *GetProfile200Response) SetCoverage(v float32) { o.Coverage = &v } // GetConfiguration returns the Configuration field value -func (o *ProfileDetailed) GetConfiguration() ProfileDetailedConfiguration { +func (o *GetProfile200Response) GetConfiguration() GetProfile200ResponseConfiguration { if o == nil { - var ret ProfileDetailedConfiguration + var ret GetProfile200ResponseConfiguration return ret } @@ -338,7 +365,7 @@ func (o *ProfileDetailed) GetConfiguration() ProfileDetailedConfiguration { // GetConfigurationOk returns a tuple with the Configuration field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetConfigurationOk() (*ProfileDetailedConfiguration, bool) { +func (o *GetProfile200Response) GetConfigurationOk() (*GetProfile200ResponseConfiguration, bool) { if o == nil { return nil, false } @@ -346,12 +373,12 @@ func (o *ProfileDetailed) GetConfigurationOk() (*ProfileDetailedConfiguration, b } // SetConfiguration sets field value -func (o *ProfileDetailed) SetConfiguration(v ProfileDetailedConfiguration) { +func (o *GetProfile200Response) SetConfiguration(v GetProfile200ResponseConfiguration) { o.Configuration = v } // GetAsset returns the Asset field value -func (o *ProfileDetailed) GetAsset() AssetDetailed { +func (o *GetProfile200Response) GetAsset() AssetDetailed { if o == nil { var ret AssetDetailed return ret @@ -362,7 +389,7 @@ func (o *ProfileDetailed) GetAsset() AssetDetailed { // GetAssetOk returns a tuple with the Asset field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetAssetOk() (*AssetDetailed, bool) { +func (o *GetProfile200Response) GetAssetOk() (*AssetDetailed, bool) { if o == nil { return nil, false } @@ -370,12 +397,12 @@ func (o *ProfileDetailed) GetAssetOk() (*AssetDetailed, bool) { } // SetAsset sets field value -func (o *ProfileDetailed) SetAsset(v AssetDetailed) { +func (o *GetProfile200Response) SetAsset(v AssetDetailed) { o.Asset = v } // GetLastResourceScan returns the LastResourceScan field value if set, zero value otherwise. -func (o *ProfileDetailed) GetLastResourceScan() ScanDetailed { +func (o *GetProfile200Response) GetLastResourceScan() ScanDetailed { if o == nil || IsNil(o.LastResourceScan) { var ret ScanDetailed return ret @@ -385,7 +412,7 @@ func (o *ProfileDetailed) GetLastResourceScan() ScanDetailed { // GetLastResourceScanOk returns a tuple with the LastResourceScan field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetLastResourceScanOk() (*ScanDetailed, bool) { +func (o *GetProfile200Response) GetLastResourceScanOk() (*ScanDetailed, bool) { if o == nil || IsNil(o.LastResourceScan) { return nil, false } @@ -393,7 +420,7 @@ func (o *ProfileDetailed) GetLastResourceScanOk() (*ScanDetailed, bool) { } // HasLastResourceScan returns a boolean if a field has been set. -func (o *ProfileDetailed) HasLastResourceScan() bool { +func (o *GetProfile200Response) HasLastResourceScan() bool { if o != nil && !IsNil(o.LastResourceScan) { return true } @@ -402,14 +429,14 @@ func (o *ProfileDetailed) HasLastResourceScan() bool { } // SetLastResourceScan gets a reference to the given ScanDetailed and assigns it to the LastResourceScan field. -func (o *ProfileDetailed) SetLastResourceScan(v ScanDetailed) { +func (o *GetProfile200Response) SetLastResourceScan(v ScanDetailed) { o.LastResourceScan = &v } // GetLastSuccessfulResourceScan returns the LastSuccessfulResourceScan field value if set, zero value otherwise. -func (o *ProfileDetailed) GetLastSuccessfulResourceScan() ScanDetailed { +func (o *GetProfile200Response) GetLastSuccessfulResourceScan() ScanDetailed1 { if o == nil || IsNil(o.LastSuccessfulResourceScan) { - var ret ScanDetailed + var ret ScanDetailed1 return ret } return *o.LastSuccessfulResourceScan @@ -417,7 +444,7 @@ func (o *ProfileDetailed) GetLastSuccessfulResourceScan() ScanDetailed { // GetLastSuccessfulResourceScanOk returns a tuple with the LastSuccessfulResourceScan field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetLastSuccessfulResourceScanOk() (*ScanDetailed, bool) { +func (o *GetProfile200Response) GetLastSuccessfulResourceScanOk() (*ScanDetailed1, bool) { if o == nil || IsNil(o.LastSuccessfulResourceScan) { return nil, false } @@ -425,7 +452,7 @@ func (o *ProfileDetailed) GetLastSuccessfulResourceScanOk() (*ScanDetailed, bool } // HasLastSuccessfulResourceScan returns a boolean if a field has been set. -func (o *ProfileDetailed) HasLastSuccessfulResourceScan() bool { +func (o *GetProfile200Response) HasLastSuccessfulResourceScan() bool { if o != nil && !IsNil(o.LastSuccessfulResourceScan) { return true } @@ -433,13 +460,13 @@ func (o *ProfileDetailed) HasLastSuccessfulResourceScan() bool { return false } -// SetLastSuccessfulResourceScan gets a reference to the given ScanDetailed and assigns it to the LastSuccessfulResourceScan field. -func (o *ProfileDetailed) SetLastSuccessfulResourceScan(v ScanDetailed) { +// SetLastSuccessfulResourceScan gets a reference to the given ScanDetailed1 and assigns it to the LastSuccessfulResourceScan field. +func (o *GetProfile200Response) SetLastSuccessfulResourceScan(v ScanDetailed1) { o.LastSuccessfulResourceScan = &v } // GetRisks returns the Risks field value -func (o *ProfileDetailed) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS { +func (o *GetProfile200Response) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS { if o == nil { var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS return ret @@ -450,7 +477,7 @@ func (o *ProfileDetailed) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPRO // GetRisksOk returns a tuple with the Risks field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, bool) { +func (o *GetProfile200Response) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, bool) { if o == nil { return nil, false } @@ -458,12 +485,12 @@ func (o *ProfileDetailed) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSET } // SetRisks sets field value -func (o *ProfileDetailed) SetRisks(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS) { +func (o *GetProfile200Response) SetRisks(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS) { o.Risks = v } // GetStatistics returns the Statistics field value -func (o *ProfileDetailed) GetStatistics() StatisticsDetailed { +func (o *GetProfile200Response) GetStatistics() StatisticsDetailed { if o == nil { var ret StatisticsDetailed return ret @@ -474,7 +501,7 @@ func (o *ProfileDetailed) GetStatistics() StatisticsDetailed { // GetStatisticsOk returns a tuple with the Statistics field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetStatisticsOk() (*StatisticsDetailed, bool) { +func (o *GetProfile200Response) GetStatisticsOk() (*StatisticsDetailed, bool) { if o == nil { return nil, false } @@ -482,12 +509,12 @@ func (o *ProfileDetailed) GetStatisticsOk() (*StatisticsDetailed, bool) { } // SetStatistics sets field value -func (o *ProfileDetailed) SetStatistics(v StatisticsDetailed) { +func (o *GetProfile200Response) SetStatistics(v StatisticsDetailed) { o.Statistics = v } // GetLinks returns the Links field value -func (o *ProfileDetailed) GetLinks() ProfileSummarizedLinks { +func (o *GetProfile200Response) GetLinks() ProfileSummarizedLinks { if o == nil { var ret ProfileSummarizedLinks return ret @@ -498,7 +525,7 @@ func (o *ProfileDetailed) GetLinks() ProfileSummarizedLinks { // GetLinksOk returns a tuple with the Links field value // and a boolean to check if the value has been set. -func (o *ProfileDetailed) GetLinksOk() (*ProfileSummarizedLinks, bool) { +func (o *GetProfile200Response) GetLinksOk() (*ProfileSummarizedLinks, bool) { if o == nil { return nil, false } @@ -506,11 +533,11 @@ func (o *ProfileDetailed) GetLinksOk() (*ProfileSummarizedLinks, bool) { } // SetLinks sets field value -func (o *ProfileDetailed) SetLinks(v ProfileSummarizedLinks) { +func (o *GetProfile200Response) SetLinks(v ProfileSummarizedLinks) { o.Links = v } -func (o ProfileDetailed) MarshalJSON() ([]byte, error) { +func (o GetProfile200Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -518,10 +545,11 @@ func (o ProfileDetailed) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o ProfileDetailed) ToMap() (map[string]interface{}, error) { +func (o GetProfile200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["name"] = o.Name + toSerialize["description"] = o.Description toSerialize["scannerKind"] = o.ScannerKind toSerialize["createdAt"] = o.CreatedAt toSerialize["updatedAt"] = o.UpdatedAt @@ -556,13 +584,14 @@ func (o ProfileDetailed) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProfileDetailed) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200Response) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ "id", "name", + "description", "scannerKind", "createdAt", "updatedAt", @@ -587,21 +616,22 @@ func (o *ProfileDetailed) UnmarshalJSON(data []byte) (err error) { } } - varProfileDetailed := _ProfileDetailed{} + varGetProfile200Response := _GetProfile200Response{} - err = json.Unmarshal(data, &varProfileDetailed) + err = json.Unmarshal(data, &varGetProfile200Response) if err != nil { return err } - *o = ProfileDetailed(varProfileDetailed) + *o = GetProfile200Response(varGetProfile200Response) additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") + delete(additionalProperties, "description") delete(additionalProperties, "scannerKind") delete(additionalProperties, "createdAt") delete(additionalProperties, "updatedAt") @@ -622,38 +652,38 @@ func (o *ProfileDetailed) UnmarshalJSON(data []byte) (err error) { return err } -type NullableProfileDetailed struct { - value *ProfileDetailed +type NullableGetProfile200Response struct { + value *GetProfile200Response isSet bool } -func (v NullableProfileDetailed) Get() *ProfileDetailed { +func (v NullableGetProfile200Response) Get() *GetProfile200Response { return v.value } -func (v *NullableProfileDetailed) Set(val *ProfileDetailed) { +func (v *NullableGetProfile200Response) Set(val *GetProfile200Response) { v.value = val v.isSet = true } -func (v NullableProfileDetailed) IsSet() bool { +func (v NullableGetProfile200Response) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailed) Unset() { +func (v *NullableGetProfile200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailed(val *ProfileDetailed) *NullableProfileDetailed { - return &NullableProfileDetailed{value: val, isSet: true} +func NewNullableGetProfile200Response(val *GetProfile200Response) *NullableGetProfile200Response { + return &NullableGetProfile200Response{value: val, isSet: true} } -func (v NullableProfileDetailed) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailed) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration.go b/pkg/api/v3/model_get_profile_200_response_configuration.go similarity index 51% rename from pkg/api/v3/model_profile_detailed_configuration.go rename to pkg/api/v3/model_get_profile_200_response_configuration.go index 7cb6bf64..04e629fa 100644 --- a/pkg/api/v3/model_profile_detailed_configuration.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration.go @@ -14,53 +14,54 @@ import ( "encoding/json" ) -// checks if the ProfileDetailedConfiguration type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfiguration{} - -// ProfileDetailedConfiguration The active configuration of the profile -type ProfileDetailedConfiguration struct { - PublicLocationIds []string `json:"public_location_ids,omitempty"` - PrivateLocationIds []string `json:"private_location_ids,omitempty"` - Scope *ProfileDetailedConfigurationScope `json:"scope,omitempty"` - ExplorationScope []string `json:"exploration_scope,omitempty"` - ApiCustomRuleIds []string `json:"api_custom_rule_ids,omitempty"` - FrontendCustomRuleIds []string `json:"frontend_custom_rule_ids,omitempty"` - Authentication *ProfileDetailedConfigurationAuthentication `json:"authentication,omitempty"` - SecurityTests *ProfileDetailedConfigurationSecurityTests `json:"security_tests,omitempty"` - Inference *ProfileDetailedConfigurationInference `json:"inference,omitempty"` - Network *ProfileDetailedConfigurationNetwork `json:"network,omitempty"` - ArgumentGeneration *ProfileDetailedConfigurationArgumentGeneration `json:"argument_generation,omitempty"` - SubdomainEnumeration *ProfileDetailedConfigurationSubdomainEnumeration `json:"subdomain_enumeration,omitempty"` - PortScanning *ProfileDetailedConfigurationPortScanning `json:"port_scanning,omitempty"` - ServiceDiscovery *ProfileDetailedConfigurationServiceDiscovery `json:"service_discovery,omitempty"` - FrontendDast *ProfileDetailedConfigurationFrontendDast `json:"frontend_dast,omitempty"` - GraphqlApiDast *ProfileDetailedConfigurationGraphqlApiDast `json:"graphql_api_dast,omitempty"` - RestApiDast *ProfileDetailedConfigurationRestApiDast `json:"rest_api_dast,omitempty"` - Experimental *ProfileDetailedConfigurationExperimental `json:"experimental,omitempty"` +// checks if the GetProfile200ResponseConfiguration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfiguration{} + +// GetProfile200ResponseConfiguration The active configuration of the profile +type GetProfile200ResponseConfiguration struct { + PublicLocationIds []string `json:"public_location_ids,omitempty"` + PrivateLocationIds []string `json:"private_location_ids,omitempty"` + Scope *GetProfile200ResponseConfigurationScope `json:"scope,omitempty"` + ExplorationScope []string `json:"exploration_scope,omitempty"` + ApiCustomRuleIds []string `json:"api_custom_rule_ids,omitempty"` + FrontendCustomRuleIds []string `json:"frontend_custom_rule_ids,omitempty"` + Authentication *GetProfile200ResponseConfigurationAuthentication `json:"authentication,omitempty"` + SecurityTests *GetProfile200ResponseConfigurationSecurityTests `json:"security_tests,omitempty"` + Inference *GetProfile200ResponseConfigurationInference `json:"inference,omitempty"` + Network *GetProfile200ResponseConfigurationNetwork `json:"network,omitempty"` + ArgumentGeneration *GetProfile200ResponseConfigurationArgumentGeneration `json:"argument_generation,omitempty"` + SubdomainEnumeration *GetProfile200ResponseConfigurationSubdomainEnumeration `json:"subdomain_enumeration,omitempty"` + PortScanning *GetProfile200ResponseConfigurationPortScanning `json:"port_scanning,omitempty"` + ServiceDiscovery *GetProfile200ResponseConfigurationServiceDiscovery `json:"service_discovery,omitempty"` + FrontendDast *GetProfile200ResponseConfigurationFrontendDast `json:"frontend_dast,omitempty"` + GraphqlApiDast *GetProfile200ResponseConfigurationGraphqlApiDast `json:"graphql_api_dast,omitempty"` + RestApiDast *GetProfile200ResponseConfigurationRestApiDast `json:"rest_api_dast,omitempty"` + AutomatedPentesting *GetProfile200ResponseConfigurationAutomatedPentesting `json:"automated_pentesting,omitempty"` + Experimental *GetProfile200ResponseConfigurationExperimental `json:"experimental,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfiguration ProfileDetailedConfiguration +type _GetProfile200ResponseConfiguration GetProfile200ResponseConfiguration -// NewProfileDetailedConfiguration instantiates a new ProfileDetailedConfiguration object +// NewGetProfile200ResponseConfiguration instantiates a new GetProfile200ResponseConfiguration 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 NewProfileDetailedConfiguration() *ProfileDetailedConfiguration { - this := ProfileDetailedConfiguration{} +func NewGetProfile200ResponseConfiguration() *GetProfile200ResponseConfiguration { + this := GetProfile200ResponseConfiguration{} return &this } -// NewProfileDetailedConfigurationWithDefaults instantiates a new ProfileDetailedConfiguration object +// NewGetProfile200ResponseConfigurationWithDefaults instantiates a new GetProfile200ResponseConfiguration 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 NewProfileDetailedConfigurationWithDefaults() *ProfileDetailedConfiguration { - this := ProfileDetailedConfiguration{} +func NewGetProfile200ResponseConfigurationWithDefaults() *GetProfile200ResponseConfiguration { + this := GetProfile200ResponseConfiguration{} return &this } // GetPublicLocationIds returns the PublicLocationIds field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetPublicLocationIds() []string { +func (o *GetProfile200ResponseConfiguration) GetPublicLocationIds() []string { if o == nil || IsNil(o.PublicLocationIds) { var ret []string return ret @@ -70,7 +71,7 @@ func (o *ProfileDetailedConfiguration) GetPublicLocationIds() []string { // GetPublicLocationIdsOk returns a tuple with the PublicLocationIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetPublicLocationIdsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfiguration) GetPublicLocationIdsOk() ([]string, bool) { if o == nil || IsNil(o.PublicLocationIds) { return nil, false } @@ -78,7 +79,7 @@ func (o *ProfileDetailedConfiguration) GetPublicLocationIdsOk() ([]string, bool) } // HasPublicLocationIds returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasPublicLocationIds() bool { +func (o *GetProfile200ResponseConfiguration) HasPublicLocationIds() bool { if o != nil && !IsNil(o.PublicLocationIds) { return true } @@ -87,12 +88,12 @@ func (o *ProfileDetailedConfiguration) HasPublicLocationIds() bool { } // SetPublicLocationIds gets a reference to the given []string and assigns it to the PublicLocationIds field. -func (o *ProfileDetailedConfiguration) SetPublicLocationIds(v []string) { +func (o *GetProfile200ResponseConfiguration) SetPublicLocationIds(v []string) { o.PublicLocationIds = v } // GetPrivateLocationIds returns the PrivateLocationIds field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetPrivateLocationIds() []string { +func (o *GetProfile200ResponseConfiguration) GetPrivateLocationIds() []string { if o == nil || IsNil(o.PrivateLocationIds) { var ret []string return ret @@ -102,7 +103,7 @@ func (o *ProfileDetailedConfiguration) GetPrivateLocationIds() []string { // GetPrivateLocationIdsOk returns a tuple with the PrivateLocationIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetPrivateLocationIdsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfiguration) GetPrivateLocationIdsOk() ([]string, bool) { if o == nil || IsNil(o.PrivateLocationIds) { return nil, false } @@ -110,7 +111,7 @@ func (o *ProfileDetailedConfiguration) GetPrivateLocationIdsOk() ([]string, bool } // HasPrivateLocationIds returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasPrivateLocationIds() bool { +func (o *GetProfile200ResponseConfiguration) HasPrivateLocationIds() bool { if o != nil && !IsNil(o.PrivateLocationIds) { return true } @@ -119,14 +120,14 @@ func (o *ProfileDetailedConfiguration) HasPrivateLocationIds() bool { } // SetPrivateLocationIds gets a reference to the given []string and assigns it to the PrivateLocationIds field. -func (o *ProfileDetailedConfiguration) SetPrivateLocationIds(v []string) { +func (o *GetProfile200ResponseConfiguration) SetPrivateLocationIds(v []string) { o.PrivateLocationIds = v } // GetScope returns the Scope field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetScope() ProfileDetailedConfigurationScope { +func (o *GetProfile200ResponseConfiguration) GetScope() GetProfile200ResponseConfigurationScope { if o == nil || IsNil(o.Scope) { - var ret ProfileDetailedConfigurationScope + var ret GetProfile200ResponseConfigurationScope return ret } return *o.Scope @@ -134,7 +135,7 @@ func (o *ProfileDetailedConfiguration) GetScope() ProfileDetailedConfigurationSc // GetScopeOk returns a tuple with the Scope field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetScopeOk() (*ProfileDetailedConfigurationScope, bool) { +func (o *GetProfile200ResponseConfiguration) GetScopeOk() (*GetProfile200ResponseConfigurationScope, bool) { if o == nil || IsNil(o.Scope) { return nil, false } @@ -142,7 +143,7 @@ func (o *ProfileDetailedConfiguration) GetScopeOk() (*ProfileDetailedConfigurati } // HasScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasScope() bool { +func (o *GetProfile200ResponseConfiguration) HasScope() bool { if o != nil && !IsNil(o.Scope) { return true } @@ -150,13 +151,13 @@ func (o *ProfileDetailedConfiguration) HasScope() bool { return false } -// SetScope gets a reference to the given ProfileDetailedConfigurationScope and assigns it to the Scope field. -func (o *ProfileDetailedConfiguration) SetScope(v ProfileDetailedConfigurationScope) { +// SetScope gets a reference to the given GetProfile200ResponseConfigurationScope and assigns it to the Scope field. +func (o *GetProfile200ResponseConfiguration) SetScope(v GetProfile200ResponseConfigurationScope) { o.Scope = &v } // GetExplorationScope returns the ExplorationScope field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetExplorationScope() []string { +func (o *GetProfile200ResponseConfiguration) GetExplorationScope() []string { if o == nil || IsNil(o.ExplorationScope) { var ret []string return ret @@ -166,7 +167,7 @@ func (o *ProfileDetailedConfiguration) GetExplorationScope() []string { // GetExplorationScopeOk returns a tuple with the ExplorationScope field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetExplorationScopeOk() ([]string, bool) { +func (o *GetProfile200ResponseConfiguration) GetExplorationScopeOk() ([]string, bool) { if o == nil || IsNil(o.ExplorationScope) { return nil, false } @@ -174,7 +175,7 @@ func (o *ProfileDetailedConfiguration) GetExplorationScopeOk() ([]string, bool) } // HasExplorationScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasExplorationScope() bool { +func (o *GetProfile200ResponseConfiguration) HasExplorationScope() bool { if o != nil && !IsNil(o.ExplorationScope) { return true } @@ -183,12 +184,12 @@ func (o *ProfileDetailedConfiguration) HasExplorationScope() bool { } // SetExplorationScope gets a reference to the given []string and assigns it to the ExplorationScope field. -func (o *ProfileDetailedConfiguration) SetExplorationScope(v []string) { +func (o *GetProfile200ResponseConfiguration) SetExplorationScope(v []string) { o.ExplorationScope = v } // GetApiCustomRuleIds returns the ApiCustomRuleIds field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetApiCustomRuleIds() []string { +func (o *GetProfile200ResponseConfiguration) GetApiCustomRuleIds() []string { if o == nil || IsNil(o.ApiCustomRuleIds) { var ret []string return ret @@ -198,7 +199,7 @@ func (o *ProfileDetailedConfiguration) GetApiCustomRuleIds() []string { // GetApiCustomRuleIdsOk returns a tuple with the ApiCustomRuleIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetApiCustomRuleIdsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfiguration) GetApiCustomRuleIdsOk() ([]string, bool) { if o == nil || IsNil(o.ApiCustomRuleIds) { return nil, false } @@ -206,7 +207,7 @@ func (o *ProfileDetailedConfiguration) GetApiCustomRuleIdsOk() ([]string, bool) } // HasApiCustomRuleIds returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasApiCustomRuleIds() bool { +func (o *GetProfile200ResponseConfiguration) HasApiCustomRuleIds() bool { if o != nil && !IsNil(o.ApiCustomRuleIds) { return true } @@ -215,12 +216,12 @@ func (o *ProfileDetailedConfiguration) HasApiCustomRuleIds() bool { } // SetApiCustomRuleIds gets a reference to the given []string and assigns it to the ApiCustomRuleIds field. -func (o *ProfileDetailedConfiguration) SetApiCustomRuleIds(v []string) { +func (o *GetProfile200ResponseConfiguration) SetApiCustomRuleIds(v []string) { o.ApiCustomRuleIds = v } // GetFrontendCustomRuleIds returns the FrontendCustomRuleIds field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetFrontendCustomRuleIds() []string { +func (o *GetProfile200ResponseConfiguration) GetFrontendCustomRuleIds() []string { if o == nil || IsNil(o.FrontendCustomRuleIds) { var ret []string return ret @@ -230,7 +231,7 @@ func (o *ProfileDetailedConfiguration) GetFrontendCustomRuleIds() []string { // GetFrontendCustomRuleIdsOk returns a tuple with the FrontendCustomRuleIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetFrontendCustomRuleIdsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfiguration) GetFrontendCustomRuleIdsOk() ([]string, bool) { if o == nil || IsNil(o.FrontendCustomRuleIds) { return nil, false } @@ -238,7 +239,7 @@ func (o *ProfileDetailedConfiguration) GetFrontendCustomRuleIdsOk() ([]string, b } // HasFrontendCustomRuleIds returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasFrontendCustomRuleIds() bool { +func (o *GetProfile200ResponseConfiguration) HasFrontendCustomRuleIds() bool { if o != nil && !IsNil(o.FrontendCustomRuleIds) { return true } @@ -247,14 +248,14 @@ func (o *ProfileDetailedConfiguration) HasFrontendCustomRuleIds() bool { } // SetFrontendCustomRuleIds gets a reference to the given []string and assigns it to the FrontendCustomRuleIds field. -func (o *ProfileDetailedConfiguration) SetFrontendCustomRuleIds(v []string) { +func (o *GetProfile200ResponseConfiguration) SetFrontendCustomRuleIds(v []string) { o.FrontendCustomRuleIds = v } // GetAuthentication returns the Authentication field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetAuthentication() ProfileDetailedConfigurationAuthentication { +func (o *GetProfile200ResponseConfiguration) GetAuthentication() GetProfile200ResponseConfigurationAuthentication { if o == nil || IsNil(o.Authentication) { - var ret ProfileDetailedConfigurationAuthentication + var ret GetProfile200ResponseConfigurationAuthentication return ret } return *o.Authentication @@ -262,7 +263,7 @@ func (o *ProfileDetailedConfiguration) GetAuthentication() ProfileDetailedConfig // GetAuthenticationOk returns a tuple with the Authentication field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetAuthenticationOk() (*ProfileDetailedConfigurationAuthentication, bool) { +func (o *GetProfile200ResponseConfiguration) GetAuthenticationOk() (*GetProfile200ResponseConfigurationAuthentication, bool) { if o == nil || IsNil(o.Authentication) { return nil, false } @@ -270,7 +271,7 @@ func (o *ProfileDetailedConfiguration) GetAuthenticationOk() (*ProfileDetailedCo } // HasAuthentication returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasAuthentication() bool { +func (o *GetProfile200ResponseConfiguration) HasAuthentication() bool { if o != nil && !IsNil(o.Authentication) { return true } @@ -278,15 +279,15 @@ func (o *ProfileDetailedConfiguration) HasAuthentication() bool { return false } -// SetAuthentication gets a reference to the given ProfileDetailedConfigurationAuthentication and assigns it to the Authentication field. -func (o *ProfileDetailedConfiguration) SetAuthentication(v ProfileDetailedConfigurationAuthentication) { +// SetAuthentication gets a reference to the given GetProfile200ResponseConfigurationAuthentication and assigns it to the Authentication field. +func (o *GetProfile200ResponseConfiguration) SetAuthentication(v GetProfile200ResponseConfigurationAuthentication) { o.Authentication = &v } // GetSecurityTests returns the SecurityTests field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetSecurityTests() ProfileDetailedConfigurationSecurityTests { +func (o *GetProfile200ResponseConfiguration) GetSecurityTests() GetProfile200ResponseConfigurationSecurityTests { if o == nil || IsNil(o.SecurityTests) { - var ret ProfileDetailedConfigurationSecurityTests + var ret GetProfile200ResponseConfigurationSecurityTests return ret } return *o.SecurityTests @@ -294,7 +295,7 @@ func (o *ProfileDetailedConfiguration) GetSecurityTests() ProfileDetailedConfigu // GetSecurityTestsOk returns a tuple with the SecurityTests field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetSecurityTestsOk() (*ProfileDetailedConfigurationSecurityTests, bool) { +func (o *GetProfile200ResponseConfiguration) GetSecurityTestsOk() (*GetProfile200ResponseConfigurationSecurityTests, bool) { if o == nil || IsNil(o.SecurityTests) { return nil, false } @@ -302,7 +303,7 @@ func (o *ProfileDetailedConfiguration) GetSecurityTestsOk() (*ProfileDetailedCon } // HasSecurityTests returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasSecurityTests() bool { +func (o *GetProfile200ResponseConfiguration) HasSecurityTests() bool { if o != nil && !IsNil(o.SecurityTests) { return true } @@ -310,15 +311,15 @@ func (o *ProfileDetailedConfiguration) HasSecurityTests() bool { return false } -// SetSecurityTests gets a reference to the given ProfileDetailedConfigurationSecurityTests and assigns it to the SecurityTests field. -func (o *ProfileDetailedConfiguration) SetSecurityTests(v ProfileDetailedConfigurationSecurityTests) { +// SetSecurityTests gets a reference to the given GetProfile200ResponseConfigurationSecurityTests and assigns it to the SecurityTests field. +func (o *GetProfile200ResponseConfiguration) SetSecurityTests(v GetProfile200ResponseConfigurationSecurityTests) { o.SecurityTests = &v } // GetInference returns the Inference field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetInference() ProfileDetailedConfigurationInference { +func (o *GetProfile200ResponseConfiguration) GetInference() GetProfile200ResponseConfigurationInference { if o == nil || IsNil(o.Inference) { - var ret ProfileDetailedConfigurationInference + var ret GetProfile200ResponseConfigurationInference return ret } return *o.Inference @@ -326,7 +327,7 @@ func (o *ProfileDetailedConfiguration) GetInference() ProfileDetailedConfigurati // GetInferenceOk returns a tuple with the Inference field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetInferenceOk() (*ProfileDetailedConfigurationInference, bool) { +func (o *GetProfile200ResponseConfiguration) GetInferenceOk() (*GetProfile200ResponseConfigurationInference, bool) { if o == nil || IsNil(o.Inference) { return nil, false } @@ -334,7 +335,7 @@ func (o *ProfileDetailedConfiguration) GetInferenceOk() (*ProfileDetailedConfigu } // HasInference returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasInference() bool { +func (o *GetProfile200ResponseConfiguration) HasInference() bool { if o != nil && !IsNil(o.Inference) { return true } @@ -342,15 +343,15 @@ func (o *ProfileDetailedConfiguration) HasInference() bool { return false } -// SetInference gets a reference to the given ProfileDetailedConfigurationInference and assigns it to the Inference field. -func (o *ProfileDetailedConfiguration) SetInference(v ProfileDetailedConfigurationInference) { +// SetInference gets a reference to the given GetProfile200ResponseConfigurationInference and assigns it to the Inference field. +func (o *GetProfile200ResponseConfiguration) SetInference(v GetProfile200ResponseConfigurationInference) { o.Inference = &v } // GetNetwork returns the Network field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetNetwork() ProfileDetailedConfigurationNetwork { +func (o *GetProfile200ResponseConfiguration) GetNetwork() GetProfile200ResponseConfigurationNetwork { if o == nil || IsNil(o.Network) { - var ret ProfileDetailedConfigurationNetwork + var ret GetProfile200ResponseConfigurationNetwork return ret } return *o.Network @@ -358,7 +359,7 @@ func (o *ProfileDetailedConfiguration) GetNetwork() ProfileDetailedConfiguration // GetNetworkOk returns a tuple with the Network field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetNetworkOk() (*ProfileDetailedConfigurationNetwork, bool) { +func (o *GetProfile200ResponseConfiguration) GetNetworkOk() (*GetProfile200ResponseConfigurationNetwork, bool) { if o == nil || IsNil(o.Network) { return nil, false } @@ -366,7 +367,7 @@ func (o *ProfileDetailedConfiguration) GetNetworkOk() (*ProfileDetailedConfigura } // HasNetwork returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasNetwork() bool { +func (o *GetProfile200ResponseConfiguration) HasNetwork() bool { if o != nil && !IsNil(o.Network) { return true } @@ -374,15 +375,15 @@ func (o *ProfileDetailedConfiguration) HasNetwork() bool { return false } -// SetNetwork gets a reference to the given ProfileDetailedConfigurationNetwork and assigns it to the Network field. -func (o *ProfileDetailedConfiguration) SetNetwork(v ProfileDetailedConfigurationNetwork) { +// SetNetwork gets a reference to the given GetProfile200ResponseConfigurationNetwork and assigns it to the Network field. +func (o *GetProfile200ResponseConfiguration) SetNetwork(v GetProfile200ResponseConfigurationNetwork) { o.Network = &v } // GetArgumentGeneration returns the ArgumentGeneration field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetArgumentGeneration() ProfileDetailedConfigurationArgumentGeneration { +func (o *GetProfile200ResponseConfiguration) GetArgumentGeneration() GetProfile200ResponseConfigurationArgumentGeneration { if o == nil || IsNil(o.ArgumentGeneration) { - var ret ProfileDetailedConfigurationArgumentGeneration + var ret GetProfile200ResponseConfigurationArgumentGeneration return ret } return *o.ArgumentGeneration @@ -390,7 +391,7 @@ func (o *ProfileDetailedConfiguration) GetArgumentGeneration() ProfileDetailedCo // GetArgumentGenerationOk returns a tuple with the ArgumentGeneration field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetArgumentGenerationOk() (*ProfileDetailedConfigurationArgumentGeneration, bool) { +func (o *GetProfile200ResponseConfiguration) GetArgumentGenerationOk() (*GetProfile200ResponseConfigurationArgumentGeneration, bool) { if o == nil || IsNil(o.ArgumentGeneration) { return nil, false } @@ -398,7 +399,7 @@ func (o *ProfileDetailedConfiguration) GetArgumentGenerationOk() (*ProfileDetail } // HasArgumentGeneration returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasArgumentGeneration() bool { +func (o *GetProfile200ResponseConfiguration) HasArgumentGeneration() bool { if o != nil && !IsNil(o.ArgumentGeneration) { return true } @@ -406,15 +407,15 @@ func (o *ProfileDetailedConfiguration) HasArgumentGeneration() bool { return false } -// SetArgumentGeneration gets a reference to the given ProfileDetailedConfigurationArgumentGeneration and assigns it to the ArgumentGeneration field. -func (o *ProfileDetailedConfiguration) SetArgumentGeneration(v ProfileDetailedConfigurationArgumentGeneration) { +// SetArgumentGeneration gets a reference to the given GetProfile200ResponseConfigurationArgumentGeneration and assigns it to the ArgumentGeneration field. +func (o *GetProfile200ResponseConfiguration) SetArgumentGeneration(v GetProfile200ResponseConfigurationArgumentGeneration) { o.ArgumentGeneration = &v } // GetSubdomainEnumeration returns the SubdomainEnumeration field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetSubdomainEnumeration() ProfileDetailedConfigurationSubdomainEnumeration { +func (o *GetProfile200ResponseConfiguration) GetSubdomainEnumeration() GetProfile200ResponseConfigurationSubdomainEnumeration { if o == nil || IsNil(o.SubdomainEnumeration) { - var ret ProfileDetailedConfigurationSubdomainEnumeration + var ret GetProfile200ResponseConfigurationSubdomainEnumeration return ret } return *o.SubdomainEnumeration @@ -422,7 +423,7 @@ func (o *ProfileDetailedConfiguration) GetSubdomainEnumeration() ProfileDetailed // GetSubdomainEnumerationOk returns a tuple with the SubdomainEnumeration field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetSubdomainEnumerationOk() (*ProfileDetailedConfigurationSubdomainEnumeration, bool) { +func (o *GetProfile200ResponseConfiguration) GetSubdomainEnumerationOk() (*GetProfile200ResponseConfigurationSubdomainEnumeration, bool) { if o == nil || IsNil(o.SubdomainEnumeration) { return nil, false } @@ -430,7 +431,7 @@ func (o *ProfileDetailedConfiguration) GetSubdomainEnumerationOk() (*ProfileDeta } // HasSubdomainEnumeration returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasSubdomainEnumeration() bool { +func (o *GetProfile200ResponseConfiguration) HasSubdomainEnumeration() bool { if o != nil && !IsNil(o.SubdomainEnumeration) { return true } @@ -438,15 +439,15 @@ func (o *ProfileDetailedConfiguration) HasSubdomainEnumeration() bool { return false } -// SetSubdomainEnumeration gets a reference to the given ProfileDetailedConfigurationSubdomainEnumeration and assigns it to the SubdomainEnumeration field. -func (o *ProfileDetailedConfiguration) SetSubdomainEnumeration(v ProfileDetailedConfigurationSubdomainEnumeration) { +// SetSubdomainEnumeration gets a reference to the given GetProfile200ResponseConfigurationSubdomainEnumeration and assigns it to the SubdomainEnumeration field. +func (o *GetProfile200ResponseConfiguration) SetSubdomainEnumeration(v GetProfile200ResponseConfigurationSubdomainEnumeration) { o.SubdomainEnumeration = &v } // GetPortScanning returns the PortScanning field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetPortScanning() ProfileDetailedConfigurationPortScanning { +func (o *GetProfile200ResponseConfiguration) GetPortScanning() GetProfile200ResponseConfigurationPortScanning { if o == nil || IsNil(o.PortScanning) { - var ret ProfileDetailedConfigurationPortScanning + var ret GetProfile200ResponseConfigurationPortScanning return ret } return *o.PortScanning @@ -454,7 +455,7 @@ func (o *ProfileDetailedConfiguration) GetPortScanning() ProfileDetailedConfigur // GetPortScanningOk returns a tuple with the PortScanning field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetPortScanningOk() (*ProfileDetailedConfigurationPortScanning, bool) { +func (o *GetProfile200ResponseConfiguration) GetPortScanningOk() (*GetProfile200ResponseConfigurationPortScanning, bool) { if o == nil || IsNil(o.PortScanning) { return nil, false } @@ -462,7 +463,7 @@ func (o *ProfileDetailedConfiguration) GetPortScanningOk() (*ProfileDetailedConf } // HasPortScanning returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasPortScanning() bool { +func (o *GetProfile200ResponseConfiguration) HasPortScanning() bool { if o != nil && !IsNil(o.PortScanning) { return true } @@ -470,15 +471,15 @@ func (o *ProfileDetailedConfiguration) HasPortScanning() bool { return false } -// SetPortScanning gets a reference to the given ProfileDetailedConfigurationPortScanning and assigns it to the PortScanning field. -func (o *ProfileDetailedConfiguration) SetPortScanning(v ProfileDetailedConfigurationPortScanning) { +// SetPortScanning gets a reference to the given GetProfile200ResponseConfigurationPortScanning and assigns it to the PortScanning field. +func (o *GetProfile200ResponseConfiguration) SetPortScanning(v GetProfile200ResponseConfigurationPortScanning) { o.PortScanning = &v } // GetServiceDiscovery returns the ServiceDiscovery field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetServiceDiscovery() ProfileDetailedConfigurationServiceDiscovery { +func (o *GetProfile200ResponseConfiguration) GetServiceDiscovery() GetProfile200ResponseConfigurationServiceDiscovery { if o == nil || IsNil(o.ServiceDiscovery) { - var ret ProfileDetailedConfigurationServiceDiscovery + var ret GetProfile200ResponseConfigurationServiceDiscovery return ret } return *o.ServiceDiscovery @@ -486,7 +487,7 @@ func (o *ProfileDetailedConfiguration) GetServiceDiscovery() ProfileDetailedConf // GetServiceDiscoveryOk returns a tuple with the ServiceDiscovery field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetServiceDiscoveryOk() (*ProfileDetailedConfigurationServiceDiscovery, bool) { +func (o *GetProfile200ResponseConfiguration) GetServiceDiscoveryOk() (*GetProfile200ResponseConfigurationServiceDiscovery, bool) { if o == nil || IsNil(o.ServiceDiscovery) { return nil, false } @@ -494,7 +495,7 @@ func (o *ProfileDetailedConfiguration) GetServiceDiscoveryOk() (*ProfileDetailed } // HasServiceDiscovery returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasServiceDiscovery() bool { +func (o *GetProfile200ResponseConfiguration) HasServiceDiscovery() bool { if o != nil && !IsNil(o.ServiceDiscovery) { return true } @@ -502,15 +503,15 @@ func (o *ProfileDetailedConfiguration) HasServiceDiscovery() bool { return false } -// SetServiceDiscovery gets a reference to the given ProfileDetailedConfigurationServiceDiscovery and assigns it to the ServiceDiscovery field. -func (o *ProfileDetailedConfiguration) SetServiceDiscovery(v ProfileDetailedConfigurationServiceDiscovery) { +// SetServiceDiscovery gets a reference to the given GetProfile200ResponseConfigurationServiceDiscovery and assigns it to the ServiceDiscovery field. +func (o *GetProfile200ResponseConfiguration) SetServiceDiscovery(v GetProfile200ResponseConfigurationServiceDiscovery) { o.ServiceDiscovery = &v } // GetFrontendDast returns the FrontendDast field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetFrontendDast() ProfileDetailedConfigurationFrontendDast { +func (o *GetProfile200ResponseConfiguration) GetFrontendDast() GetProfile200ResponseConfigurationFrontendDast { if o == nil || IsNil(o.FrontendDast) { - var ret ProfileDetailedConfigurationFrontendDast + var ret GetProfile200ResponseConfigurationFrontendDast return ret } return *o.FrontendDast @@ -518,7 +519,7 @@ func (o *ProfileDetailedConfiguration) GetFrontendDast() ProfileDetailedConfigur // GetFrontendDastOk returns a tuple with the FrontendDast field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetFrontendDastOk() (*ProfileDetailedConfigurationFrontendDast, bool) { +func (o *GetProfile200ResponseConfiguration) GetFrontendDastOk() (*GetProfile200ResponseConfigurationFrontendDast, bool) { if o == nil || IsNil(o.FrontendDast) { return nil, false } @@ -526,7 +527,7 @@ func (o *ProfileDetailedConfiguration) GetFrontendDastOk() (*ProfileDetailedConf } // HasFrontendDast returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasFrontendDast() bool { +func (o *GetProfile200ResponseConfiguration) HasFrontendDast() bool { if o != nil && !IsNil(o.FrontendDast) { return true } @@ -534,15 +535,15 @@ func (o *ProfileDetailedConfiguration) HasFrontendDast() bool { return false } -// SetFrontendDast gets a reference to the given ProfileDetailedConfigurationFrontendDast and assigns it to the FrontendDast field. -func (o *ProfileDetailedConfiguration) SetFrontendDast(v ProfileDetailedConfigurationFrontendDast) { +// SetFrontendDast gets a reference to the given GetProfile200ResponseConfigurationFrontendDast and assigns it to the FrontendDast field. +func (o *GetProfile200ResponseConfiguration) SetFrontendDast(v GetProfile200ResponseConfigurationFrontendDast) { o.FrontendDast = &v } // GetGraphqlApiDast returns the GraphqlApiDast field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetGraphqlApiDast() ProfileDetailedConfigurationGraphqlApiDast { +func (o *GetProfile200ResponseConfiguration) GetGraphqlApiDast() GetProfile200ResponseConfigurationGraphqlApiDast { if o == nil || IsNil(o.GraphqlApiDast) { - var ret ProfileDetailedConfigurationGraphqlApiDast + var ret GetProfile200ResponseConfigurationGraphqlApiDast return ret } return *o.GraphqlApiDast @@ -550,7 +551,7 @@ func (o *ProfileDetailedConfiguration) GetGraphqlApiDast() ProfileDetailedConfig // GetGraphqlApiDastOk returns a tuple with the GraphqlApiDast field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetGraphqlApiDastOk() (*ProfileDetailedConfigurationGraphqlApiDast, bool) { +func (o *GetProfile200ResponseConfiguration) GetGraphqlApiDastOk() (*GetProfile200ResponseConfigurationGraphqlApiDast, bool) { if o == nil || IsNil(o.GraphqlApiDast) { return nil, false } @@ -558,7 +559,7 @@ func (o *ProfileDetailedConfiguration) GetGraphqlApiDastOk() (*ProfileDetailedCo } // HasGraphqlApiDast returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasGraphqlApiDast() bool { +func (o *GetProfile200ResponseConfiguration) HasGraphqlApiDast() bool { if o != nil && !IsNil(o.GraphqlApiDast) { return true } @@ -566,15 +567,15 @@ func (o *ProfileDetailedConfiguration) HasGraphqlApiDast() bool { return false } -// SetGraphqlApiDast gets a reference to the given ProfileDetailedConfigurationGraphqlApiDast and assigns it to the GraphqlApiDast field. -func (o *ProfileDetailedConfiguration) SetGraphqlApiDast(v ProfileDetailedConfigurationGraphqlApiDast) { +// SetGraphqlApiDast gets a reference to the given GetProfile200ResponseConfigurationGraphqlApiDast and assigns it to the GraphqlApiDast field. +func (o *GetProfile200ResponseConfiguration) SetGraphqlApiDast(v GetProfile200ResponseConfigurationGraphqlApiDast) { o.GraphqlApiDast = &v } // GetRestApiDast returns the RestApiDast field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetRestApiDast() ProfileDetailedConfigurationRestApiDast { +func (o *GetProfile200ResponseConfiguration) GetRestApiDast() GetProfile200ResponseConfigurationRestApiDast { if o == nil || IsNil(o.RestApiDast) { - var ret ProfileDetailedConfigurationRestApiDast + var ret GetProfile200ResponseConfigurationRestApiDast return ret } return *o.RestApiDast @@ -582,7 +583,7 @@ func (o *ProfileDetailedConfiguration) GetRestApiDast() ProfileDetailedConfigura // GetRestApiDastOk returns a tuple with the RestApiDast field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetRestApiDastOk() (*ProfileDetailedConfigurationRestApiDast, bool) { +func (o *GetProfile200ResponseConfiguration) GetRestApiDastOk() (*GetProfile200ResponseConfigurationRestApiDast, bool) { if o == nil || IsNil(o.RestApiDast) { return nil, false } @@ -590,7 +591,7 @@ func (o *ProfileDetailedConfiguration) GetRestApiDastOk() (*ProfileDetailedConfi } // HasRestApiDast returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasRestApiDast() bool { +func (o *GetProfile200ResponseConfiguration) HasRestApiDast() bool { if o != nil && !IsNil(o.RestApiDast) { return true } @@ -598,15 +599,47 @@ func (o *ProfileDetailedConfiguration) HasRestApiDast() bool { return false } -// SetRestApiDast gets a reference to the given ProfileDetailedConfigurationRestApiDast and assigns it to the RestApiDast field. -func (o *ProfileDetailedConfiguration) SetRestApiDast(v ProfileDetailedConfigurationRestApiDast) { +// SetRestApiDast gets a reference to the given GetProfile200ResponseConfigurationRestApiDast and assigns it to the RestApiDast field. +func (o *GetProfile200ResponseConfiguration) SetRestApiDast(v GetProfile200ResponseConfigurationRestApiDast) { o.RestApiDast = &v } +// GetAutomatedPentesting returns the AutomatedPentesting field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfiguration) GetAutomatedPentesting() GetProfile200ResponseConfigurationAutomatedPentesting { + if o == nil || IsNil(o.AutomatedPentesting) { + var ret GetProfile200ResponseConfigurationAutomatedPentesting + return ret + } + return *o.AutomatedPentesting +} + +// GetAutomatedPentestingOk returns a tuple with the AutomatedPentesting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfiguration) GetAutomatedPentestingOk() (*GetProfile200ResponseConfigurationAutomatedPentesting, bool) { + if o == nil || IsNil(o.AutomatedPentesting) { + return nil, false + } + return o.AutomatedPentesting, true +} + +// HasAutomatedPentesting returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfiguration) HasAutomatedPentesting() bool { + if o != nil && !IsNil(o.AutomatedPentesting) { + return true + } + + return false +} + +// SetAutomatedPentesting gets a reference to the given GetProfile200ResponseConfigurationAutomatedPentesting and assigns it to the AutomatedPentesting field. +func (o *GetProfile200ResponseConfiguration) SetAutomatedPentesting(v GetProfile200ResponseConfigurationAutomatedPentesting) { + o.AutomatedPentesting = &v +} + // GetExperimental returns the Experimental field value if set, zero value otherwise. -func (o *ProfileDetailedConfiguration) GetExperimental() ProfileDetailedConfigurationExperimental { +func (o *GetProfile200ResponseConfiguration) GetExperimental() GetProfile200ResponseConfigurationExperimental { if o == nil || IsNil(o.Experimental) { - var ret ProfileDetailedConfigurationExperimental + var ret GetProfile200ResponseConfigurationExperimental return ret } return *o.Experimental @@ -614,7 +647,7 @@ func (o *ProfileDetailedConfiguration) GetExperimental() ProfileDetailedConfigur // GetExperimentalOk returns a tuple with the Experimental field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfiguration) GetExperimentalOk() (*ProfileDetailedConfigurationExperimental, bool) { +func (o *GetProfile200ResponseConfiguration) GetExperimentalOk() (*GetProfile200ResponseConfigurationExperimental, bool) { if o == nil || IsNil(o.Experimental) { return nil, false } @@ -622,7 +655,7 @@ func (o *ProfileDetailedConfiguration) GetExperimentalOk() (*ProfileDetailedConf } // HasExperimental returns a boolean if a field has been set. -func (o *ProfileDetailedConfiguration) HasExperimental() bool { +func (o *GetProfile200ResponseConfiguration) HasExperimental() bool { if o != nil && !IsNil(o.Experimental) { return true } @@ -630,12 +663,12 @@ func (o *ProfileDetailedConfiguration) HasExperimental() bool { return false } -// SetExperimental gets a reference to the given ProfileDetailedConfigurationExperimental and assigns it to the Experimental field. -func (o *ProfileDetailedConfiguration) SetExperimental(v ProfileDetailedConfigurationExperimental) { +// SetExperimental gets a reference to the given GetProfile200ResponseConfigurationExperimental and assigns it to the Experimental field. +func (o *GetProfile200ResponseConfiguration) SetExperimental(v GetProfile200ResponseConfigurationExperimental) { o.Experimental = &v } -func (o ProfileDetailedConfiguration) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfiguration) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -643,7 +676,7 @@ func (o ProfileDetailedConfiguration) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o ProfileDetailedConfiguration) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfiguration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.PublicLocationIds) { toSerialize["public_location_ids"] = o.PublicLocationIds @@ -696,6 +729,9 @@ func (o ProfileDetailedConfiguration) ToMap() (map[string]interface{}, error) { if !IsNil(o.RestApiDast) { toSerialize["rest_api_dast"] = o.RestApiDast } + if !IsNil(o.AutomatedPentesting) { + toSerialize["automated_pentesting"] = o.AutomatedPentesting + } if !IsNil(o.Experimental) { toSerialize["experimental"] = o.Experimental } @@ -707,16 +743,16 @@ func (o ProfileDetailedConfiguration) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *ProfileDetailedConfiguration) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfiguration := _ProfileDetailedConfiguration{} +func (o *GetProfile200ResponseConfiguration) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfiguration := _GetProfile200ResponseConfiguration{} - err = json.Unmarshal(data, &varProfileDetailedConfiguration) + err = json.Unmarshal(data, &varGetProfile200ResponseConfiguration) if err != nil { return err } - *o = ProfileDetailedConfiguration(varProfileDetailedConfiguration) + *o = GetProfile200ResponseConfiguration(varGetProfile200ResponseConfiguration) additionalProperties := make(map[string]interface{}) @@ -738,6 +774,7 @@ func (o *ProfileDetailedConfiguration) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "frontend_dast") delete(additionalProperties, "graphql_api_dast") delete(additionalProperties, "rest_api_dast") + delete(additionalProperties, "automated_pentesting") delete(additionalProperties, "experimental") o.AdditionalProperties = additionalProperties } @@ -745,38 +782,38 @@ func (o *ProfileDetailedConfiguration) UnmarshalJSON(data []byte) (err error) { return err } -type NullableProfileDetailedConfiguration struct { - value *ProfileDetailedConfiguration +type NullableGetProfile200ResponseConfiguration struct { + value *GetProfile200ResponseConfiguration isSet bool } -func (v NullableProfileDetailedConfiguration) Get() *ProfileDetailedConfiguration { +func (v NullableGetProfile200ResponseConfiguration) Get() *GetProfile200ResponseConfiguration { return v.value } -func (v *NullableProfileDetailedConfiguration) Set(val *ProfileDetailedConfiguration) { +func (v *NullableGetProfile200ResponseConfiguration) Set(val *GetProfile200ResponseConfiguration) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfiguration) IsSet() bool { +func (v NullableGetProfile200ResponseConfiguration) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfiguration) Unset() { +func (v *NullableGetProfile200ResponseConfiguration) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfiguration(val *ProfileDetailedConfiguration) *NullableProfileDetailedConfiguration { - return &NullableProfileDetailedConfiguration{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfiguration(val *GetProfile200ResponseConfiguration) *NullableGetProfile200ResponseConfiguration { + return &NullableGetProfile200ResponseConfiguration{value: val, isSet: true} } -func (v NullableProfileDetailedConfiguration) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfiguration) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfiguration) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfiguration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_argument_generation.go b/pkg/api/v3/model_get_profile_200_response_configuration_argument_generation.go similarity index 60% rename from pkg/api/v3/model_profile_detailed_configuration_argument_generation.go rename to pkg/api/v3/model_get_profile_200_response_configuration_argument_generation.go index f72ed784..ab05a8fa 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_argument_generation.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_argument_generation.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the ProfileDetailedConfigurationArgumentGeneration type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationArgumentGeneration{} +// checks if the GetProfile200ResponseConfigurationArgumentGeneration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationArgumentGeneration{} -// ProfileDetailedConfigurationArgumentGeneration struct for ProfileDetailedConfigurationArgumentGeneration -type ProfileDetailedConfigurationArgumentGeneration struct { +// GetProfile200ResponseConfigurationArgumentGeneration struct for GetProfile200ResponseConfigurationArgumentGeneration +type GetProfile200ResponseConfigurationArgumentGeneration struct { MaxGeneratedDepth *float32 `json:"max_generated_depth,omitempty"` SkipGeneratingUnspecifiedEnumValues *bool `json:"skip_generating_unspecified_enum_values,omitempty"` ValidationErrorsAgenticAutofix *bool `json:"validation_errors_agentic_autofix,omitempty"` @@ -27,27 +27,27 @@ type ProfileDetailedConfigurationArgumentGeneration struct { AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationArgumentGeneration ProfileDetailedConfigurationArgumentGeneration +type _GetProfile200ResponseConfigurationArgumentGeneration GetProfile200ResponseConfigurationArgumentGeneration -// NewProfileDetailedConfigurationArgumentGeneration instantiates a new ProfileDetailedConfigurationArgumentGeneration object +// NewGetProfile200ResponseConfigurationArgumentGeneration instantiates a new GetProfile200ResponseConfigurationArgumentGeneration 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 NewProfileDetailedConfigurationArgumentGeneration() *ProfileDetailedConfigurationArgumentGeneration { - this := ProfileDetailedConfigurationArgumentGeneration{} +func NewGetProfile200ResponseConfigurationArgumentGeneration() *GetProfile200ResponseConfigurationArgumentGeneration { + this := GetProfile200ResponseConfigurationArgumentGeneration{} return &this } -// NewProfileDetailedConfigurationArgumentGenerationWithDefaults instantiates a new ProfileDetailedConfigurationArgumentGeneration object +// NewGetProfile200ResponseConfigurationArgumentGenerationWithDefaults instantiates a new GetProfile200ResponseConfigurationArgumentGeneration 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 NewProfileDetailedConfigurationArgumentGenerationWithDefaults() *ProfileDetailedConfigurationArgumentGeneration { - this := ProfileDetailedConfigurationArgumentGeneration{} +func NewGetProfile200ResponseConfigurationArgumentGenerationWithDefaults() *GetProfile200ResponseConfigurationArgumentGeneration { + this := GetProfile200ResponseConfigurationArgumentGeneration{} return &this } // GetMaxGeneratedDepth returns the MaxGeneratedDepth field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetMaxGeneratedDepth() float32 { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetMaxGeneratedDepth() float32 { if o == nil || IsNil(o.MaxGeneratedDepth) { var ret float32 return ret @@ -57,7 +57,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetMaxGeneratedDepth() // GetMaxGeneratedDepthOk returns a tuple with the MaxGeneratedDepth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetMaxGeneratedDepthOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetMaxGeneratedDepthOk() (*float32, bool) { if o == nil || IsNil(o.MaxGeneratedDepth) { return nil, false } @@ -65,7 +65,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetMaxGeneratedDepthOk( } // HasMaxGeneratedDepth returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) HasMaxGeneratedDepth() bool { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) HasMaxGeneratedDepth() bool { if o != nil && !IsNil(o.MaxGeneratedDepth) { return true } @@ -74,12 +74,12 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) HasMaxGeneratedDepth() } // SetMaxGeneratedDepth gets a reference to the given float32 and assigns it to the MaxGeneratedDepth field. -func (o *ProfileDetailedConfigurationArgumentGeneration) SetMaxGeneratedDepth(v float32) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) SetMaxGeneratedDepth(v float32) { o.MaxGeneratedDepth = &v } // GetSkipGeneratingUnspecifiedEnumValues returns the SkipGeneratingUnspecifiedEnumValues field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetSkipGeneratingUnspecifiedEnumValues() bool { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetSkipGeneratingUnspecifiedEnumValues() bool { if o == nil || IsNil(o.SkipGeneratingUnspecifiedEnumValues) { var ret bool return ret @@ -89,7 +89,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetSkipGeneratingUnspec // GetSkipGeneratingUnspecifiedEnumValuesOk returns a tuple with the SkipGeneratingUnspecifiedEnumValues field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetSkipGeneratingUnspecifiedEnumValuesOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetSkipGeneratingUnspecifiedEnumValuesOk() (*bool, bool) { if o == nil || IsNil(o.SkipGeneratingUnspecifiedEnumValues) { return nil, false } @@ -97,7 +97,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetSkipGeneratingUnspec } // HasSkipGeneratingUnspecifiedEnumValues returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) HasSkipGeneratingUnspecifiedEnumValues() bool { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) HasSkipGeneratingUnspecifiedEnumValues() bool { if o != nil && !IsNil(o.SkipGeneratingUnspecifiedEnumValues) { return true } @@ -106,12 +106,12 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) HasSkipGeneratingUnspec } // SetSkipGeneratingUnspecifiedEnumValues gets a reference to the given bool and assigns it to the SkipGeneratingUnspecifiedEnumValues field. -func (o *ProfileDetailedConfigurationArgumentGeneration) SetSkipGeneratingUnspecifiedEnumValues(v bool) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) SetSkipGeneratingUnspecifiedEnumValues(v bool) { o.SkipGeneratingUnspecifiedEnumValues = &v } // GetValidationErrorsAgenticAutofix returns the ValidationErrorsAgenticAutofix field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetValidationErrorsAgenticAutofix() bool { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetValidationErrorsAgenticAutofix() bool { if o == nil || IsNil(o.ValidationErrorsAgenticAutofix) { var ret bool return ret @@ -121,7 +121,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetValidationErrorsAgen // GetValidationErrorsAgenticAutofixOk returns a tuple with the ValidationErrorsAgenticAutofix field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetValidationErrorsAgenticAutofixOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetValidationErrorsAgenticAutofixOk() (*bool, bool) { if o == nil || IsNil(o.ValidationErrorsAgenticAutofix) { return nil, false } @@ -129,7 +129,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetValidationErrorsAgen } // HasValidationErrorsAgenticAutofix returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) HasValidationErrorsAgenticAutofix() bool { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) HasValidationErrorsAgenticAutofix() bool { if o != nil && !IsNil(o.ValidationErrorsAgenticAutofix) { return true } @@ -138,12 +138,12 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) HasValidationErrorsAgen } // SetValidationErrorsAgenticAutofix gets a reference to the given bool and assigns it to the ValidationErrorsAgenticAutofix field. -func (o *ProfileDetailedConfigurationArgumentGeneration) SetValidationErrorsAgenticAutofix(v bool) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) SetValidationErrorsAgenticAutofix(v bool) { o.ValidationErrorsAgenticAutofix = &v } // GetMaxAgenticAutofixes returns the MaxAgenticAutofixes field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetMaxAgenticAutofixes() float32 { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetMaxAgenticAutofixes() float32 { if o == nil || IsNil(o.MaxAgenticAutofixes) { var ret float32 return ret @@ -153,7 +153,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetMaxAgenticAutofixes( // GetMaxAgenticAutofixesOk returns a tuple with the MaxAgenticAutofixes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetMaxAgenticAutofixesOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetMaxAgenticAutofixesOk() (*float32, bool) { if o == nil || IsNil(o.MaxAgenticAutofixes) { return nil, false } @@ -161,7 +161,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetMaxAgenticAutofixesO } // HasMaxAgenticAutofixes returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) HasMaxAgenticAutofixes() bool { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) HasMaxAgenticAutofixes() bool { if o != nil && !IsNil(o.MaxAgenticAutofixes) { return true } @@ -170,12 +170,12 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) HasMaxAgenticAutofixes( } // SetMaxAgenticAutofixes gets a reference to the given float32 and assigns it to the MaxAgenticAutofixes field. -func (o *ProfileDetailedConfigurationArgumentGeneration) SetMaxAgenticAutofixes(v float32) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) SetMaxAgenticAutofixes(v float32) { o.MaxAgenticAutofixes = &v } // GetAgenticAutofixPreprompt returns the AgenticAutofixPreprompt field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetAgenticAutofixPreprompt() string { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetAgenticAutofixPreprompt() string { if o == nil || IsNil(o.AgenticAutofixPreprompt) { var ret string return ret @@ -185,7 +185,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetAgenticAutofixPrepro // GetAgenticAutofixPrepromptOk returns a tuple with the AgenticAutofixPreprompt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) GetAgenticAutofixPrepromptOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) GetAgenticAutofixPrepromptOk() (*string, bool) { if o == nil || IsNil(o.AgenticAutofixPreprompt) { return nil, false } @@ -193,7 +193,7 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) GetAgenticAutofixPrepro } // HasAgenticAutofixPreprompt returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationArgumentGeneration) HasAgenticAutofixPreprompt() bool { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) HasAgenticAutofixPreprompt() bool { if o != nil && !IsNil(o.AgenticAutofixPreprompt) { return true } @@ -202,11 +202,11 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) HasAgenticAutofixPrepro } // SetAgenticAutofixPreprompt gets a reference to the given string and assigns it to the AgenticAutofixPreprompt field. -func (o *ProfileDetailedConfigurationArgumentGeneration) SetAgenticAutofixPreprompt(v string) { +func (o *GetProfile200ResponseConfigurationArgumentGeneration) SetAgenticAutofixPreprompt(v string) { o.AgenticAutofixPreprompt = &v } -func (o ProfileDetailedConfigurationArgumentGeneration) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationArgumentGeneration) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -214,7 +214,7 @@ func (o ProfileDetailedConfigurationArgumentGeneration) MarshalJSON() ([]byte, e return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationArgumentGeneration) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationArgumentGeneration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.MaxGeneratedDepth) { toSerialize["max_generated_depth"] = o.MaxGeneratedDepth @@ -239,16 +239,16 @@ func (o ProfileDetailedConfigurationArgumentGeneration) ToMap() (map[string]inte return toSerialize, nil } -func (o *ProfileDetailedConfigurationArgumentGeneration) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationArgumentGeneration := _ProfileDetailedConfigurationArgumentGeneration{} +func (o *GetProfile200ResponseConfigurationArgumentGeneration) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationArgumentGeneration := _GetProfile200ResponseConfigurationArgumentGeneration{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationArgumentGeneration) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationArgumentGeneration) if err != nil { return err } - *o = ProfileDetailedConfigurationArgumentGeneration(varProfileDetailedConfigurationArgumentGeneration) + *o = GetProfile200ResponseConfigurationArgumentGeneration(varGetProfile200ResponseConfigurationArgumentGeneration) additionalProperties := make(map[string]interface{}) @@ -264,38 +264,38 @@ func (o *ProfileDetailedConfigurationArgumentGeneration) UnmarshalJSON(data []by return err } -type NullableProfileDetailedConfigurationArgumentGeneration struct { - value *ProfileDetailedConfigurationArgumentGeneration +type NullableGetProfile200ResponseConfigurationArgumentGeneration struct { + value *GetProfile200ResponseConfigurationArgumentGeneration isSet bool } -func (v NullableProfileDetailedConfigurationArgumentGeneration) Get() *ProfileDetailedConfigurationArgumentGeneration { +func (v NullableGetProfile200ResponseConfigurationArgumentGeneration) Get() *GetProfile200ResponseConfigurationArgumentGeneration { return v.value } -func (v *NullableProfileDetailedConfigurationArgumentGeneration) Set(val *ProfileDetailedConfigurationArgumentGeneration) { +func (v *NullableGetProfile200ResponseConfigurationArgumentGeneration) Set(val *GetProfile200ResponseConfigurationArgumentGeneration) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationArgumentGeneration) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationArgumentGeneration) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationArgumentGeneration) Unset() { +func (v *NullableGetProfile200ResponseConfigurationArgumentGeneration) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationArgumentGeneration(val *ProfileDetailedConfigurationArgumentGeneration) *NullableProfileDetailedConfigurationArgumentGeneration { - return &NullableProfileDetailedConfigurationArgumentGeneration{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationArgumentGeneration(val *GetProfile200ResponseConfigurationArgumentGeneration) *NullableGetProfile200ResponseConfigurationArgumentGeneration { + return &NullableGetProfile200ResponseConfigurationArgumentGeneration{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationArgumentGeneration) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationArgumentGeneration) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationArgumentGeneration) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationArgumentGeneration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication.go similarity index 51% rename from pkg/api/v3/model_profile_detailed_configuration_authentication.go rename to pkg/api/v3/model_get_profile_200_response_configuration_authentication.go index ccb10b7a..e6aac9b7 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication.go @@ -14,43 +14,43 @@ import ( "encoding/json" ) -// checks if the ProfileDetailedConfigurationAuthentication type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthentication{} - -// ProfileDetailedConfigurationAuthentication struct for ProfileDetailedConfigurationAuthentication -type ProfileDetailedConfigurationAuthentication struct { - Schema *string `json:"$schema,omitempty"` - Lifetime *float32 `json:"lifetime,omitempty"` - Procedures []ProfileDetailedConfigurationAuthenticationProceduresInner `json:"procedures,omitempty"` - Users []ProfileDetailedConfigurationAuthenticationUsersInner `json:"users,omitempty"` - Validation *bool `json:"validation,omitempty"` - Proxy *string `json:"proxy,omitempty"` - Presets []ProfileDetailedConfigurationAuthenticationPresetsInner `json:"presets,omitempty"` - MultiUserIsFallback *bool `json:"multi_user_is_fallback,omitempty"` +// checks if the GetProfile200ResponseConfigurationAuthentication type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthentication{} + +// GetProfile200ResponseConfigurationAuthentication struct for GetProfile200ResponseConfigurationAuthentication +type GetProfile200ResponseConfigurationAuthentication struct { + Schema *string `json:"$schema,omitempty"` + Lifetime *float32 `json:"lifetime,omitempty"` + Procedures []GetProfile200ResponseConfigurationAuthenticationProceduresInner `json:"procedures,omitempty"` + Users []GetProfile200ResponseConfigurationAuthenticationUsersInner `json:"users,omitempty"` + Validation *bool `json:"validation,omitempty"` + Proxy *string `json:"proxy,omitempty"` + Presets []GetProfile200ResponseConfigurationAuthenticationPresetsInner `json:"presets,omitempty"` + MultiUserIsFallback *bool `json:"multi_user_is_fallback,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationAuthentication ProfileDetailedConfigurationAuthentication +type _GetProfile200ResponseConfigurationAuthentication GetProfile200ResponseConfigurationAuthentication -// NewProfileDetailedConfigurationAuthentication instantiates a new ProfileDetailedConfigurationAuthentication object +// NewGetProfile200ResponseConfigurationAuthentication instantiates a new GetProfile200ResponseConfigurationAuthentication 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 NewProfileDetailedConfigurationAuthentication() *ProfileDetailedConfigurationAuthentication { - this := ProfileDetailedConfigurationAuthentication{} +func NewGetProfile200ResponseConfigurationAuthentication() *GetProfile200ResponseConfigurationAuthentication { + this := GetProfile200ResponseConfigurationAuthentication{} return &this } -// NewProfileDetailedConfigurationAuthenticationWithDefaults instantiates a new ProfileDetailedConfigurationAuthentication object +// NewGetProfile200ResponseConfigurationAuthenticationWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthentication 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 NewProfileDetailedConfigurationAuthenticationWithDefaults() *ProfileDetailedConfigurationAuthentication { - this := ProfileDetailedConfigurationAuthentication{} +func NewGetProfile200ResponseConfigurationAuthenticationWithDefaults() *GetProfile200ResponseConfigurationAuthentication { + this := GetProfile200ResponseConfigurationAuthentication{} return &this } // GetSchema returns the Schema field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthentication) GetSchema() string { +func (o *GetProfile200ResponseConfigurationAuthentication) GetSchema() string { if o == nil || IsNil(o.Schema) { var ret string return ret @@ -60,7 +60,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetSchema() string { // GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthentication) GetSchemaOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) GetSchemaOk() (*string, bool) { if o == nil || IsNil(o.Schema) { return nil, false } @@ -68,7 +68,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetSchemaOk() (*string, boo } // HasSchema returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthentication) HasSchema() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) HasSchema() bool { if o != nil && !IsNil(o.Schema) { return true } @@ -77,12 +77,12 @@ func (o *ProfileDetailedConfigurationAuthentication) HasSchema() bool { } // SetSchema gets a reference to the given string and assigns it to the Schema field. -func (o *ProfileDetailedConfigurationAuthentication) SetSchema(v string) { +func (o *GetProfile200ResponseConfigurationAuthentication) SetSchema(v string) { o.Schema = &v } // GetLifetime returns the Lifetime field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthentication) GetLifetime() float32 { +func (o *GetProfile200ResponseConfigurationAuthentication) GetLifetime() float32 { if o == nil || IsNil(o.Lifetime) { var ret float32 return ret @@ -92,7 +92,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetLifetime() float32 { // GetLifetimeOk returns a tuple with the Lifetime field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthentication) GetLifetimeOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) GetLifetimeOk() (*float32, bool) { if o == nil || IsNil(o.Lifetime) { return nil, false } @@ -100,7 +100,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetLifetimeOk() (*float32, } // HasLifetime returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthentication) HasLifetime() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) HasLifetime() bool { if o != nil && !IsNil(o.Lifetime) { return true } @@ -109,14 +109,14 @@ func (o *ProfileDetailedConfigurationAuthentication) HasLifetime() bool { } // SetLifetime gets a reference to the given float32 and assigns it to the Lifetime field. -func (o *ProfileDetailedConfigurationAuthentication) SetLifetime(v float32) { +func (o *GetProfile200ResponseConfigurationAuthentication) SetLifetime(v float32) { o.Lifetime = &v } // GetProcedures returns the Procedures field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthentication) GetProcedures() []ProfileDetailedConfigurationAuthenticationProceduresInner { +func (o *GetProfile200ResponseConfigurationAuthentication) GetProcedures() []GetProfile200ResponseConfigurationAuthenticationProceduresInner { if o == nil || IsNil(o.Procedures) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInner + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInner return ret } return o.Procedures @@ -124,7 +124,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetProcedures() []ProfileDe // GetProceduresOk returns a tuple with the Procedures field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthentication) GetProceduresOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInner, bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) GetProceduresOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInner, bool) { if o == nil || IsNil(o.Procedures) { return nil, false } @@ -132,7 +132,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetProceduresOk() ([]Profil } // HasProcedures returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthentication) HasProcedures() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) HasProcedures() bool { if o != nil && !IsNil(o.Procedures) { return true } @@ -140,15 +140,15 @@ func (o *ProfileDetailedConfigurationAuthentication) HasProcedures() bool { return false } -// SetProcedures gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInner and assigns it to the Procedures field. -func (o *ProfileDetailedConfigurationAuthentication) SetProcedures(v []ProfileDetailedConfigurationAuthenticationProceduresInner) { +// SetProcedures gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInner and assigns it to the Procedures field. +func (o *GetProfile200ResponseConfigurationAuthentication) SetProcedures(v []GetProfile200ResponseConfigurationAuthenticationProceduresInner) { o.Procedures = v } // GetUsers returns the Users field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthentication) GetUsers() []ProfileDetailedConfigurationAuthenticationUsersInner { +func (o *GetProfile200ResponseConfigurationAuthentication) GetUsers() []GetProfile200ResponseConfigurationAuthenticationUsersInner { if o == nil || IsNil(o.Users) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInner + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInner return ret } return o.Users @@ -156,7 +156,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetUsers() []ProfileDetaile // GetUsersOk returns a tuple with the Users field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthentication) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationUsersInner, bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInner, bool) { if o == nil || IsNil(o.Users) { return nil, false } @@ -164,7 +164,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetUsersOk() ([]ProfileDeta } // HasUsers returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthentication) HasUsers() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) HasUsers() bool { if o != nil && !IsNil(o.Users) { return true } @@ -172,13 +172,13 @@ func (o *ProfileDetailedConfigurationAuthentication) HasUsers() bool { return false } -// SetUsers gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInner and assigns it to the Users field. -func (o *ProfileDetailedConfigurationAuthentication) SetUsers(v []ProfileDetailedConfigurationAuthenticationUsersInner) { +// SetUsers gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInner and assigns it to the Users field. +func (o *GetProfile200ResponseConfigurationAuthentication) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationUsersInner) { o.Users = v } // GetValidation returns the Validation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthentication) GetValidation() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) GetValidation() bool { if o == nil || IsNil(o.Validation) { var ret bool return ret @@ -188,7 +188,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetValidation() bool { // GetValidationOk returns a tuple with the Validation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthentication) GetValidationOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) GetValidationOk() (*bool, bool) { if o == nil || IsNil(o.Validation) { return nil, false } @@ -196,7 +196,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetValidationOk() (*bool, b } // HasValidation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthentication) HasValidation() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) HasValidation() bool { if o != nil && !IsNil(o.Validation) { return true } @@ -205,12 +205,12 @@ func (o *ProfileDetailedConfigurationAuthentication) HasValidation() bool { } // SetValidation gets a reference to the given bool and assigns it to the Validation field. -func (o *ProfileDetailedConfigurationAuthentication) SetValidation(v bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) SetValidation(v bool) { o.Validation = &v } // GetProxy returns the Proxy field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthentication) GetProxy() string { +func (o *GetProfile200ResponseConfigurationAuthentication) GetProxy() string { if o == nil || IsNil(o.Proxy) { var ret string return ret @@ -220,7 +220,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetProxy() string { // GetProxyOk returns a tuple with the Proxy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthentication) GetProxyOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) GetProxyOk() (*string, bool) { if o == nil || IsNil(o.Proxy) { return nil, false } @@ -228,7 +228,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetProxyOk() (*string, bool } // HasProxy returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthentication) HasProxy() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) HasProxy() bool { if o != nil && !IsNil(o.Proxy) { return true } @@ -237,14 +237,14 @@ func (o *ProfileDetailedConfigurationAuthentication) HasProxy() bool { } // SetProxy gets a reference to the given string and assigns it to the Proxy field. -func (o *ProfileDetailedConfigurationAuthentication) SetProxy(v string) { +func (o *GetProfile200ResponseConfigurationAuthentication) SetProxy(v string) { o.Proxy = &v } // GetPresets returns the Presets field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthentication) GetPresets() []ProfileDetailedConfigurationAuthenticationPresetsInner { +func (o *GetProfile200ResponseConfigurationAuthentication) GetPresets() []GetProfile200ResponseConfigurationAuthenticationPresetsInner { if o == nil || IsNil(o.Presets) { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInner + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInner return ret } return o.Presets @@ -252,7 +252,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetPresets() []ProfileDetai // GetPresetsOk returns a tuple with the Presets field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthentication) GetPresetsOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInner, bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) GetPresetsOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInner, bool) { if o == nil || IsNil(o.Presets) { return nil, false } @@ -260,7 +260,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetPresetsOk() ([]ProfileDe } // HasPresets returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthentication) HasPresets() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) HasPresets() bool { if o != nil && !IsNil(o.Presets) { return true } @@ -268,13 +268,13 @@ func (o *ProfileDetailedConfigurationAuthentication) HasPresets() bool { return false } -// SetPresets gets a reference to the given []ProfileDetailedConfigurationAuthenticationPresetsInner and assigns it to the Presets field. -func (o *ProfileDetailedConfigurationAuthentication) SetPresets(v []ProfileDetailedConfigurationAuthenticationPresetsInner) { +// SetPresets gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationPresetsInner and assigns it to the Presets field. +func (o *GetProfile200ResponseConfigurationAuthentication) SetPresets(v []GetProfile200ResponseConfigurationAuthenticationPresetsInner) { o.Presets = v } // GetMultiUserIsFallback returns the MultiUserIsFallback field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthentication) GetMultiUserIsFallback() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) GetMultiUserIsFallback() bool { if o == nil || IsNil(o.MultiUserIsFallback) { var ret bool return ret @@ -284,7 +284,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetMultiUserIsFallback() bo // GetMultiUserIsFallbackOk returns a tuple with the MultiUserIsFallback field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthentication) GetMultiUserIsFallbackOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) GetMultiUserIsFallbackOk() (*bool, bool) { if o == nil || IsNil(o.MultiUserIsFallback) { return nil, false } @@ -292,7 +292,7 @@ func (o *ProfileDetailedConfigurationAuthentication) GetMultiUserIsFallbackOk() } // HasMultiUserIsFallback returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthentication) HasMultiUserIsFallback() bool { +func (o *GetProfile200ResponseConfigurationAuthentication) HasMultiUserIsFallback() bool { if o != nil && !IsNil(o.MultiUserIsFallback) { return true } @@ -301,11 +301,11 @@ func (o *ProfileDetailedConfigurationAuthentication) HasMultiUserIsFallback() bo } // SetMultiUserIsFallback gets a reference to the given bool and assigns it to the MultiUserIsFallback field. -func (o *ProfileDetailedConfigurationAuthentication) SetMultiUserIsFallback(v bool) { +func (o *GetProfile200ResponseConfigurationAuthentication) SetMultiUserIsFallback(v bool) { o.MultiUserIsFallback = &v } -func (o ProfileDetailedConfigurationAuthentication) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationAuthentication) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -313,7 +313,7 @@ func (o ProfileDetailedConfigurationAuthentication) MarshalJSON() ([]byte, error return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationAuthentication) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationAuthentication) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Schema) { toSerialize["$schema"] = o.Schema @@ -347,16 +347,16 @@ func (o ProfileDetailedConfigurationAuthentication) ToMap() (map[string]interfac return toSerialize, nil } -func (o *ProfileDetailedConfigurationAuthentication) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationAuthentication := _ProfileDetailedConfigurationAuthentication{} +func (o *GetProfile200ResponseConfigurationAuthentication) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationAuthentication := _GetProfile200ResponseConfigurationAuthentication{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthentication) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthentication) if err != nil { return err } - *o = ProfileDetailedConfigurationAuthentication(varProfileDetailedConfigurationAuthentication) + *o = GetProfile200ResponseConfigurationAuthentication(varGetProfile200ResponseConfigurationAuthentication) additionalProperties := make(map[string]interface{}) @@ -375,38 +375,38 @@ func (o *ProfileDetailedConfigurationAuthentication) UnmarshalJSON(data []byte) return err } -type NullableProfileDetailedConfigurationAuthentication struct { - value *ProfileDetailedConfigurationAuthentication +type NullableGetProfile200ResponseConfigurationAuthentication struct { + value *GetProfile200ResponseConfigurationAuthentication isSet bool } -func (v NullableProfileDetailedConfigurationAuthentication) Get() *ProfileDetailedConfigurationAuthentication { +func (v NullableGetProfile200ResponseConfigurationAuthentication) Get() *GetProfile200ResponseConfigurationAuthentication { return v.value } -func (v *NullableProfileDetailedConfigurationAuthentication) Set(val *ProfileDetailedConfigurationAuthentication) { +func (v *NullableGetProfile200ResponseConfigurationAuthentication) Set(val *GetProfile200ResponseConfigurationAuthentication) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationAuthentication) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationAuthentication) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationAuthentication) Unset() { +func (v *NullableGetProfile200ResponseConfigurationAuthentication) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationAuthentication(val *ProfileDetailedConfigurationAuthentication) *NullableProfileDetailedConfigurationAuthentication { - return &NullableProfileDetailedConfigurationAuthentication{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationAuthentication(val *GetProfile200ResponseConfigurationAuthentication) *NullableGetProfile200ResponseConfigurationAuthentication { + return &NullableGetProfile200ResponseConfigurationAuthentication{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationAuthentication) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationAuthentication) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationAuthentication) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationAuthentication) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner.go new file mode 100644 index 00000000..dd5b8279 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner.go @@ -0,0 +1,624 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// GetProfile200ResponseConfigurationAuthenticationPresetsInner - struct for GetProfile200ResponseConfigurationAuthenticationPresetsInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInner struct { + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfAsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfAsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9AsGetProfile200ResponseConfigurationAuthenticationPresetsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 wrapped in GetProfile200ResponseConfigurationAuthenticationPresetsInner +func GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9AsGetProfile200ResponseConfigurationAuthenticationPresetsInner(v *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return GetProfile200ResponseConfigurationAuthenticationPresetsInner{ + GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationAuthenticationPresetsInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) + if string(jsonGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 = nil + dst.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(GetProfile200ResponseConfigurationAuthenticationPresetsInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(GetProfile200ResponseConfigurationAuthenticationPresetsInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationAuthenticationPresetsInner) MarshalJSON() ([]byte, error) { + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) + } + + if src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *GetProfile200ResponseConfigurationAuthenticationPresetsInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj GetProfile200ResponseConfigurationAuthenticationPresetsInner) GetActualInstanceValue() interface{} { + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 + } + + // all schemas are nil + return nil +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of.go new file mode 100644 index 00000000..e232507e --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of.go @@ -0,0 +1,298 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf struct { + Type ENUMHTTP `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner `json:"users"` + Request GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest `json:"request"` + Extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions,omitempty"` + Injections []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf(type_ ENUMHTTP, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner, request GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf{} + this.Type = type_ + this.Users = users + this.Request = request + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetType() ENUMHTTP { + if o == nil { + var ret ENUMHTTP + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetTypeOk() (*ENUMHTTP, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) SetType(v ENUMHTTP) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) { + o.Users = v +} + +// GetRequest returns the Request field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetRequest() GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest + return ret + } + + return o.Request +} + +// GetRequestOk returns a tuple with the Request field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetRequestOk() (*GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest, bool) { + if o == nil { + return nil, false + } + return &o.Request, true +} + +// SetRequest sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) SetRequest(v GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) { + o.Request = v +} + +// GetExtractions returns the Extractions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetExtractions() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + if o == nil || IsNil(o.Extractions) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + return ret + } + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetExtractionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { + if o == nil || IsNil(o.Extractions) { + return nil, false + } + return o.Extractions, true +} + +// HasExtractions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) HasExtractions() bool { + if o != nil && !IsNil(o.Extractions) { + return true + } + + return false +} + +// SetExtractions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner and assigns it to the Extractions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) SetExtractions(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { + o.Extractions = v +} + +// GetInjections returns the Injections field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetInjections() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + if o == nil || IsNil(o.Injections) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + return ret + } + return o.Injections +} + +// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) GetInjectionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { + if o == nil || IsNil(o.Injections) { + return nil, false + } + return o.Injections, true +} + +// HasInjections returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) HasInjections() bool { + if o != nil && !IsNil(o.Injections) { + return true + } + + return false +} + +// SetInjections gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner and assigns it to the Injections field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) SetInjections(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { + o.Injections = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["request"] = o.Request + if !IsNil(o.Extractions) { + toSerialize["extractions"] = o.Extractions + } + if !IsNil(o.Injections) { + toSerialize["injections"] = o.Injections + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "request", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "request") + delete(additionalProperties, "extractions") + delete(additionalProperties, "injections") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_1.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_1.go new file mode 100644 index 00000000..666941d9 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_1.go @@ -0,0 +1,282 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 struct { + Type ENUMOAUTHROPC `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner `json:"users"` + Url string `json:"url"` + ClientId string `json:"client_id"` + ClientSecret string `json:"client_secret"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1(type_ ENUMOAUTHROPC, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner, url string, clientId string, clientSecret string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1{} + this.Type = type_ + this.Users = users + this.Url = url + this.ClientId = clientId + this.ClientSecret = clientSecret + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetType() ENUMOAUTHROPC { + if o == nil { + var ret ENUMOAUTHROPC + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetTypeOk() (*ENUMOAUTHROPC, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) SetType(v ENUMOAUTHROPC) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) { + o.Users = v +} + +// GetUrl returns the Url field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) SetUrl(v string) { + o.Url = v +} + +// GetClientId returns the ClientId field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) SetClientSecret(v string) { + o.ClientSecret = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["url"] = o.Url + toSerialize["client_id"] = o.ClientId + toSerialize["client_secret"] = o.ClientSecret + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "url", + "client_id", + "client_secret", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "url") + delete(additionalProperties, "client_id") + delete(additionalProperties, "client_secret") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10.go new file mode 100644 index 00000000..fa7b7287 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10.go @@ -0,0 +1,261 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 struct { + Type ENUMCURLSEQUENCE `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner `json:"users"` + Requests []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner `json:"requests"` + Injections []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10(type_ ENUMCURLSEQUENCE, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner, requests []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10{} + this.Type = type_ + this.Users = users + this.Requests = requests + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetType() ENUMCURLSEQUENCE { + if o == nil { + var ret ENUMCURLSEQUENCE + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetTypeOk() (*ENUMCURLSEQUENCE, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) SetType(v ENUMCURLSEQUENCE) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) { + o.Users = v +} + +// GetRequests returns the Requests field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetRequests() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner + return ret + } + + return o.Requests +} + +// GetRequestsOk returns a tuple with the Requests field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetRequestsOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner, bool) { + if o == nil { + return nil, false + } + return o.Requests, true +} + +// SetRequests sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) SetRequests(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) { + o.Requests = v +} + +// GetInjections returns the Injections field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetInjections() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + if o == nil || IsNil(o.Injections) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + return ret + } + return o.Injections +} + +// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) GetInjectionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { + if o == nil || IsNil(o.Injections) { + return nil, false + } + return o.Injections, true +} + +// HasInjections returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) HasInjections() bool { + if o != nil && !IsNil(o.Injections) { + return true + } + + return false +} + +// SetInjections gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner and assigns it to the Injections field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) SetInjections(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { + o.Injections = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["requests"] = o.Requests + if !IsNil(o.Injections) { + toSerialize["injections"] = o.Injections + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "requests", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "requests") + delete(additionalProperties, "injections") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10_requests_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10_requests_inner.go new file mode 100644 index 00000000..be5a7fb5 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10_requests_inner.go @@ -0,0 +1,203 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner struct { + Curl string `json:"curl"` + Extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner(curl string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{} + this.Curl = curl + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{} + return &this +} + +// GetCurl returns the Curl field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) GetCurl() string { + if o == nil { + var ret string + return ret + } + + return o.Curl +} + +// GetCurlOk returns a tuple with the Curl field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) GetCurlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Curl, true +} + +// SetCurl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) SetCurl(v string) { + o.Curl = v +} + +// GetExtractions returns the Extractions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) GetExtractions() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + if o == nil || IsNil(o.Extractions) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + return ret + } + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) GetExtractionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { + if o == nil || IsNil(o.Extractions) { + return nil, false + } + return o.Extractions, true +} + +// HasExtractions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) HasExtractions() bool { + if o != nil && !IsNil(o.Extractions) { + return true + } + + return false +} + +// SetExtractions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner and assigns it to the Extractions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) SetExtractions(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { + o.Extractions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["curl"] = o.Curl + if !IsNil(o.Extractions) { + toSerialize["extractions"] = o.Extractions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "curl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "curl") + delete(additionalProperties, "extractions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10_users_inner.go new file mode 100644 index 00000000..4fd33b09 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_10_users_inner.go @@ -0,0 +1,499 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Variables map[string]string `json:"variables,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner(username string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner{} + this.Username = username + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetVariables returns the Variables field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetVariables() map[string]string { + if o == nil || IsNil(o.Variables) { + var ret map[string]string + return ret + } + return o.Variables +} + +// GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetVariablesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Variables) { + return map[string]string{}, false + } + return o.Variables, true +} + +// HasVariables returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasVariables() bool { + if o != nil && !IsNil(o.Variables) { + return true + } + + return false +} + +// SetVariables gets a reference to the given map[string]string and assigns it to the Variables field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetVariables(v map[string]string) { + o.Variables = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if !IsNil(o.Variables) { + toSerialize["variables"] = o.Variables + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "variables") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf10UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11.go new file mode 100644 index 00000000..1782de88 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11.go @@ -0,0 +1,494 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 struct { + Type ENUMBROWSERAGENT `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner `json:"users"` + LoginUrl string `json:"login_url"` + StealthMode *bool `json:"stealth_mode,omitempty"` + Extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner `json:"extractions,omitempty"` + Injections NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections `json:"injections,omitempty"` + AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` + LoggedInDetectorText *string `json:"logged_in_detector_text,omitempty"` + LoggedInDetectorTimeout *float32 `json:"logged_in_detector_timeout,omitempty"` + Agentic *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic `json:"agentic,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11(type_ ENUMBROWSERAGENT, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner, loginUrl string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11{} + this.Type = type_ + this.Users = users + this.LoginUrl = loginUrl + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetType() ENUMBROWSERAGENT { + if o == nil { + var ret ENUMBROWSERAGENT + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetTypeOk() (*ENUMBROWSERAGENT, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetType(v ENUMBROWSERAGENT) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) { + o.Users = v +} + +// GetLoginUrl returns the LoginUrl field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetLoginUrl() string { + if o == nil { + var ret string + return ret + } + + return o.LoginUrl +} + +// GetLoginUrlOk returns a tuple with the LoginUrl field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetLoginUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LoginUrl, true +} + +// SetLoginUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetLoginUrl(v string) { + o.LoginUrl = v +} + +// GetStealthMode returns the StealthMode field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetStealthMode() bool { + if o == nil || IsNil(o.StealthMode) { + var ret bool + return ret + } + return *o.StealthMode +} + +// GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetStealthModeOk() (*bool, bool) { + if o == nil || IsNil(o.StealthMode) { + return nil, false + } + return o.StealthMode, true +} + +// HasStealthMode returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) HasStealthMode() bool { + if o != nil && !IsNil(o.StealthMode) { + return true + } + + return false +} + +// SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetStealthMode(v bool) { + o.StealthMode = &v +} + +// GetExtractions returns the Extractions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetExtractions() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { + if o == nil || IsNil(o.Extractions) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner + return ret + } + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetExtractionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, bool) { + if o == nil || IsNil(o.Extractions) { + return nil, false + } + return o.Extractions, true +} + +// HasExtractions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) HasExtractions() bool { + if o != nil && !IsNil(o.Extractions) { + return true + } + + return false +} + +// SetExtractions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner and assigns it to the Extractions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetExtractions(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) { + o.Extractions = v +} + +// GetInjections returns the Injections field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetInjections() GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections { + if o == nil || IsNil(o.Injections.Get()) { + var ret GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections + return ret + } + return *o.Injections.Get() +} + +// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetInjectionsOk() (*GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections, bool) { + if o == nil { + return nil, false + } + return o.Injections.Get(), o.Injections.IsSet() +} + +// HasInjections returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) HasInjections() bool { + if o != nil && o.Injections.IsSet() { + return true + } + + return false +} + +// SetInjections gets a reference to the given NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections and assigns it to the Injections field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetInjections(v GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) { + o.Injections.Set(&v) +} + +// SetInjectionsNil sets the value for Injections to be an explicit nil +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetInjectionsNil() { + o.Injections.Set(nil) +} + +// UnsetInjections ensures that no value is present for Injections, not even an explicit nil +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) UnsetInjections() { + o.Injections.Unset() +} + +// GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetAutoExtractionUrls() []string { + if o == nil || IsNil(o.AutoExtractionUrls) { + var ret []string + return ret + } + return o.AutoExtractionUrls +} + +// GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetAutoExtractionUrlsOk() ([]string, bool) { + if o == nil || IsNil(o.AutoExtractionUrls) { + return nil, false + } + return o.AutoExtractionUrls, true +} + +// HasAutoExtractionUrls returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) HasAutoExtractionUrls() bool { + if o != nil && !IsNil(o.AutoExtractionUrls) { + return true + } + + return false +} + +// SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetAutoExtractionUrls(v []string) { + o.AutoExtractionUrls = v +} + +// GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetLoggedInDetectorText() string { + if o == nil || IsNil(o.LoggedInDetectorText) { + var ret string + return ret + } + return *o.LoggedInDetectorText +} + +// GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetLoggedInDetectorTextOk() (*string, bool) { + if o == nil || IsNil(o.LoggedInDetectorText) { + return nil, false + } + return o.LoggedInDetectorText, true +} + +// HasLoggedInDetectorText returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) HasLoggedInDetectorText() bool { + if o != nil && !IsNil(o.LoggedInDetectorText) { + return true + } + + return false +} + +// SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetLoggedInDetectorText(v string) { + o.LoggedInDetectorText = &v +} + +// GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetLoggedInDetectorTimeout() float32 { + if o == nil || IsNil(o.LoggedInDetectorTimeout) { + var ret float32 + return ret + } + return *o.LoggedInDetectorTimeout +} + +// GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetLoggedInDetectorTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.LoggedInDetectorTimeout) { + return nil, false + } + return o.LoggedInDetectorTimeout, true +} + +// HasLoggedInDetectorTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) HasLoggedInDetectorTimeout() bool { + if o != nil && !IsNil(o.LoggedInDetectorTimeout) { + return true + } + + return false +} + +// SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetLoggedInDetectorTimeout(v float32) { + o.LoggedInDetectorTimeout = &v +} + +// GetAgentic returns the Agentic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetAgentic() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic { + if o == nil || IsNil(o.Agentic) { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic + return ret + } + return *o.Agentic +} + +// GetAgenticOk returns a tuple with the Agentic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) GetAgenticOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic, bool) { + if o == nil || IsNil(o.Agentic) { + return nil, false + } + return o.Agentic, true +} + +// HasAgentic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) HasAgentic() bool { + if o != nil && !IsNil(o.Agentic) { + return true + } + + return false +} + +// SetAgentic gets a reference to the given GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic and assigns it to the Agentic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) SetAgentic(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) { + o.Agentic = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["login_url"] = o.LoginUrl + if !IsNil(o.StealthMode) { + toSerialize["stealth_mode"] = o.StealthMode + } + if !IsNil(o.Extractions) { + toSerialize["extractions"] = o.Extractions + } + if o.Injections.IsSet() { + toSerialize["injections"] = o.Injections.Get() + } + if !IsNil(o.AutoExtractionUrls) { + toSerialize["auto_extraction_urls"] = o.AutoExtractionUrls + } + if !IsNil(o.LoggedInDetectorText) { + toSerialize["logged_in_detector_text"] = o.LoggedInDetectorText + } + if !IsNil(o.LoggedInDetectorTimeout) { + toSerialize["logged_in_detector_timeout"] = o.LoggedInDetectorTimeout + } + if !IsNil(o.Agentic) { + toSerialize["agentic"] = o.Agentic + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "login_url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "login_url") + delete(additionalProperties, "stealth_mode") + delete(additionalProperties, "extractions") + delete(additionalProperties, "injections") + delete(additionalProperties, "auto_extraction_urls") + delete(additionalProperties, "logged_in_detector_text") + delete(additionalProperties, "logged_in_detector_timeout") + delete(additionalProperties, "agentic") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_injections.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_injections.go new file mode 100644 index 00000000..8b5c7fbf --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_injections.go @@ -0,0 +1,108 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections struct { + ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner *[]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 *[]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) UnmarshalJSON(data []byte) error { + var err error + // this object is nullable so check if the payload is null or empty string + if string(data) == "" || string(data) == "{}" { + return nil + } + + // try to unmarshal JSON data into ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + err = json.Unmarshal(data, &dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) + if err == nil { + jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, _ := json.Marshal(dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) + if string(jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) == "{}" { // empty struct + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner = nil + } else { + return nil // data stored in dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, return on the first match + } + } else { + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner = nil + } + + // try to unmarshal JSON data into ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 + err = json.Unmarshal(data, &dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) + if err == nil { + jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1, _ := json.Marshal(dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) + if string(jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) == "{}" { // empty struct + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 = nil + } else { + return nil // data stored in dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1, return on the first match + } + } else { + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) MarshalJSON() ([]byte, error) { + if src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner != nil { + return json.Marshal(&src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) + } + + if src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 != nil { + return json.Marshal(&src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_users_inner.go new file mode 100644 index 00000000..f5b52aaf --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_users_inner.go @@ -0,0 +1,602 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Password string `json:"password"` + AdditionalFields []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner `json:"additional_fields,omitempty"` + PreLoginActions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"pre_login_actions,omitempty"` + PostLoginActions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"post_login_actions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner(username string, password string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner{} + this.Username = username + this.Password = password + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetPassword returns the Password field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetPassword(v string) { + o.Password = v +} + +// GetAdditionalFields returns the AdditionalFields field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetAdditionalFields() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { + if o == nil || IsNil(o.AdditionalFields) { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner + return ret + } + return o.AdditionalFields +} + +// GetAdditionalFieldsOk returns a tuple with the AdditionalFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetAdditionalFieldsOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner, bool) { + if o == nil || IsNil(o.AdditionalFields) { + return nil, false + } + return o.AdditionalFields, true +} + +// HasAdditionalFields returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasAdditionalFields() bool { + if o != nil && !IsNil(o.AdditionalFields) { + return true + } + + return false +} + +// SetAdditionalFields gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner and assigns it to the AdditionalFields field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetAdditionalFields(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) { + o.AdditionalFields = v +} + +// GetPreLoginActions returns the PreLoginActions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPreLoginActions() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + if o == nil || IsNil(o.PreLoginActions) { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + return ret + } + return o.PreLoginActions +} + +// GetPreLoginActionsOk returns a tuple with the PreLoginActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPreLoginActionsOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { + if o == nil || IsNil(o.PreLoginActions) { + return nil, false + } + return o.PreLoginActions, true +} + +// HasPreLoginActions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasPreLoginActions() bool { + if o != nil && !IsNil(o.PreLoginActions) { + return true + } + + return false +} + +// SetPreLoginActions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PreLoginActions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetPreLoginActions(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + o.PreLoginActions = v +} + +// GetPostLoginActions returns the PostLoginActions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPostLoginActions() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + if o == nil || IsNil(o.PostLoginActions) { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + return ret + } + return o.PostLoginActions +} + +// GetPostLoginActionsOk returns a tuple with the PostLoginActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPostLoginActionsOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { + if o == nil || IsNil(o.PostLoginActions) { + return nil, false + } + return o.PostLoginActions, true +} + +// HasPostLoginActions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasPostLoginActions() bool { + if o != nil && !IsNil(o.PostLoginActions) { + return true + } + + return false +} + +// SetPostLoginActions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PostLoginActions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetPostLoginActions(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + o.PostLoginActions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["password"] = o.Password + if !IsNil(o.AdditionalFields) { + toSerialize["additional_fields"] = o.AdditionalFields + } + if !IsNil(o.PreLoginActions) { + toSerialize["pre_login_actions"] = o.PreLoginActions + } + if !IsNil(o.PostLoginActions) { + toSerialize["post_login_actions"] = o.PostLoginActions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "password", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "password") + delete(additionalProperties, "additional_fields") + delete(additionalProperties, "pre_login_actions") + delete(additionalProperties, "post_login_actions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_users_inner_additional_fields_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_users_inner_additional_fields_inner.go new file mode 100644 index 00000000..d6144cfc --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_11_users_inner_additional_fields_inner.go @@ -0,0 +1,269 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner struct { + Locator string `json:"locator"` + Value string `json:"value"` + OneByOne *bool `json:"one_by_one,omitempty"` + AutoSubmit *bool `json:"auto_submit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner(locator string, value string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{} + this.Locator = locator + this.Value = value + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{} + return &this +} + +// GetLocator returns the Locator field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetLocator() string { + if o == nil { + var ret string + return ret + } + + return o.Locator +} + +// GetLocatorOk returns a tuple with the Locator field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetLocatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locator, true +} + +// SetLocator sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) SetLocator(v string) { + o.Locator = v +} + +// GetValue returns the Value field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) SetValue(v string) { + o.Value = v +} + +// GetOneByOne returns the OneByOne field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetOneByOne() bool { + if o == nil || IsNil(o.OneByOne) { + var ret bool + return ret + } + return *o.OneByOne +} + +// GetOneByOneOk returns a tuple with the OneByOne field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetOneByOneOk() (*bool, bool) { + if o == nil || IsNil(o.OneByOne) { + return nil, false + } + return o.OneByOne, true +} + +// HasOneByOne returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) HasOneByOne() bool { + if o != nil && !IsNil(o.OneByOne) { + return true + } + + return false +} + +// SetOneByOne gets a reference to the given bool and assigns it to the OneByOne field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) SetOneByOne(v bool) { + o.OneByOne = &v +} + +// GetAutoSubmit returns the AutoSubmit field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetAutoSubmit() bool { + if o == nil || IsNil(o.AutoSubmit) { + var ret bool + return ret + } + return *o.AutoSubmit +} + +// GetAutoSubmitOk returns a tuple with the AutoSubmit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetAutoSubmitOk() (*bool, bool) { + if o == nil || IsNil(o.AutoSubmit) { + return nil, false + } + return o.AutoSubmit, true +} + +// HasAutoSubmit returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) HasAutoSubmit() bool { + if o != nil && !IsNil(o.AutoSubmit) { + return true + } + + return false +} + +// SetAutoSubmit gets a reference to the given bool and assigns it to the AutoSubmit field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) SetAutoSubmit(v bool) { + o.AutoSubmit = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["locator"] = o.Locator + toSerialize["value"] = o.Value + if !IsNil(o.OneByOne) { + toSerialize["one_by_one"] = o.OneByOne + } + if !IsNil(o.AutoSubmit) { + toSerialize["auto_submit"] = o.AutoSubmit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "locator", + "value", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "locator") + delete(additionalProperties, "value") + delete(additionalProperties, "one_by_one") + delete(additionalProperties, "auto_submit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_12.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_12.go new file mode 100644 index 00000000..ef4d2d39 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_12.go @@ -0,0 +1,457 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 struct { + Type ENUMBROWSERACTIONS `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner `json:"users"` + LoginUrl string `json:"login_url"` + StealthMode *bool `json:"stealth_mode,omitempty"` + Extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner `json:"extractions,omitempty"` + Injections NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections `json:"injections,omitempty"` + AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` + LoggedInDetectorText *string `json:"logged_in_detector_text,omitempty"` + LoggedInDetectorTimeout *float32 `json:"logged_in_detector_timeout,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12(type_ ENUMBROWSERACTIONS, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner, loginUrl string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12{} + this.Type = type_ + this.Users = users + this.LoginUrl = loginUrl + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetType() ENUMBROWSERACTIONS { + if o == nil { + var ret ENUMBROWSERACTIONS + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetTypeOk() (*ENUMBROWSERACTIONS, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetType(v ENUMBROWSERACTIONS) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) { + o.Users = v +} + +// GetLoginUrl returns the LoginUrl field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetLoginUrl() string { + if o == nil { + var ret string + return ret + } + + return o.LoginUrl +} + +// GetLoginUrlOk returns a tuple with the LoginUrl field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetLoginUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LoginUrl, true +} + +// SetLoginUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetLoginUrl(v string) { + o.LoginUrl = v +} + +// GetStealthMode returns the StealthMode field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetStealthMode() bool { + if o == nil || IsNil(o.StealthMode) { + var ret bool + return ret + } + return *o.StealthMode +} + +// GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetStealthModeOk() (*bool, bool) { + if o == nil || IsNil(o.StealthMode) { + return nil, false + } + return o.StealthMode, true +} + +// HasStealthMode returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) HasStealthMode() bool { + if o != nil && !IsNil(o.StealthMode) { + return true + } + + return false +} + +// SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetStealthMode(v bool) { + o.StealthMode = &v +} + +// GetExtractions returns the Extractions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetExtractions() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { + if o == nil || IsNil(o.Extractions) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner + return ret + } + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetExtractionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, bool) { + if o == nil || IsNil(o.Extractions) { + return nil, false + } + return o.Extractions, true +} + +// HasExtractions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) HasExtractions() bool { + if o != nil && !IsNil(o.Extractions) { + return true + } + + return false +} + +// SetExtractions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner and assigns it to the Extractions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetExtractions(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) { + o.Extractions = v +} + +// GetInjections returns the Injections field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetInjections() GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections { + if o == nil || IsNil(o.Injections.Get()) { + var ret GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections + return ret + } + return *o.Injections.Get() +} + +// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetInjectionsOk() (*GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections, bool) { + if o == nil { + return nil, false + } + return o.Injections.Get(), o.Injections.IsSet() +} + +// HasInjections returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) HasInjections() bool { + if o != nil && o.Injections.IsSet() { + return true + } + + return false +} + +// SetInjections gets a reference to the given NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections and assigns it to the Injections field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetInjections(v GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf11Injections) { + o.Injections.Set(&v) +} + +// SetInjectionsNil sets the value for Injections to be an explicit nil +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetInjectionsNil() { + o.Injections.Set(nil) +} + +// UnsetInjections ensures that no value is present for Injections, not even an explicit nil +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) UnsetInjections() { + o.Injections.Unset() +} + +// GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetAutoExtractionUrls() []string { + if o == nil || IsNil(o.AutoExtractionUrls) { + var ret []string + return ret + } + return o.AutoExtractionUrls +} + +// GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetAutoExtractionUrlsOk() ([]string, bool) { + if o == nil || IsNil(o.AutoExtractionUrls) { + return nil, false + } + return o.AutoExtractionUrls, true +} + +// HasAutoExtractionUrls returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) HasAutoExtractionUrls() bool { + if o != nil && !IsNil(o.AutoExtractionUrls) { + return true + } + + return false +} + +// SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetAutoExtractionUrls(v []string) { + o.AutoExtractionUrls = v +} + +// GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetLoggedInDetectorText() string { + if o == nil || IsNil(o.LoggedInDetectorText) { + var ret string + return ret + } + return *o.LoggedInDetectorText +} + +// GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetLoggedInDetectorTextOk() (*string, bool) { + if o == nil || IsNil(o.LoggedInDetectorText) { + return nil, false + } + return o.LoggedInDetectorText, true +} + +// HasLoggedInDetectorText returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) HasLoggedInDetectorText() bool { + if o != nil && !IsNil(o.LoggedInDetectorText) { + return true + } + + return false +} + +// SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetLoggedInDetectorText(v string) { + o.LoggedInDetectorText = &v +} + +// GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetLoggedInDetectorTimeout() float32 { + if o == nil || IsNil(o.LoggedInDetectorTimeout) { + var ret float32 + return ret + } + return *o.LoggedInDetectorTimeout +} + +// GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) GetLoggedInDetectorTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.LoggedInDetectorTimeout) { + return nil, false + } + return o.LoggedInDetectorTimeout, true +} + +// HasLoggedInDetectorTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) HasLoggedInDetectorTimeout() bool { + if o != nil && !IsNil(o.LoggedInDetectorTimeout) { + return true + } + + return false +} + +// SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) SetLoggedInDetectorTimeout(v float32) { + o.LoggedInDetectorTimeout = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["login_url"] = o.LoginUrl + if !IsNil(o.StealthMode) { + toSerialize["stealth_mode"] = o.StealthMode + } + if !IsNil(o.Extractions) { + toSerialize["extractions"] = o.Extractions + } + if o.Injections.IsSet() { + toSerialize["injections"] = o.Injections.Get() + } + if !IsNil(o.AutoExtractionUrls) { + toSerialize["auto_extraction_urls"] = o.AutoExtractionUrls + } + if !IsNil(o.LoggedInDetectorText) { + toSerialize["logged_in_detector_text"] = o.LoggedInDetectorText + } + if !IsNil(o.LoggedInDetectorTimeout) { + toSerialize["logged_in_detector_timeout"] = o.LoggedInDetectorTimeout + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "login_url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "login_url") + delete(additionalProperties, "stealth_mode") + delete(additionalProperties, "extractions") + delete(additionalProperties, "injections") + delete(additionalProperties, "auto_extraction_urls") + delete(additionalProperties, "logged_in_detector_text") + delete(additionalProperties, "logged_in_detector_timeout") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_12_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_12_users_inner.go new file mode 100644 index 00000000..ee11846d --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_12_users_inner.go @@ -0,0 +1,491 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Actions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"actions"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner(username string, actions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner{} + this.Username = username + this.Actions = actions + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetActions returns the Actions field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetActions() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + return ret + } + + return o.Actions +} + +// GetActionsOk returns a tuple with the Actions field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetActionsOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { + if o == nil { + return nil, false + } + return o.Actions, true +} + +// SetActions sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetActions(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + o.Actions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["actions"] = o.Actions + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "actions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "actions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf12UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_13.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_13.go new file mode 100644 index 00000000..45d7ce7a --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_13.go @@ -0,0 +1,298 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 struct { + Type ENUMCUSTOMBPCE `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner `json:"users"` + Environment ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT `json:"environment"` + Extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions,omitempty"` + Injections []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13(type_ ENUMCUSTOMBPCE, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner, environment ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13{} + this.Type = type_ + this.Users = users + this.Environment = environment + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetType() ENUMCUSTOMBPCE { + if o == nil { + var ret ENUMCUSTOMBPCE + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetTypeOk() (*ENUMCUSTOMBPCE, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) SetType(v ENUMCUSTOMBPCE) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) { + o.Users = v +} + +// GetEnvironment returns the Environment field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetEnvironment() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetEnvironmentOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) SetEnvironment(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) { + o.Environment = v +} + +// GetExtractions returns the Extractions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetExtractions() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + if o == nil || IsNil(o.Extractions) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + return ret + } + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetExtractionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { + if o == nil || IsNil(o.Extractions) { + return nil, false + } + return o.Extractions, true +} + +// HasExtractions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) HasExtractions() bool { + if o != nil && !IsNil(o.Extractions) { + return true + } + + return false +} + +// SetExtractions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner and assigns it to the Extractions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) SetExtractions(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { + o.Extractions = v +} + +// GetInjections returns the Injections field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetInjections() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + if o == nil || IsNil(o.Injections) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + return ret + } + return o.Injections +} + +// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) GetInjectionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { + if o == nil || IsNil(o.Injections) { + return nil, false + } + return o.Injections, true +} + +// HasInjections returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) HasInjections() bool { + if o != nil && !IsNil(o.Injections) { + return true + } + + return false +} + +// SetInjections gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner and assigns it to the Injections field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) SetInjections(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { + o.Injections = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["environment"] = o.Environment + if !IsNil(o.Extractions) { + toSerialize["extractions"] = o.Extractions + } + if !IsNil(o.Injections) { + toSerialize["injections"] = o.Injections + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "environment", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "environment") + delete(additionalProperties, "extractions") + delete(additionalProperties, "injections") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_13_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_13_users_inner.go new file mode 100644 index 00000000..5881f33f --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_13_users_inner.go @@ -0,0 +1,520 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Password string `json:"password"` + Otp string `json:"otp"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner(username string, password string, otp string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner{} + this.Username = username + this.Password = password + this.Otp = otp + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetPassword returns the Password field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetPassword(v string) { + o.Password = v +} + +// GetOtp returns the Otp field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetOtp() string { + if o == nil { + var ret string + return ret + } + + return o.Otp +} + +// GetOtpOk returns a tuple with the Otp field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetOtpOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Otp, true +} + +// SetOtp sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetOtp(v string) { + o.Otp = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["password"] = o.Password + toSerialize["otp"] = o.Otp + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "password", + "otp", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "password") + delete(additionalProperties, "otp") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf13UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_1_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_1_users_inner.go new file mode 100644 index 00000000..216c5320 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_1_users_inner.go @@ -0,0 +1,528 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Password string `json:"password"` + Scopes []string `json:"scopes,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner(username string, password string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner{} + this.Username = username + this.Password = password + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetPassword returns the Password field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetPassword(v string) { + o.Password = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetScopes(v []string) { + o.Scopes = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["password"] = o.Password + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "password", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "password") + delete(additionalProperties, "scopes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_2.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_2.go new file mode 100644 index 00000000..80105acf --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_2.go @@ -0,0 +1,224 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 struct { + Type ENUMOAUTHCLIENTCREDENTIALS `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner `json:"users"` + Url string `json:"url"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2(type_ ENUMOAUTHCLIENTCREDENTIALS, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner, url string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2{} + this.Type = type_ + this.Users = users + this.Url = url + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) GetType() ENUMOAUTHCLIENTCREDENTIALS { + if o == nil { + var ret ENUMOAUTHCLIENTCREDENTIALS + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) GetTypeOk() (*ENUMOAUTHCLIENTCREDENTIALS, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) SetType(v ENUMOAUTHCLIENTCREDENTIALS) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) { + o.Users = v +} + +// GetUrl returns the Url field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) SetUrl(v string) { + o.Url = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["url"] = o.Url + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_2_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_2_users_inner.go new file mode 100644 index 00000000..b005f69b --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_2_users_inner.go @@ -0,0 +1,631 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + ClientId string `json:"client_id"` + ClientSecret string `json:"client_secret"` + Scopes []string `json:"scopes,omitempty"` + Audience *string `json:"audience,omitempty"` + BasicStyle *bool `json:"basic_style,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner(username string, clientId string, clientSecret string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner{} + this.Username = username + this.ClientId = clientId + this.ClientSecret = clientSecret + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetClientId returns the ClientId field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetClientSecret(v string) { + o.ClientSecret = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetScopes(v []string) { + o.Scopes = v +} + +// GetAudience returns the Audience field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetAudience() string { + if o == nil || IsNil(o.Audience) { + var ret string + return ret + } + return *o.Audience +} + +// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetAudienceOk() (*string, bool) { + if o == nil || IsNil(o.Audience) { + return nil, false + } + return o.Audience, true +} + +// HasAudience returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasAudience() bool { + if o != nil && !IsNil(o.Audience) { + return true + } + + return false +} + +// SetAudience gets a reference to the given string and assigns it to the Audience field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetAudience(v string) { + o.Audience = &v +} + +// GetBasicStyle returns the BasicStyle field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetBasicStyle() bool { + if o == nil || IsNil(o.BasicStyle) { + var ret bool + return ret + } + return *o.BasicStyle +} + +// GetBasicStyleOk returns a tuple with the BasicStyle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetBasicStyleOk() (*bool, bool) { + if o == nil || IsNil(o.BasicStyle) { + return nil, false + } + return o.BasicStyle, true +} + +// HasBasicStyle returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasBasicStyle() bool { + if o != nil && !IsNil(o.BasicStyle) { + return true + } + + return false +} + +// SetBasicStyle gets a reference to the given bool and assigns it to the BasicStyle field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetBasicStyle(v bool) { + o.BasicStyle = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["client_id"] = o.ClientId + toSerialize["client_secret"] = o.ClientSecret + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.Audience) { + toSerialize["audience"] = o.Audience + } + if !IsNil(o.BasicStyle) { + toSerialize["basic_style"] = o.BasicStyle + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "client_id", + "client_secret", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "client_id") + delete(additionalProperties, "client_secret") + delete(additionalProperties, "scopes") + delete(additionalProperties, "audience") + delete(additionalProperties, "basic_style") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf2UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_3.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_3.go similarity index 51% rename from pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_3.go rename to pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_3.go index 0c0bbecb..440871e2 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_3.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_3.go @@ -15,32 +15,32 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 struct { - Type ENUMOAUTHAUTHZCODEBROWSER `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner `json:"users"` - AuthorizationUrl string `json:"authorization_url"` - TokenUrl string `json:"token_url"` - ClientId string `json:"client_id"` - ClientSecret string `json:"client_secret"` - RedirectUri string `json:"redirect_uri"` - Scopes []string `json:"scopes,omitempty"` - UsePkce bool `json:"use_pkce"` - LoginTimeout *float32 `json:"login_timeout,omitempty"` +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 struct { + Type ENUMOAUTHAUTHZCODEBROWSER `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner `json:"users"` + AuthorizationUrl string `json:"authorization_url"` + TokenUrl string `json:"token_url"` + ClientId string `json:"client_id"` + ClientSecret string `json:"client_secret"` + RedirectUri string `json:"redirect_uri"` + Scopes []string `json:"scopes,omitempty"` + UsePkce bool `json:"use_pkce"` + LoginTimeout *float32 `json:"login_timeout,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 object +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3(type_ ENUMOAUTHAUTHZCODEBROWSER, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner, authorizationUrl string, tokenUrl string, clientId string, clientSecret string, redirectUri string, usePkce bool) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3{} +func NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3(type_ ENUMOAUTHAUTHZCODEBROWSER, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner, authorizationUrl string, tokenUrl string, clientId string, clientSecret string, redirectUri string, usePkce bool) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3{} this.Type = type_ this.Users = users this.AuthorizationUrl = authorizationUrl @@ -52,16 +52,16 @@ func NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3(type_ ENUMO return &this } -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 object +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3{} +func NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3{} return &this } // GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetType() ENUMOAUTHAUTHZCODEBROWSER { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetType() ENUMOAUTHAUTHZCODEBROWSER { if o == nil { var ret ENUMOAUTHAUTHZCODEBROWSER return ret @@ -72,7 +72,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetType() // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetTypeOk() (*ENUMOAUTHAUTHZCODEBROWSER, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetTypeOk() (*ENUMOAUTHAUTHZCODEBROWSER, bool) { if o == nil { return nil, false } @@ -80,14 +80,14 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetTypeOk } // SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetType(v ENUMOAUTHAUTHZCODEBROWSER) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetType(v ENUMOAUTHAUTHZCODEBROWSER) { o.Type = v } // GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner { if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner return ret } @@ -96,7 +96,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetUsers( // GetUsersOk returns a tuple with the Users field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner, bool) { if o == nil { return nil, false } @@ -104,12 +104,12 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetUsersO } // SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) { o.Users = v } // GetAuthorizationUrl returns the AuthorizationUrl field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetAuthorizationUrl() string { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetAuthorizationUrl() string { if o == nil { var ret string return ret @@ -120,7 +120,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetAuthor // GetAuthorizationUrlOk returns a tuple with the AuthorizationUrl field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetAuthorizationUrlOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetAuthorizationUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -128,12 +128,12 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetAuthor } // SetAuthorizationUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetAuthorizationUrl(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetAuthorizationUrl(v string) { o.AuthorizationUrl = v } // GetTokenUrl returns the TokenUrl field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetTokenUrl() string { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetTokenUrl() string { if o == nil { var ret string return ret @@ -144,7 +144,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetTokenU // GetTokenUrlOk returns a tuple with the TokenUrl field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetTokenUrlOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetTokenUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -152,12 +152,12 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetTokenU } // SetTokenUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetTokenUrl(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetTokenUrl(v string) { o.TokenUrl = v } // GetClientId returns the ClientId field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetClientId() string { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetClientId() string { if o == nil { var ret string return ret @@ -168,7 +168,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetClient // GetClientIdOk returns a tuple with the ClientId field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetClientIdOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetClientIdOk() (*string, bool) { if o == nil { return nil, false } @@ -176,12 +176,12 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetClient } // SetClientId sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetClientId(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetClientId(v string) { o.ClientId = v } // GetClientSecret returns the ClientSecret field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetClientSecret() string { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetClientSecret() string { if o == nil { var ret string return ret @@ -192,7 +192,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetClient // GetClientSecretOk returns a tuple with the ClientSecret field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetClientSecretOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetClientSecretOk() (*string, bool) { if o == nil { return nil, false } @@ -200,12 +200,12 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetClient } // SetClientSecret sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetClientSecret(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetClientSecret(v string) { o.ClientSecret = v } // GetRedirectUri returns the RedirectUri field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetRedirectUri() string { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetRedirectUri() string { if o == nil { var ret string return ret @@ -216,7 +216,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetRedire // GetRedirectUriOk returns a tuple with the RedirectUri field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetRedirectUriOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetRedirectUriOk() (*string, bool) { if o == nil { return nil, false } @@ -224,12 +224,12 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetRedire } // SetRedirectUri sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetRedirectUri(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetRedirectUri(v string) { o.RedirectUri = v } // GetScopes returns the Scopes field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetScopes() []string { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetScopes() []string { if o == nil || IsNil(o.Scopes) { var ret []string return ret @@ -239,7 +239,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetScopes // GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetScopesOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetScopesOk() ([]string, bool) { if o == nil || IsNil(o.Scopes) { return nil, false } @@ -247,7 +247,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetScopes } // HasScopes returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) HasScopes() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) HasScopes() bool { if o != nil && !IsNil(o.Scopes) { return true } @@ -256,12 +256,12 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) HasScopes } // SetScopes gets a reference to the given []string and assigns it to the Scopes field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetScopes(v []string) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetScopes(v []string) { o.Scopes = v } // GetUsePkce returns the UsePkce field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetUsePkce() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetUsePkce() bool { if o == nil { var ret bool return ret @@ -272,7 +272,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetUsePkc // GetUsePkceOk returns a tuple with the UsePkce field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetUsePkceOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetUsePkceOk() (*bool, bool) { if o == nil { return nil, false } @@ -280,12 +280,12 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetUsePkc } // SetUsePkce sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetUsePkce(v bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetUsePkce(v bool) { o.UsePkce = v } // GetLoginTimeout returns the LoginTimeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetLoginTimeout() float32 { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetLoginTimeout() float32 { if o == nil || IsNil(o.LoginTimeout) { var ret float32 return ret @@ -295,7 +295,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetLoginT // GetLoginTimeoutOk returns a tuple with the LoginTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetLoginTimeoutOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) GetLoginTimeoutOk() (*float32, bool) { if o == nil || IsNil(o.LoginTimeout) { return nil, false } @@ -303,7 +303,7 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) GetLoginT } // HasLoginTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) HasLoginTimeout() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) HasLoginTimeout() bool { if o != nil && !IsNil(o.LoginTimeout) { return true } @@ -312,11 +312,11 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) HasLoginT } // SetLoginTimeout gets a reference to the given float32 and assigns it to the LoginTimeout field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) SetLoginTimeout(v float32) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) SetLoginTimeout(v float32) { o.LoginTimeout = &v } -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -324,7 +324,7 @@ func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) MarshalJSO return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["users"] = o.Users @@ -348,7 +348,7 @@ func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) ToMap() (m return toSerialize, nil } -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -377,15 +377,15 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) Unmarshal } } - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3{} + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) if err != nil { return err } - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) additionalProperties := make(map[string]interface{}) @@ -406,38 +406,38 @@ func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) Unmarshal return err } -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 isSet bool } -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 { +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 { return v.value } -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) Unset() { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_3_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_3_users_inner.go new file mode 100644 index 00000000..5fe27a68 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_3_users_inner.go @@ -0,0 +1,602 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Password string `json:"password"` + Scopes []string `json:"scopes,omitempty"` + PreLoginActions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"pre_login_actions,omitempty"` + PostLoginActions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"post_login_actions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner(username string, password string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner{} + this.Username = username + this.Password = password + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetPassword returns the Password field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetPassword(v string) { + o.Password = v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetScopes(v []string) { + o.Scopes = v +} + +// GetPreLoginActions returns the PreLoginActions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPreLoginActions() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + if o == nil || IsNil(o.PreLoginActions) { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + return ret + } + return o.PreLoginActions +} + +// GetPreLoginActionsOk returns a tuple with the PreLoginActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPreLoginActionsOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { + if o == nil || IsNil(o.PreLoginActions) { + return nil, false + } + return o.PreLoginActions, true +} + +// HasPreLoginActions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasPreLoginActions() bool { + if o != nil && !IsNil(o.PreLoginActions) { + return true + } + + return false +} + +// SetPreLoginActions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PreLoginActions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetPreLoginActions(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + o.PreLoginActions = v +} + +// GetPostLoginActions returns the PostLoginActions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPostLoginActions() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + if o == nil || IsNil(o.PostLoginActions) { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + return ret + } + return o.PostLoginActions +} + +// GetPostLoginActionsOk returns a tuple with the PostLoginActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPostLoginActionsOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { + if o == nil || IsNil(o.PostLoginActions) { + return nil, false + } + return o.PostLoginActions, true +} + +// HasPostLoginActions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasPostLoginActions() bool { + if o != nil && !IsNil(o.PostLoginActions) { + return true + } + + return false +} + +// SetPostLoginActions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PostLoginActions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetPostLoginActions(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + o.PostLoginActions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["password"] = o.Password + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.PreLoginActions) { + toSerialize["pre_login_actions"] = o.PreLoginActions + } + if !IsNil(o.PostLoginActions) { + toSerialize["post_login_actions"] = o.PostLoginActions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "password", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "password") + delete(additionalProperties, "scopes") + delete(additionalProperties, "pre_login_actions") + delete(additionalProperties, "post_login_actions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf3UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_4.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_4.go new file mode 100644 index 00000000..7232066b --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_4.go @@ -0,0 +1,195 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 struct { + Type ENUMBASIC `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner `json:"users"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4(type_ ENUMBASIC, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4{} + this.Type = type_ + this.Users = users + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) GetType() ENUMBASIC { + if o == nil { + var ret ENUMBASIC + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) GetTypeOk() (*ENUMBASIC, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) SetType(v ENUMBASIC) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) { + o.Users = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_4_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_4_users_inner.go new file mode 100644 index 00000000..9c791525 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_4_users_inner.go @@ -0,0 +1,491 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Password string `json:"password"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner(username string, password string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner{} + this.Username = username + this.Password = password + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetPassword returns the Password field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetPassword(v string) { + o.Password = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["password"] = o.Password + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "password", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_5.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_5.go new file mode 100644 index 00000000..4663ff5d --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_5.go @@ -0,0 +1,327 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 struct { + Type ENUMGRAPHQL `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner `json:"users"` + Url string `json:"url"` + Query string `json:"query"` + Extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions,omitempty"` + Injections []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5(type_ ENUMGRAPHQL, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner, url string, query string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5{} + this.Type = type_ + this.Users = users + this.Url = url + this.Query = query + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetType() ENUMGRAPHQL { + if o == nil { + var ret ENUMGRAPHQL + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetTypeOk() (*ENUMGRAPHQL, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) SetType(v ENUMGRAPHQL) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) { + o.Users = v +} + +// GetUrl returns the Url field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) SetUrl(v string) { + o.Url = v +} + +// GetQuery returns the Query field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetQuery() string { + if o == nil { + var ret string + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) SetQuery(v string) { + o.Query = v +} + +// GetExtractions returns the Extractions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetExtractions() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + if o == nil || IsNil(o.Extractions) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + return ret + } + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetExtractionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { + if o == nil || IsNil(o.Extractions) { + return nil, false + } + return o.Extractions, true +} + +// HasExtractions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) HasExtractions() bool { + if o != nil && !IsNil(o.Extractions) { + return true + } + + return false +} + +// SetExtractions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner and assigns it to the Extractions field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) SetExtractions(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { + o.Extractions = v +} + +// GetInjections returns the Injections field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetInjections() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + if o == nil || IsNil(o.Injections) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + return ret + } + return o.Injections +} + +// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) GetInjectionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { + if o == nil || IsNil(o.Injections) { + return nil, false + } + return o.Injections, true +} + +// HasInjections returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) HasInjections() bool { + if o != nil && !IsNil(o.Injections) { + return true + } + + return false +} + +// SetInjections gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner and assigns it to the Injections field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) SetInjections(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { + o.Injections = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["url"] = o.Url + toSerialize["query"] = o.Query + if !IsNil(o.Extractions) { + toSerialize["extractions"] = o.Extractions + } + if !IsNil(o.Injections) { + toSerialize["injections"] = o.Injections + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "url", + "query", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "url") + delete(additionalProperties, "query") + delete(additionalProperties, "extractions") + delete(additionalProperties, "injections") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_5_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_5_users_inner.go new file mode 100644 index 00000000..6f8eb22e --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_5_users_inner.go @@ -0,0 +1,491 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Variables map[string]string `json:"variables"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner(username string, variables map[string]string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner{} + this.Username = username + this.Variables = variables + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetVariables returns the Variables field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetVariables() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Variables +} + +// GetVariablesOk returns a tuple with the Variables field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetVariablesOk() (map[string]string, bool) { + if o == nil { + return map[string]string{}, false + } + return o.Variables, true +} + +// SetVariables sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetVariables(v map[string]string) { + o.Variables = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["variables"] = o.Variables + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "variables", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "variables") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf5UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_6.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_6.go new file mode 100644 index 00000000..a42860b4 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_6.go @@ -0,0 +1,195 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 struct { + Type ENUMDIGEST `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner `json:"users"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6(type_ ENUMDIGEST, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6{} + this.Type = type_ + this.Users = users + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) GetType() ENUMDIGEST { + if o == nil { + var ret ENUMDIGEST + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) GetTypeOk() (*ENUMDIGEST, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) SetType(v ENUMDIGEST) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf4UsersInner) { + o.Users = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf6) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_7.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_7.go new file mode 100644 index 00000000..fd9cd08b --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_7.go @@ -0,0 +1,282 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 struct { + Type ENUMCOGNITOUSERPASS `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner `json:"users"` + Region ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION `json:"region"` + ClientId string `json:"client_id"` + ClientSecret string `json:"client_secret"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7(type_ ENUMCOGNITOUSERPASS, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner, region ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION, clientId string, clientSecret string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7{} + this.Type = type_ + this.Users = users + this.Region = region + this.ClientId = clientId + this.ClientSecret = clientSecret + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetType() ENUMCOGNITOUSERPASS { + if o == nil { + var ret ENUMCOGNITOUSERPASS + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetTypeOk() (*ENUMCOGNITOUSERPASS, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) SetType(v ENUMCOGNITOUSERPASS) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf1UsersInner) { + o.Users = v +} + +// GetRegion returns the Region field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetRegion() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetRegionOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) SetRegion(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION) { + o.Region = v +} + +// GetClientId returns the ClientId field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) SetClientSecret(v string) { + o.ClientSecret = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["region"] = o.Region + toSerialize["client_id"] = o.ClientId + toSerialize["client_secret"] = o.ClientSecret + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "region", + "client_id", + "client_secret", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "region") + delete(additionalProperties, "client_id") + delete(additionalProperties, "client_secret") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf7) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_8.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_8.go new file mode 100644 index 00000000..faaa3325 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_8.go @@ -0,0 +1,195 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 struct { + Type ENUMHEADERS `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner `json:"users"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8(type_ ENUMHEADERS, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8{} + this.Type = type_ + this.Users = users + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) GetType() ENUMHEADERS { + if o == nil { + var ret ENUMHEADERS + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) GetTypeOk() (*ENUMHEADERS, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) SetType(v ENUMHEADERS) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) { + o.Users = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_8_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_8_users_inner.go new file mode 100644 index 00000000..ce65a02f --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_8_users_inner.go @@ -0,0 +1,454 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner(username string, headers map[string]string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner{} + this.Username = username + this.Headers = headers + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetHeaders() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil { + return map[string]string{}, false + } + return o.Headers, true +} + +// SetHeaders sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetRole(v string) { + o.Role = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + toSerialize["headers"] = o.Headers + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "headers", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf8UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_9.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_9.go new file mode 100644 index 00000000..bee5ce63 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_9.go @@ -0,0 +1,253 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 struct { + Type ENUMCURL `json:"type"` + Users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner `json:"users"` + Extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions"` + Injections []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9(type_ ENUMCURL, users []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner, extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, injections []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9{} + this.Type = type_ + this.Users = users + this.Extractions = extractions + this.Injections = injections + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9WithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9{} + return &this +} + +// GetType returns the Type field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetType() ENUMCURL { + if o == nil { + var ret ENUMCURL + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetTypeOk() (*ENUMCURL, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) SetType(v ENUMCURL) { + o.Type = v +} + +// GetUsers returns the Users field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetUsers() []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetUsersOk() ([]GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) SetUsers(v []GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) { + o.Users = v +} + +// GetExtractions returns the Extractions field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetExtractions() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + return ret + } + + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetExtractionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { + if o == nil { + return nil, false + } + return o.Extractions, true +} + +// SetExtractions sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) SetExtractions(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { + o.Extractions = v +} + +// GetInjections returns the Injections field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetInjections() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + return ret + } + + return o.Injections +} + +// GetInjectionsOk returns a tuple with the Injections field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) GetInjectionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { + if o == nil { + return nil, false + } + return o.Injections, true +} + +// SetInjections sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) SetInjections(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { + o.Injections = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["users"] = o.Users + toSerialize["extractions"] = o.Extractions + toSerialize["injections"] = o.Injections + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "type", + "users", + "extractions", + "injections", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "users") + delete(additionalProperties, "extractions") + delete(additionalProperties, "injections") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9 { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_9_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_9_users_inner.go new file mode 100644 index 00000000..1d663be4 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_9_users_inner.go @@ -0,0 +1,491 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Curl string `json:"curl"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner(username string, curl string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner{} + this.Username = username + this.Curl = curl + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetRole(v string) { + o.Role = &v +} + +// GetCurl returns the Curl field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetCurl() string { + if o == nil { + var ret string + return ret + } + + return o.Curl +} + +// GetCurlOk returns a tuple with the Curl field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetCurlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Curl, true +} + +// SetCurl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetCurl(v string) { + o.Curl = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["curl"] = o.Curl + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + "curl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "curl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOf9UsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_request.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_request.go new file mode 100644 index 00000000..bc7e8969 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_request.go @@ -0,0 +1,344 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest struct { + Url string `json:"url"` + Method ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD `json:"method"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"query_parameters,omitempty"` + Body interface{} `json:"body,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest(url string, method ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest{} + this.Url = url + this.Method = method + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequestWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequestWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest{} + return &this +} + +// GetUrl returns the Url field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) SetUrl(v string) { + o.Url = v +} + +// GetMethod returns the Method field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD + return ret + } + + return o.Method +} + +// GetMethodOk returns a tuple with the Method field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, bool) { + if o == nil { + return nil, false + } + return &o.Method, true +} + +// SetMethod sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) { + o.Method = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetBody() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Body +} + +// GetBodyOk returns a tuple with the Body field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) GetBodyOk() (*interface{}, bool) { + if o == nil || IsNil(o.Body) { + return nil, false + } + return &o.Body, true +} + +// HasBody returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) HasBody() bool { + if o != nil && !IsNil(o.Body) { + return true + } + + return false +} + +// SetBody gets a reference to the given interface{} and assigns it to the Body field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) SetBody(v interface{}) { + o.Body = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["method"] = o.Method + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if o.Body != nil { + toSerialize["body"] = o.Body + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + "method", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "url") + delete(additionalProperties, "method") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "body") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_users_inner.go new file mode 100644 index 00000000..ca84d4c8 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_presets_inner_one_of_users_inner.go @@ -0,0 +1,537 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner struct for GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner +type GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner struct { + Username string `json:"username"` + Headers map[string]string `json:"headers,omitempty"` + Cookies map[string]string `json:"cookies,omitempty"` + QueryParameters map[string]string `json:"queryParameters,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Basic *string `json:"basic,omitempty"` + Digest *string `json:"digest,omitempty"` + Role *string `json:"role,omitempty"` + Password *string `json:"password,omitempty"` + Body interface{} `json:"body,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner(username string) *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner{} + this.Username = username + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner { + this := GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner{} + return &this +} + +// GetUsername returns the Username field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetUsername(v string) { + o.Username = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetHeaders() map[string]string { + if o == nil || IsNil(o.Headers) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetHeadersOk() (map[string]string, bool) { + if o == nil || IsNil(o.Headers) { + return map[string]string{}, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetHeaders(v map[string]string) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetCookies() map[string]string { + if o == nil || IsNil(o.Cookies) { + var ret map[string]string + 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 *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetCookiesOk() (map[string]string, bool) { + if o == nil || IsNil(o.Cookies) { + return map[string]string{}, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetCookies(v map[string]string) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetQueryParameters() map[string]string { + if o == nil || IsNil(o.QueryParameters) { + var ret map[string]string + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetQueryParametersOk() (map[string]string, bool) { + if o == nil || IsNil(o.QueryParameters) { + return map[string]string{}, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetQueryParameters(v map[string]string) { + o.QueryParameters = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetBasic(v string) { + o.Basic = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetDigest(v string) { + o.Digest = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetRole(v string) { + o.Role = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetPassword(v string) { + o.Password = &v +} + +// GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetBody() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Body +} + +// GetBodyOk returns a tuple with the Body field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetBodyOk() (*interface{}, bool) { + if o == nil || IsNil(o.Body) { + return nil, false + } + return &o.Body, true +} + +// HasBody returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasBody() bool { + if o != nil && !IsNil(o.Body) { + return true + } + + return false +} + +// SetBody gets a reference to the given interface{} and assigns it to the Body field. +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetBody(v interface{}) { + o.Body = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["queryParameters"] = o.QueryParameters + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if o.Body != nil { + toSerialize["body"] = o.Body + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner := _GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner(varGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "queryParameters") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "basic") + delete(additionalProperties, "digest") + delete(additionalProperties, "role") + delete(additionalProperties, "password") + delete(additionalProperties, "body") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner(val *GetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationPresetsInnerOneOfUsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner.go new file mode 100644 index 00000000..64471961 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner.go @@ -0,0 +1,224 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInner{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInner struct for GetProfile200ResponseConfigurationAuthenticationProceduresInner +type GetProfile200ResponseConfigurationAuthenticationProceduresInner struct { + Name string `json:"name"` + Operations []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner `json:"operations"` + Injections GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections `json:"injections"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInner GetProfile200ResponseConfigurationAuthenticationProceduresInner + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInner instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInner(name string, operations []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner, injections GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) *GetProfile200ResponseConfigurationAuthenticationProceduresInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInner{} + this.Name = name + this.Operations = operations + this.Injections = injections + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInner{} + return &this +} + +// GetName returns the Name field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) SetName(v string) { + o.Name = v +} + +// GetOperations returns the Operations field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) GetOperations() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner + return ret + } + + return o.Operations +} + +// GetOperationsOk returns a tuple with the Operations field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) GetOperationsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner, bool) { + if o == nil { + return nil, false + } + return o.Operations, true +} + +// SetOperations sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) SetOperations(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) { + o.Operations = v +} + +// GetInjections returns the Injections field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) GetInjections() GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections + return ret + } + + return o.Injections +} + +// GetInjectionsOk returns a tuple with the Injections field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) GetInjectionsOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections, bool) { + if o == nil { + return nil, false + } + return &o.Injections, true +} + +// SetInjections sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) SetInjections(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) { + o.Injections = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["operations"] = o.Operations + toSerialize["injections"] = o.Injections + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "operations", + "injections", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInner := _GetProfile200ResponseConfigurationAuthenticationProceduresInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInner(varGetProfile200ResponseConfigurationAuthenticationProceduresInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "operations") + delete(additionalProperties, "injections") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInner(val *GetProfile200ResponseConfigurationAuthenticationProceduresInner) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections.go new file mode 100644 index 00000000..583c8d5e --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections.go @@ -0,0 +1,103 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections struct { + ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner *[]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 *[]GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + err = json.Unmarshal(data, &dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) + if err == nil { + jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, _ := json.Marshal(dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) + if string(jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) == "{}" { // empty struct + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner = nil + } else { + return nil // data stored in dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, return on the first match + } + } else { + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner = nil + } + + // try to unmarshal JSON data into ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 + err = json.Unmarshal(data, &dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) + if err == nil { + jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1, _ := json.Marshal(dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) + if string(jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) == "{}" { // empty struct + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 = nil + } else { + return nil // data stored in dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1, return on the first match + } + } else { + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) MarshalJSON() ([]byte, error) { + if src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner != nil { + return json.Marshal(&src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) + } + + if src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 != nil { + return json.Marshal(&src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjections) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections_any_of_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections_any_of_inner.go new file mode 100644 index 00000000..d5a28b25 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections_any_of_inner.go @@ -0,0 +1,261 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner struct { + Location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION `json:"location"` + Key string `json:"key"` + Prefix *string `json:"prefix,omitempty"` + Variable string `json:"variable"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner(location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION, key string, variable string) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{} + this.Location = location + this.Key = key + this.Variable = variable + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{} + return &this +} + +// GetLocation returns the Location field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetLocation() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetLocationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) SetLocation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION) { + o.Location = v +} + +// GetKey returns the Key field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) SetKey(v string) { + o.Key = v +} + +// GetPrefix returns the Prefix field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetPrefix() string { + if o == nil || IsNil(o.Prefix) { + var ret string + return ret + } + return *o.Prefix +} + +// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetPrefixOk() (*string, bool) { + if o == nil || IsNil(o.Prefix) { + return nil, false + } + return o.Prefix, true +} + +// HasPrefix returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) HasPrefix() bool { + if o != nil && !IsNil(o.Prefix) { + return true + } + + return false +} + +// SetPrefix gets a reference to the given string and assigns it to the Prefix field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) SetPrefix(v string) { + o.Prefix = &v +} + +// GetVariable returns the Variable field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetVariable() string { + if o == nil { + var ret string + return ret + } + + return o.Variable +} + +// GetVariableOk returns a tuple with the Variable field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetVariableOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Variable, true +} + +// SetVariable sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) SetVariable(v string) { + o.Variable = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["location"] = o.Location + toSerialize["key"] = o.Key + if !IsNil(o.Prefix) { + toSerialize["prefix"] = o.Prefix + } + toSerialize["variable"] = o.Variable + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "location", + "key", + "variable", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "location") + delete(additionalProperties, "key") + delete(additionalProperties, "prefix") + delete(additionalProperties, "variable") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections_any_of_inner_1.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections_any_of_inner_1.go new file mode 100644 index 00000000..3f741d35 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_injections_any_of_inner_1.go @@ -0,0 +1,253 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 struct { + Location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION `json:"location"` + Origin string `json:"origin"` + Key string `json:"key"` + Variable string `json:"variable"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1(location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION, origin string, key string, variable string) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{} + this.Location = location + this.Origin = origin + this.Key = key + this.Variable = variable + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1WithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{} + return &this +} + +// GetLocation returns the Location field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetLocation() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetLocationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) SetLocation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION) { + o.Location = v +} + +// GetOrigin returns the Origin field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetOrigin() string { + if o == nil { + var ret string + return ret + } + + return o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetOriginOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Origin, true +} + +// SetOrigin sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) SetOrigin(v string) { + o.Origin = v +} + +// GetKey returns the Key field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) SetKey(v string) { + o.Key = v +} + +// GetVariable returns the Variable field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetVariable() string { + if o == nil { + var ret string + return ret + } + + return o.Variable +} + +// GetVariableOk returns a tuple with the Variable field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetVariableOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Variable, true +} + +// SetVariable sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) SetVariable(v string) { + o.Variable = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["location"] = o.Location + toSerialize["origin"] = o.Origin + toSerialize["key"] = o.Key + toSerialize["variable"] = o.Variable + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "location", + "origin", + "key", + "variable", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "location") + delete(additionalProperties, "origin") + delete(additionalProperties, "key") + delete(additionalProperties, "variable") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner.go new file mode 100644 index 00000000..fc6db08f --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner.go @@ -0,0 +1,282 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner - struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner struct { + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 +} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfAsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf wrapped in GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner +func GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfAsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner(v *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner { + return GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner{ + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1AsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 wrapped in GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner +func GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1AsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner(v *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner { + return GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner{ + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2AsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 wrapped in GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner +func GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2AsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner(v *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner { + return GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner{ + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3AsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 wrapped in GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner +func GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3AsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner(v *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner { + return GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner{ + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4AsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 wrapped in GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner +func GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4AsGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner(v *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner { + return GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner{ + GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) + if string(jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) + if string(jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) + if string(jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) + if string(jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) + if string(jsonGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf = nil + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 = nil + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 = nil + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 = nil + dst.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) MarshalJSON() ([]byte, error) { + if src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) + } + + if src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) + } + + if src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) + } + + if src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) + } + + if src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) GetActualInstanceValue() interface{} { + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 + } + + // all schemas are nil + return nil +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of.go new file mode 100644 index 00000000..1ba85737 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of.go @@ -0,0 +1,224 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf struct { + Tech ENUMHTTP `json:"tech"` + Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters `json:"parameters"` + Extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf(tech ENUMHTTP, parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters, extractions []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{} + this.Tech = tech + this.Parameters = parameters + this.Extractions = extractions + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{} + return &this +} + +// GetTech returns the Tech field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetTech() ENUMHTTP { + if o == nil { + var ret ENUMHTTP + return ret + } + + return o.Tech +} + +// GetTechOk returns a tuple with the Tech field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetTechOk() (*ENUMHTTP, bool) { + if o == nil { + return nil, false + } + return &o.Tech, true +} + +// SetTech sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) SetTech(v ENUMHTTP) { + o.Tech = v +} + +// GetParameters returns the Parameters field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetParameters() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetParametersOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters, bool) { + if o == nil { + return nil, false + } + return &o.Parameters, true +} + +// SetParameters sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) SetParameters(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) { + o.Parameters = v +} + +// GetExtractions returns the Extractions field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetExtractions() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + return ret + } + + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetExtractionsOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { + if o == nil { + return nil, false + } + return o.Extractions, true +} + +// SetExtractions sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) SetExtractions(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { + o.Extractions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["tech"] = o.Tech + toSerialize["parameters"] = o.Parameters + toSerialize["extractions"] = o.Extractions + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "tech", + "parameters", + "extractions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "tech") + delete(additionalProperties, "parameters") + delete(additionalProperties, "extractions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1.go new file mode 100644 index 00000000..b0fe3f7c --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1.go @@ -0,0 +1,224 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 struct { + Tech ENUMOAUTHAUTHZCODEBROWSER `json:"tech"` + Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters `json:"parameters"` + Extractions GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1(tech ENUMOAUTHAUTHZCODEBROWSER, parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters, extractions GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{} + this.Tech = tech + this.Parameters = parameters + this.Extractions = extractions + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1WithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{} + return &this +} + +// GetTech returns the Tech field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetTech() ENUMOAUTHAUTHZCODEBROWSER { + if o == nil { + var ret ENUMOAUTHAUTHZCODEBROWSER + return ret + } + + return o.Tech +} + +// GetTechOk returns a tuple with the Tech field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetTechOk() (*ENUMOAUTHAUTHZCODEBROWSER, bool) { + if o == nil { + return nil, false + } + return &o.Tech, true +} + +// SetTech sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) SetTech(v ENUMOAUTHAUTHZCODEBROWSER) { + o.Tech = v +} + +// GetParameters returns the Parameters field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetParameters() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetParametersOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters, bool) { + if o == nil { + return nil, false + } + return &o.Parameters, true +} + +// SetParameters sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) SetParameters(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) { + o.Parameters = v +} + +// GetExtractions returns the Extractions field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetExtractions() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions + return ret + } + + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetExtractionsOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { + if o == nil { + return nil, false + } + return &o.Extractions, true +} + +// SetExtractions sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) SetExtractions(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { + o.Extractions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["tech"] = o.Tech + toSerialize["parameters"] = o.Parameters + toSerialize["extractions"] = o.Extractions + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "tech", + "parameters", + "extractions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "tech") + delete(additionalProperties, "parameters") + delete(additionalProperties, "extractions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions.go new file mode 100644 index 00000000..174d491f --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions.go @@ -0,0 +1,103 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions struct { + ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner *[]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner + ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner *[]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner + err = json.Unmarshal(data, &dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) + if err == nil { + jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, _ := json.Marshal(dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) + if string(jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) == "{}" { // empty struct + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner = nil + } else { + return nil // data stored in dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, return on the first match + } + } else { + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner = nil + } + + // try to unmarshal JSON data into ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + err = json.Unmarshal(data, &dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) + if err == nil { + jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, _ := json.Marshal(dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) + if string(jsonArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) == "{}" { // empty struct + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner = nil + } else { + return nil // data stored in dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, return on the first match + } + } else { + dst.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) MarshalJSON() ([]byte, error) { + if src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner != nil { + return json.Marshal(&src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) + } + + if src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner != nil { + return json.Marshal(&src.ArrayOfGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions_any_of_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions_any_of_inner.go new file mode 100644 index 00000000..e1256e77 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions_any_of_inner.go @@ -0,0 +1,327 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner struct { + Location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION `json:"location"` + Origin string `json:"origin"` + Key string `json:"key"` + Name string `json:"name"` + Regex *string `json:"regex,omitempty"` + Jq *string `json:"jq,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner(location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION, origin string, key string, name string) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{} + this.Location = location + this.Origin = origin + this.Key = key + this.Name = name + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{} + return &this +} + +// GetLocation returns the Location field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetLocation() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetLocationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetLocation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION) { + o.Location = v +} + +// GetOrigin returns the Origin field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetOrigin() string { + if o == nil { + var ret string + return ret + } + + return o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetOriginOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Origin, true +} + +// SetOrigin sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetOrigin(v string) { + o.Origin = v +} + +// GetKey returns the Key field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetName(v string) { + o.Name = v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetRegex() string { + if o == nil || IsNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetRegexOk() (*string, bool) { + if o == nil || IsNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) HasRegex() bool { + if o != nil && !IsNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetRegex(v string) { + o.Regex = &v +} + +// GetJq returns the Jq field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetJq() string { + if o == nil || IsNil(o.Jq) { + var ret string + return ret + } + return *o.Jq +} + +// GetJqOk returns a tuple with the Jq field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetJqOk() (*string, bool) { + if o == nil || IsNil(o.Jq) { + return nil, false + } + return o.Jq, true +} + +// HasJq returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) HasJq() bool { + if o != nil && !IsNil(o.Jq) { + return true + } + + return false +} + +// SetJq gets a reference to the given string and assigns it to the Jq field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetJq(v string) { + o.Jq = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["location"] = o.Location + toSerialize["origin"] = o.Origin + toSerialize["key"] = o.Key + toSerialize["name"] = o.Name + if !IsNil(o.Regex) { + toSerialize["regex"] = o.Regex + } + if !IsNil(o.Jq) { + toSerialize["jq"] = o.Jq + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "location", + "origin", + "key", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "location") + delete(additionalProperties, "origin") + delete(additionalProperties, "key") + delete(additionalProperties, "name") + delete(additionalProperties, "regex") + delete(additionalProperties, "jq") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_parameters.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_parameters.go similarity index 52% rename from pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_parameters.go rename to pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_parameters.go index f9d13c19..194c8965 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_parameters.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_1_parameters.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{} +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{} -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters struct { +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters struct { ProxyOverride *string `json:"proxy_override,omitempty"` LoginUrl string `json:"login_url"` AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` @@ -36,14 +36,14 @@ type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOne AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters object +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters(loginUrl string, authorizationUrl string, tokenUrl string, redirectUri string, clientId string, clientSecret string, usePkce bool, loginTimeout float32) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{} +func NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters(loginUrl string, authorizationUrl string, tokenUrl string, redirectUri string, clientId string, clientSecret string, usePkce bool, loginTimeout float32) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{} this.LoginUrl = loginUrl this.AuthorizationUrl = authorizationUrl this.TokenUrl = tokenUrl @@ -55,16 +55,16 @@ func NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner return &this } -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ParametersWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters object +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ParametersWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ParametersWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{} +func NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ParametersWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{} return &this } // GetProxyOverride returns the ProxyOverride field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetProxyOverride() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetProxyOverride() string { if o == nil || IsNil(o.ProxyOverride) { var ret string return ret @@ -74,7 +74,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetProxyOverrideOk returns a tuple with the ProxyOverride field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetProxyOverrideOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetProxyOverrideOk() (*string, bool) { if o == nil || IsNil(o.ProxyOverride) { return nil, false } @@ -82,7 +82,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasProxyOverride returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasProxyOverride() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasProxyOverride() bool { if o != nil && !IsNil(o.ProxyOverride) { return true } @@ -91,12 +91,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetProxyOverride gets a reference to the given string and assigns it to the ProxyOverride field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetProxyOverride(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetProxyOverride(v string) { o.ProxyOverride = &v } // GetLoginUrl returns the LoginUrl field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoginUrl() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoginUrl() string { if o == nil { var ret string return ret @@ -107,7 +107,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetLoginUrlOk returns a tuple with the LoginUrl field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoginUrlOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoginUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -115,12 +115,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetLoginUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetLoginUrl(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetLoginUrl(v string) { o.LoginUrl = v } // GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetAutoExtractionUrls() []string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetAutoExtractionUrls() []string { if o == nil || IsNil(o.AutoExtractionUrls) { var ret []string return ret @@ -130,7 +130,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetAutoExtractionUrlsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetAutoExtractionUrlsOk() ([]string, bool) { if o == nil || IsNil(o.AutoExtractionUrls) { return nil, false } @@ -138,7 +138,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasAutoExtractionUrls returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasAutoExtractionUrls() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasAutoExtractionUrls() bool { if o != nil && !IsNil(o.AutoExtractionUrls) { return true } @@ -147,12 +147,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetAutoExtractionUrls(v []string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetAutoExtractionUrls(v []string) { o.AutoExtractionUrls = v } // GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoggedInDetectorText() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoggedInDetectorText() string { if o == nil || IsNil(o.LoggedInDetectorText) { var ret string return ret @@ -162,7 +162,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoggedInDetectorTextOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoggedInDetectorTextOk() (*string, bool) { if o == nil || IsNil(o.LoggedInDetectorText) { return nil, false } @@ -170,7 +170,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasLoggedInDetectorText returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasLoggedInDetectorText() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasLoggedInDetectorText() bool { if o != nil && !IsNil(o.LoggedInDetectorText) { return true } @@ -179,12 +179,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetLoggedInDetectorText(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetLoggedInDetectorText(v string) { o.LoggedInDetectorText = &v } // GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoggedInDetectorTimeout() float32 { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoggedInDetectorTimeout() float32 { if o == nil || IsNil(o.LoggedInDetectorTimeout) { var ret float32 return ret @@ -194,7 +194,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoggedInDetectorTimeoutOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoggedInDetectorTimeoutOk() (*float32, bool) { if o == nil || IsNil(o.LoggedInDetectorTimeout) { return nil, false } @@ -202,7 +202,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasLoggedInDetectorTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasLoggedInDetectorTimeout() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasLoggedInDetectorTimeout() bool { if o != nil && !IsNil(o.LoggedInDetectorTimeout) { return true } @@ -211,12 +211,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetLoggedInDetectorTimeout(v float32) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetLoggedInDetectorTimeout(v float32) { o.LoggedInDetectorTimeout = &v } // GetStealthMode returns the StealthMode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetStealthMode() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetStealthMode() bool { if o == nil || IsNil(o.StealthMode) { var ret bool return ret @@ -226,7 +226,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetStealthModeOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetStealthModeOk() (*bool, bool) { if o == nil || IsNil(o.StealthMode) { return nil, false } @@ -234,7 +234,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasStealthMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasStealthMode() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) HasStealthMode() bool { if o != nil && !IsNil(o.StealthMode) { return true } @@ -243,12 +243,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetStealthMode(v bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetStealthMode(v bool) { o.StealthMode = &v } // GetAuthorizationUrl returns the AuthorizationUrl field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetAuthorizationUrl() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetAuthorizationUrl() string { if o == nil { var ret string return ret @@ -259,7 +259,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetAuthorizationUrlOk returns a tuple with the AuthorizationUrl field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetAuthorizationUrlOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetAuthorizationUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -267,12 +267,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetAuthorizationUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetAuthorizationUrl(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetAuthorizationUrl(v string) { o.AuthorizationUrl = v } // GetTokenUrl returns the TokenUrl field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetTokenUrl() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetTokenUrl() string { if o == nil { var ret string return ret @@ -283,7 +283,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetTokenUrlOk returns a tuple with the TokenUrl field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetTokenUrlOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetTokenUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -291,12 +291,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetTokenUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetTokenUrl(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetTokenUrl(v string) { o.TokenUrl = v } // GetRedirectUri returns the RedirectUri field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetRedirectUri() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetRedirectUri() string { if o == nil { var ret string return ret @@ -307,7 +307,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetRedirectUriOk returns a tuple with the RedirectUri field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetRedirectUriOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetRedirectUriOk() (*string, bool) { if o == nil { return nil, false } @@ -315,12 +315,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetRedirectUri sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetRedirectUri(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetRedirectUri(v string) { o.RedirectUri = v } // GetClientId returns the ClientId field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetClientId() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetClientId() string { if o == nil { var ret string return ret @@ -331,7 +331,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetClientIdOk returns a tuple with the ClientId field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetClientIdOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetClientIdOk() (*string, bool) { if o == nil { return nil, false } @@ -339,12 +339,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetClientId sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetClientId(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetClientId(v string) { o.ClientId = v } // GetClientSecret returns the ClientSecret field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetClientSecret() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetClientSecret() string { if o == nil { var ret string return ret @@ -355,7 +355,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetClientSecretOk returns a tuple with the ClientSecret field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetClientSecretOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetClientSecretOk() (*string, bool) { if o == nil { return nil, false } @@ -363,12 +363,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetClientSecret sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetClientSecret(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetClientSecret(v string) { o.ClientSecret = v } // GetUsePkce returns the UsePkce field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetUsePkce() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetUsePkce() bool { if o == nil { var ret bool return ret @@ -379,7 +379,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetUsePkceOk returns a tuple with the UsePkce field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetUsePkceOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetUsePkceOk() (*bool, bool) { if o == nil { return nil, false } @@ -387,12 +387,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetUsePkce sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetUsePkce(v bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetUsePkce(v bool) { o.UsePkce = v } // GetLoginTimeout returns the LoginTimeout field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoginTimeout() float32 { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoginTimeout() float32 { if o == nil { var ret float32 return ret @@ -403,7 +403,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetLoginTimeoutOk returns a tuple with the LoginTimeout field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoginTimeoutOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) GetLoginTimeoutOk() (*float32, bool) { if o == nil { return nil, false } @@ -411,11 +411,11 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetLoginTimeout sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetLoginTimeout(v float32) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) SetLoginTimeout(v float32) { o.LoginTimeout = v } -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -423,7 +423,7 @@ func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.ProxyOverride) { toSerialize["proxy_override"] = o.ProxyOverride @@ -456,7 +456,7 @@ func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner return toSerialize, nil } -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -485,15 +485,15 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } } - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{} + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) if err != nil { return err } - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) additionalProperties := make(map[string]interface{}) @@ -517,38 +517,38 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne return err } -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters isSet bool } -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { return v.value } -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) Unset() { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2.go new file mode 100644 index 00000000..9e6d051f --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2.go @@ -0,0 +1,224 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 struct { + Tech ENUMBROWSERAGENT `json:"tech"` + Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters `json:"parameters"` + Extractions GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2(tech ENUMBROWSERAGENT, parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters, extractions GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{} + this.Tech = tech + this.Parameters = parameters + this.Extractions = extractions + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2WithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{} + return &this +} + +// GetTech returns the Tech field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetTech() ENUMBROWSERAGENT { + if o == nil { + var ret ENUMBROWSERAGENT + return ret + } + + return o.Tech +} + +// GetTechOk returns a tuple with the Tech field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetTechOk() (*ENUMBROWSERAGENT, bool) { + if o == nil { + return nil, false + } + return &o.Tech, true +} + +// SetTech sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) SetTech(v ENUMBROWSERAGENT) { + o.Tech = v +} + +// GetParameters returns the Parameters field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetParameters() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetParametersOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters, bool) { + if o == nil { + return nil, false + } + return &o.Parameters, true +} + +// SetParameters sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) SetParameters(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) { + o.Parameters = v +} + +// GetExtractions returns the Extractions field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetExtractions() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions + return ret + } + + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetExtractionsOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { + if o == nil { + return nil, false + } + return &o.Extractions, true +} + +// SetExtractions sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) SetExtractions(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { + o.Extractions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["tech"] = o.Tech + toSerialize["parameters"] = o.Parameters + toSerialize["extractions"] = o.Extractions + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "tech", + "parameters", + "extractions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "tech") + delete(additionalProperties, "parameters") + delete(additionalProperties, "extractions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters.go new file mode 100644 index 00000000..77d0cea1 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters.go @@ -0,0 +1,388 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters struct { + ProxyOverride *string `json:"proxy_override,omitempty"` + LoginUrl string `json:"login_url"` + AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` + LoggedInDetectorText *string `json:"logged_in_detector_text,omitempty"` + LoggedInDetectorTimeout *float32 `json:"logged_in_detector_timeout,omitempty"` + StealthMode *bool `json:"stealth_mode,omitempty"` + Agentic *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic `json:"agentic,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters(loginUrl string) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{} + this.LoginUrl = loginUrl + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{} + return &this +} + +// GetProxyOverride returns the ProxyOverride field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetProxyOverride() string { + if o == nil || IsNil(o.ProxyOverride) { + var ret string + return ret + } + return *o.ProxyOverride +} + +// GetProxyOverrideOk returns a tuple with the ProxyOverride field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetProxyOverrideOk() (*string, bool) { + if o == nil || IsNil(o.ProxyOverride) { + return nil, false + } + return o.ProxyOverride, true +} + +// HasProxyOverride returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasProxyOverride() bool { + if o != nil && !IsNil(o.ProxyOverride) { + return true + } + + return false +} + +// SetProxyOverride gets a reference to the given string and assigns it to the ProxyOverride field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetProxyOverride(v string) { + o.ProxyOverride = &v +} + +// GetLoginUrl returns the LoginUrl field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoginUrl() string { + if o == nil { + var ret string + return ret + } + + return o.LoginUrl +} + +// GetLoginUrlOk returns a tuple with the LoginUrl field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoginUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LoginUrl, true +} + +// SetLoginUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetLoginUrl(v string) { + o.LoginUrl = v +} + +// GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetAutoExtractionUrls() []string { + if o == nil || IsNil(o.AutoExtractionUrls) { + var ret []string + return ret + } + return o.AutoExtractionUrls +} + +// GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetAutoExtractionUrlsOk() ([]string, bool) { + if o == nil || IsNil(o.AutoExtractionUrls) { + return nil, false + } + return o.AutoExtractionUrls, true +} + +// HasAutoExtractionUrls returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasAutoExtractionUrls() bool { + if o != nil && !IsNil(o.AutoExtractionUrls) { + return true + } + + return false +} + +// SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetAutoExtractionUrls(v []string) { + o.AutoExtractionUrls = v +} + +// GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoggedInDetectorText() string { + if o == nil || IsNil(o.LoggedInDetectorText) { + var ret string + return ret + } + return *o.LoggedInDetectorText +} + +// GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoggedInDetectorTextOk() (*string, bool) { + if o == nil || IsNil(o.LoggedInDetectorText) { + return nil, false + } + return o.LoggedInDetectorText, true +} + +// HasLoggedInDetectorText returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasLoggedInDetectorText() bool { + if o != nil && !IsNil(o.LoggedInDetectorText) { + return true + } + + return false +} + +// SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetLoggedInDetectorText(v string) { + o.LoggedInDetectorText = &v +} + +// GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoggedInDetectorTimeout() float32 { + if o == nil || IsNil(o.LoggedInDetectorTimeout) { + var ret float32 + return ret + } + return *o.LoggedInDetectorTimeout +} + +// GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoggedInDetectorTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.LoggedInDetectorTimeout) { + return nil, false + } + return o.LoggedInDetectorTimeout, true +} + +// HasLoggedInDetectorTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasLoggedInDetectorTimeout() bool { + if o != nil && !IsNil(o.LoggedInDetectorTimeout) { + return true + } + + return false +} + +// SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetLoggedInDetectorTimeout(v float32) { + o.LoggedInDetectorTimeout = &v +} + +// GetStealthMode returns the StealthMode field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetStealthMode() bool { + if o == nil || IsNil(o.StealthMode) { + var ret bool + return ret + } + return *o.StealthMode +} + +// GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetStealthModeOk() (*bool, bool) { + if o == nil || IsNil(o.StealthMode) { + return nil, false + } + return o.StealthMode, true +} + +// HasStealthMode returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasStealthMode() bool { + if o != nil && !IsNil(o.StealthMode) { + return true + } + + return false +} + +// SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetStealthMode(v bool) { + o.StealthMode = &v +} + +// GetAgentic returns the Agentic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetAgentic() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic { + if o == nil || IsNil(o.Agentic) { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic + return ret + } + return *o.Agentic +} + +// GetAgenticOk returns a tuple with the Agentic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetAgenticOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic, bool) { + if o == nil || IsNil(o.Agentic) { + return nil, false + } + return o.Agentic, true +} + +// HasAgentic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasAgentic() bool { + if o != nil && !IsNil(o.Agentic) { + return true + } + + return false +} + +// SetAgentic gets a reference to the given GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic and assigns it to the Agentic field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetAgentic(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) { + o.Agentic = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProxyOverride) { + toSerialize["proxy_override"] = o.ProxyOverride + } + toSerialize["login_url"] = o.LoginUrl + if !IsNil(o.AutoExtractionUrls) { + toSerialize["auto_extraction_urls"] = o.AutoExtractionUrls + } + if !IsNil(o.LoggedInDetectorText) { + toSerialize["logged_in_detector_text"] = o.LoggedInDetectorText + } + if !IsNil(o.LoggedInDetectorTimeout) { + toSerialize["logged_in_detector_timeout"] = o.LoggedInDetectorTimeout + } + if !IsNil(o.StealthMode) { + toSerialize["stealth_mode"] = o.StealthMode + } + if !IsNil(o.Agentic) { + toSerialize["agentic"] = o.Agentic + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "login_url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "proxy_override") + delete(additionalProperties, "login_url") + delete(additionalProperties, "auto_extraction_urls") + delete(additionalProperties, "logged_in_detector_text") + delete(additionalProperties, "logged_in_detector_timeout") + delete(additionalProperties, "stealth_mode") + delete(additionalProperties, "agentic") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters_agentic.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters_agentic.go new file mode 100644 index 00000000..01efa978 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters_agentic.go @@ -0,0 +1,203 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic struct { + Enabled bool `json:"enabled"` + Instructions *string `json:"instructions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic(enabled bool) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic{} + this.Enabled = enabled + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgenticWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgenticWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic{} + return &this +} + +// GetEnabled returns the Enabled field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) SetEnabled(v bool) { + o.Enabled = v +} + +// GetInstructions returns the Instructions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) GetInstructions() string { + if o == nil || IsNil(o.Instructions) { + var ret string + return ret + } + return *o.Instructions +} + +// GetInstructionsOk returns a tuple with the Instructions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) GetInstructionsOk() (*string, bool) { + if o == nil || IsNil(o.Instructions) { + return nil, false + } + return o.Instructions, true +} + +// HasInstructions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) HasInstructions() bool { + if o != nil && !IsNil(o.Instructions) { + return true + } + + return false +} + +// SetInstructions gets a reference to the given string and assigns it to the Instructions field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) SetInstructions(v string) { + o.Instructions = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["enabled"] = o.Enabled + if !IsNil(o.Instructions) { + toSerialize["instructions"] = o.Instructions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "enabled", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enabled") + delete(additionalProperties, "instructions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersAgentic) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_3.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_3.go new file mode 100644 index 00000000..4f52178f --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_3.go @@ -0,0 +1,224 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 struct { + Tech ENUMBROWSERACTIONS `json:"tech"` + Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters `json:"parameters"` + Extractions GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3(tech ENUMBROWSERACTIONS, parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters, extractions GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{} + this.Tech = tech + this.Parameters = parameters + this.Extractions = extractions + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3WithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{} + return &this +} + +// GetTech returns the Tech field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetTech() ENUMBROWSERACTIONS { + if o == nil { + var ret ENUMBROWSERACTIONS + return ret + } + + return o.Tech +} + +// GetTechOk returns a tuple with the Tech field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetTechOk() (*ENUMBROWSERACTIONS, bool) { + if o == nil { + return nil, false + } + return &o.Tech, true +} + +// SetTech sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) SetTech(v ENUMBROWSERACTIONS) { + o.Tech = v +} + +// GetParameters returns the Parameters field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetParameters() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetParametersOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters, bool) { + if o == nil { + return nil, false + } + return &o.Parameters, true +} + +// SetParameters sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) SetParameters(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) { + o.Parameters = v +} + +// GetExtractions returns the Extractions field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetExtractions() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions + return ret + } + + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetExtractionsOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { + if o == nil { + return nil, false + } + return &o.Extractions, true +} + +// SetExtractions sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) SetExtractions(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { + o.Extractions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["tech"] = o.Tech + toSerialize["parameters"] = o.Parameters + toSerialize["extractions"] = o.Extractions + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "tech", + "parameters", + "extractions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "tech") + delete(additionalProperties, "parameters") + delete(additionalProperties, "extractions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_3_parameters.go similarity index 50% rename from pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters.go rename to pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_3_parameters.go index 0c3b7fa0..daa8c911 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_2_parameters.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_3_parameters.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{} +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters{} -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters struct { +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters struct { ProxyOverride *string `json:"proxy_override,omitempty"` LoginUrl string `json:"login_url"` AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` @@ -29,28 +29,28 @@ type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOne AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters object +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters(loginUrl string) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{} +func NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters(loginUrl string) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters{} this.LoginUrl = loginUrl return &this } -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters object +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3ParametersWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2ParametersWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{} +func NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3ParametersWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters{} return &this } // GetProxyOverride returns the ProxyOverride field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetProxyOverride() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetProxyOverride() string { if o == nil || IsNil(o.ProxyOverride) { var ret string return ret @@ -60,7 +60,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetProxyOverrideOk returns a tuple with the ProxyOverride field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetProxyOverrideOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetProxyOverrideOk() (*string, bool) { if o == nil || IsNil(o.ProxyOverride) { return nil, false } @@ -68,7 +68,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasProxyOverride returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasProxyOverride() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) HasProxyOverride() bool { if o != nil && !IsNil(o.ProxyOverride) { return true } @@ -77,12 +77,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetProxyOverride gets a reference to the given string and assigns it to the ProxyOverride field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetProxyOverride(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) SetProxyOverride(v string) { o.ProxyOverride = &v } // GetLoginUrl returns the LoginUrl field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoginUrl() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetLoginUrl() string { if o == nil { var ret string return ret @@ -93,7 +93,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetLoginUrlOk returns a tuple with the LoginUrl field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoginUrlOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetLoginUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -101,12 +101,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetLoginUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetLoginUrl(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) SetLoginUrl(v string) { o.LoginUrl = v } // GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetAutoExtractionUrls() []string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetAutoExtractionUrls() []string { if o == nil || IsNil(o.AutoExtractionUrls) { var ret []string return ret @@ -116,7 +116,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetAutoExtractionUrlsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetAutoExtractionUrlsOk() ([]string, bool) { if o == nil || IsNil(o.AutoExtractionUrls) { return nil, false } @@ -124,7 +124,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasAutoExtractionUrls returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasAutoExtractionUrls() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) HasAutoExtractionUrls() bool { if o != nil && !IsNil(o.AutoExtractionUrls) { return true } @@ -133,12 +133,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetAutoExtractionUrls(v []string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) SetAutoExtractionUrls(v []string) { o.AutoExtractionUrls = v } // GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoggedInDetectorText() string { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetLoggedInDetectorText() string { if o == nil || IsNil(o.LoggedInDetectorText) { var ret string return ret @@ -148,7 +148,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoggedInDetectorTextOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetLoggedInDetectorTextOk() (*string, bool) { if o == nil || IsNil(o.LoggedInDetectorText) { return nil, false } @@ -156,7 +156,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasLoggedInDetectorText returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasLoggedInDetectorText() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) HasLoggedInDetectorText() bool { if o != nil && !IsNil(o.LoggedInDetectorText) { return true } @@ -165,12 +165,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetLoggedInDetectorText(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) SetLoggedInDetectorText(v string) { o.LoggedInDetectorText = &v } // GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoggedInDetectorTimeout() float32 { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetLoggedInDetectorTimeout() float32 { if o == nil || IsNil(o.LoggedInDetectorTimeout) { var ret float32 return ret @@ -180,7 +180,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetLoggedInDetectorTimeoutOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetLoggedInDetectorTimeoutOk() (*float32, bool) { if o == nil || IsNil(o.LoggedInDetectorTimeout) { return nil, false } @@ -188,7 +188,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasLoggedInDetectorTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasLoggedInDetectorTimeout() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) HasLoggedInDetectorTimeout() bool { if o != nil && !IsNil(o.LoggedInDetectorTimeout) { return true } @@ -197,12 +197,12 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetLoggedInDetectorTimeout(v float32) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) SetLoggedInDetectorTimeout(v float32) { o.LoggedInDetectorTimeout = &v } // GetStealthMode returns the StealthMode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetStealthMode() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetStealthMode() bool { if o == nil || IsNil(o.StealthMode) { var ret bool return ret @@ -212,7 +212,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne // GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) GetStealthModeOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) GetStealthModeOk() (*bool, bool) { if o == nil || IsNil(o.StealthMode) { return nil, false } @@ -220,7 +220,7 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // HasStealthMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) HasStealthMode() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) HasStealthMode() bool { if o != nil && !IsNil(o.StealthMode) { return true } @@ -229,11 +229,11 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } // SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) SetStealthMode(v bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) SetStealthMode(v bool) { o.StealthMode = &v } -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -241,7 +241,7 @@ func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.ProxyOverride) { toSerialize["proxy_override"] = o.ProxyOverride @@ -267,7 +267,7 @@ func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner return toSerialize, nil } -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -289,15 +289,15 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne } } - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{} + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) if err != nil { return err } - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) additionalProperties := make(map[string]interface{}) @@ -314,38 +314,38 @@ func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInne return err } -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters isSet bool } -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters { return v.value } -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) Unset() { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3Parameters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_4.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_4.go new file mode 100644 index 00000000..8c113277 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_4.go @@ -0,0 +1,224 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 struct { + Tech ENUMCUSTOMBPCE `json:"tech"` + Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters `json:"parameters"` + Extractions GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4(tech ENUMCUSTOMBPCE, parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters, extractions GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{} + this.Tech = tech + this.Parameters = parameters + this.Extractions = extractions + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4WithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{} + return &this +} + +// GetTech returns the Tech field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetTech() ENUMCUSTOMBPCE { + if o == nil { + var ret ENUMCUSTOMBPCE + return ret + } + + return o.Tech +} + +// GetTechOk returns a tuple with the Tech field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetTechOk() (*ENUMCUSTOMBPCE, bool) { + if o == nil { + return nil, false + } + return &o.Tech, true +} + +// SetTech sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) SetTech(v ENUMCUSTOMBPCE) { + o.Tech = v +} + +// GetParameters returns the Parameters field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetParameters() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetParametersOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters, bool) { + if o == nil { + return nil, false + } + return &o.Parameters, true +} + +// SetParameters sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) SetParameters(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) { + o.Parameters = v +} + +// GetExtractions returns the Extractions field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetExtractions() GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { + if o == nil { + var ret GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions + return ret + } + + return o.Extractions +} + +// GetExtractionsOk returns a tuple with the Extractions field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetExtractionsOk() (*GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { + if o == nil { + return nil, false + } + return &o.Extractions, true +} + +// SetExtractions sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) SetExtractions(v GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { + o.Extractions = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["tech"] = o.Tech + toSerialize["parameters"] = o.Parameters + toSerialize["extractions"] = o.Extractions + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "tech", + "parameters", + "extractions", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "tech") + delete(additionalProperties, "parameters") + delete(additionalProperties, "extractions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_4_parameters.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_4_parameters.go new file mode 100644 index 00000000..02f107dd --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_4_parameters.go @@ -0,0 +1,203 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters struct { + ProxyOverride *string `json:"proxy_override,omitempty"` + Environment ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT `json:"environment"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters(environment ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{} + this.Environment = environment + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4ParametersWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4ParametersWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{} + return &this +} + +// GetProxyOverride returns the ProxyOverride field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetProxyOverride() string { + if o == nil || IsNil(o.ProxyOverride) { + var ret string + return ret + } + return *o.ProxyOverride +} + +// GetProxyOverrideOk returns a tuple with the ProxyOverride field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetProxyOverrideOk() (*string, bool) { + if o == nil || IsNil(o.ProxyOverride) { + return nil, false + } + return o.ProxyOverride, true +} + +// HasProxyOverride returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) HasProxyOverride() bool { + if o != nil && !IsNil(o.ProxyOverride) { + return true + } + + return false +} + +// SetProxyOverride gets a reference to the given string and assigns it to the ProxyOverride field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetProxyOverride(v string) { + o.ProxyOverride = &v +} + +// GetEnvironment returns the Environment field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetEnvironment() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetEnvironmentOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetEnvironment(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS4PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) { + o.Environment = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProxyOverride) { + toSerialize["proxy_override"] = o.ProxyOverride + } + toSerialize["environment"] = o.Environment + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "environment", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "proxy_override") + delete(additionalProperties, "environment") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_extractions_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_extractions_inner.go new file mode 100644 index 00000000..5e126ac5 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_extractions_inner.go @@ -0,0 +1,261 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner struct { + Location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION `json:"location"` + Key string `json:"key"` + Regex *string `json:"regex,omitempty"` + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner(location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION, key string, name string) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{} + this.Location = location + this.Key = key + this.Name = name + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{} + return &this +} + +// GetLocation returns the Location field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetLocation() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetLocationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) SetLocation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION) { + o.Location = v +} + +// GetKey returns the Key field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) SetKey(v string) { + o.Key = v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetRegex() string { + if o == nil || IsNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetRegexOk() (*string, bool) { + if o == nil || IsNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) HasRegex() bool { + if o != nil && !IsNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) SetRegex(v string) { + o.Regex = &v +} + +// GetName returns the Name field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) SetName(v string) { + o.Name = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["location"] = o.Location + toSerialize["key"] = o.Key + if !IsNil(o.Regex) { + toSerialize["regex"] = o.Regex + } + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "location", + "key", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "location") + delete(additionalProperties, "key") + delete(additionalProperties, "regex") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters.go new file mode 100644 index 00000000..465c4251 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters.go @@ -0,0 +1,468 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters struct { + ProxyOverride *string `json:"proxy_override,omitempty"` + Url string `json:"url"` + Method ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD `json:"method"` + Headers []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner `json:"headers"` + Cookies []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner `json:"cookies"` + QueryParameters []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner `json:"queryParameters"` + Body interface{} `json:"body,omitempty"` + Timeout *float32 `json:"timeout,omitempty"` + Insecure *bool `json:"insecure,omitempty"` + FollowRedirects *float32 `json:"follow_redirects,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters(url string, method ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, headers []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, cookies []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner, queryParameters []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{} + this.Url = url + this.Method = method + this.Headers = headers + this.Cookies = cookies + this.QueryParameters = queryParameters + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{} + return &this +} + +// GetProxyOverride returns the ProxyOverride field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetProxyOverride() string { + if o == nil || IsNil(o.ProxyOverride) { + var ret string + return ret + } + return *o.ProxyOverride +} + +// GetProxyOverrideOk returns a tuple with the ProxyOverride field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetProxyOverrideOk() (*string, bool) { + if o == nil || IsNil(o.ProxyOverride) { + return nil, false + } + return o.ProxyOverride, true +} + +// HasProxyOverride returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasProxyOverride() bool { + if o != nil && !IsNil(o.ProxyOverride) { + return true + } + + return false +} + +// SetProxyOverride gets a reference to the given string and assigns it to the ProxyOverride field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetProxyOverride(v string) { + o.ProxyOverride = &v +} + +// GetUrl returns the Url field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetUrl(v string) { + o.Url = v +} + +// GetMethod returns the Method field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD { + if o == nil { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD + return ret + } + + return o.Method +} + +// GetMethodOk returns a tuple with the Method field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD, bool) { + if o == nil { + return nil, false + } + return &o.Method, true +} + +// SetMethod sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESMETHOD) { + o.Method = v +} + +// GetHeaders returns the Headers field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetHeaders() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner + return ret + } + + return o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetHeadersOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, bool) { + if o == nil { + return nil, false + } + return o.Headers, true +} + +// SetHeaders sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetHeaders(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { + o.Headers = v +} + +// GetCookies returns the Cookies field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetCookies() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner + return ret + } + + return o.Cookies +} + +// GetCookiesOk returns a tuple with the Cookies field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetCookiesOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner, bool) { + if o == nil { + return nil, false + } + return o.Cookies, true +} + +// SetCookies sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetCookies(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetQueryParameters() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { + if o == nil { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner + return ret + } + + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetQueryParametersOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, bool) { + if o == nil { + return nil, false + } + return o.QueryParameters, true +} + +// SetQueryParameters sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetQueryParameters(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { + o.QueryParameters = v +} + +// GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetBody() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Body +} + +// GetBodyOk returns a tuple with the Body field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetBodyOk() (*interface{}, bool) { + if o == nil || IsNil(o.Body) { + return nil, false + } + return &o.Body, true +} + +// HasBody returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasBody() bool { + if o != nil && !IsNil(o.Body) { + return true + } + + return false +} + +// SetBody gets a reference to the given interface{} and assigns it to the Body field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetBody(v interface{}) { + o.Body = v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetTimeout() float32 { + if o == nil || IsNil(o.Timeout) { + var ret float32 + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.Timeout) { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasTimeout() bool { + if o != nil && !IsNil(o.Timeout) { + return true + } + + return false +} + +// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetTimeout(v float32) { + o.Timeout = &v +} + +// GetInsecure returns the Insecure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetInsecure() bool { + if o == nil || IsNil(o.Insecure) { + var ret bool + return ret + } + return *o.Insecure +} + +// GetInsecureOk returns a tuple with the Insecure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetInsecureOk() (*bool, bool) { + if o == nil || IsNil(o.Insecure) { + return nil, false + } + return o.Insecure, true +} + +// HasInsecure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasInsecure() bool { + if o != nil && !IsNil(o.Insecure) { + return true + } + + return false +} + +// SetInsecure gets a reference to the given bool and assigns it to the Insecure field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetInsecure(v bool) { + o.Insecure = &v +} + +// GetFollowRedirects returns the FollowRedirects field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetFollowRedirects() float32 { + if o == nil || IsNil(o.FollowRedirects) { + var ret float32 + return ret + } + return *o.FollowRedirects +} + +// GetFollowRedirectsOk returns a tuple with the FollowRedirects field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetFollowRedirectsOk() (*float32, bool) { + if o == nil || IsNil(o.FollowRedirects) { + return nil, false + } + return o.FollowRedirects, true +} + +// HasFollowRedirects returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasFollowRedirects() bool { + if o != nil && !IsNil(o.FollowRedirects) { + return true + } + + return false +} + +// SetFollowRedirects gets a reference to the given float32 and assigns it to the FollowRedirects field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetFollowRedirects(v float32) { + o.FollowRedirects = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProxyOverride) { + toSerialize["proxy_override"] = o.ProxyOverride + } + toSerialize["url"] = o.Url + toSerialize["method"] = o.Method + toSerialize["headers"] = o.Headers + toSerialize["cookies"] = o.Cookies + toSerialize["queryParameters"] = o.QueryParameters + if o.Body != nil { + toSerialize["body"] = o.Body + } + if !IsNil(o.Timeout) { + toSerialize["timeout"] = o.Timeout + } + if !IsNil(o.Insecure) { + toSerialize["insecure"] = o.Insecure + } + if !IsNil(o.FollowRedirects) { + toSerialize["follow_redirects"] = o.FollowRedirects + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + "method", + "headers", + "cookies", + "queryParameters", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "proxy_override") + delete(additionalProperties, "url") + delete(additionalProperties, "method") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "queryParameters") + delete(additionalProperties, "body") + delete(additionalProperties, "timeout") + delete(additionalProperties, "insecure") + delete(additionalProperties, "follow_redirects") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_cookies_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_cookies_inner.go new file mode 100644 index 00000000..565db1b6 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_cookies_inner.go @@ -0,0 +1,380 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner struct { + Name string `json:"name"` + Domain *string `json:"domain,omitempty"` + Path *string `json:"path,omitempty"` + HttpOnly *bool `json:"http_only,omitempty"` + Secure *bool `json:"secure,omitempty"` + SameSite *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE `json:"same_site,omitempty"` + Values []string `json:"values"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner(name string, values []string) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{} + this.Name = name + this.Values = values + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{} + return &this +} + +// GetName returns the Name field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetName(v string) { + o.Name = v +} + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetDomain() string { + if o == nil || IsNil(o.Domain) { + 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetDomain(v string) { + o.Domain = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetPath() string { + if o == nil || IsNil(o.Path) { + 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetPath(v string) { + o.Path = &v +} + +// GetHttpOnly returns the HttpOnly field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetHttpOnly() bool { + if o == nil || IsNil(o.HttpOnly) { + 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetHttpOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.HttpOnly) { + return nil, false + } + return o.HttpOnly, true +} + +// HasHttpOnly returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasHttpOnly() bool { + if o != nil && !IsNil(o.HttpOnly) { + return true + } + + return false +} + +// SetHttpOnly gets a reference to the given bool and assigns it to the HttpOnly field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetHttpOnly(v bool) { + o.HttpOnly = &v +} + +// GetSecure returns the Secure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetSecure() bool { + if o == nil || IsNil(o.Secure) { + 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetSecureOk() (*bool, bool) { + if o == nil || IsNil(o.Secure) { + return nil, false + } + return o.Secure, true +} + +// HasSecure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasSecure() bool { + if o != nil && !IsNil(o.Secure) { + return true + } + + return false +} + +// SetSecure gets a reference to the given bool and assigns it to the Secure field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetSecure(v bool) { + o.Secure = &v +} + +// GetSameSite returns the SameSite field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetSameSite() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE { + if o == nil || IsNil(o.SameSite) { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE + return ret + } + return *o.SameSite +} + +// GetSameSiteOk returns a tuple with the SameSite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetSameSiteOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE, bool) { + if o == nil || IsNil(o.SameSite) { + return nil, false + } + return o.SameSite, true +} + +// HasSameSite returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasSameSite() bool { + if o != nil && !IsNil(o.SameSite) { + return true + } + + return false +} + +// SetSameSite gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE and assigns it to the SameSite field. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetSameSite(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE) { + o.SameSite = &v +} + +// GetValues returns the Values field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetValues() []string { + if o == nil { + var ret []string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetValuesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Values, true +} + +// SetValues sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetValues(v []string) { + o.Values = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } + if !IsNil(o.Path) { + toSerialize["path"] = o.Path + } + if !IsNil(o.HttpOnly) { + toSerialize["http_only"] = o.HttpOnly + } + if !IsNil(o.Secure) { + toSerialize["secure"] = o.Secure + } + if !IsNil(o.SameSite) { + toSerialize["same_site"] = o.SameSite + } + toSerialize["values"] = o.Values + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "values", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "domain") + delete(additionalProperties, "path") + delete(additionalProperties, "http_only") + delete(additionalProperties, "secure") + delete(additionalProperties, "same_site") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_headers_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_headers_inner.go new file mode 100644 index 00000000..14a26f79 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_headers_inner.go @@ -0,0 +1,195 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{} + +// GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner struct for GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner +type GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner struct { + Name string `json:"name"` + Values []string `json:"values"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner(name string, values []string) *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{} + this.Name = name + this.Values = values + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner 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 NewGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { + this := GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{} + return &this +} + +// GetName returns the Name field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) 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 *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) SetName(v string) { + o.Name = v +} + +// GetValues returns the Values field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) GetValues() []string { + if o == nil { + var ret []string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) GetValuesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Values, true +} + +// SetValues sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) SetValues(v []string) { + o.Values = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["values"] = o.Values + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "values", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner := _GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner(varGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) Get() *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner(val *GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner.go new file mode 100644 index 00000000..1bf9a5f5 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner.go @@ -0,0 +1,388 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInner{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInner struct for GetProfile200ResponseConfigurationAuthenticationUsersInner +type GetProfile200ResponseConfigurationAuthenticationUsersInner struct { + Name string `json:"name"` + Role *string `json:"role,omitempty"` + Credentials *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials `json:"credentials,omitempty"` + Procedure *string `json:"procedure,omitempty"` + Variables []GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner `json:"variables,omitempty"` + MainUser *bool `json:"main_user,omitempty"` + AllowFailure *bool `json:"allow_failure,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInner GetProfile200ResponseConfigurationAuthenticationUsersInner + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInner instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInner(name string) *GetProfile200ResponseConfigurationAuthenticationUsersInner { + this := GetProfile200ResponseConfigurationAuthenticationUsersInner{} + this.Name = name + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInner 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInner { + this := GetProfile200ResponseConfigurationAuthenticationUsersInner{} + return &this +} + +// GetName returns the Name field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) 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 *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) SetName(v string) { + o.Name = v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) SetRole(v string) { + o.Role = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetCredentials() GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials { + if o == nil || IsNil(o.Credentials) { + var ret GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials + return ret + } + return *o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetCredentialsOk() (*GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials and assigns it to the Credentials field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) SetCredentials(v GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) { + o.Credentials = &v +} + +// GetProcedure returns the Procedure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetProcedure() string { + if o == nil || IsNil(o.Procedure) { + var ret string + return ret + } + return *o.Procedure +} + +// GetProcedureOk returns a tuple with the Procedure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetProcedureOk() (*string, bool) { + if o == nil || IsNil(o.Procedure) { + return nil, false + } + return o.Procedure, true +} + +// HasProcedure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) HasProcedure() bool { + if o != nil && !IsNil(o.Procedure) { + return true + } + + return false +} + +// SetProcedure gets a reference to the given string and assigns it to the Procedure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) SetProcedure(v string) { + o.Procedure = &v +} + +// GetVariables returns the Variables field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetVariables() []GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner { + if o == nil || IsNil(o.Variables) { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner + return ret + } + return o.Variables +} + +// GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetVariablesOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner, bool) { + if o == nil || IsNil(o.Variables) { + return nil, false + } + return o.Variables, true +} + +// HasVariables returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) HasVariables() bool { + if o != nil && !IsNil(o.Variables) { + return true + } + + return false +} + +// SetVariables gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner and assigns it to the Variables field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) SetVariables(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) { + o.Variables = v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetMainUser() bool { + if o == nil || IsNil(o.MainUser) { + var ret bool + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetMainUserOk() (*bool, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) SetMainUser(v bool) { + o.MainUser = &v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.Procedure) { + toSerialize["procedure"] = o.Procedure + } + if !IsNil(o.Variables) { + toSerialize["variables"] = o.Variables + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInner := _GetProfile200ResponseConfigurationAuthenticationUsersInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInner(varGetProfile200ResponseConfigurationAuthenticationUsersInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "role") + delete(additionalProperties, "credentials") + delete(additionalProperties, "procedure") + delete(additionalProperties, "variables") + delete(additionalProperties, "main_user") + delete(additionalProperties, "allow_failure") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInner struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInner) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInner) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInner(val *GetProfile200ResponseConfigurationAuthenticationUsersInner) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials.go new file mode 100644 index 00000000..64c751cd --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials.go @@ -0,0 +1,598 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials struct { + Username *string `json:"username,omitempty"` + Password *string `json:"password,omitempty"` + Headers []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner `json:"headers,omitempty"` + Cookies []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner `json:"cookies,omitempty"` + QueryParameters []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner `json:"query_parameters,omitempty"` + Body interface{} `json:"body,omitempty"` + LocalStorage map[string]map[string]string `json:"local_storage,omitempty"` + SessionStorage map[string]map[string]string `json:"session_storage,omitempty"` + Actions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"actions,omitempty"` + PreLoginActions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"pre_login_actions,omitempty"` + PostLoginActions []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"post_login_actions,omitempty"` + Digest *string `json:"digest,omitempty"` + Basic *string `json:"basic,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials{} + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsWithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials{} + return &this +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetUsername(v string) { + o.Username = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetPassword(v string) { + o.Password = &v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetHeaders() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { + if o == nil || IsNil(o.Headers) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner + 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 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetHeadersOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, bool) { + if o == nil || IsNil(o.Headers) { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner and assigns it to the Headers field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetHeaders(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { + o.Headers = v +} + +// GetCookies returns the Cookies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetCookies() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { + if o == nil || IsNil(o.Cookies) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner + 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 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetCookiesOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner, bool) { + if o == nil || IsNil(o.Cookies) { + return nil, false + } + return o.Cookies, true +} + +// HasCookies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasCookies() bool { + if o != nil && !IsNil(o.Cookies) { + return true + } + + return false +} + +// SetCookies gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner and assigns it to the Cookies field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetCookies(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) { + o.Cookies = v +} + +// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetQueryParameters() []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { + if o == nil || IsNil(o.QueryParameters) { + var ret []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner + return ret + } + return o.QueryParameters +} + +// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetQueryParametersOk() ([]GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, bool) { + if o == nil || IsNil(o.QueryParameters) { + return nil, false + } + return o.QueryParameters, true +} + +// HasQueryParameters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasQueryParameters() bool { + if o != nil && !IsNil(o.QueryParameters) { + return true + } + + return false +} + +// SetQueryParameters gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner and assigns it to the QueryParameters field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetQueryParameters(v []GetProfile200ResponseConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { + o.QueryParameters = v +} + +// GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetBody() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Body +} + +// GetBodyOk returns a tuple with the Body field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetBodyOk() (*interface{}, bool) { + if o == nil || IsNil(o.Body) { + return nil, false + } + return &o.Body, true +} + +// HasBody returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasBody() bool { + if o != nil && !IsNil(o.Body) { + return true + } + + return false +} + +// SetBody gets a reference to the given interface{} and assigns it to the Body field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetBody(v interface{}) { + o.Body = v +} + +// GetLocalStorage returns the LocalStorage field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetLocalStorage() map[string]map[string]string { + if o == nil || IsNil(o.LocalStorage) { + var ret map[string]map[string]string + return ret + } + return o.LocalStorage +} + +// GetLocalStorageOk returns a tuple with the LocalStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetLocalStorageOk() (map[string]map[string]string, bool) { + if o == nil || IsNil(o.LocalStorage) { + return map[string]map[string]string{}, false + } + return o.LocalStorage, true +} + +// HasLocalStorage returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasLocalStorage() bool { + if o != nil && !IsNil(o.LocalStorage) { + return true + } + + return false +} + +// SetLocalStorage gets a reference to the given map[string]map[string]string and assigns it to the LocalStorage field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetLocalStorage(v map[string]map[string]string) { + o.LocalStorage = v +} + +// GetSessionStorage returns the SessionStorage field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetSessionStorage() map[string]map[string]string { + if o == nil || IsNil(o.SessionStorage) { + var ret map[string]map[string]string + return ret + } + return o.SessionStorage +} + +// GetSessionStorageOk returns a tuple with the SessionStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetSessionStorageOk() (map[string]map[string]string, bool) { + if o == nil || IsNil(o.SessionStorage) { + return map[string]map[string]string{}, false + } + return o.SessionStorage, true +} + +// HasSessionStorage returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasSessionStorage() bool { + if o != nil && !IsNil(o.SessionStorage) { + return true + } + + return false +} + +// SetSessionStorage gets a reference to the given map[string]map[string]string and assigns it to the SessionStorage field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetSessionStorage(v map[string]map[string]string) { + o.SessionStorage = v +} + +// GetActions returns the Actions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetActions() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + if o == nil || IsNil(o.Actions) { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + return ret + } + return o.Actions +} + +// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetActionsOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { + if o == nil || IsNil(o.Actions) { + return nil, false + } + return o.Actions, true +} + +// HasActions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasActions() bool { + if o != nil && !IsNil(o.Actions) { + return true + } + + return false +} + +// SetActions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the Actions field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetActions(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + o.Actions = v +} + +// GetPreLoginActions returns the PreLoginActions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetPreLoginActions() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + if o == nil || IsNil(o.PreLoginActions) { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + return ret + } + return o.PreLoginActions +} + +// GetPreLoginActionsOk returns a tuple with the PreLoginActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetPreLoginActionsOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { + if o == nil || IsNil(o.PreLoginActions) { + return nil, false + } + return o.PreLoginActions, true +} + +// HasPreLoginActions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasPreLoginActions() bool { + if o != nil && !IsNil(o.PreLoginActions) { + return true + } + + return false +} + +// SetPreLoginActions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PreLoginActions field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetPreLoginActions(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + o.PreLoginActions = v +} + +// GetPostLoginActions returns the PostLoginActions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetPostLoginActions() []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + if o == nil || IsNil(o.PostLoginActions) { + var ret []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + return ret + } + return o.PostLoginActions +} + +// GetPostLoginActionsOk returns a tuple with the PostLoginActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetPostLoginActionsOk() ([]GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { + if o == nil || IsNil(o.PostLoginActions) { + return nil, false + } + return o.PostLoginActions, true +} + +// HasPostLoginActions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasPostLoginActions() bool { + if o != nil && !IsNil(o.PostLoginActions) { + return true + } + + return false +} + +// SetPostLoginActions gets a reference to the given []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PostLoginActions field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetPostLoginActions(v []GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + o.PostLoginActions = v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetDigest() string { + if o == nil || IsNil(o.Digest) { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetDigestOk() (*string, bool) { + if o == nil || IsNil(o.Digest) { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasDigest() bool { + if o != nil && !IsNil(o.Digest) { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetDigest(v string) { + o.Digest = &v +} + +// GetBasic returns the Basic field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetBasic() string { + if o == nil || IsNil(o.Basic) { + var ret string + return ret + } + return *o.Basic +} + +// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) GetBasicOk() (*string, bool) { + if o == nil || IsNil(o.Basic) { + return nil, false + } + return o.Basic, true +} + +// HasBasic returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) HasBasic() bool { + if o != nil && !IsNil(o.Basic) { + return true + } + + return false +} + +// SetBasic gets a reference to the given string and assigns it to the Basic field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) SetBasic(v string) { + o.Basic = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.Cookies) { + toSerialize["cookies"] = o.Cookies + } + if !IsNil(o.QueryParameters) { + toSerialize["query_parameters"] = o.QueryParameters + } + if o.Body != nil { + toSerialize["body"] = o.Body + } + if !IsNil(o.LocalStorage) { + toSerialize["local_storage"] = o.LocalStorage + } + if !IsNil(o.SessionStorage) { + toSerialize["session_storage"] = o.SessionStorage + } + if !IsNil(o.Actions) { + toSerialize["actions"] = o.Actions + } + if !IsNil(o.PreLoginActions) { + toSerialize["pre_login_actions"] = o.PreLoginActions + } + if !IsNil(o.PostLoginActions) { + toSerialize["post_login_actions"] = o.PostLoginActions + } + if !IsNil(o.Digest) { + toSerialize["digest"] = o.Digest + } + if !IsNil(o.Basic) { + toSerialize["basic"] = o.Basic + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "password") + delete(additionalProperties, "headers") + delete(additionalProperties, "cookies") + delete(additionalProperties, "query_parameters") + delete(additionalProperties, "body") + delete(additionalProperties, "local_storage") + delete(additionalProperties, "session_storage") + delete(additionalProperties, "actions") + delete(additionalProperties, "pre_login_actions") + delete(additionalProperties, "post_login_actions") + delete(additionalProperties, "digest") + delete(additionalProperties, "basic") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner.go new file mode 100644 index 00000000..6b73a9df --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner.go @@ -0,0 +1,510 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner - struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner struct { + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOfAsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOfAsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8: v, + } +} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 wrapped in GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner +func GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9AsGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{ + GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) + if err == nil { + jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9, _ := json.Marshal(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) + if string(jsonGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9); err != nil { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 = nil + dst.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) MarshalJSON() ([]byte, error) { + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) + } + + if src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 != nil { + return obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) GetActualInstanceValue() interface{} { + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 + } + + if obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 != nil { + return *obj.GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 + } + + // all schemas are nil + return nil +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of.go new file mode 100644 index 00000000..bfec8edb --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of.go @@ -0,0 +1,306 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf struct { + Action ENUMCLICK `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Locator string `json:"locator"` + Timeout *float32 `json:"timeout,omitempty"` + SelectFirstIfMultiple *bool `json:"select_first_if_multiple,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf(action ENUMCLICK, locator string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{} + this.Action = action + this.Locator = locator + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOfWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOfWithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetAction() ENUMCLICK { + if o == nil { + var ret ENUMCLICK + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetActionOk() (*ENUMCLICK, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetAction(v ENUMCLICK) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetLocator returns the Locator field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetLocator() string { + if o == nil { + var ret string + return ret + } + + return o.Locator +} + +// GetLocatorOk returns a tuple with the Locator field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetLocatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locator, true +} + +// SetLocator sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetLocator(v string) { + o.Locator = v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetTimeout() float32 { + if o == nil || IsNil(o.Timeout) { + var ret float32 + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.Timeout) { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) HasTimeout() bool { + if o != nil && !IsNil(o.Timeout) { + return true + } + + return false +} + +// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetTimeout(v float32) { + o.Timeout = &v +} + +// GetSelectFirstIfMultiple returns the SelectFirstIfMultiple field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetSelectFirstIfMultiple() bool { + if o == nil || IsNil(o.SelectFirstIfMultiple) { + var ret bool + return ret + } + return *o.SelectFirstIfMultiple +} + +// GetSelectFirstIfMultipleOk returns a tuple with the SelectFirstIfMultiple field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetSelectFirstIfMultipleOk() (*bool, bool) { + if o == nil || IsNil(o.SelectFirstIfMultiple) { + return nil, false + } + return o.SelectFirstIfMultiple, true +} + +// HasSelectFirstIfMultiple returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) HasSelectFirstIfMultiple() bool { + if o != nil && !IsNil(o.SelectFirstIfMultiple) { + return true + } + + return false +} + +// SetSelectFirstIfMultiple gets a reference to the given bool and assigns it to the SelectFirstIfMultiple field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetSelectFirstIfMultiple(v bool) { + o.SelectFirstIfMultiple = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["locator"] = o.Locator + if !IsNil(o.Timeout) { + toSerialize["timeout"] = o.Timeout + } + if !IsNil(o.SelectFirstIfMultiple) { + toSerialize["select_first_if_multiple"] = o.SelectFirstIfMultiple + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "locator", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "locator") + delete(additionalProperties, "timeout") + delete(additionalProperties, "select_first_if_multiple") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_1.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_1.go similarity index 50% rename from pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_1.go rename to pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_1.go index f406a4a5..ad7c69ae 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_1.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_1.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{} +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{} -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 struct { +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 struct { Action ENUMFILL `json:"action"` AllowFailure *bool `json:"allow_failure,omitempty"` Locator string `json:"locator"` @@ -31,30 +31,30 @@ type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 object +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1(action ENUMFILL, locator string, value string) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{} +func NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1(action ENUMFILL, locator string, value string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{} this.Action = action this.Locator = locator this.Value = value return &this } -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 object +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{} +func NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{} return &this } // GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAction() ENUMFILL { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAction() ENUMFILL { if o == nil { var ret ENUMFILL return ret @@ -65,7 +65,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI // GetActionOk returns a tuple with the Action field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetActionOk() (*ENUMFILL, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetActionOk() (*ENUMFILL, bool) { if o == nil { return nil, false } @@ -73,12 +73,12 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetAction(v ENUMFILL) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetAction(v ENUMFILL) { o.Action = v } // GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAllowFailure() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAllowFailure() bool { if o == nil || IsNil(o.AllowFailure) { var ret bool return ret @@ -88,7 +88,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI // GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAllowFailureOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAllowFailureOk() (*bool, bool) { if o == nil || IsNil(o.AllowFailure) { return nil, false } @@ -96,7 +96,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasAllowFailure() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasAllowFailure() bool { if o != nil && !IsNil(o.AllowFailure) { return true } @@ -105,12 +105,12 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetAllowFailure(v bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetAllowFailure(v bool) { o.AllowFailure = &v } // GetLocator returns the Locator field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetLocator() string { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetLocator() string { if o == nil { var ret string return ret @@ -121,7 +121,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI // GetLocatorOk returns a tuple with the Locator field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetLocatorOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetLocatorOk() (*string, bool) { if o == nil { return nil, false } @@ -129,12 +129,12 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // SetLocator sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetLocator(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetLocator(v string) { o.Locator = v } // GetOneByOne returns the OneByOne field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetOneByOne() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetOneByOne() bool { if o == nil || IsNil(o.OneByOne) { var ret bool return ret @@ -144,7 +144,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI // GetOneByOneOk returns a tuple with the OneByOne field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetOneByOneOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetOneByOneOk() (*bool, bool) { if o == nil || IsNil(o.OneByOne) { return nil, false } @@ -152,7 +152,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // HasOneByOne returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasOneByOne() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasOneByOne() bool { if o != nil && !IsNil(o.OneByOne) { return true } @@ -161,12 +161,12 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // SetOneByOne gets a reference to the given bool and assigns it to the OneByOne field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetOneByOne(v bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetOneByOne(v bool) { o.OneByOne = &v } // GetValue returns the Value field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetValue() string { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetValue() string { if o == nil { var ret string return ret @@ -177,7 +177,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetValueOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetValueOk() (*string, bool) { if o == nil { return nil, false } @@ -185,12 +185,12 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // SetValue sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetValue(v string) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetValue(v string) { o.Value = v } // GetAutoSubmit returns the AutoSubmit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAutoSubmit() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAutoSubmit() bool { if o == nil || IsNil(o.AutoSubmit) { var ret bool return ret @@ -200,7 +200,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI // GetAutoSubmitOk returns a tuple with the AutoSubmit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAutoSubmitOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetAutoSubmitOk() (*bool, bool) { if o == nil || IsNil(o.AutoSubmit) { return nil, false } @@ -208,7 +208,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // HasAutoSubmit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasAutoSubmit() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasAutoSubmit() bool { if o != nil && !IsNil(o.AutoSubmit) { return true } @@ -217,12 +217,12 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // SetAutoSubmit gets a reference to the given bool and assigns it to the AutoSubmit field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetAutoSubmit(v bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetAutoSubmit(v bool) { o.AutoSubmit = &v } // GetTimeout returns the Timeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetTimeout() float32 { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetTimeout() float32 { if o == nil || IsNil(o.Timeout) { var ret float32 return ret @@ -232,7 +232,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI // GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetTimeoutOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetTimeoutOk() (*float32, bool) { if o == nil || IsNil(o.Timeout) { return nil, false } @@ -240,7 +240,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // HasTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasTimeout() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasTimeout() bool { if o != nil && !IsNil(o.Timeout) { return true } @@ -249,12 +249,12 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetTimeout(v float32) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetTimeout(v float32) { o.Timeout = &v } // GetSelectFirstIfMultiple returns the SelectFirstIfMultiple field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetSelectFirstIfMultiple() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetSelectFirstIfMultiple() bool { if o == nil || IsNil(o.SelectFirstIfMultiple) { var ret bool return ret @@ -264,7 +264,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI // GetSelectFirstIfMultipleOk returns a tuple with the SelectFirstIfMultiple field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetSelectFirstIfMultipleOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) GetSelectFirstIfMultipleOk() (*bool, bool) { if o == nil || IsNil(o.SelectFirstIfMultiple) { return nil, false } @@ -272,7 +272,7 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // HasSelectFirstIfMultiple returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasSelectFirstIfMultiple() bool { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) HasSelectFirstIfMultiple() bool { if o != nil && !IsNil(o.SelectFirstIfMultiple) { return true } @@ -281,11 +281,11 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } // SetSelectFirstIfMultiple gets a reference to the given bool and assigns it to the SelectFirstIfMultiple field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetSelectFirstIfMultiple(v bool) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) SetSelectFirstIfMultiple(v bool) { o.SelectFirstIfMultiple = &v } -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -293,7 +293,7 @@ func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsIn return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["action"] = o.Action if !IsNil(o.AllowFailure) { @@ -321,7 +321,7 @@ func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsIn return toSerialize, nil } -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -345,15 +345,15 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI } } - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{} + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) if err != nil { return err } - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) additionalProperties := make(map[string]interface{}) @@ -372,38 +372,38 @@ func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsI return err } -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 isSet bool } -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 { +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 { return v.value } -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) Unset() { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_10.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_10.go new file mode 100644 index 00000000..05c721c3 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_10.go @@ -0,0 +1,269 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 struct { + Action ENUMSOLVECAPTCHA `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Locator string `json:"locator"` + AutoSubmit *bool `json:"auto_submit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10(action ENUMSOLVECAPTCHA, locator string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{} + this.Action = action + this.Locator = locator + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAction() ENUMSOLVECAPTCHA { + if o == nil { + var ret ENUMSOLVECAPTCHA + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetActionOk() (*ENUMSOLVECAPTCHA, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) SetAction(v ENUMSOLVECAPTCHA) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetLocator returns the Locator field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetLocator() string { + if o == nil { + var ret string + return ret + } + + return o.Locator +} + +// GetLocatorOk returns a tuple with the Locator field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetLocatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locator, true +} + +// SetLocator sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) SetLocator(v string) { + o.Locator = v +} + +// GetAutoSubmit returns the AutoSubmit field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAutoSubmit() bool { + if o == nil || IsNil(o.AutoSubmit) { + var ret bool + return ret + } + return *o.AutoSubmit +} + +// GetAutoSubmitOk returns a tuple with the AutoSubmit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAutoSubmitOk() (*bool, bool) { + if o == nil || IsNil(o.AutoSubmit) { + return nil, false + } + return o.AutoSubmit, true +} + +// HasAutoSubmit returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) HasAutoSubmit() bool { + if o != nil && !IsNil(o.AutoSubmit) { + return true + } + + return false +} + +// SetAutoSubmit gets a reference to the given bool and assigns it to the AutoSubmit field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) SetAutoSubmit(v bool) { + o.AutoSubmit = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["locator"] = o.Locator + if !IsNil(o.AutoSubmit) { + toSerialize["auto_submit"] = o.AutoSubmit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "locator", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "locator") + delete(additionalProperties, "auto_submit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_2.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_2.go new file mode 100644 index 00000000..068f2f51 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_2.go @@ -0,0 +1,298 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 struct { + Action ENUMFILLTOTP `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Locator string `json:"locator"` + Secret string `json:"secret"` + AutoSubmit *bool `json:"auto_submit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2(action ENUMFILLTOTP, locator string, secret string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{} + this.Action = action + this.Locator = locator + this.Secret = secret + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAction() ENUMFILLTOTP { + if o == nil { + var ret ENUMFILLTOTP + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetActionOk() (*ENUMFILLTOTP, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetAction(v ENUMFILLTOTP) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetLocator returns the Locator field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetLocator() string { + if o == nil { + var ret string + return ret + } + + return o.Locator +} + +// GetLocatorOk returns a tuple with the Locator field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetLocatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locator, true +} + +// SetLocator sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetLocator(v string) { + o.Locator = v +} + +// GetSecret returns the Secret field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetSecret(v string) { + o.Secret = v +} + +// GetAutoSubmit returns the AutoSubmit field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAutoSubmit() bool { + if o == nil || IsNil(o.AutoSubmit) { + var ret bool + return ret + } + return *o.AutoSubmit +} + +// GetAutoSubmitOk returns a tuple with the AutoSubmit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAutoSubmitOk() (*bool, bool) { + if o == nil || IsNil(o.AutoSubmit) { + return nil, false + } + return o.AutoSubmit, true +} + +// HasAutoSubmit returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) HasAutoSubmit() bool { + if o != nil && !IsNil(o.AutoSubmit) { + return true + } + + return false +} + +// SetAutoSubmit gets a reference to the given bool and assigns it to the AutoSubmit field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetAutoSubmit(v bool) { + o.AutoSubmit = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["locator"] = o.Locator + toSerialize["secret"] = o.Secret + if !IsNil(o.AutoSubmit) { + toSerialize["auto_submit"] = o.AutoSubmit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "locator", + "secret", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "locator") + delete(additionalProperties, "secret") + delete(additionalProperties, "auto_submit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_3.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_3.go new file mode 100644 index 00000000..635b3093 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_3.go @@ -0,0 +1,306 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 struct { + Action ENUMGOTO `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + NewPage *bool `json:"new_page,omitempty"` + Url string `json:"url"` + Timeout *float32 `json:"timeout,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3(action ENUMGOTO, url string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{} + this.Action = action + this.Url = url + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetAction() ENUMGOTO { + if o == nil { + var ret ENUMGOTO + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetActionOk() (*ENUMGOTO, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetAction(v ENUMGOTO) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetNewPage returns the NewPage field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetNewPage() bool { + if o == nil || IsNil(o.NewPage) { + var ret bool + return ret + } + return *o.NewPage +} + +// GetNewPageOk returns a tuple with the NewPage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetNewPageOk() (*bool, bool) { + if o == nil || IsNil(o.NewPage) { + return nil, false + } + return o.NewPage, true +} + +// HasNewPage returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) HasNewPage() bool { + if o != nil && !IsNil(o.NewPage) { + return true + } + + return false +} + +// SetNewPage gets a reference to the given bool and assigns it to the NewPage field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetNewPage(v bool) { + o.NewPage = &v +} + +// GetUrl returns the Url field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetUrl(v string) { + o.Url = v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetTimeout() float32 { + if o == nil || IsNil(o.Timeout) { + var ret float32 + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.Timeout) { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) HasTimeout() bool { + if o != nil && !IsNil(o.Timeout) { + return true + } + + return false +} + +// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetTimeout(v float32) { + o.Timeout = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + if !IsNil(o.NewPage) { + toSerialize["new_page"] = o.NewPage + } + toSerialize["url"] = o.Url + if !IsNil(o.Timeout) { + toSerialize["timeout"] = o.Timeout + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "new_page") + delete(additionalProperties, "url") + delete(additionalProperties, "timeout") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_4.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_4.go new file mode 100644 index 00000000..69598cef --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_4.go @@ -0,0 +1,306 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 struct { + Action ENUMCHECK `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Locator string `json:"locator"` + Timeout *float32 `json:"timeout,omitempty"` + SelectFirstIfMultiple *bool `json:"select_first_if_multiple,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4(action ENUMCHECK, locator string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{} + this.Action = action + this.Locator = locator + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetAction() ENUMCHECK { + if o == nil { + var ret ENUMCHECK + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetActionOk() (*ENUMCHECK, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetAction(v ENUMCHECK) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetLocator returns the Locator field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetLocator() string { + if o == nil { + var ret string + return ret + } + + return o.Locator +} + +// GetLocatorOk returns a tuple with the Locator field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetLocatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locator, true +} + +// SetLocator sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetLocator(v string) { + o.Locator = v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetTimeout() float32 { + if o == nil || IsNil(o.Timeout) { + var ret float32 + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.Timeout) { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) HasTimeout() bool { + if o != nil && !IsNil(o.Timeout) { + return true + } + + return false +} + +// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetTimeout(v float32) { + o.Timeout = &v +} + +// GetSelectFirstIfMultiple returns the SelectFirstIfMultiple field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetSelectFirstIfMultiple() bool { + if o == nil || IsNil(o.SelectFirstIfMultiple) { + var ret bool + return ret + } + return *o.SelectFirstIfMultiple +} + +// GetSelectFirstIfMultipleOk returns a tuple with the SelectFirstIfMultiple field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetSelectFirstIfMultipleOk() (*bool, bool) { + if o == nil || IsNil(o.SelectFirstIfMultiple) { + return nil, false + } + return o.SelectFirstIfMultiple, true +} + +// HasSelectFirstIfMultiple returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) HasSelectFirstIfMultiple() bool { + if o != nil && !IsNil(o.SelectFirstIfMultiple) { + return true + } + + return false +} + +// SetSelectFirstIfMultiple gets a reference to the given bool and assigns it to the SelectFirstIfMultiple field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetSelectFirstIfMultiple(v bool) { + o.SelectFirstIfMultiple = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["locator"] = o.Locator + if !IsNil(o.Timeout) { + toSerialize["timeout"] = o.Timeout + } + if !IsNil(o.SelectFirstIfMultiple) { + toSerialize["select_first_if_multiple"] = o.SelectFirstIfMultiple + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "locator", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "locator") + delete(additionalProperties, "timeout") + delete(additionalProperties, "select_first_if_multiple") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_5.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_5.go new file mode 100644 index 00000000..fc0ca11e --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_5.go @@ -0,0 +1,335 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 struct { + Action ENUMSELECT `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Locator string `json:"locator"` + Value string `json:"value"` + Timeout *float32 `json:"timeout,omitempty"` + SelectFirstIfMultiple *bool `json:"select_first_if_multiple,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5(action ENUMSELECT, locator string, value string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{} + this.Action = action + this.Locator = locator + this.Value = value + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetAction() ENUMSELECT { + if o == nil { + var ret ENUMSELECT + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetActionOk() (*ENUMSELECT, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetAction(v ENUMSELECT) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetLocator returns the Locator field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetLocator() string { + if o == nil { + var ret string + return ret + } + + return o.Locator +} + +// GetLocatorOk returns a tuple with the Locator field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetLocatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locator, true +} + +// SetLocator sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetLocator(v string) { + o.Locator = v +} + +// GetValue returns the Value field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetValue(v string) { + o.Value = v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetTimeout() float32 { + if o == nil || IsNil(o.Timeout) { + var ret float32 + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetTimeoutOk() (*float32, bool) { + if o == nil || IsNil(o.Timeout) { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) HasTimeout() bool { + if o != nil && !IsNil(o.Timeout) { + return true + } + + return false +} + +// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetTimeout(v float32) { + o.Timeout = &v +} + +// GetSelectFirstIfMultiple returns the SelectFirstIfMultiple field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetSelectFirstIfMultiple() bool { + if o == nil || IsNil(o.SelectFirstIfMultiple) { + var ret bool + return ret + } + return *o.SelectFirstIfMultiple +} + +// GetSelectFirstIfMultipleOk returns a tuple with the SelectFirstIfMultiple field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetSelectFirstIfMultipleOk() (*bool, bool) { + if o == nil || IsNil(o.SelectFirstIfMultiple) { + return nil, false + } + return o.SelectFirstIfMultiple, true +} + +// HasSelectFirstIfMultiple returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) HasSelectFirstIfMultiple() bool { + if o != nil && !IsNil(o.SelectFirstIfMultiple) { + return true + } + + return false +} + +// SetSelectFirstIfMultiple gets a reference to the given bool and assigns it to the SelectFirstIfMultiple field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetSelectFirstIfMultiple(v bool) { + o.SelectFirstIfMultiple = &v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["locator"] = o.Locator + toSerialize["value"] = o.Value + if !IsNil(o.Timeout) { + toSerialize["timeout"] = o.Timeout + } + if !IsNil(o.SelectFirstIfMultiple) { + toSerialize["select_first_if_multiple"] = o.SelectFirstIfMultiple + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "locator", + "value", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "locator") + delete(additionalProperties, "value") + delete(additionalProperties, "timeout") + delete(additionalProperties, "select_first_if_multiple") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_6.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_6.go new file mode 100644 index 00000000..114ebc37 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_6.go @@ -0,0 +1,261 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 struct { + Action ENUMWAITELEMENT `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Locator string `json:"locator"` + Timeout float32 `json:"timeout"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6(action ENUMWAITELEMENT, locator string, timeout float32) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{} + this.Action = action + this.Locator = locator + this.Timeout = timeout + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetAction() ENUMWAITELEMENT { + if o == nil { + var ret ENUMWAITELEMENT + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetActionOk() (*ENUMWAITELEMENT, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) SetAction(v ENUMWAITELEMENT) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetLocator returns the Locator field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetLocator() string { + if o == nil { + var ret string + return ret + } + + return o.Locator +} + +// GetLocatorOk returns a tuple with the Locator field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetLocatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Locator, true +} + +// SetLocator sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) SetLocator(v string) { + o.Locator = v +} + +// GetTimeout returns the Timeout field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetTimeout() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetTimeoutOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Timeout, true +} + +// SetTimeout sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) SetTimeout(v float32) { + o.Timeout = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["locator"] = o.Locator + toSerialize["timeout"] = o.Timeout + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "locator", + "timeout", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "locator") + delete(additionalProperties, "timeout") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_7.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_7.go new file mode 100644 index 00000000..520220ae --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_7.go @@ -0,0 +1,261 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 struct { + Action ENUMWAITTEXT `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Value string `json:"value"` + Timeout float32 `json:"timeout"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7(action ENUMWAITTEXT, value string, timeout float32) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{} + this.Action = action + this.Value = value + this.Timeout = timeout + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetAction() ENUMWAITTEXT { + if o == nil { + var ret ENUMWAITTEXT + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetActionOk() (*ENUMWAITTEXT, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) SetAction(v ENUMWAITTEXT) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetValue returns the Value field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) SetValue(v string) { + o.Value = v +} + +// GetTimeout returns the Timeout field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetTimeout() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetTimeoutOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Timeout, true +} + +// SetTimeout sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) SetTimeout(v float32) { + o.Timeout = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["value"] = o.Value + toSerialize["timeout"] = o.Timeout + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "value", + "timeout", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "value") + delete(additionalProperties, "timeout") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_8.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_8.go new file mode 100644 index 00000000..3674f76d --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_8.go @@ -0,0 +1,232 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 struct { + Action ENUMFOCUSPAGE `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + UrlPattern string `json:"url_pattern"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8(action ENUMFOCUSPAGE, urlPattern string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{} + this.Action = action + this.UrlPattern = urlPattern + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetAction() ENUMFOCUSPAGE { + if o == nil { + var ret ENUMFOCUSPAGE + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetActionOk() (*ENUMFOCUSPAGE, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) SetAction(v ENUMFOCUSPAGE) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetUrlPattern returns the UrlPattern field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetUrlPattern() string { + if o == nil { + var ret string + return ret + } + + return o.UrlPattern +} + +// GetUrlPatternOk returns a tuple with the UrlPattern field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetUrlPatternOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UrlPattern, true +} + +// SetUrlPattern sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) SetUrlPattern(v string) { + o.UrlPattern = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["url_pattern"] = o.UrlPattern + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "url_pattern", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "url_pattern") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_9.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_9.go new file mode 100644 index 00000000..532f46de --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_credentials_actions_inner_one_of_9.go @@ -0,0 +1,232 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 +type GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 struct { + Action ENUMSLEEP `json:"action"` + AllowFailure *bool `json:"allow_failure,omitempty"` + Seconds float32 `json:"seconds"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9(action ENUMSLEEP, seconds float32) *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{} + this.Action = action + this.Seconds = seconds + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9WithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9WithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{} + return &this +} + +// GetAction returns the Action field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetAction() ENUMSLEEP { + if o == nil { + var ret ENUMSLEEP + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetActionOk() (*ENUMSLEEP, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) SetAction(v ENUMSLEEP) { + o.Action = v +} + +// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetAllowFailure() bool { + if o == nil || IsNil(o.AllowFailure) { + var ret bool + return ret + } + return *o.AllowFailure +} + +// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetAllowFailureOk() (*bool, bool) { + if o == nil || IsNil(o.AllowFailure) { + return nil, false + } + return o.AllowFailure, true +} + +// HasAllowFailure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) HasAllowFailure() bool { + if o != nil && !IsNil(o.AllowFailure) { + return true + } + + return false +} + +// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) SetAllowFailure(v bool) { + o.AllowFailure = &v +} + +// GetSeconds returns the Seconds field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetSeconds() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Seconds +} + +// GetSecondsOk returns a tuple with the Seconds field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetSecondsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Seconds, true +} + +// SetSeconds sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) SetSeconds(v float32) { + o.Seconds = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["action"] = o.Action + if !IsNil(o.AllowFailure) { + toSerialize["allow_failure"] = o.AllowFailure + } + toSerialize["seconds"] = o.Seconds + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "action", + "seconds", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 := _GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9(varGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "allow_failure") + delete(additionalProperties, "seconds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_variables_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_variables_inner.go new file mode 100644 index 00000000..8c856fd9 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_authentication_users_inner_variables_inner.go @@ -0,0 +1,195 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner{} + +// GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner struct for GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner +type GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner struct { + Name string `json:"name"` + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner(name string, value string) *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner{} + this.Name = name + this.Value = value + return &this +} + +// NewGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInnerWithDefaults instantiates a new GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner 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 NewGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInnerWithDefaults() *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner { + this := GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner{} + return &this +} + +// GetName returns the Name field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) 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 *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) SetName(v string) { + o.Name = v +} + +// GetValue returns the Value field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) SetValue(v string) { + o.Value = v +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "value", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner := _GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner(varGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner struct { + value *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) Get() *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) Set(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner(val *GetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner { + return &NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAuthenticationUsersInnerVariablesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting.go b/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting.go new file mode 100644 index 00000000..a22febf0 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationAutomatedPentesting type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAutomatedPentesting{} + +// GetProfile200ResponseConfigurationAutomatedPentesting struct for GetProfile200ResponseConfigurationAutomatedPentesting +type GetProfile200ResponseConfigurationAutomatedPentesting struct { + XssAgent *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent `json:"xss_agent,omitempty"` + BusinessLogicAgent *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent `json:"business_logic_agent,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAutomatedPentesting GetProfile200ResponseConfigurationAutomatedPentesting + +// NewGetProfile200ResponseConfigurationAutomatedPentesting instantiates a new GetProfile200ResponseConfigurationAutomatedPentesting 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 NewGetProfile200ResponseConfigurationAutomatedPentesting() *GetProfile200ResponseConfigurationAutomatedPentesting { + this := GetProfile200ResponseConfigurationAutomatedPentesting{} + return &this +} + +// NewGetProfile200ResponseConfigurationAutomatedPentestingWithDefaults instantiates a new GetProfile200ResponseConfigurationAutomatedPentesting 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 NewGetProfile200ResponseConfigurationAutomatedPentestingWithDefaults() *GetProfile200ResponseConfigurationAutomatedPentesting { + this := GetProfile200ResponseConfigurationAutomatedPentesting{} + return &this +} + +// GetXssAgent returns the XssAgent field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) GetXssAgent() GetProfile200ResponseConfigurationAutomatedPentestingXssAgent { + if o == nil || IsNil(o.XssAgent) { + var ret GetProfile200ResponseConfigurationAutomatedPentestingXssAgent + return ret + } + return *o.XssAgent +} + +// GetXssAgentOk returns a tuple with the XssAgent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) GetXssAgentOk() (*GetProfile200ResponseConfigurationAutomatedPentestingXssAgent, bool) { + if o == nil || IsNil(o.XssAgent) { + return nil, false + } + return o.XssAgent, true +} + +// HasXssAgent returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) HasXssAgent() bool { + if o != nil && !IsNil(o.XssAgent) { + return true + } + + return false +} + +// SetXssAgent gets a reference to the given GetProfile200ResponseConfigurationAutomatedPentestingXssAgent and assigns it to the XssAgent field. +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) SetXssAgent(v GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) { + o.XssAgent = &v +} + +// GetBusinessLogicAgent returns the BusinessLogicAgent field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) GetBusinessLogicAgent() GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent { + if o == nil || IsNil(o.BusinessLogicAgent) { + var ret GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent + return ret + } + return *o.BusinessLogicAgent +} + +// GetBusinessLogicAgentOk returns a tuple with the BusinessLogicAgent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) GetBusinessLogicAgentOk() (*GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent, bool) { + if o == nil || IsNil(o.BusinessLogicAgent) { + return nil, false + } + return o.BusinessLogicAgent, true +} + +// HasBusinessLogicAgent returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) HasBusinessLogicAgent() bool { + if o != nil && !IsNil(o.BusinessLogicAgent) { + return true + } + + return false +} + +// SetBusinessLogicAgent gets a reference to the given GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent and assigns it to the BusinessLogicAgent field. +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) SetBusinessLogicAgent(v GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) { + o.BusinessLogicAgent = &v +} + +func (o GetProfile200ResponseConfigurationAutomatedPentesting) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAutomatedPentesting) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.XssAgent) { + toSerialize["xss_agent"] = o.XssAgent + } + if !IsNil(o.BusinessLogicAgent) { + toSerialize["business_logic_agent"] = o.BusinessLogicAgent + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAutomatedPentesting) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationAutomatedPentesting := _GetProfile200ResponseConfigurationAutomatedPentesting{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAutomatedPentesting) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAutomatedPentesting(varGetProfile200ResponseConfigurationAutomatedPentesting) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "xss_agent") + delete(additionalProperties, "business_logic_agent") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAutomatedPentesting struct { + value *GetProfile200ResponseConfigurationAutomatedPentesting + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentesting) Get() *GetProfile200ResponseConfigurationAutomatedPentesting { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentesting) Set(val *GetProfile200ResponseConfigurationAutomatedPentesting) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentesting) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentesting) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAutomatedPentesting(val *GetProfile200ResponseConfigurationAutomatedPentesting) *NullableGetProfile200ResponseConfigurationAutomatedPentesting { + return &NullableGetProfile200ResponseConfigurationAutomatedPentesting{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentesting) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentesting) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting_business_logic_agent.go b/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting_business_logic_agent.go new file mode 100644 index 00000000..a2aa55ee --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting_business_logic_agent.go @@ -0,0 +1,227 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent{} + +// GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent struct for GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent +type GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent struct { + Enabled *bool `json:"enabled,omitempty"` + NaturalLanguage *string `json:"natural_language,omitempty"` + TestMode *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE `json:"test_mode,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent + +// NewGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent instantiates a new GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent 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 NewGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent() *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent { + this := GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent{} + return &this +} + +// NewGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgentWithDefaults instantiates a new GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent 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 NewGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgentWithDefaults() *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent { + this := GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetNaturalLanguage returns the NaturalLanguage field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) GetNaturalLanguage() string { + if o == nil || IsNil(o.NaturalLanguage) { + var ret string + return ret + } + return *o.NaturalLanguage +} + +// GetNaturalLanguageOk returns a tuple with the NaturalLanguage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) GetNaturalLanguageOk() (*string, bool) { + if o == nil || IsNil(o.NaturalLanguage) { + return nil, false + } + return o.NaturalLanguage, true +} + +// HasNaturalLanguage returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) HasNaturalLanguage() bool { + if o != nil && !IsNil(o.NaturalLanguage) { + return true + } + + return false +} + +// SetNaturalLanguage gets a reference to the given string and assigns it to the NaturalLanguage field. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) SetNaturalLanguage(v string) { + o.NaturalLanguage = &v +} + +// GetTestMode returns the TestMode field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) GetTestMode() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE { + if o == nil || IsNil(o.TestMode) { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE + return ret + } + return *o.TestMode +} + +// GetTestModeOk returns a tuple with the TestMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) GetTestModeOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE, bool) { + if o == nil || IsNil(o.TestMode) { + return nil, false + } + return o.TestMode, true +} + +// HasTestMode returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) HasTestMode() bool { + if o != nil && !IsNil(o.TestMode) { + return true + } + + return false +} + +// SetTestMode gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE and assigns it to the TestMode field. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) SetTestMode(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTOMATEDPENTESTINGPROPERTIESBUSINESSLOGICAGENTPROPERTIESTESTMODE) { + o.TestMode = &v +} + +func (o GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.NaturalLanguage) { + toSerialize["natural_language"] = o.NaturalLanguage + } + if !IsNil(o.TestMode) { + toSerialize["test_mode"] = o.TestMode + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent := _GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent(varGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enabled") + delete(additionalProperties, "natural_language") + delete(additionalProperties, "test_mode") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent struct { + value *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) Get() *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) Set(val *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent(val *GetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) *NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent { + return &NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentestingBusinessLogicAgent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting_xss_agent.go b/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting_xss_agent.go new file mode 100644 index 00000000..b20f81ea --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_automated_pentesting_xss_agent.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationAutomatedPentestingXssAgent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationAutomatedPentestingXssAgent{} + +// GetProfile200ResponseConfigurationAutomatedPentestingXssAgent struct for GetProfile200ResponseConfigurationAutomatedPentestingXssAgent +type GetProfile200ResponseConfigurationAutomatedPentestingXssAgent struct { + Enabled *bool `json:"enabled,omitempty"` + NaturalLanguage *string `json:"natural_language,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationAutomatedPentestingXssAgent GetProfile200ResponseConfigurationAutomatedPentestingXssAgent + +// NewGetProfile200ResponseConfigurationAutomatedPentestingXssAgent instantiates a new GetProfile200ResponseConfigurationAutomatedPentestingXssAgent 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 NewGetProfile200ResponseConfigurationAutomatedPentestingXssAgent() *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent { + this := GetProfile200ResponseConfigurationAutomatedPentestingXssAgent{} + return &this +} + +// NewGetProfile200ResponseConfigurationAutomatedPentestingXssAgentWithDefaults instantiates a new GetProfile200ResponseConfigurationAutomatedPentestingXssAgent 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 NewGetProfile200ResponseConfigurationAutomatedPentestingXssAgentWithDefaults() *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent { + this := GetProfile200ResponseConfigurationAutomatedPentestingXssAgent{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetNaturalLanguage returns the NaturalLanguage field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) GetNaturalLanguage() string { + if o == nil || IsNil(o.NaturalLanguage) { + var ret string + return ret + } + return *o.NaturalLanguage +} + +// GetNaturalLanguageOk returns a tuple with the NaturalLanguage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) GetNaturalLanguageOk() (*string, bool) { + if o == nil || IsNil(o.NaturalLanguage) { + return nil, false + } + return o.NaturalLanguage, true +} + +// HasNaturalLanguage returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) HasNaturalLanguage() bool { + if o != nil && !IsNil(o.NaturalLanguage) { + return true + } + + return false +} + +// SetNaturalLanguage gets a reference to the given string and assigns it to the NaturalLanguage field. +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) SetNaturalLanguage(v string) { + o.NaturalLanguage = &v +} + +func (o GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.NaturalLanguage) { + toSerialize["natural_language"] = o.NaturalLanguage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationAutomatedPentestingXssAgent := _GetProfile200ResponseConfigurationAutomatedPentestingXssAgent{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationAutomatedPentestingXssAgent) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationAutomatedPentestingXssAgent(varGetProfile200ResponseConfigurationAutomatedPentestingXssAgent) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enabled") + delete(additionalProperties, "natural_language") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent struct { + value *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent) Get() *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent) Set(val *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent(val *GetProfile200ResponseConfigurationAutomatedPentestingXssAgent) *NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent { + return &NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationAutomatedPentestingXssAgent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_experimental.go b/pkg/api/v3/model_get_profile_200_response_configuration_experimental.go new file mode 100644 index 00000000..9b9e98d0 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_experimental.go @@ -0,0 +1,449 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationExperimental type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationExperimental{} + +// GetProfile200ResponseConfigurationExperimental struct for GetProfile200ResponseConfigurationExperimental +type GetProfile200ResponseConfigurationExperimental struct { + BlstExplorationOnly *bool `json:"blst_exploration_only,omitempty"` + AgenticIdor *bool `json:"agentic_idor,omitempty"` + BlstSkipSeedExamples *bool `json:"blst_skip_seed_examples,omitempty"` + PostmanNext *bool `json:"postman_next,omitempty"` + HappyPathsRegressionTesting []string `json:"happy_paths_regression_testing,omitempty"` + RegressionTestingFileUploadIds []string `json:"regression_testing_file_upload_ids,omitempty"` + AsmTechnologies *bool `json:"asm_technologies,omitempty"` + LocationsNext *bool `json:"locations_next,omitempty"` + ExternalCrawlingTask *bool `json:"external_crawling_task,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationExperimental GetProfile200ResponseConfigurationExperimental + +// NewGetProfile200ResponseConfigurationExperimental instantiates a new GetProfile200ResponseConfigurationExperimental 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 NewGetProfile200ResponseConfigurationExperimental() *GetProfile200ResponseConfigurationExperimental { + this := GetProfile200ResponseConfigurationExperimental{} + return &this +} + +// NewGetProfile200ResponseConfigurationExperimentalWithDefaults instantiates a new GetProfile200ResponseConfigurationExperimental 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 NewGetProfile200ResponseConfigurationExperimentalWithDefaults() *GetProfile200ResponseConfigurationExperimental { + this := GetProfile200ResponseConfigurationExperimental{} + return &this +} + +// GetBlstExplorationOnly returns the BlstExplorationOnly field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetBlstExplorationOnly() bool { + if o == nil || IsNil(o.BlstExplorationOnly) { + var ret bool + return ret + } + return *o.BlstExplorationOnly +} + +// GetBlstExplorationOnlyOk returns a tuple with the BlstExplorationOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetBlstExplorationOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.BlstExplorationOnly) { + return nil, false + } + return o.BlstExplorationOnly, true +} + +// HasBlstExplorationOnly returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasBlstExplorationOnly() bool { + if o != nil && !IsNil(o.BlstExplorationOnly) { + return true + } + + return false +} + +// SetBlstExplorationOnly gets a reference to the given bool and assigns it to the BlstExplorationOnly field. +func (o *GetProfile200ResponseConfigurationExperimental) SetBlstExplorationOnly(v bool) { + o.BlstExplorationOnly = &v +} + +// GetAgenticIdor returns the AgenticIdor field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetAgenticIdor() bool { + if o == nil || IsNil(o.AgenticIdor) { + var ret bool + return ret + } + return *o.AgenticIdor +} + +// GetAgenticIdorOk returns a tuple with the AgenticIdor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetAgenticIdorOk() (*bool, bool) { + if o == nil || IsNil(o.AgenticIdor) { + return nil, false + } + return o.AgenticIdor, true +} + +// HasAgenticIdor returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasAgenticIdor() bool { + if o != nil && !IsNil(o.AgenticIdor) { + return true + } + + return false +} + +// SetAgenticIdor gets a reference to the given bool and assigns it to the AgenticIdor field. +func (o *GetProfile200ResponseConfigurationExperimental) SetAgenticIdor(v bool) { + o.AgenticIdor = &v +} + +// GetBlstSkipSeedExamples returns the BlstSkipSeedExamples field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetBlstSkipSeedExamples() bool { + if o == nil || IsNil(o.BlstSkipSeedExamples) { + var ret bool + return ret + } + return *o.BlstSkipSeedExamples +} + +// GetBlstSkipSeedExamplesOk returns a tuple with the BlstSkipSeedExamples field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetBlstSkipSeedExamplesOk() (*bool, bool) { + if o == nil || IsNil(o.BlstSkipSeedExamples) { + return nil, false + } + return o.BlstSkipSeedExamples, true +} + +// HasBlstSkipSeedExamples returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasBlstSkipSeedExamples() bool { + if o != nil && !IsNil(o.BlstSkipSeedExamples) { + return true + } + + return false +} + +// SetBlstSkipSeedExamples gets a reference to the given bool and assigns it to the BlstSkipSeedExamples field. +func (o *GetProfile200ResponseConfigurationExperimental) SetBlstSkipSeedExamples(v bool) { + o.BlstSkipSeedExamples = &v +} + +// GetPostmanNext returns the PostmanNext field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetPostmanNext() bool { + if o == nil || IsNil(o.PostmanNext) { + var ret bool + return ret + } + return *o.PostmanNext +} + +// GetPostmanNextOk returns a tuple with the PostmanNext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetPostmanNextOk() (*bool, bool) { + if o == nil || IsNil(o.PostmanNext) { + return nil, false + } + return o.PostmanNext, true +} + +// HasPostmanNext returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasPostmanNext() bool { + if o != nil && !IsNil(o.PostmanNext) { + return true + } + + return false +} + +// SetPostmanNext gets a reference to the given bool and assigns it to the PostmanNext field. +func (o *GetProfile200ResponseConfigurationExperimental) SetPostmanNext(v bool) { + o.PostmanNext = &v +} + +// GetHappyPathsRegressionTesting returns the HappyPathsRegressionTesting field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetHappyPathsRegressionTesting() []string { + if o == nil || IsNil(o.HappyPathsRegressionTesting) { + var ret []string + return ret + } + return o.HappyPathsRegressionTesting +} + +// GetHappyPathsRegressionTestingOk returns a tuple with the HappyPathsRegressionTesting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetHappyPathsRegressionTestingOk() ([]string, bool) { + if o == nil || IsNil(o.HappyPathsRegressionTesting) { + return nil, false + } + return o.HappyPathsRegressionTesting, true +} + +// HasHappyPathsRegressionTesting returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasHappyPathsRegressionTesting() bool { + if o != nil && !IsNil(o.HappyPathsRegressionTesting) { + return true + } + + return false +} + +// SetHappyPathsRegressionTesting gets a reference to the given []string and assigns it to the HappyPathsRegressionTesting field. +func (o *GetProfile200ResponseConfigurationExperimental) SetHappyPathsRegressionTesting(v []string) { + o.HappyPathsRegressionTesting = v +} + +// GetRegressionTestingFileUploadIds returns the RegressionTestingFileUploadIds field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetRegressionTestingFileUploadIds() []string { + if o == nil || IsNil(o.RegressionTestingFileUploadIds) { + var ret []string + return ret + } + return o.RegressionTestingFileUploadIds +} + +// GetRegressionTestingFileUploadIdsOk returns a tuple with the RegressionTestingFileUploadIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetRegressionTestingFileUploadIdsOk() ([]string, bool) { + if o == nil || IsNil(o.RegressionTestingFileUploadIds) { + return nil, false + } + return o.RegressionTestingFileUploadIds, true +} + +// HasRegressionTestingFileUploadIds returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasRegressionTestingFileUploadIds() bool { + if o != nil && !IsNil(o.RegressionTestingFileUploadIds) { + return true + } + + return false +} + +// SetRegressionTestingFileUploadIds gets a reference to the given []string and assigns it to the RegressionTestingFileUploadIds field. +func (o *GetProfile200ResponseConfigurationExperimental) SetRegressionTestingFileUploadIds(v []string) { + o.RegressionTestingFileUploadIds = v +} + +// GetAsmTechnologies returns the AsmTechnologies field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetAsmTechnologies() bool { + if o == nil || IsNil(o.AsmTechnologies) { + var ret bool + return ret + } + return *o.AsmTechnologies +} + +// GetAsmTechnologiesOk returns a tuple with the AsmTechnologies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetAsmTechnologiesOk() (*bool, bool) { + if o == nil || IsNil(o.AsmTechnologies) { + return nil, false + } + return o.AsmTechnologies, true +} + +// HasAsmTechnologies returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasAsmTechnologies() bool { + if o != nil && !IsNil(o.AsmTechnologies) { + return true + } + + return false +} + +// SetAsmTechnologies gets a reference to the given bool and assigns it to the AsmTechnologies field. +func (o *GetProfile200ResponseConfigurationExperimental) SetAsmTechnologies(v bool) { + o.AsmTechnologies = &v +} + +// GetLocationsNext returns the LocationsNext field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetLocationsNext() bool { + if o == nil || IsNil(o.LocationsNext) { + var ret bool + return ret + } + return *o.LocationsNext +} + +// GetLocationsNextOk returns a tuple with the LocationsNext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetLocationsNextOk() (*bool, bool) { + if o == nil || IsNil(o.LocationsNext) { + return nil, false + } + return o.LocationsNext, true +} + +// HasLocationsNext returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasLocationsNext() bool { + if o != nil && !IsNil(o.LocationsNext) { + return true + } + + return false +} + +// SetLocationsNext gets a reference to the given bool and assigns it to the LocationsNext field. +func (o *GetProfile200ResponseConfigurationExperimental) SetLocationsNext(v bool) { + o.LocationsNext = &v +} + +// GetExternalCrawlingTask returns the ExternalCrawlingTask field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationExperimental) GetExternalCrawlingTask() bool { + if o == nil || IsNil(o.ExternalCrawlingTask) { + var ret bool + return ret + } + return *o.ExternalCrawlingTask +} + +// GetExternalCrawlingTaskOk returns a tuple with the ExternalCrawlingTask field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationExperimental) GetExternalCrawlingTaskOk() (*bool, bool) { + if o == nil || IsNil(o.ExternalCrawlingTask) { + return nil, false + } + return o.ExternalCrawlingTask, true +} + +// HasExternalCrawlingTask returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationExperimental) HasExternalCrawlingTask() bool { + if o != nil && !IsNil(o.ExternalCrawlingTask) { + return true + } + + return false +} + +// SetExternalCrawlingTask gets a reference to the given bool and assigns it to the ExternalCrawlingTask field. +func (o *GetProfile200ResponseConfigurationExperimental) SetExternalCrawlingTask(v bool) { + o.ExternalCrawlingTask = &v +} + +func (o GetProfile200ResponseConfigurationExperimental) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationExperimental) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BlstExplorationOnly) { + toSerialize["blst_exploration_only"] = o.BlstExplorationOnly + } + if !IsNil(o.AgenticIdor) { + toSerialize["agentic_idor"] = o.AgenticIdor + } + if !IsNil(o.BlstSkipSeedExamples) { + toSerialize["blst_skip_seed_examples"] = o.BlstSkipSeedExamples + } + if !IsNil(o.PostmanNext) { + toSerialize["postman_next"] = o.PostmanNext + } + if !IsNil(o.HappyPathsRegressionTesting) { + toSerialize["happy_paths_regression_testing"] = o.HappyPathsRegressionTesting + } + if !IsNil(o.RegressionTestingFileUploadIds) { + toSerialize["regression_testing_file_upload_ids"] = o.RegressionTestingFileUploadIds + } + if !IsNil(o.AsmTechnologies) { + toSerialize["asm_technologies"] = o.AsmTechnologies + } + if !IsNil(o.LocationsNext) { + toSerialize["locations_next"] = o.LocationsNext + } + if !IsNil(o.ExternalCrawlingTask) { + toSerialize["external_crawling_task"] = o.ExternalCrawlingTask + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationExperimental) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationExperimental := _GetProfile200ResponseConfigurationExperimental{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationExperimental) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationExperimental(varGetProfile200ResponseConfigurationExperimental) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "blst_exploration_only") + delete(additionalProperties, "agentic_idor") + delete(additionalProperties, "blst_skip_seed_examples") + delete(additionalProperties, "postman_next") + delete(additionalProperties, "happy_paths_regression_testing") + delete(additionalProperties, "regression_testing_file_upload_ids") + delete(additionalProperties, "asm_technologies") + delete(additionalProperties, "locations_next") + delete(additionalProperties, "external_crawling_task") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationExperimental struct { + value *GetProfile200ResponseConfigurationExperimental + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationExperimental) Get() *GetProfile200ResponseConfigurationExperimental { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationExperimental) Set(val *GetProfile200ResponseConfigurationExperimental) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationExperimental) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationExperimental) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationExperimental(val *GetProfile200ResponseConfigurationExperimental) *NullableGetProfile200ResponseConfigurationExperimental { + return &NullableGetProfile200ResponseConfigurationExperimental{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationExperimental) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationExperimental) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast.go similarity index 55% rename from pkg/api/v3/model_profile_detailed_configuration_frontend_dast.go rename to pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast.go index 6bdca266..d82488e6 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast.go @@ -14,11 +14,12 @@ import ( "encoding/json" ) -// checks if the ProfileDetailedConfigurationFrontendDast type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationFrontendDast{} +// checks if the GetProfile200ResponseConfigurationFrontendDast type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationFrontendDast{} -// ProfileDetailedConfigurationFrontendDast struct for ProfileDetailedConfigurationFrontendDast -type ProfileDetailedConfigurationFrontendDast struct { +// GetProfile200ResponseConfigurationFrontendDast struct for GetProfile200ResponseConfigurationFrontendDast +type GetProfile200ResponseConfigurationFrontendDast struct { + CustomData map[string]string `json:"custom_data,omitempty"` LocationId *string `json:"location_id,omitempty"` Mode *ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE `json:"mode,omitempty"` MaxDuration *float32 `json:"max_duration,omitempty"` @@ -29,38 +30,70 @@ type ProfileDetailedConfigurationFrontendDast struct { ParallelWorkers *float32 `json:"parallel_workers,omitempty"` RelaxCorsSecurity *bool `json:"relax_cors_security,omitempty"` UserAgent *string `json:"user_agent,omitempty"` - UsePersistence *bool `json:"use_persistence,omitempty"` EscapeUserHeader *bool `json:"escape_user_header,omitempty"` PrefetchSitemap *bool `json:"prefetch_sitemap,omitempty"` - CrawlingTuning *ProfileDetailedConfigurationFrontendDastCrawlingTuning `json:"crawling_tuning,omitempty"` - StaticCrawling *ProfileDetailedConfigurationFrontendDastStaticCrawling `json:"static_crawling,omitempty"` - LogoutDetection *ProfileDetailedConfigurationFrontendDastLogoutDetection `json:"logout_detection,omitempty"` - Scope *ProfileDetailedConfigurationFrontendDastScope `json:"scope,omitempty"` - AgenticCrawling *ProfileDetailedConfigurationFrontendDastAgenticCrawling `json:"agentic_crawling,omitempty"` + CrawlingTuning *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning `json:"crawling_tuning,omitempty"` + StaticCrawling *GetProfile200ResponseConfigurationFrontendDastStaticCrawling `json:"static_crawling,omitempty"` + LogoutDetection *GetProfile200ResponseConfigurationFrontendDastLogoutDetection `json:"logout_detection,omitempty"` + Scope *GetProfile200ResponseConfigurationFrontendDastScope `json:"scope,omitempty"` + InScopeOnly *bool `json:"in_scope_only,omitempty"` + AgenticCrawling *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling `json:"agentic_crawling,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationFrontendDast ProfileDetailedConfigurationFrontendDast +type _GetProfile200ResponseConfigurationFrontendDast GetProfile200ResponseConfigurationFrontendDast -// NewProfileDetailedConfigurationFrontendDast instantiates a new ProfileDetailedConfigurationFrontendDast object +// NewGetProfile200ResponseConfigurationFrontendDast instantiates a new GetProfile200ResponseConfigurationFrontendDast 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 NewProfileDetailedConfigurationFrontendDast() *ProfileDetailedConfigurationFrontendDast { - this := ProfileDetailedConfigurationFrontendDast{} +func NewGetProfile200ResponseConfigurationFrontendDast() *GetProfile200ResponseConfigurationFrontendDast { + this := GetProfile200ResponseConfigurationFrontendDast{} return &this } -// NewProfileDetailedConfigurationFrontendDastWithDefaults instantiates a new ProfileDetailedConfigurationFrontendDast object +// NewGetProfile200ResponseConfigurationFrontendDastWithDefaults instantiates a new GetProfile200ResponseConfigurationFrontendDast 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 NewProfileDetailedConfigurationFrontendDastWithDefaults() *ProfileDetailedConfigurationFrontendDast { - this := ProfileDetailedConfigurationFrontendDast{} +func NewGetProfile200ResponseConfigurationFrontendDastWithDefaults() *GetProfile200ResponseConfigurationFrontendDast { + this := GetProfile200ResponseConfigurationFrontendDast{} return &this } +// GetCustomData returns the CustomData field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDast) GetCustomData() map[string]string { + if o == nil || IsNil(o.CustomData) { + var ret map[string]string + return ret + } + return o.CustomData +} + +// GetCustomDataOk returns a tuple with the CustomData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDast) GetCustomDataOk() (map[string]string, bool) { + if o == nil || IsNil(o.CustomData) { + return map[string]string{}, false + } + return o.CustomData, true +} + +// HasCustomData returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDast) HasCustomData() bool { + if o != nil && !IsNil(o.CustomData) { + return true + } + + return false +} + +// SetCustomData gets a reference to the given map[string]string and assigns it to the CustomData field. +func (o *GetProfile200ResponseConfigurationFrontendDast) SetCustomData(v map[string]string) { + o.CustomData = v +} + // GetLocationId returns the LocationId field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetLocationId() string { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetLocationId() string { if o == nil || IsNil(o.LocationId) { var ret string return ret @@ -70,7 +103,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetLocationId() string { // GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetLocationIdOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetLocationIdOk() (*string, bool) { if o == nil || IsNil(o.LocationId) { return nil, false } @@ -78,7 +111,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetLocationIdOk() (*string, b } // HasLocationId returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasLocationId() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasLocationId() bool { if o != nil && !IsNil(o.LocationId) { return true } @@ -87,12 +120,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasLocationId() bool { } // SetLocationId gets a reference to the given string and assigns it to the LocationId field. -func (o *ProfileDetailedConfigurationFrontendDast) SetLocationId(v string) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetLocationId(v string) { o.LocationId = &v } // GetMode returns the Mode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetMode() ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetMode() ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE { if o == nil || IsNil(o.Mode) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE return ret @@ -102,7 +135,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetMode() ENUMPROPERTIESCONFI // GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetModeOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetModeOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE, bool) { if o == nil || IsNil(o.Mode) { return nil, false } @@ -110,7 +143,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetModeOk() (*ENUMPROPERTIESC } // HasMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasMode() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasMode() bool { if o != nil && !IsNil(o.Mode) { return true } @@ -119,12 +152,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasMode() bool { } // SetMode gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE and assigns it to the Mode field. -func (o *ProfileDetailedConfigurationFrontendDast) SetMode(v ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetMode(v ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE) { o.Mode = &v } // GetMaxDuration returns the MaxDuration field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetMaxDuration() float32 { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetMaxDuration() float32 { if o == nil || IsNil(o.MaxDuration) { var ret float32 return ret @@ -134,7 +167,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetMaxDuration() float32 { // GetMaxDurationOk returns a tuple with the MaxDuration field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetMaxDurationOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetMaxDurationOk() (*float32, bool) { if o == nil || IsNil(o.MaxDuration) { return nil, false } @@ -142,7 +175,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetMaxDurationOk() (*float32, } // HasMaxDuration returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasMaxDuration() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasMaxDuration() bool { if o != nil && !IsNil(o.MaxDuration) { return true } @@ -151,12 +184,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasMaxDuration() bool { } // SetMaxDuration gets a reference to the given float32 and assigns it to the MaxDuration field. -func (o *ProfileDetailedConfigurationFrontendDast) SetMaxDuration(v float32) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetMaxDuration(v float32) { o.MaxDuration = &v } // GetHotstart returns the Hotstart field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetHotstart() []string { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetHotstart() []string { if o == nil || IsNil(o.Hotstart) { var ret []string return ret @@ -166,7 +199,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetHotstart() []string { // GetHotstartOk returns a tuple with the Hotstart field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetHotstartOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetHotstartOk() ([]string, bool) { if o == nil || IsNil(o.Hotstart) { return nil, false } @@ -174,7 +207,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetHotstartOk() ([]string, bo } // HasHotstart returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasHotstart() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasHotstart() bool { if o != nil && !IsNil(o.Hotstart) { return true } @@ -183,12 +216,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasHotstart() bool { } // SetHotstart gets a reference to the given []string and assigns it to the Hotstart field. -func (o *ProfileDetailedConfigurationFrontendDast) SetHotstart(v []string) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetHotstart(v []string) { o.Hotstart = v } // GetSecurityChecksEnabled returns the SecurityChecksEnabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetSecurityChecksEnabled() []ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESSECURITYCHECKSENABLEDITEMS { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetSecurityChecksEnabled() []ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESSECURITYCHECKSENABLEDITEMS { if o == nil || IsNil(o.SecurityChecksEnabled) { var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESSECURITYCHECKSENABLEDITEMS return ret @@ -198,7 +231,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetSecurityChecksEnabled() [] // GetSecurityChecksEnabledOk returns a tuple with the SecurityChecksEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetSecurityChecksEnabledOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESSECURITYCHECKSENABLEDITEMS, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetSecurityChecksEnabledOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESSECURITYCHECKSENABLEDITEMS, bool) { if o == nil || IsNil(o.SecurityChecksEnabled) { return nil, false } @@ -206,7 +239,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetSecurityChecksEnabledOk() } // HasSecurityChecksEnabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasSecurityChecksEnabled() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasSecurityChecksEnabled() bool { if o != nil && !IsNil(o.SecurityChecksEnabled) { return true } @@ -215,12 +248,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasSecurityChecksEnabled() bo } // SetSecurityChecksEnabled gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESSECURITYCHECKSENABLEDITEMS and assigns it to the SecurityChecksEnabled field. -func (o *ProfileDetailedConfigurationFrontendDast) SetSecurityChecksEnabled(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESSECURITYCHECKSENABLEDITEMS) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetSecurityChecksEnabled(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESSECURITYCHECKSENABLEDITEMS) { o.SecurityChecksEnabled = v } // GetApiChecksDuringAuth returns the ApiChecksDuringAuth field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetApiChecksDuringAuth() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetApiChecksDuringAuth() bool { if o == nil || IsNil(o.ApiChecksDuringAuth) { var ret bool return ret @@ -230,7 +263,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetApiChecksDuringAuth() bool // GetApiChecksDuringAuthOk returns a tuple with the ApiChecksDuringAuth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetApiChecksDuringAuthOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetApiChecksDuringAuthOk() (*bool, bool) { if o == nil || IsNil(o.ApiChecksDuringAuth) { return nil, false } @@ -238,7 +271,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetApiChecksDuringAuthOk() (* } // HasApiChecksDuringAuth returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasApiChecksDuringAuth() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasApiChecksDuringAuth() bool { if o != nil && !IsNil(o.ApiChecksDuringAuth) { return true } @@ -247,12 +280,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasApiChecksDuringAuth() bool } // SetApiChecksDuringAuth gets a reference to the given bool and assigns it to the ApiChecksDuringAuth field. -func (o *ProfileDetailedConfigurationFrontendDast) SetApiChecksDuringAuth(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetApiChecksDuringAuth(v bool) { o.ApiChecksDuringAuth = &v } // GetSinglePageWorker returns the SinglePageWorker field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetSinglePageWorker() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetSinglePageWorker() bool { if o == nil || IsNil(o.SinglePageWorker) { var ret bool return ret @@ -262,7 +295,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetSinglePageWorker() bool { // GetSinglePageWorkerOk returns a tuple with the SinglePageWorker field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetSinglePageWorkerOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetSinglePageWorkerOk() (*bool, bool) { if o == nil || IsNil(o.SinglePageWorker) { return nil, false } @@ -270,7 +303,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetSinglePageWorkerOk() (*boo } // HasSinglePageWorker returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasSinglePageWorker() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasSinglePageWorker() bool { if o != nil && !IsNil(o.SinglePageWorker) { return true } @@ -279,12 +312,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasSinglePageWorker() bool { } // SetSinglePageWorker gets a reference to the given bool and assigns it to the SinglePageWorker field. -func (o *ProfileDetailedConfigurationFrontendDast) SetSinglePageWorker(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetSinglePageWorker(v bool) { o.SinglePageWorker = &v } // GetParallelWorkers returns the ParallelWorkers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetParallelWorkers() float32 { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetParallelWorkers() float32 { if o == nil || IsNil(o.ParallelWorkers) { var ret float32 return ret @@ -294,7 +327,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetParallelWorkers() float32 // GetParallelWorkersOk returns a tuple with the ParallelWorkers field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetParallelWorkersOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetParallelWorkersOk() (*float32, bool) { if o == nil || IsNil(o.ParallelWorkers) { return nil, false } @@ -302,7 +335,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetParallelWorkersOk() (*floa } // HasParallelWorkers returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasParallelWorkers() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasParallelWorkers() bool { if o != nil && !IsNil(o.ParallelWorkers) { return true } @@ -311,12 +344,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasParallelWorkers() bool { } // SetParallelWorkers gets a reference to the given float32 and assigns it to the ParallelWorkers field. -func (o *ProfileDetailedConfigurationFrontendDast) SetParallelWorkers(v float32) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetParallelWorkers(v float32) { o.ParallelWorkers = &v } // GetRelaxCorsSecurity returns the RelaxCorsSecurity field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetRelaxCorsSecurity() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetRelaxCorsSecurity() bool { if o == nil || IsNil(o.RelaxCorsSecurity) { var ret bool return ret @@ -326,7 +359,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetRelaxCorsSecurity() bool { // GetRelaxCorsSecurityOk returns a tuple with the RelaxCorsSecurity field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetRelaxCorsSecurityOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetRelaxCorsSecurityOk() (*bool, bool) { if o == nil || IsNil(o.RelaxCorsSecurity) { return nil, false } @@ -334,7 +367,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetRelaxCorsSecurityOk() (*bo } // HasRelaxCorsSecurity returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasRelaxCorsSecurity() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasRelaxCorsSecurity() bool { if o != nil && !IsNil(o.RelaxCorsSecurity) { return true } @@ -343,12 +376,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasRelaxCorsSecurity() bool { } // SetRelaxCorsSecurity gets a reference to the given bool and assigns it to the RelaxCorsSecurity field. -func (o *ProfileDetailedConfigurationFrontendDast) SetRelaxCorsSecurity(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetRelaxCorsSecurity(v bool) { o.RelaxCorsSecurity = &v } // GetUserAgent returns the UserAgent field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetUserAgent() string { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetUserAgent() string { if o == nil || IsNil(o.UserAgent) { var ret string return ret @@ -358,7 +391,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetUserAgent() string { // GetUserAgentOk returns a tuple with the UserAgent field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetUserAgentOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetUserAgentOk() (*string, bool) { if o == nil || IsNil(o.UserAgent) { return nil, false } @@ -366,7 +399,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetUserAgentOk() (*string, bo } // HasUserAgent returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasUserAgent() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasUserAgent() bool { if o != nil && !IsNil(o.UserAgent) { return true } @@ -375,44 +408,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasUserAgent() bool { } // SetUserAgent gets a reference to the given string and assigns it to the UserAgent field. -func (o *ProfileDetailedConfigurationFrontendDast) SetUserAgent(v string) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetUserAgent(v string) { o.UserAgent = &v } -// GetUsePersistence returns the UsePersistence field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetUsePersistence() bool { - if o == nil || IsNil(o.UsePersistence) { - var ret bool - return ret - } - return *o.UsePersistence -} - -// GetUsePersistenceOk returns a tuple with the UsePersistence field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetUsePersistenceOk() (*bool, bool) { - if o == nil || IsNil(o.UsePersistence) { - return nil, false - } - return o.UsePersistence, true -} - -// HasUsePersistence returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasUsePersistence() bool { - if o != nil && !IsNil(o.UsePersistence) { - return true - } - - return false -} - -// SetUsePersistence gets a reference to the given bool and assigns it to the UsePersistence field. -func (o *ProfileDetailedConfigurationFrontendDast) SetUsePersistence(v bool) { - o.UsePersistence = &v -} - // GetEscapeUserHeader returns the EscapeUserHeader field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetEscapeUserHeader() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetEscapeUserHeader() bool { if o == nil || IsNil(o.EscapeUserHeader) { var ret bool return ret @@ -422,7 +423,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetEscapeUserHeader() bool { // GetEscapeUserHeaderOk returns a tuple with the EscapeUserHeader field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetEscapeUserHeaderOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetEscapeUserHeaderOk() (*bool, bool) { if o == nil || IsNil(o.EscapeUserHeader) { return nil, false } @@ -430,7 +431,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetEscapeUserHeaderOk() (*boo } // HasEscapeUserHeader returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasEscapeUserHeader() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasEscapeUserHeader() bool { if o != nil && !IsNil(o.EscapeUserHeader) { return true } @@ -439,12 +440,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasEscapeUserHeader() bool { } // SetEscapeUserHeader gets a reference to the given bool and assigns it to the EscapeUserHeader field. -func (o *ProfileDetailedConfigurationFrontendDast) SetEscapeUserHeader(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetEscapeUserHeader(v bool) { o.EscapeUserHeader = &v } // GetPrefetchSitemap returns the PrefetchSitemap field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetPrefetchSitemap() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetPrefetchSitemap() bool { if o == nil || IsNil(o.PrefetchSitemap) { var ret bool return ret @@ -454,7 +455,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetPrefetchSitemap() bool { // GetPrefetchSitemapOk returns a tuple with the PrefetchSitemap field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetPrefetchSitemapOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetPrefetchSitemapOk() (*bool, bool) { if o == nil || IsNil(o.PrefetchSitemap) { return nil, false } @@ -462,7 +463,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetPrefetchSitemapOk() (*bool } // HasPrefetchSitemap returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasPrefetchSitemap() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasPrefetchSitemap() bool { if o != nil && !IsNil(o.PrefetchSitemap) { return true } @@ -471,14 +472,14 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasPrefetchSitemap() bool { } // SetPrefetchSitemap gets a reference to the given bool and assigns it to the PrefetchSitemap field. -func (o *ProfileDetailedConfigurationFrontendDast) SetPrefetchSitemap(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) SetPrefetchSitemap(v bool) { o.PrefetchSitemap = &v } // GetCrawlingTuning returns the CrawlingTuning field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetCrawlingTuning() ProfileDetailedConfigurationFrontendDastCrawlingTuning { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetCrawlingTuning() GetProfile200ResponseConfigurationFrontendDastCrawlingTuning { if o == nil || IsNil(o.CrawlingTuning) { - var ret ProfileDetailedConfigurationFrontendDastCrawlingTuning + var ret GetProfile200ResponseConfigurationFrontendDastCrawlingTuning return ret } return *o.CrawlingTuning @@ -486,7 +487,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetCrawlingTuning() ProfileDe // GetCrawlingTuningOk returns a tuple with the CrawlingTuning field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetCrawlingTuningOk() (*ProfileDetailedConfigurationFrontendDastCrawlingTuning, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetCrawlingTuningOk() (*GetProfile200ResponseConfigurationFrontendDastCrawlingTuning, bool) { if o == nil || IsNil(o.CrawlingTuning) { return nil, false } @@ -494,7 +495,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetCrawlingTuningOk() (*Profi } // HasCrawlingTuning returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasCrawlingTuning() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasCrawlingTuning() bool { if o != nil && !IsNil(o.CrawlingTuning) { return true } @@ -502,15 +503,15 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasCrawlingTuning() bool { return false } -// SetCrawlingTuning gets a reference to the given ProfileDetailedConfigurationFrontendDastCrawlingTuning and assigns it to the CrawlingTuning field. -func (o *ProfileDetailedConfigurationFrontendDast) SetCrawlingTuning(v ProfileDetailedConfigurationFrontendDastCrawlingTuning) { +// SetCrawlingTuning gets a reference to the given GetProfile200ResponseConfigurationFrontendDastCrawlingTuning and assigns it to the CrawlingTuning field. +func (o *GetProfile200ResponseConfigurationFrontendDast) SetCrawlingTuning(v GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) { o.CrawlingTuning = &v } // GetStaticCrawling returns the StaticCrawling field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetStaticCrawling() ProfileDetailedConfigurationFrontendDastStaticCrawling { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetStaticCrawling() GetProfile200ResponseConfigurationFrontendDastStaticCrawling { if o == nil || IsNil(o.StaticCrawling) { - var ret ProfileDetailedConfigurationFrontendDastStaticCrawling + var ret GetProfile200ResponseConfigurationFrontendDastStaticCrawling return ret } return *o.StaticCrawling @@ -518,7 +519,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetStaticCrawling() ProfileDe // GetStaticCrawlingOk returns a tuple with the StaticCrawling field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetStaticCrawlingOk() (*ProfileDetailedConfigurationFrontendDastStaticCrawling, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetStaticCrawlingOk() (*GetProfile200ResponseConfigurationFrontendDastStaticCrawling, bool) { if o == nil || IsNil(o.StaticCrawling) { return nil, false } @@ -526,7 +527,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetStaticCrawlingOk() (*Profi } // HasStaticCrawling returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasStaticCrawling() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasStaticCrawling() bool { if o != nil && !IsNil(o.StaticCrawling) { return true } @@ -534,15 +535,15 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasStaticCrawling() bool { return false } -// SetStaticCrawling gets a reference to the given ProfileDetailedConfigurationFrontendDastStaticCrawling and assigns it to the StaticCrawling field. -func (o *ProfileDetailedConfigurationFrontendDast) SetStaticCrawling(v ProfileDetailedConfigurationFrontendDastStaticCrawling) { +// SetStaticCrawling gets a reference to the given GetProfile200ResponseConfigurationFrontendDastStaticCrawling and assigns it to the StaticCrawling field. +func (o *GetProfile200ResponseConfigurationFrontendDast) SetStaticCrawling(v GetProfile200ResponseConfigurationFrontendDastStaticCrawling) { o.StaticCrawling = &v } // GetLogoutDetection returns the LogoutDetection field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetLogoutDetection() ProfileDetailedConfigurationFrontendDastLogoutDetection { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetLogoutDetection() GetProfile200ResponseConfigurationFrontendDastLogoutDetection { if o == nil || IsNil(o.LogoutDetection) { - var ret ProfileDetailedConfigurationFrontendDastLogoutDetection + var ret GetProfile200ResponseConfigurationFrontendDastLogoutDetection return ret } return *o.LogoutDetection @@ -550,7 +551,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetLogoutDetection() ProfileD // GetLogoutDetectionOk returns a tuple with the LogoutDetection field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetLogoutDetectionOk() (*ProfileDetailedConfigurationFrontendDastLogoutDetection, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetLogoutDetectionOk() (*GetProfile200ResponseConfigurationFrontendDastLogoutDetection, bool) { if o == nil || IsNil(o.LogoutDetection) { return nil, false } @@ -558,7 +559,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetLogoutDetectionOk() (*Prof } // HasLogoutDetection returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasLogoutDetection() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasLogoutDetection() bool { if o != nil && !IsNil(o.LogoutDetection) { return true } @@ -566,15 +567,15 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasLogoutDetection() bool { return false } -// SetLogoutDetection gets a reference to the given ProfileDetailedConfigurationFrontendDastLogoutDetection and assigns it to the LogoutDetection field. -func (o *ProfileDetailedConfigurationFrontendDast) SetLogoutDetection(v ProfileDetailedConfigurationFrontendDastLogoutDetection) { +// SetLogoutDetection gets a reference to the given GetProfile200ResponseConfigurationFrontendDastLogoutDetection and assigns it to the LogoutDetection field. +func (o *GetProfile200ResponseConfigurationFrontendDast) SetLogoutDetection(v GetProfile200ResponseConfigurationFrontendDastLogoutDetection) { o.LogoutDetection = &v } // GetScope returns the Scope field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetScope() ProfileDetailedConfigurationFrontendDastScope { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetScope() GetProfile200ResponseConfigurationFrontendDastScope { if o == nil || IsNil(o.Scope) { - var ret ProfileDetailedConfigurationFrontendDastScope + var ret GetProfile200ResponseConfigurationFrontendDastScope return ret } return *o.Scope @@ -582,7 +583,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetScope() ProfileDetailedCon // GetScopeOk returns a tuple with the Scope field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetScopeOk() (*ProfileDetailedConfigurationFrontendDastScope, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetScopeOk() (*GetProfile200ResponseConfigurationFrontendDastScope, bool) { if o == nil || IsNil(o.Scope) { return nil, false } @@ -590,7 +591,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetScopeOk() (*ProfileDetaile } // HasScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasScope() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasScope() bool { if o != nil && !IsNil(o.Scope) { return true } @@ -598,15 +599,47 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasScope() bool { return false } -// SetScope gets a reference to the given ProfileDetailedConfigurationFrontendDastScope and assigns it to the Scope field. -func (o *ProfileDetailedConfigurationFrontendDast) SetScope(v ProfileDetailedConfigurationFrontendDastScope) { +// SetScope gets a reference to the given GetProfile200ResponseConfigurationFrontendDastScope and assigns it to the Scope field. +func (o *GetProfile200ResponseConfigurationFrontendDast) SetScope(v GetProfile200ResponseConfigurationFrontendDastScope) { o.Scope = &v } +// GetInScopeOnly returns the InScopeOnly field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDast) GetInScopeOnly() bool { + if o == nil || IsNil(o.InScopeOnly) { + var ret bool + return ret + } + return *o.InScopeOnly +} + +// GetInScopeOnlyOk returns a tuple with the InScopeOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDast) GetInScopeOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.InScopeOnly) { + return nil, false + } + return o.InScopeOnly, true +} + +// HasInScopeOnly returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDast) HasInScopeOnly() bool { + if o != nil && !IsNil(o.InScopeOnly) { + return true + } + + return false +} + +// SetInScopeOnly gets a reference to the given bool and assigns it to the InScopeOnly field. +func (o *GetProfile200ResponseConfigurationFrontendDast) SetInScopeOnly(v bool) { + o.InScopeOnly = &v +} + // GetAgenticCrawling returns the AgenticCrawling field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDast) GetAgenticCrawling() ProfileDetailedConfigurationFrontendDastAgenticCrawling { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetAgenticCrawling() GetProfile200ResponseConfigurationFrontendDastAgenticCrawling { if o == nil || IsNil(o.AgenticCrawling) { - var ret ProfileDetailedConfigurationFrontendDastAgenticCrawling + var ret GetProfile200ResponseConfigurationFrontendDastAgenticCrawling return ret } return *o.AgenticCrawling @@ -614,7 +647,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetAgenticCrawling() ProfileD // GetAgenticCrawlingOk returns a tuple with the AgenticCrawling field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDast) GetAgenticCrawlingOk() (*ProfileDetailedConfigurationFrontendDastAgenticCrawling, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDast) GetAgenticCrawlingOk() (*GetProfile200ResponseConfigurationFrontendDastAgenticCrawling, bool) { if o == nil || IsNil(o.AgenticCrawling) { return nil, false } @@ -622,7 +655,7 @@ func (o *ProfileDetailedConfigurationFrontendDast) GetAgenticCrawlingOk() (*Prof } // HasAgenticCrawling returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDast) HasAgenticCrawling() bool { +func (o *GetProfile200ResponseConfigurationFrontendDast) HasAgenticCrawling() bool { if o != nil && !IsNil(o.AgenticCrawling) { return true } @@ -630,12 +663,12 @@ func (o *ProfileDetailedConfigurationFrontendDast) HasAgenticCrawling() bool { return false } -// SetAgenticCrawling gets a reference to the given ProfileDetailedConfigurationFrontendDastAgenticCrawling and assigns it to the AgenticCrawling field. -func (o *ProfileDetailedConfigurationFrontendDast) SetAgenticCrawling(v ProfileDetailedConfigurationFrontendDastAgenticCrawling) { +// SetAgenticCrawling gets a reference to the given GetProfile200ResponseConfigurationFrontendDastAgenticCrawling and assigns it to the AgenticCrawling field. +func (o *GetProfile200ResponseConfigurationFrontendDast) SetAgenticCrawling(v GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) { o.AgenticCrawling = &v } -func (o ProfileDetailedConfigurationFrontendDast) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationFrontendDast) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -643,8 +676,11 @@ func (o ProfileDetailedConfigurationFrontendDast) MarshalJSON() ([]byte, error) return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationFrontendDast) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationFrontendDast) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CustomData) { + toSerialize["custom_data"] = o.CustomData + } if !IsNil(o.LocationId) { toSerialize["location_id"] = o.LocationId } @@ -675,9 +711,6 @@ func (o ProfileDetailedConfigurationFrontendDast) ToMap() (map[string]interface{ if !IsNil(o.UserAgent) { toSerialize["user_agent"] = o.UserAgent } - if !IsNil(o.UsePersistence) { - toSerialize["use_persistence"] = o.UsePersistence - } if !IsNil(o.EscapeUserHeader) { toSerialize["escape_user_header"] = o.EscapeUserHeader } @@ -696,6 +729,9 @@ func (o ProfileDetailedConfigurationFrontendDast) ToMap() (map[string]interface{ if !IsNil(o.Scope) { toSerialize["scope"] = o.Scope } + if !IsNil(o.InScopeOnly) { + toSerialize["in_scope_only"] = o.InScopeOnly + } if !IsNil(o.AgenticCrawling) { toSerialize["agentic_crawling"] = o.AgenticCrawling } @@ -707,20 +743,21 @@ func (o ProfileDetailedConfigurationFrontendDast) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *ProfileDetailedConfigurationFrontendDast) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationFrontendDast := _ProfileDetailedConfigurationFrontendDast{} +func (o *GetProfile200ResponseConfigurationFrontendDast) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationFrontendDast := _GetProfile200ResponseConfigurationFrontendDast{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationFrontendDast) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationFrontendDast) if err != nil { return err } - *o = ProfileDetailedConfigurationFrontendDast(varProfileDetailedConfigurationFrontendDast) + *o = GetProfile200ResponseConfigurationFrontendDast(varGetProfile200ResponseConfigurationFrontendDast) additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "custom_data") delete(additionalProperties, "location_id") delete(additionalProperties, "mode") delete(additionalProperties, "max_duration") @@ -731,13 +768,13 @@ func (o *ProfileDetailedConfigurationFrontendDast) UnmarshalJSON(data []byte) (e delete(additionalProperties, "parallel_workers") delete(additionalProperties, "relax_cors_security") delete(additionalProperties, "user_agent") - delete(additionalProperties, "use_persistence") delete(additionalProperties, "escape_user_header") delete(additionalProperties, "prefetch_sitemap") delete(additionalProperties, "crawling_tuning") delete(additionalProperties, "static_crawling") delete(additionalProperties, "logout_detection") delete(additionalProperties, "scope") + delete(additionalProperties, "in_scope_only") delete(additionalProperties, "agentic_crawling") o.AdditionalProperties = additionalProperties } @@ -745,38 +782,38 @@ func (o *ProfileDetailedConfigurationFrontendDast) UnmarshalJSON(data []byte) (e return err } -type NullableProfileDetailedConfigurationFrontendDast struct { - value *ProfileDetailedConfigurationFrontendDast +type NullableGetProfile200ResponseConfigurationFrontendDast struct { + value *GetProfile200ResponseConfigurationFrontendDast isSet bool } -func (v NullableProfileDetailedConfigurationFrontendDast) Get() *ProfileDetailedConfigurationFrontendDast { +func (v NullableGetProfile200ResponseConfigurationFrontendDast) Get() *GetProfile200ResponseConfigurationFrontendDast { return v.value } -func (v *NullableProfileDetailedConfigurationFrontendDast) Set(val *ProfileDetailedConfigurationFrontendDast) { +func (v *NullableGetProfile200ResponseConfigurationFrontendDast) Set(val *GetProfile200ResponseConfigurationFrontendDast) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationFrontendDast) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationFrontendDast) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationFrontendDast) Unset() { +func (v *NullableGetProfile200ResponseConfigurationFrontendDast) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationFrontendDast(val *ProfileDetailedConfigurationFrontendDast) *NullableProfileDetailedConfigurationFrontendDast { - return &NullableProfileDetailedConfigurationFrontendDast{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationFrontendDast(val *GetProfile200ResponseConfigurationFrontendDast) *NullableGetProfile200ResponseConfigurationFrontendDast { + return &NullableGetProfile200ResponseConfigurationFrontendDast{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationFrontendDast) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationFrontendDast) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationFrontendDast) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationFrontendDast) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_agentic_crawling.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_agentic_crawling.go new file mode 100644 index 00000000..65c343c9 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_agentic_crawling.go @@ -0,0 +1,227 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationFrontendDastAgenticCrawling type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationFrontendDastAgenticCrawling{} + +// GetProfile200ResponseConfigurationFrontendDastAgenticCrawling struct for GetProfile200ResponseConfigurationFrontendDastAgenticCrawling +type GetProfile200ResponseConfigurationFrontendDastAgenticCrawling struct { + Enabled *bool `json:"enabled,omitempty"` + SpaCrawling *bool `json:"spa_crawling,omitempty"` + Instructions *string `json:"instructions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationFrontendDastAgenticCrawling GetProfile200ResponseConfigurationFrontendDastAgenticCrawling + +// NewGetProfile200ResponseConfigurationFrontendDastAgenticCrawling instantiates a new GetProfile200ResponseConfigurationFrontendDastAgenticCrawling 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 NewGetProfile200ResponseConfigurationFrontendDastAgenticCrawling() *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling { + this := GetProfile200ResponseConfigurationFrontendDastAgenticCrawling{} + return &this +} + +// NewGetProfile200ResponseConfigurationFrontendDastAgenticCrawlingWithDefaults instantiates a new GetProfile200ResponseConfigurationFrontendDastAgenticCrawling 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 NewGetProfile200ResponseConfigurationFrontendDastAgenticCrawlingWithDefaults() *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling { + this := GetProfile200ResponseConfigurationFrontendDastAgenticCrawling{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetSpaCrawling returns the SpaCrawling field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) GetSpaCrawling() bool { + if o == nil || IsNil(o.SpaCrawling) { + var ret bool + return ret + } + return *o.SpaCrawling +} + +// GetSpaCrawlingOk returns a tuple with the SpaCrawling field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) GetSpaCrawlingOk() (*bool, bool) { + if o == nil || IsNil(o.SpaCrawling) { + return nil, false + } + return o.SpaCrawling, true +} + +// HasSpaCrawling returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) HasSpaCrawling() bool { + if o != nil && !IsNil(o.SpaCrawling) { + return true + } + + return false +} + +// SetSpaCrawling gets a reference to the given bool and assigns it to the SpaCrawling field. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) SetSpaCrawling(v bool) { + o.SpaCrawling = &v +} + +// GetInstructions returns the Instructions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) GetInstructions() string { + if o == nil || IsNil(o.Instructions) { + var ret string + return ret + } + return *o.Instructions +} + +// GetInstructionsOk returns a tuple with the Instructions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) GetInstructionsOk() (*string, bool) { + if o == nil || IsNil(o.Instructions) { + return nil, false + } + return o.Instructions, true +} + +// HasInstructions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) HasInstructions() bool { + if o != nil && !IsNil(o.Instructions) { + return true + } + + return false +} + +// SetInstructions gets a reference to the given string and assigns it to the Instructions field. +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) SetInstructions(v string) { + o.Instructions = &v +} + +func (o GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.SpaCrawling) { + toSerialize["spa_crawling"] = o.SpaCrawling + } + if !IsNil(o.Instructions) { + toSerialize["instructions"] = o.Instructions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationFrontendDastAgenticCrawling := _GetProfile200ResponseConfigurationFrontendDastAgenticCrawling{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationFrontendDastAgenticCrawling) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationFrontendDastAgenticCrawling(varGetProfile200ResponseConfigurationFrontendDastAgenticCrawling) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enabled") + delete(additionalProperties, "spa_crawling") + delete(additionalProperties, "instructions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling struct { + value *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling) Get() *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling) Set(val *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling(val *GetProfile200ResponseConfigurationFrontendDastAgenticCrawling) *NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling { + return &NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastAgenticCrawling) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_crawling_tuning.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_crawling_tuning.go similarity index 55% rename from pkg/api/v3/model_profile_detailed_configuration_frontend_dast_crawling_tuning.go rename to pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_crawling_tuning.go index 9a421b45..d4f92dcf 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_crawling_tuning.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_crawling_tuning.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the ProfileDetailedConfigurationFrontendDastCrawlingTuning type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationFrontendDastCrawlingTuning{} +// checks if the GetProfile200ResponseConfigurationFrontendDastCrawlingTuning type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationFrontendDastCrawlingTuning{} -// ProfileDetailedConfigurationFrontendDastCrawlingTuning struct for ProfileDetailedConfigurationFrontendDastCrawlingTuning -type ProfileDetailedConfigurationFrontendDastCrawlingTuning struct { +// GetProfile200ResponseConfigurationFrontendDastCrawlingTuning struct for GetProfile200ResponseConfigurationFrontendDastCrawlingTuning +type GetProfile200ResponseConfigurationFrontendDastCrawlingTuning struct { MaxUniqueValuesPerQueryParam *float32 `json:"max_unique_values_per_query_param,omitempty"` MaxUniqueFragmentsPerPage *float32 `json:"max_unique_fragments_per_page,omitempty"` MaxParameterizedUrlVariations *float32 `json:"max_parameterized_url_variations,omitempty"` @@ -26,27 +26,27 @@ type ProfileDetailedConfigurationFrontendDastCrawlingTuning struct { AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationFrontendDastCrawlingTuning ProfileDetailedConfigurationFrontendDastCrawlingTuning +type _GetProfile200ResponseConfigurationFrontendDastCrawlingTuning GetProfile200ResponseConfigurationFrontendDastCrawlingTuning -// NewProfileDetailedConfigurationFrontendDastCrawlingTuning instantiates a new ProfileDetailedConfigurationFrontendDastCrawlingTuning object +// NewGetProfile200ResponseConfigurationFrontendDastCrawlingTuning instantiates a new GetProfile200ResponseConfigurationFrontendDastCrawlingTuning 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 NewProfileDetailedConfigurationFrontendDastCrawlingTuning() *ProfileDetailedConfigurationFrontendDastCrawlingTuning { - this := ProfileDetailedConfigurationFrontendDastCrawlingTuning{} +func NewGetProfile200ResponseConfigurationFrontendDastCrawlingTuning() *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning { + this := GetProfile200ResponseConfigurationFrontendDastCrawlingTuning{} return &this } -// NewProfileDetailedConfigurationFrontendDastCrawlingTuningWithDefaults instantiates a new ProfileDetailedConfigurationFrontendDastCrawlingTuning object +// NewGetProfile200ResponseConfigurationFrontendDastCrawlingTuningWithDefaults instantiates a new GetProfile200ResponseConfigurationFrontendDastCrawlingTuning 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 NewProfileDetailedConfigurationFrontendDastCrawlingTuningWithDefaults() *ProfileDetailedConfigurationFrontendDastCrawlingTuning { - this := ProfileDetailedConfigurationFrontendDastCrawlingTuning{} +func NewGetProfile200ResponseConfigurationFrontendDastCrawlingTuningWithDefaults() *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning { + this := GetProfile200ResponseConfigurationFrontendDastCrawlingTuning{} return &this } // GetMaxUniqueValuesPerQueryParam returns the MaxUniqueValuesPerQueryParam field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxUniqueValuesPerQueryParam() float32 { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) GetMaxUniqueValuesPerQueryParam() float32 { if o == nil || IsNil(o.MaxUniqueValuesPerQueryParam) { var ret float32 return ret @@ -56,7 +56,7 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxUniqueVal // GetMaxUniqueValuesPerQueryParamOk returns a tuple with the MaxUniqueValuesPerQueryParam field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxUniqueValuesPerQueryParamOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) GetMaxUniqueValuesPerQueryParamOk() (*float32, bool) { if o == nil || IsNil(o.MaxUniqueValuesPerQueryParam) { return nil, false } @@ -64,7 +64,7 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxUniqueVal } // HasMaxUniqueValuesPerQueryParam returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) HasMaxUniqueValuesPerQueryParam() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) HasMaxUniqueValuesPerQueryParam() bool { if o != nil && !IsNil(o.MaxUniqueValuesPerQueryParam) { return true } @@ -73,12 +73,12 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) HasMaxUniqueVal } // SetMaxUniqueValuesPerQueryParam gets a reference to the given float32 and assigns it to the MaxUniqueValuesPerQueryParam field. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) SetMaxUniqueValuesPerQueryParam(v float32) { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) SetMaxUniqueValuesPerQueryParam(v float32) { o.MaxUniqueValuesPerQueryParam = &v } // GetMaxUniqueFragmentsPerPage returns the MaxUniqueFragmentsPerPage field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxUniqueFragmentsPerPage() float32 { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) GetMaxUniqueFragmentsPerPage() float32 { if o == nil || IsNil(o.MaxUniqueFragmentsPerPage) { var ret float32 return ret @@ -88,7 +88,7 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxUniqueFra // GetMaxUniqueFragmentsPerPageOk returns a tuple with the MaxUniqueFragmentsPerPage field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxUniqueFragmentsPerPageOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) GetMaxUniqueFragmentsPerPageOk() (*float32, bool) { if o == nil || IsNil(o.MaxUniqueFragmentsPerPage) { return nil, false } @@ -96,7 +96,7 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxUniqueFra } // HasMaxUniqueFragmentsPerPage returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) HasMaxUniqueFragmentsPerPage() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) HasMaxUniqueFragmentsPerPage() bool { if o != nil && !IsNil(o.MaxUniqueFragmentsPerPage) { return true } @@ -105,12 +105,12 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) HasMaxUniqueFra } // SetMaxUniqueFragmentsPerPage gets a reference to the given float32 and assigns it to the MaxUniqueFragmentsPerPage field. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) SetMaxUniqueFragmentsPerPage(v float32) { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) SetMaxUniqueFragmentsPerPage(v float32) { o.MaxUniqueFragmentsPerPage = &v } // GetMaxParameterizedUrlVariations returns the MaxParameterizedUrlVariations field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxParameterizedUrlVariations() float32 { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) GetMaxParameterizedUrlVariations() float32 { if o == nil || IsNil(o.MaxParameterizedUrlVariations) { var ret float32 return ret @@ -120,7 +120,7 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxParameter // GetMaxParameterizedUrlVariationsOk returns a tuple with the MaxParameterizedUrlVariations field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxParameterizedUrlVariationsOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) GetMaxParameterizedUrlVariationsOk() (*float32, bool) { if o == nil || IsNil(o.MaxParameterizedUrlVariations) { return nil, false } @@ -128,7 +128,7 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetMaxParameter } // HasMaxParameterizedUrlVariations returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) HasMaxParameterizedUrlVariations() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) HasMaxParameterizedUrlVariations() bool { if o != nil && !IsNil(o.MaxParameterizedUrlVariations) { return true } @@ -137,12 +137,12 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) HasMaxParameter } // SetMaxParameterizedUrlVariations gets a reference to the given float32 and assigns it to the MaxParameterizedUrlVariations field. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) SetMaxParameterizedUrlVariations(v float32) { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) SetMaxParameterizedUrlVariations(v float32) { o.MaxParameterizedUrlVariations = &v } // GetOnlyInscopeCrawlingLogs returns the OnlyInscopeCrawlingLogs field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetOnlyInscopeCrawlingLogs() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) GetOnlyInscopeCrawlingLogs() bool { if o == nil || IsNil(o.OnlyInscopeCrawlingLogs) { var ret bool return ret @@ -152,7 +152,7 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetOnlyInscopeC // GetOnlyInscopeCrawlingLogsOk returns a tuple with the OnlyInscopeCrawlingLogs field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetOnlyInscopeCrawlingLogsOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) GetOnlyInscopeCrawlingLogsOk() (*bool, bool) { if o == nil || IsNil(o.OnlyInscopeCrawlingLogs) { return nil, false } @@ -160,7 +160,7 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) GetOnlyInscopeC } // HasOnlyInscopeCrawlingLogs returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) HasOnlyInscopeCrawlingLogs() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) HasOnlyInscopeCrawlingLogs() bool { if o != nil && !IsNil(o.OnlyInscopeCrawlingLogs) { return true } @@ -169,11 +169,11 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) HasOnlyInscopeC } // SetOnlyInscopeCrawlingLogs gets a reference to the given bool and assigns it to the OnlyInscopeCrawlingLogs field. -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) SetOnlyInscopeCrawlingLogs(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) SetOnlyInscopeCrawlingLogs(v bool) { o.OnlyInscopeCrawlingLogs = &v } -func (o ProfileDetailedConfigurationFrontendDastCrawlingTuning) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -181,7 +181,7 @@ func (o ProfileDetailedConfigurationFrontendDastCrawlingTuning) MarshalJSON() ([ return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationFrontendDastCrawlingTuning) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.MaxUniqueValuesPerQueryParam) { toSerialize["max_unique_values_per_query_param"] = o.MaxUniqueValuesPerQueryParam @@ -203,16 +203,16 @@ func (o ProfileDetailedConfigurationFrontendDastCrawlingTuning) ToMap() (map[str return toSerialize, nil } -func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationFrontendDastCrawlingTuning := _ProfileDetailedConfigurationFrontendDastCrawlingTuning{} +func (o *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationFrontendDastCrawlingTuning := _GetProfile200ResponseConfigurationFrontendDastCrawlingTuning{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationFrontendDastCrawlingTuning) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationFrontendDastCrawlingTuning) if err != nil { return err } - *o = ProfileDetailedConfigurationFrontendDastCrawlingTuning(varProfileDetailedConfigurationFrontendDastCrawlingTuning) + *o = GetProfile200ResponseConfigurationFrontendDastCrawlingTuning(varGetProfile200ResponseConfigurationFrontendDastCrawlingTuning) additionalProperties := make(map[string]interface{}) @@ -227,38 +227,38 @@ func (o *ProfileDetailedConfigurationFrontendDastCrawlingTuning) UnmarshalJSON(d return err } -type NullableProfileDetailedConfigurationFrontendDastCrawlingTuning struct { - value *ProfileDetailedConfigurationFrontendDastCrawlingTuning +type NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning struct { + value *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning isSet bool } -func (v NullableProfileDetailedConfigurationFrontendDastCrawlingTuning) Get() *ProfileDetailedConfigurationFrontendDastCrawlingTuning { +func (v NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning) Get() *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning { return v.value } -func (v *NullableProfileDetailedConfigurationFrontendDastCrawlingTuning) Set(val *ProfileDetailedConfigurationFrontendDastCrawlingTuning) { +func (v *NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning) Set(val *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationFrontendDastCrawlingTuning) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationFrontendDastCrawlingTuning) Unset() { +func (v *NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationFrontendDastCrawlingTuning(val *ProfileDetailedConfigurationFrontendDastCrawlingTuning) *NullableProfileDetailedConfigurationFrontendDastCrawlingTuning { - return &NullableProfileDetailedConfigurationFrontendDastCrawlingTuning{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning(val *GetProfile200ResponseConfigurationFrontendDastCrawlingTuning) *NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning { + return &NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationFrontendDastCrawlingTuning) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationFrontendDastCrawlingTuning) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationFrontendDastCrawlingTuning) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_logout_detection.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_logout_detection.go similarity index 58% rename from pkg/api/v3/model_profile_detailed_configuration_frontend_dast_logout_detection.go rename to pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_logout_detection.go index 82702921..1ba9fa3b 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_logout_detection.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_logout_detection.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the ProfileDetailedConfigurationFrontendDastLogoutDetection type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationFrontendDastLogoutDetection{} +// checks if the GetProfile200ResponseConfigurationFrontendDastLogoutDetection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationFrontendDastLogoutDetection{} -// ProfileDetailedConfigurationFrontendDastLogoutDetection struct for ProfileDetailedConfigurationFrontendDastLogoutDetection -type ProfileDetailedConfigurationFrontendDastLogoutDetection struct { +// GetProfile200ResponseConfigurationFrontendDastLogoutDetection struct for GetProfile200ResponseConfigurationFrontendDastLogoutDetection +type GetProfile200ResponseConfigurationFrontendDastLogoutDetection struct { Enabled *bool `json:"enabled,omitempty"` LoggedInIndicatorRegexPatterns []string `json:"logged_in_indicator_regex_patterns,omitempty"` LogoutRedirectionUrlPatterns []string `json:"logout_redirection_url_patterns,omitempty"` @@ -28,27 +28,27 @@ type ProfileDetailedConfigurationFrontendDastLogoutDetection struct { AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationFrontendDastLogoutDetection ProfileDetailedConfigurationFrontendDastLogoutDetection +type _GetProfile200ResponseConfigurationFrontendDastLogoutDetection GetProfile200ResponseConfigurationFrontendDastLogoutDetection -// NewProfileDetailedConfigurationFrontendDastLogoutDetection instantiates a new ProfileDetailedConfigurationFrontendDastLogoutDetection object +// NewGetProfile200ResponseConfigurationFrontendDastLogoutDetection instantiates a new GetProfile200ResponseConfigurationFrontendDastLogoutDetection 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 NewProfileDetailedConfigurationFrontendDastLogoutDetection() *ProfileDetailedConfigurationFrontendDastLogoutDetection { - this := ProfileDetailedConfigurationFrontendDastLogoutDetection{} +func NewGetProfile200ResponseConfigurationFrontendDastLogoutDetection() *GetProfile200ResponseConfigurationFrontendDastLogoutDetection { + this := GetProfile200ResponseConfigurationFrontendDastLogoutDetection{} return &this } -// NewProfileDetailedConfigurationFrontendDastLogoutDetectionWithDefaults instantiates a new ProfileDetailedConfigurationFrontendDastLogoutDetection object +// NewGetProfile200ResponseConfigurationFrontendDastLogoutDetectionWithDefaults instantiates a new GetProfile200ResponseConfigurationFrontendDastLogoutDetection 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 NewProfileDetailedConfigurationFrontendDastLogoutDetectionWithDefaults() *ProfileDetailedConfigurationFrontendDastLogoutDetection { - this := ProfileDetailedConfigurationFrontendDastLogoutDetection{} +func NewGetProfile200ResponseConfigurationFrontendDastLogoutDetectionWithDefaults() *GetProfile200ResponseConfigurationFrontendDastLogoutDetection { + this := GetProfile200ResponseConfigurationFrontendDastLogoutDetection{} return &this } // GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetEnabled() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { var ret bool return ret @@ -58,7 +58,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetEnabled() b // GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetEnabledOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetEnabledOk() (*bool, bool) { if o == nil || IsNil(o.Enabled) { return nil, false } @@ -66,7 +66,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetEnabledOk() } // HasEnabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasEnabled() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) HasEnabled() bool { if o != nil && !IsNil(o.Enabled) { return true } @@ -75,12 +75,12 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasEnabled() b } // SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) SetEnabled(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) SetEnabled(v bool) { o.Enabled = &v } // GetLoggedInIndicatorRegexPatterns returns the LoggedInIndicatorRegexPatterns field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetLoggedInIndicatorRegexPatterns() []string { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetLoggedInIndicatorRegexPatterns() []string { if o == nil || IsNil(o.LoggedInIndicatorRegexPatterns) { var ret []string return ret @@ -90,7 +90,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetLoggedInInd // GetLoggedInIndicatorRegexPatternsOk returns a tuple with the LoggedInIndicatorRegexPatterns field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetLoggedInIndicatorRegexPatternsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetLoggedInIndicatorRegexPatternsOk() ([]string, bool) { if o == nil || IsNil(o.LoggedInIndicatorRegexPatterns) { return nil, false } @@ -98,7 +98,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetLoggedInInd } // HasLoggedInIndicatorRegexPatterns returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasLoggedInIndicatorRegexPatterns() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) HasLoggedInIndicatorRegexPatterns() bool { if o != nil && !IsNil(o.LoggedInIndicatorRegexPatterns) { return true } @@ -107,12 +107,12 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasLoggedInInd } // SetLoggedInIndicatorRegexPatterns gets a reference to the given []string and assigns it to the LoggedInIndicatorRegexPatterns field. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) SetLoggedInIndicatorRegexPatterns(v []string) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) SetLoggedInIndicatorRegexPatterns(v []string) { o.LoggedInIndicatorRegexPatterns = v } // GetLogoutRedirectionUrlPatterns returns the LogoutRedirectionUrlPatterns field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetLogoutRedirectionUrlPatterns() []string { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetLogoutRedirectionUrlPatterns() []string { if o == nil || IsNil(o.LogoutRedirectionUrlPatterns) { var ret []string return ret @@ -122,7 +122,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetLogoutRedir // GetLogoutRedirectionUrlPatternsOk returns a tuple with the LogoutRedirectionUrlPatterns field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetLogoutRedirectionUrlPatternsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetLogoutRedirectionUrlPatternsOk() ([]string, bool) { if o == nil || IsNil(o.LogoutRedirectionUrlPatterns) { return nil, false } @@ -130,7 +130,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetLogoutRedir } // HasLogoutRedirectionUrlPatterns returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasLogoutRedirectionUrlPatterns() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) HasLogoutRedirectionUrlPatterns() bool { if o != nil && !IsNil(o.LogoutRedirectionUrlPatterns) { return true } @@ -139,12 +139,12 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasLogoutRedir } // SetLogoutRedirectionUrlPatterns gets a reference to the given []string and assigns it to the LogoutRedirectionUrlPatterns field. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) SetLogoutRedirectionUrlPatterns(v []string) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) SetLogoutRedirectionUrlPatterns(v []string) { o.LogoutRedirectionUrlPatterns = v } // GetSessionCookieRegexPatterns returns the SessionCookieRegexPatterns field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetSessionCookieRegexPatterns() []string { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetSessionCookieRegexPatterns() []string { if o == nil || IsNil(o.SessionCookieRegexPatterns) { var ret []string return ret @@ -154,7 +154,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetSessionCook // GetSessionCookieRegexPatternsOk returns a tuple with the SessionCookieRegexPatterns field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetSessionCookieRegexPatternsOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetSessionCookieRegexPatternsOk() ([]string, bool) { if o == nil || IsNil(o.SessionCookieRegexPatterns) { return nil, false } @@ -162,7 +162,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetSessionCook } // HasSessionCookieRegexPatterns returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasSessionCookieRegexPatterns() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) HasSessionCookieRegexPatterns() bool { if o != nil && !IsNil(o.SessionCookieRegexPatterns) { return true } @@ -171,12 +171,12 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasSessionCook } // SetSessionCookieRegexPatterns gets a reference to the given []string and assigns it to the SessionCookieRegexPatterns field. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) SetSessionCookieRegexPatterns(v []string) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) SetSessionCookieRegexPatterns(v []string) { o.SessionCookieRegexPatterns = v } // GetAutoReauthenticate returns the AutoReauthenticate field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetAutoReauthenticate() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetAutoReauthenticate() bool { if o == nil || IsNil(o.AutoReauthenticate) { var ret bool return ret @@ -186,7 +186,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetAutoReauthe // GetAutoReauthenticateOk returns a tuple with the AutoReauthenticate field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetAutoReauthenticateOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetAutoReauthenticateOk() (*bool, bool) { if o == nil || IsNil(o.AutoReauthenticate) { return nil, false } @@ -194,7 +194,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetAutoReauthe } // HasAutoReauthenticate returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasAutoReauthenticate() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) HasAutoReauthenticate() bool { if o != nil && !IsNil(o.AutoReauthenticate) { return true } @@ -203,12 +203,12 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasAutoReauthe } // SetAutoReauthenticate gets a reference to the given bool and assigns it to the AutoReauthenticate field. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) SetAutoReauthenticate(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) SetAutoReauthenticate(v bool) { o.AutoReauthenticate = &v } // GetAgenticDetectionEnabled returns the AgenticDetectionEnabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetAgenticDetectionEnabled() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetAgenticDetectionEnabled() bool { if o == nil || IsNil(o.AgenticDetectionEnabled) { var ret bool return ret @@ -218,7 +218,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetAgenticDete // GetAgenticDetectionEnabledOk returns a tuple with the AgenticDetectionEnabled field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetAgenticDetectionEnabledOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) GetAgenticDetectionEnabledOk() (*bool, bool) { if o == nil || IsNil(o.AgenticDetectionEnabled) { return nil, false } @@ -226,7 +226,7 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) GetAgenticDete } // HasAgenticDetectionEnabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasAgenticDetectionEnabled() bool { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) HasAgenticDetectionEnabled() bool { if o != nil && !IsNil(o.AgenticDetectionEnabled) { return true } @@ -235,11 +235,11 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) HasAgenticDete } // SetAgenticDetectionEnabled gets a reference to the given bool and assigns it to the AgenticDetectionEnabled field. -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) SetAgenticDetectionEnabled(v bool) { +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) SetAgenticDetectionEnabled(v bool) { o.AgenticDetectionEnabled = &v } -func (o ProfileDetailedConfigurationFrontendDastLogoutDetection) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationFrontendDastLogoutDetection) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -247,7 +247,7 @@ func (o ProfileDetailedConfigurationFrontendDastLogoutDetection) MarshalJSON() ( return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationFrontendDastLogoutDetection) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationFrontendDastLogoutDetection) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled @@ -275,16 +275,16 @@ func (o ProfileDetailedConfigurationFrontendDastLogoutDetection) ToMap() (map[st return toSerialize, nil } -func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationFrontendDastLogoutDetection := _ProfileDetailedConfigurationFrontendDastLogoutDetection{} +func (o *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationFrontendDastLogoutDetection := _GetProfile200ResponseConfigurationFrontendDastLogoutDetection{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationFrontendDastLogoutDetection) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationFrontendDastLogoutDetection) if err != nil { return err } - *o = ProfileDetailedConfigurationFrontendDastLogoutDetection(varProfileDetailedConfigurationFrontendDastLogoutDetection) + *o = GetProfile200ResponseConfigurationFrontendDastLogoutDetection(varGetProfile200ResponseConfigurationFrontendDastLogoutDetection) additionalProperties := make(map[string]interface{}) @@ -301,38 +301,38 @@ func (o *ProfileDetailedConfigurationFrontendDastLogoutDetection) UnmarshalJSON( return err } -type NullableProfileDetailedConfigurationFrontendDastLogoutDetection struct { - value *ProfileDetailedConfigurationFrontendDastLogoutDetection +type NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection struct { + value *GetProfile200ResponseConfigurationFrontendDastLogoutDetection isSet bool } -func (v NullableProfileDetailedConfigurationFrontendDastLogoutDetection) Get() *ProfileDetailedConfigurationFrontendDastLogoutDetection { +func (v NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection) Get() *GetProfile200ResponseConfigurationFrontendDastLogoutDetection { return v.value } -func (v *NullableProfileDetailedConfigurationFrontendDastLogoutDetection) Set(val *ProfileDetailedConfigurationFrontendDastLogoutDetection) { +func (v *NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection) Set(val *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationFrontendDastLogoutDetection) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationFrontendDastLogoutDetection) Unset() { +func (v *NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationFrontendDastLogoutDetection(val *ProfileDetailedConfigurationFrontendDastLogoutDetection) *NullableProfileDetailedConfigurationFrontendDastLogoutDetection { - return &NullableProfileDetailedConfigurationFrontendDastLogoutDetection{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection(val *GetProfile200ResponseConfigurationFrontendDastLogoutDetection) *NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection { + return &NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationFrontendDastLogoutDetection) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationFrontendDastLogoutDetection) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationFrontendDastLogoutDetection) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope.go new file mode 100644 index 00000000..168813a3 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationFrontendDastScope type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationFrontendDastScope{} + +// GetProfile200ResponseConfigurationFrontendDastScope struct for GetProfile200ResponseConfigurationFrontendDastScope +type GetProfile200ResponseConfigurationFrontendDastScope struct { + ApiTesting *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting `json:"api_testing,omitempty"` + Crawling *GetProfile200ResponseConfigurationFrontendDastScopeCrawling `json:"crawling,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationFrontendDastScope GetProfile200ResponseConfigurationFrontendDastScope + +// NewGetProfile200ResponseConfigurationFrontendDastScope instantiates a new GetProfile200ResponseConfigurationFrontendDastScope 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 NewGetProfile200ResponseConfigurationFrontendDastScope() *GetProfile200ResponseConfigurationFrontendDastScope { + this := GetProfile200ResponseConfigurationFrontendDastScope{} + return &this +} + +// NewGetProfile200ResponseConfigurationFrontendDastScopeWithDefaults instantiates a new GetProfile200ResponseConfigurationFrontendDastScope 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 NewGetProfile200ResponseConfigurationFrontendDastScopeWithDefaults() *GetProfile200ResponseConfigurationFrontendDastScope { + this := GetProfile200ResponseConfigurationFrontendDastScope{} + return &this +} + +// GetApiTesting returns the ApiTesting field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastScope) GetApiTesting() GetProfile200ResponseConfigurationFrontendDastScopeApiTesting { + if o == nil || IsNil(o.ApiTesting) { + var ret GetProfile200ResponseConfigurationFrontendDastScopeApiTesting + return ret + } + return *o.ApiTesting +} + +// GetApiTestingOk returns a tuple with the ApiTesting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScope) GetApiTestingOk() (*GetProfile200ResponseConfigurationFrontendDastScopeApiTesting, bool) { + if o == nil || IsNil(o.ApiTesting) { + return nil, false + } + return o.ApiTesting, true +} + +// HasApiTesting returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScope) HasApiTesting() bool { + if o != nil && !IsNil(o.ApiTesting) { + return true + } + + return false +} + +// SetApiTesting gets a reference to the given GetProfile200ResponseConfigurationFrontendDastScopeApiTesting and assigns it to the ApiTesting field. +func (o *GetProfile200ResponseConfigurationFrontendDastScope) SetApiTesting(v GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) { + o.ApiTesting = &v +} + +// GetCrawling returns the Crawling field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastScope) GetCrawling() GetProfile200ResponseConfigurationFrontendDastScopeCrawling { + if o == nil || IsNil(o.Crawling) { + var ret GetProfile200ResponseConfigurationFrontendDastScopeCrawling + return ret + } + return *o.Crawling +} + +// GetCrawlingOk returns a tuple with the Crawling field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScope) GetCrawlingOk() (*GetProfile200ResponseConfigurationFrontendDastScopeCrawling, bool) { + if o == nil || IsNil(o.Crawling) { + return nil, false + } + return o.Crawling, true +} + +// HasCrawling returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScope) HasCrawling() bool { + if o != nil && !IsNil(o.Crawling) { + return true + } + + return false +} + +// SetCrawling gets a reference to the given GetProfile200ResponseConfigurationFrontendDastScopeCrawling and assigns it to the Crawling field. +func (o *GetProfile200ResponseConfigurationFrontendDastScope) SetCrawling(v GetProfile200ResponseConfigurationFrontendDastScopeCrawling) { + o.Crawling = &v +} + +func (o GetProfile200ResponseConfigurationFrontendDastScope) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationFrontendDastScope) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiTesting) { + toSerialize["api_testing"] = o.ApiTesting + } + if !IsNil(o.Crawling) { + toSerialize["crawling"] = o.Crawling + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationFrontendDastScope) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationFrontendDastScope := _GetProfile200ResponseConfigurationFrontendDastScope{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationFrontendDastScope) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationFrontendDastScope(varGetProfile200ResponseConfigurationFrontendDastScope) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "api_testing") + delete(additionalProperties, "crawling") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationFrontendDastScope struct { + value *GetProfile200ResponseConfigurationFrontendDastScope + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScope) Get() *GetProfile200ResponseConfigurationFrontendDastScope { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScope) Set(val *GetProfile200ResponseConfigurationFrontendDastScope) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScope) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScope) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationFrontendDastScope(val *GetProfile200ResponseConfigurationFrontendDastScope) *NullableGetProfile200ResponseConfigurationFrontendDastScope { + return &NullableGetProfile200ResponseConfigurationFrontendDastScope{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScope) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScope) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_api_testing.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_api_testing.go new file mode 100644 index 00000000..02f9b230 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_api_testing.go @@ -0,0 +1,227 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationFrontendDastScopeApiTesting type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationFrontendDastScopeApiTesting{} + +// GetProfile200ResponseConfigurationFrontendDastScopeApiTesting struct for GetProfile200ResponseConfigurationFrontendDastScopeApiTesting +type GetProfile200ResponseConfigurationFrontendDastScopeApiTesting struct { + ExtendGlobalScope *bool `json:"extend_global_scope,omitempty"` + Allowlist []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner `json:"allowlist,omitempty"` + Blocklist []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner `json:"blocklist,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationFrontendDastScopeApiTesting GetProfile200ResponseConfigurationFrontendDastScopeApiTesting + +// NewGetProfile200ResponseConfigurationFrontendDastScopeApiTesting instantiates a new GetProfile200ResponseConfigurationFrontendDastScopeApiTesting 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 NewGetProfile200ResponseConfigurationFrontendDastScopeApiTesting() *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting { + this := GetProfile200ResponseConfigurationFrontendDastScopeApiTesting{} + return &this +} + +// NewGetProfile200ResponseConfigurationFrontendDastScopeApiTestingWithDefaults instantiates a new GetProfile200ResponseConfigurationFrontendDastScopeApiTesting 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 NewGetProfile200ResponseConfigurationFrontendDastScopeApiTestingWithDefaults() *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting { + this := GetProfile200ResponseConfigurationFrontendDastScopeApiTesting{} + return &this +} + +// GetExtendGlobalScope returns the ExtendGlobalScope field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) GetExtendGlobalScope() bool { + if o == nil || IsNil(o.ExtendGlobalScope) { + var ret bool + return ret + } + return *o.ExtendGlobalScope +} + +// GetExtendGlobalScopeOk returns a tuple with the ExtendGlobalScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) GetExtendGlobalScopeOk() (*bool, bool) { + if o == nil || IsNil(o.ExtendGlobalScope) { + return nil, false + } + return o.ExtendGlobalScope, true +} + +// HasExtendGlobalScope returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) HasExtendGlobalScope() bool { + if o != nil && !IsNil(o.ExtendGlobalScope) { + return true + } + + return false +} + +// SetExtendGlobalScope gets a reference to the given bool and assigns it to the ExtendGlobalScope field. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) SetExtendGlobalScope(v bool) { + o.ExtendGlobalScope = &v +} + +// GetAllowlist returns the Allowlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) GetAllowlist() []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + if o == nil || IsNil(o.Allowlist) { + var ret []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner + return ret + } + return o.Allowlist +} + +// GetAllowlistOk returns a tuple with the Allowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) GetAllowlistOk() ([]GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner, bool) { + if o == nil || IsNil(o.Allowlist) { + return nil, false + } + return o.Allowlist, true +} + +// HasAllowlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) HasAllowlist() bool { + if o != nil && !IsNil(o.Allowlist) { + return true + } + + return false +} + +// SetAllowlist gets a reference to the given []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner and assigns it to the Allowlist field. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) SetAllowlist(v []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) { + o.Allowlist = v +} + +// GetBlocklist returns the Blocklist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) GetBlocklist() []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + if o == nil || IsNil(o.Blocklist) { + var ret []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner + return ret + } + return o.Blocklist +} + +// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) GetBlocklistOk() ([]GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner, bool) { + if o == nil || IsNil(o.Blocklist) { + return nil, false + } + return o.Blocklist, true +} + +// HasBlocklist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) HasBlocklist() bool { + if o != nil && !IsNil(o.Blocklist) { + return true + } + + return false +} + +// SetBlocklist gets a reference to the given []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner and assigns it to the Blocklist field. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) SetBlocklist(v []GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) { + o.Blocklist = v +} + +func (o GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ExtendGlobalScope) { + toSerialize["extend_global_scope"] = o.ExtendGlobalScope + } + if !IsNil(o.Allowlist) { + toSerialize["allowlist"] = o.Allowlist + } + if !IsNil(o.Blocklist) { + toSerialize["blocklist"] = o.Blocklist + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationFrontendDastScopeApiTesting := _GetProfile200ResponseConfigurationFrontendDastScopeApiTesting{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationFrontendDastScopeApiTesting) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationFrontendDastScopeApiTesting(varGetProfile200ResponseConfigurationFrontendDastScopeApiTesting) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "extend_global_scope") + delete(additionalProperties, "allowlist") + delete(additionalProperties, "blocklist") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting struct { + value *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting) Get() *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting) Set(val *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting(val *GetProfile200ResponseConfigurationFrontendDastScopeApiTesting) *NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting { + return &NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTesting) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_api_testing_allowlist_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_api_testing_allowlist_inner.go new file mode 100644 index 00000000..f77b6a75 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_api_testing_allowlist_inner.go @@ -0,0 +1,282 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner - struct for GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner +type GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner struct { + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOfAsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf wrapped in GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOfAsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1AsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 wrapped in GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1AsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3AsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 wrapped in GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3AsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4AsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 wrapped in GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4AsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5AsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 wrapped in GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5AsGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) MarshalJSON() ([]byte, error) { + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) GetActualInstanceValue() interface{} { + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 + } + + // all schemas are nil + return nil +} + +type NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner struct { + value *GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) Get() *GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) Set(val *GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner(val *GetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) *NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner { + return &NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeApiTestingAllowlistInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_crawling.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_crawling.go new file mode 100644 index 00000000..638e92f3 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_crawling.go @@ -0,0 +1,227 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationFrontendDastScopeCrawling type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationFrontendDastScopeCrawling{} + +// GetProfile200ResponseConfigurationFrontendDastScopeCrawling struct for GetProfile200ResponseConfigurationFrontendDastScopeCrawling +type GetProfile200ResponseConfigurationFrontendDastScopeCrawling struct { + ExtendGlobalScope *bool `json:"extend_global_scope,omitempty"` + Allowlist []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner `json:"allowlist,omitempty"` + Blocklist []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner `json:"blocklist,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationFrontendDastScopeCrawling GetProfile200ResponseConfigurationFrontendDastScopeCrawling + +// NewGetProfile200ResponseConfigurationFrontendDastScopeCrawling instantiates a new GetProfile200ResponseConfigurationFrontendDastScopeCrawling 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 NewGetProfile200ResponseConfigurationFrontendDastScopeCrawling() *GetProfile200ResponseConfigurationFrontendDastScopeCrawling { + this := GetProfile200ResponseConfigurationFrontendDastScopeCrawling{} + return &this +} + +// NewGetProfile200ResponseConfigurationFrontendDastScopeCrawlingWithDefaults instantiates a new GetProfile200ResponseConfigurationFrontendDastScopeCrawling 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 NewGetProfile200ResponseConfigurationFrontendDastScopeCrawlingWithDefaults() *GetProfile200ResponseConfigurationFrontendDastScopeCrawling { + this := GetProfile200ResponseConfigurationFrontendDastScopeCrawling{} + return &this +} + +// GetExtendGlobalScope returns the ExtendGlobalScope field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) GetExtendGlobalScope() bool { + if o == nil || IsNil(o.ExtendGlobalScope) { + var ret bool + return ret + } + return *o.ExtendGlobalScope +} + +// GetExtendGlobalScopeOk returns a tuple with the ExtendGlobalScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) GetExtendGlobalScopeOk() (*bool, bool) { + if o == nil || IsNil(o.ExtendGlobalScope) { + return nil, false + } + return o.ExtendGlobalScope, true +} + +// HasExtendGlobalScope returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) HasExtendGlobalScope() bool { + if o != nil && !IsNil(o.ExtendGlobalScope) { + return true + } + + return false +} + +// SetExtendGlobalScope gets a reference to the given bool and assigns it to the ExtendGlobalScope field. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) SetExtendGlobalScope(v bool) { + o.ExtendGlobalScope = &v +} + +// GetAllowlist returns the Allowlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) GetAllowlist() []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner { + if o == nil || IsNil(o.Allowlist) { + var ret []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner + return ret + } + return o.Allowlist +} + +// GetAllowlistOk returns a tuple with the Allowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) GetAllowlistOk() ([]GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner, bool) { + if o == nil || IsNil(o.Allowlist) { + return nil, false + } + return o.Allowlist, true +} + +// HasAllowlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) HasAllowlist() bool { + if o != nil && !IsNil(o.Allowlist) { + return true + } + + return false +} + +// SetAllowlist gets a reference to the given []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner and assigns it to the Allowlist field. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) SetAllowlist(v []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) { + o.Allowlist = v +} + +// GetBlocklist returns the Blocklist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) GetBlocklist() []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner { + if o == nil || IsNil(o.Blocklist) { + var ret []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner + return ret + } + return o.Blocklist +} + +// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) GetBlocklistOk() ([]GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner, bool) { + if o == nil || IsNil(o.Blocklist) { + return nil, false + } + return o.Blocklist, true +} + +// HasBlocklist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) HasBlocklist() bool { + if o != nil && !IsNil(o.Blocklist) { + return true + } + + return false +} + +// SetBlocklist gets a reference to the given []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner and assigns it to the Blocklist field. +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) SetBlocklist(v []GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) { + o.Blocklist = v +} + +func (o GetProfile200ResponseConfigurationFrontendDastScopeCrawling) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationFrontendDastScopeCrawling) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ExtendGlobalScope) { + toSerialize["extend_global_scope"] = o.ExtendGlobalScope + } + if !IsNil(o.Allowlist) { + toSerialize["allowlist"] = o.Allowlist + } + if !IsNil(o.Blocklist) { + toSerialize["blocklist"] = o.Blocklist + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationFrontendDastScopeCrawling := _GetProfile200ResponseConfigurationFrontendDastScopeCrawling{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationFrontendDastScopeCrawling) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationFrontendDastScopeCrawling(varGetProfile200ResponseConfigurationFrontendDastScopeCrawling) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "extend_global_scope") + delete(additionalProperties, "allowlist") + delete(additionalProperties, "blocklist") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling struct { + value *GetProfile200ResponseConfigurationFrontendDastScopeCrawling + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling) Get() *GetProfile200ResponseConfigurationFrontendDastScopeCrawling { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling) Set(val *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling(val *GetProfile200ResponseConfigurationFrontendDastScopeCrawling) *NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling { + return &NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawling) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_crawling_allowlist_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_crawling_allowlist_inner.go new file mode 100644 index 00000000..b551c484 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_scope_crawling_allowlist_inner.go @@ -0,0 +1,244 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner - struct for GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner +type GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner struct { + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOfAsGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf wrapped in GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOfAsGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1AsGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 wrapped in GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1AsGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2AsGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 wrapped in GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2AsGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6AsGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 wrapped in GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6AsGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner { + return GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) MarshalJSON() ([]byte, error) { + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) GetActualInstanceValue() interface{} { + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 + } + + // all schemas are nil + return nil +} + +type NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner struct { + value *GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) Get() *GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) Set(val *GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner(val *GetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) *NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner { + return &NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastScopeCrawlingAllowlistInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_static_crawling.go b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_static_crawling.go new file mode 100644 index 00000000..8826137d --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_frontend_dast_static_crawling.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationFrontendDastStaticCrawling type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationFrontendDastStaticCrawling{} + +// GetProfile200ResponseConfigurationFrontendDastStaticCrawling struct for GetProfile200ResponseConfigurationFrontendDastStaticCrawling +type GetProfile200ResponseConfigurationFrontendDastStaticCrawling struct { + Enabled *bool `json:"enabled,omitempty"` + TimeLimitSeconds *float32 `json:"time_limit_seconds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationFrontendDastStaticCrawling GetProfile200ResponseConfigurationFrontendDastStaticCrawling + +// NewGetProfile200ResponseConfigurationFrontendDastStaticCrawling instantiates a new GetProfile200ResponseConfigurationFrontendDastStaticCrawling 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 NewGetProfile200ResponseConfigurationFrontendDastStaticCrawling() *GetProfile200ResponseConfigurationFrontendDastStaticCrawling { + this := GetProfile200ResponseConfigurationFrontendDastStaticCrawling{} + return &this +} + +// NewGetProfile200ResponseConfigurationFrontendDastStaticCrawlingWithDefaults instantiates a new GetProfile200ResponseConfigurationFrontendDastStaticCrawling 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 NewGetProfile200ResponseConfigurationFrontendDastStaticCrawlingWithDefaults() *GetProfile200ResponseConfigurationFrontendDastStaticCrawling { + this := GetProfile200ResponseConfigurationFrontendDastStaticCrawling{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetTimeLimitSeconds returns the TimeLimitSeconds field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) GetTimeLimitSeconds() float32 { + if o == nil || IsNil(o.TimeLimitSeconds) { + var ret float32 + return ret + } + return *o.TimeLimitSeconds +} + +// GetTimeLimitSecondsOk returns a tuple with the TimeLimitSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) GetTimeLimitSecondsOk() (*float32, bool) { + if o == nil || IsNil(o.TimeLimitSeconds) { + return nil, false + } + return o.TimeLimitSeconds, true +} + +// HasTimeLimitSeconds returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) HasTimeLimitSeconds() bool { + if o != nil && !IsNil(o.TimeLimitSeconds) { + return true + } + + return false +} + +// SetTimeLimitSeconds gets a reference to the given float32 and assigns it to the TimeLimitSeconds field. +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) SetTimeLimitSeconds(v float32) { + o.TimeLimitSeconds = &v +} + +func (o GetProfile200ResponseConfigurationFrontendDastStaticCrawling) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationFrontendDastStaticCrawling) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.TimeLimitSeconds) { + toSerialize["time_limit_seconds"] = o.TimeLimitSeconds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationFrontendDastStaticCrawling := _GetProfile200ResponseConfigurationFrontendDastStaticCrawling{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationFrontendDastStaticCrawling) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationFrontendDastStaticCrawling(varGetProfile200ResponseConfigurationFrontendDastStaticCrawling) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "enabled") + delete(additionalProperties, "time_limit_seconds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling struct { + value *GetProfile200ResponseConfigurationFrontendDastStaticCrawling + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling) Get() *GetProfile200ResponseConfigurationFrontendDastStaticCrawling { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling) Set(val *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling(val *GetProfile200ResponseConfigurationFrontendDastStaticCrawling) *NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling { + return &NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationFrontendDastStaticCrawling) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_graphql_api_dast.go b/pkg/api/v3/model_get_profile_200_response_configuration_graphql_api_dast.go new file mode 100644 index 00000000..a6347851 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_graphql_api_dast.go @@ -0,0 +1,745 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationGraphqlApiDast type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationGraphqlApiDast{} + +// GetProfile200ResponseConfigurationGraphqlApiDast struct for GetProfile200ResponseConfigurationGraphqlApiDast +type GetProfile200ResponseConfigurationGraphqlApiDast struct { + CustomData map[string]string `json:"custom_data,omitempty"` + SchemaS3Key *string `json:"schema_s3_key,omitempty"` + AdditionalSchemaS3Keys []string `json:"additional_schema_s3_keys,omitempty"` + Url *string `json:"url,omitempty"` + LocationId *string `json:"location_id,omitempty"` + Profile *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE `json:"profile,omitempty"` + ExplorationDepth *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH `json:"exploration_depth,omitempty"` + ExploreWithAllUsers *bool `json:"explore_with_all_users,omitempty"` + CrossUserMemoryAllowlist []string `json:"cross_user_memory_allowlist,omitempty"` + Mode *ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE `json:"mode,omitempty"` + MaxDuration *float32 `json:"max_duration,omitempty"` + MaxGeneratedDepth *float32 `json:"max_generated_depth,omitempty"` + NoOperationName *bool `json:"no_operation_name,omitempty"` + Hotstart []string `json:"hotstart,omitempty"` + HotstartOnly *bool `json:"hotstart_only,omitempty"` + Scope *GetProfile200ResponseConfigurationGraphqlApiDastScope `json:"scope,omitempty"` + InScopeOnly *bool `json:"in_scope_only,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationGraphqlApiDast GetProfile200ResponseConfigurationGraphqlApiDast + +// NewGetProfile200ResponseConfigurationGraphqlApiDast instantiates a new GetProfile200ResponseConfigurationGraphqlApiDast 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 NewGetProfile200ResponseConfigurationGraphqlApiDast() *GetProfile200ResponseConfigurationGraphqlApiDast { + this := GetProfile200ResponseConfigurationGraphqlApiDast{} + return &this +} + +// NewGetProfile200ResponseConfigurationGraphqlApiDastWithDefaults instantiates a new GetProfile200ResponseConfigurationGraphqlApiDast 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 NewGetProfile200ResponseConfigurationGraphqlApiDastWithDefaults() *GetProfile200ResponseConfigurationGraphqlApiDast { + this := GetProfile200ResponseConfigurationGraphqlApiDast{} + return &this +} + +// GetCustomData returns the CustomData field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetCustomData() map[string]string { + if o == nil || IsNil(o.CustomData) { + var ret map[string]string + return ret + } + return o.CustomData +} + +// GetCustomDataOk returns a tuple with the CustomData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetCustomDataOk() (map[string]string, bool) { + if o == nil || IsNil(o.CustomData) { + return map[string]string{}, false + } + return o.CustomData, true +} + +// HasCustomData returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasCustomData() bool { + if o != nil && !IsNil(o.CustomData) { + return true + } + + return false +} + +// SetCustomData gets a reference to the given map[string]string and assigns it to the CustomData field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetCustomData(v map[string]string) { + o.CustomData = v +} + +// GetSchemaS3Key returns the SchemaS3Key field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetSchemaS3Key() string { + if o == nil || IsNil(o.SchemaS3Key) { + var ret string + return ret + } + return *o.SchemaS3Key +} + +// GetSchemaS3KeyOk returns a tuple with the SchemaS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetSchemaS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.SchemaS3Key) { + return nil, false + } + return o.SchemaS3Key, true +} + +// HasSchemaS3Key returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasSchemaS3Key() bool { + if o != nil && !IsNil(o.SchemaS3Key) { + return true + } + + return false +} + +// SetSchemaS3Key gets a reference to the given string and assigns it to the SchemaS3Key field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetSchemaS3Key(v string) { + o.SchemaS3Key = &v +} + +// GetAdditionalSchemaS3Keys returns the AdditionalSchemaS3Keys field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetAdditionalSchemaS3Keys() []string { + if o == nil || IsNil(o.AdditionalSchemaS3Keys) { + var ret []string + return ret + } + return o.AdditionalSchemaS3Keys +} + +// GetAdditionalSchemaS3KeysOk returns a tuple with the AdditionalSchemaS3Keys field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetAdditionalSchemaS3KeysOk() ([]string, bool) { + if o == nil || IsNil(o.AdditionalSchemaS3Keys) { + return nil, false + } + return o.AdditionalSchemaS3Keys, true +} + +// HasAdditionalSchemaS3Keys returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasAdditionalSchemaS3Keys() bool { + if o != nil && !IsNil(o.AdditionalSchemaS3Keys) { + return true + } + + return false +} + +// SetAdditionalSchemaS3Keys gets a reference to the given []string and assigns it to the AdditionalSchemaS3Keys field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetAdditionalSchemaS3Keys(v []string) { + o.AdditionalSchemaS3Keys = v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetUrl(v string) { + o.Url = &v +} + +// GetLocationId returns the LocationId field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetLocationId() string { + if o == nil || IsNil(o.LocationId) { + var ret string + return ret + } + return *o.LocationId +} + +// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetLocationIdOk() (*string, bool) { + if o == nil || IsNil(o.LocationId) { + return nil, false + } + return o.LocationId, true +} + +// HasLocationId returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasLocationId() bool { + if o != nil && !IsNil(o.LocationId) { + return true + } + + return false +} + +// SetLocationId gets a reference to the given string and assigns it to the LocationId field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetLocationId(v string) { + o.LocationId = &v +} + +// GetProfile returns the Profile field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetProfile() ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE { + if o == nil || IsNil(o.Profile) { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE + return ret + } + return *o.Profile +} + +// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetProfileOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE, bool) { + if o == nil || IsNil(o.Profile) { + return nil, false + } + return o.Profile, true +} + +// HasProfile returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasProfile() bool { + if o != nil && !IsNil(o.Profile) { + return true + } + + return false +} + +// SetProfile gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE and assigns it to the Profile field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetProfile(v ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE) { + o.Profile = &v +} + +// GetExplorationDepth returns the ExplorationDepth field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetExplorationDepth() ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH { + if o == nil || IsNil(o.ExplorationDepth) { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH + return ret + } + return *o.ExplorationDepth +} + +// GetExplorationDepthOk returns a tuple with the ExplorationDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetExplorationDepthOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH, bool) { + if o == nil || IsNil(o.ExplorationDepth) { + return nil, false + } + return o.ExplorationDepth, true +} + +// HasExplorationDepth returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasExplorationDepth() bool { + if o != nil && !IsNil(o.ExplorationDepth) { + return true + } + + return false +} + +// SetExplorationDepth gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH and assigns it to the ExplorationDepth field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetExplorationDepth(v ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) { + o.ExplorationDepth = &v +} + +// GetExploreWithAllUsers returns the ExploreWithAllUsers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetExploreWithAllUsers() bool { + if o == nil || IsNil(o.ExploreWithAllUsers) { + var ret bool + return ret + } + return *o.ExploreWithAllUsers +} + +// GetExploreWithAllUsersOk returns a tuple with the ExploreWithAllUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetExploreWithAllUsersOk() (*bool, bool) { + if o == nil || IsNil(o.ExploreWithAllUsers) { + return nil, false + } + return o.ExploreWithAllUsers, true +} + +// HasExploreWithAllUsers returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasExploreWithAllUsers() bool { + if o != nil && !IsNil(o.ExploreWithAllUsers) { + return true + } + + return false +} + +// SetExploreWithAllUsers gets a reference to the given bool and assigns it to the ExploreWithAllUsers field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetExploreWithAllUsers(v bool) { + o.ExploreWithAllUsers = &v +} + +// GetCrossUserMemoryAllowlist returns the CrossUserMemoryAllowlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetCrossUserMemoryAllowlist() []string { + if o == nil || IsNil(o.CrossUserMemoryAllowlist) { + var ret []string + return ret + } + return o.CrossUserMemoryAllowlist +} + +// GetCrossUserMemoryAllowlistOk returns a tuple with the CrossUserMemoryAllowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetCrossUserMemoryAllowlistOk() ([]string, bool) { + if o == nil || IsNil(o.CrossUserMemoryAllowlist) { + return nil, false + } + return o.CrossUserMemoryAllowlist, true +} + +// HasCrossUserMemoryAllowlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasCrossUserMemoryAllowlist() bool { + if o != nil && !IsNil(o.CrossUserMemoryAllowlist) { + return true + } + + return false +} + +// SetCrossUserMemoryAllowlist gets a reference to the given []string and assigns it to the CrossUserMemoryAllowlist field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetCrossUserMemoryAllowlist(v []string) { + o.CrossUserMemoryAllowlist = v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetMode() ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE { + if o == nil || IsNil(o.Mode) { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetModeOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE and assigns it to the Mode field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetMode(v ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE) { + o.Mode = &v +} + +// GetMaxDuration returns the MaxDuration field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetMaxDuration() float32 { + if o == nil || IsNil(o.MaxDuration) { + var ret float32 + return ret + } + return *o.MaxDuration +} + +// GetMaxDurationOk returns a tuple with the MaxDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetMaxDurationOk() (*float32, bool) { + if o == nil || IsNil(o.MaxDuration) { + return nil, false + } + return o.MaxDuration, true +} + +// HasMaxDuration returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasMaxDuration() bool { + if o != nil && !IsNil(o.MaxDuration) { + return true + } + + return false +} + +// SetMaxDuration gets a reference to the given float32 and assigns it to the MaxDuration field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetMaxDuration(v float32) { + o.MaxDuration = &v +} + +// GetMaxGeneratedDepth returns the MaxGeneratedDepth field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetMaxGeneratedDepth() float32 { + if o == nil || IsNil(o.MaxGeneratedDepth) { + var ret float32 + return ret + } + return *o.MaxGeneratedDepth +} + +// GetMaxGeneratedDepthOk returns a tuple with the MaxGeneratedDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetMaxGeneratedDepthOk() (*float32, bool) { + if o == nil || IsNil(o.MaxGeneratedDepth) { + return nil, false + } + return o.MaxGeneratedDepth, true +} + +// HasMaxGeneratedDepth returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasMaxGeneratedDepth() bool { + if o != nil && !IsNil(o.MaxGeneratedDepth) { + return true + } + + return false +} + +// SetMaxGeneratedDepth gets a reference to the given float32 and assigns it to the MaxGeneratedDepth field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetMaxGeneratedDepth(v float32) { + o.MaxGeneratedDepth = &v +} + +// GetNoOperationName returns the NoOperationName field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetNoOperationName() bool { + if o == nil || IsNil(o.NoOperationName) { + var ret bool + return ret + } + return *o.NoOperationName +} + +// GetNoOperationNameOk returns a tuple with the NoOperationName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetNoOperationNameOk() (*bool, bool) { + if o == nil || IsNil(o.NoOperationName) { + return nil, false + } + return o.NoOperationName, true +} + +// HasNoOperationName returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasNoOperationName() bool { + if o != nil && !IsNil(o.NoOperationName) { + return true + } + + return false +} + +// SetNoOperationName gets a reference to the given bool and assigns it to the NoOperationName field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetNoOperationName(v bool) { + o.NoOperationName = &v +} + +// GetHotstart returns the Hotstart field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetHotstart() []string { + if o == nil || IsNil(o.Hotstart) { + var ret []string + return ret + } + return o.Hotstart +} + +// GetHotstartOk returns a tuple with the Hotstart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetHotstartOk() ([]string, bool) { + if o == nil || IsNil(o.Hotstart) { + return nil, false + } + return o.Hotstart, true +} + +// HasHotstart returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasHotstart() bool { + if o != nil && !IsNil(o.Hotstart) { + return true + } + + return false +} + +// SetHotstart gets a reference to the given []string and assigns it to the Hotstart field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetHotstart(v []string) { + o.Hotstart = v +} + +// GetHotstartOnly returns the HotstartOnly field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetHotstartOnly() bool { + if o == nil || IsNil(o.HotstartOnly) { + var ret bool + return ret + } + return *o.HotstartOnly +} + +// GetHotstartOnlyOk returns a tuple with the HotstartOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetHotstartOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.HotstartOnly) { + return nil, false + } + return o.HotstartOnly, true +} + +// HasHotstartOnly returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasHotstartOnly() bool { + if o != nil && !IsNil(o.HotstartOnly) { + return true + } + + return false +} + +// SetHotstartOnly gets a reference to the given bool and assigns it to the HotstartOnly field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetHotstartOnly(v bool) { + o.HotstartOnly = &v +} + +// GetScope returns the Scope field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetScope() GetProfile200ResponseConfigurationGraphqlApiDastScope { + if o == nil || IsNil(o.Scope) { + var ret GetProfile200ResponseConfigurationGraphqlApiDastScope + return ret + } + return *o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetScopeOk() (*GetProfile200ResponseConfigurationGraphqlApiDastScope, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasScope() bool { + if o != nil && !IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given GetProfile200ResponseConfigurationGraphqlApiDastScope and assigns it to the Scope field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetScope(v GetProfile200ResponseConfigurationGraphqlApiDastScope) { + o.Scope = &v +} + +// GetInScopeOnly returns the InScopeOnly field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetInScopeOnly() bool { + if o == nil || IsNil(o.InScopeOnly) { + var ret bool + return ret + } + return *o.InScopeOnly +} + +// GetInScopeOnlyOk returns a tuple with the InScopeOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) GetInScopeOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.InScopeOnly) { + return nil, false + } + return o.InScopeOnly, true +} + +// HasInScopeOnly returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) HasInScopeOnly() bool { + if o != nil && !IsNil(o.InScopeOnly) { + return true + } + + return false +} + +// SetInScopeOnly gets a reference to the given bool and assigns it to the InScopeOnly field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) SetInScopeOnly(v bool) { + o.InScopeOnly = &v +} + +func (o GetProfile200ResponseConfigurationGraphqlApiDast) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationGraphqlApiDast) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CustomData) { + toSerialize["custom_data"] = o.CustomData + } + if !IsNil(o.SchemaS3Key) { + toSerialize["schema_s3_key"] = o.SchemaS3Key + } + if !IsNil(o.AdditionalSchemaS3Keys) { + toSerialize["additional_schema_s3_keys"] = o.AdditionalSchemaS3Keys + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if !IsNil(o.LocationId) { + toSerialize["location_id"] = o.LocationId + } + if !IsNil(o.Profile) { + toSerialize["profile"] = o.Profile + } + if !IsNil(o.ExplorationDepth) { + toSerialize["exploration_depth"] = o.ExplorationDepth + } + if !IsNil(o.ExploreWithAllUsers) { + toSerialize["explore_with_all_users"] = o.ExploreWithAllUsers + } + if !IsNil(o.CrossUserMemoryAllowlist) { + toSerialize["cross_user_memory_allowlist"] = o.CrossUserMemoryAllowlist + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + if !IsNil(o.MaxDuration) { + toSerialize["max_duration"] = o.MaxDuration + } + if !IsNil(o.MaxGeneratedDepth) { + toSerialize["max_generated_depth"] = o.MaxGeneratedDepth + } + if !IsNil(o.NoOperationName) { + toSerialize["no_operation_name"] = o.NoOperationName + } + if !IsNil(o.Hotstart) { + toSerialize["hotstart"] = o.Hotstart + } + if !IsNil(o.HotstartOnly) { + toSerialize["hotstart_only"] = o.HotstartOnly + } + if !IsNil(o.Scope) { + toSerialize["scope"] = o.Scope + } + if !IsNil(o.InScopeOnly) { + toSerialize["in_scope_only"] = o.InScopeOnly + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationGraphqlApiDast) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationGraphqlApiDast := _GetProfile200ResponseConfigurationGraphqlApiDast{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationGraphqlApiDast) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationGraphqlApiDast(varGetProfile200ResponseConfigurationGraphqlApiDast) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "custom_data") + delete(additionalProperties, "schema_s3_key") + delete(additionalProperties, "additional_schema_s3_keys") + delete(additionalProperties, "url") + delete(additionalProperties, "location_id") + delete(additionalProperties, "profile") + delete(additionalProperties, "exploration_depth") + delete(additionalProperties, "explore_with_all_users") + delete(additionalProperties, "cross_user_memory_allowlist") + delete(additionalProperties, "mode") + delete(additionalProperties, "max_duration") + delete(additionalProperties, "max_generated_depth") + delete(additionalProperties, "no_operation_name") + delete(additionalProperties, "hotstart") + delete(additionalProperties, "hotstart_only") + delete(additionalProperties, "scope") + delete(additionalProperties, "in_scope_only") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationGraphqlApiDast struct { + value *GetProfile200ResponseConfigurationGraphqlApiDast + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationGraphqlApiDast) Get() *GetProfile200ResponseConfigurationGraphqlApiDast { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationGraphqlApiDast) Set(val *GetProfile200ResponseConfigurationGraphqlApiDast) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationGraphqlApiDast) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationGraphqlApiDast) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationGraphqlApiDast(val *GetProfile200ResponseConfigurationGraphqlApiDast) *NullableGetProfile200ResponseConfigurationGraphqlApiDast { + return &NullableGetProfile200ResponseConfigurationGraphqlApiDast{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationGraphqlApiDast) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationGraphqlApiDast) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_graphql_api_dast_scope.go b/pkg/api/v3/model_get_profile_200_response_configuration_graphql_api_dast_scope.go new file mode 100644 index 00000000..455c1cc1 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_graphql_api_dast_scope.go @@ -0,0 +1,227 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationGraphqlApiDastScope type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationGraphqlApiDastScope{} + +// GetProfile200ResponseConfigurationGraphqlApiDastScope struct for GetProfile200ResponseConfigurationGraphqlApiDastScope +type GetProfile200ResponseConfigurationGraphqlApiDastScope struct { + ExtendGlobalScope *bool `json:"extend_global_scope,omitempty"` + Allowlist []GetProfile200ResponseConfigurationScopeAllowlistInner `json:"allowlist,omitempty"` + Blocklist []GetProfile200ResponseConfigurationScopeAllowlistInner `json:"blocklist,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationGraphqlApiDastScope GetProfile200ResponseConfigurationGraphqlApiDastScope + +// NewGetProfile200ResponseConfigurationGraphqlApiDastScope instantiates a new GetProfile200ResponseConfigurationGraphqlApiDastScope 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 NewGetProfile200ResponseConfigurationGraphqlApiDastScope() *GetProfile200ResponseConfigurationGraphqlApiDastScope { + this := GetProfile200ResponseConfigurationGraphqlApiDastScope{} + return &this +} + +// NewGetProfile200ResponseConfigurationGraphqlApiDastScopeWithDefaults instantiates a new GetProfile200ResponseConfigurationGraphqlApiDastScope 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 NewGetProfile200ResponseConfigurationGraphqlApiDastScopeWithDefaults() *GetProfile200ResponseConfigurationGraphqlApiDastScope { + this := GetProfile200ResponseConfigurationGraphqlApiDastScope{} + return &this +} + +// GetExtendGlobalScope returns the ExtendGlobalScope field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) GetExtendGlobalScope() bool { + if o == nil || IsNil(o.ExtendGlobalScope) { + var ret bool + return ret + } + return *o.ExtendGlobalScope +} + +// GetExtendGlobalScopeOk returns a tuple with the ExtendGlobalScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) GetExtendGlobalScopeOk() (*bool, bool) { + if o == nil || IsNil(o.ExtendGlobalScope) { + return nil, false + } + return o.ExtendGlobalScope, true +} + +// HasExtendGlobalScope returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) HasExtendGlobalScope() bool { + if o != nil && !IsNil(o.ExtendGlobalScope) { + return true + } + + return false +} + +// SetExtendGlobalScope gets a reference to the given bool and assigns it to the ExtendGlobalScope field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) SetExtendGlobalScope(v bool) { + o.ExtendGlobalScope = &v +} + +// GetAllowlist returns the Allowlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) GetAllowlist() []GetProfile200ResponseConfigurationScopeAllowlistInner { + if o == nil || IsNil(o.Allowlist) { + var ret []GetProfile200ResponseConfigurationScopeAllowlistInner + return ret + } + return o.Allowlist +} + +// GetAllowlistOk returns a tuple with the Allowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) GetAllowlistOk() ([]GetProfile200ResponseConfigurationScopeAllowlistInner, bool) { + if o == nil || IsNil(o.Allowlist) { + return nil, false + } + return o.Allowlist, true +} + +// HasAllowlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) HasAllowlist() bool { + if o != nil && !IsNil(o.Allowlist) { + return true + } + + return false +} + +// SetAllowlist gets a reference to the given []GetProfile200ResponseConfigurationScopeAllowlistInner and assigns it to the Allowlist field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) SetAllowlist(v []GetProfile200ResponseConfigurationScopeAllowlistInner) { + o.Allowlist = v +} + +// GetBlocklist returns the Blocklist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) GetBlocklist() []GetProfile200ResponseConfigurationScopeAllowlistInner { + if o == nil || IsNil(o.Blocklist) { + var ret []GetProfile200ResponseConfigurationScopeAllowlistInner + return ret + } + return o.Blocklist +} + +// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) GetBlocklistOk() ([]GetProfile200ResponseConfigurationScopeAllowlistInner, bool) { + if o == nil || IsNil(o.Blocklist) { + return nil, false + } + return o.Blocklist, true +} + +// HasBlocklist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) HasBlocklist() bool { + if o != nil && !IsNil(o.Blocklist) { + return true + } + + return false +} + +// SetBlocklist gets a reference to the given []GetProfile200ResponseConfigurationScopeAllowlistInner and assigns it to the Blocklist field. +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) SetBlocklist(v []GetProfile200ResponseConfigurationScopeAllowlistInner) { + o.Blocklist = v +} + +func (o GetProfile200ResponseConfigurationGraphqlApiDastScope) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationGraphqlApiDastScope) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ExtendGlobalScope) { + toSerialize["extend_global_scope"] = o.ExtendGlobalScope + } + if !IsNil(o.Allowlist) { + toSerialize["allowlist"] = o.Allowlist + } + if !IsNil(o.Blocklist) { + toSerialize["blocklist"] = o.Blocklist + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationGraphqlApiDastScope) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationGraphqlApiDastScope := _GetProfile200ResponseConfigurationGraphqlApiDastScope{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationGraphqlApiDastScope) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationGraphqlApiDastScope(varGetProfile200ResponseConfigurationGraphqlApiDastScope) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "extend_global_scope") + delete(additionalProperties, "allowlist") + delete(additionalProperties, "blocklist") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationGraphqlApiDastScope struct { + value *GetProfile200ResponseConfigurationGraphqlApiDastScope + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationGraphqlApiDastScope) Get() *GetProfile200ResponseConfigurationGraphqlApiDastScope { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationGraphqlApiDastScope) Set(val *GetProfile200ResponseConfigurationGraphqlApiDastScope) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationGraphqlApiDastScope) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationGraphqlApiDastScope) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationGraphqlApiDastScope(val *GetProfile200ResponseConfigurationGraphqlApiDastScope) *NullableGetProfile200ResponseConfigurationGraphqlApiDastScope { + return &NullableGetProfile200ResponseConfigurationGraphqlApiDastScope{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationGraphqlApiDastScope) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationGraphqlApiDastScope) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_inference.go b/pkg/api/v3/model_get_profile_200_response_configuration_inference.go new file mode 100644 index 00000000..02cf5038 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_inference.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationInference type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationInference{} + +// GetProfile200ResponseConfigurationInference struct for GetProfile200ResponseConfigurationInference +type GetProfile200ResponseConfigurationInference struct { + Scalars map[string]GetProfile200ResponseConfigurationInferenceScalarsValue `json:"scalars,omitempty"` + NullIsUnauthenticated *bool `json:"null_is_unauthenticated,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationInference GetProfile200ResponseConfigurationInference + +// NewGetProfile200ResponseConfigurationInference instantiates a new GetProfile200ResponseConfigurationInference 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 NewGetProfile200ResponseConfigurationInference() *GetProfile200ResponseConfigurationInference { + this := GetProfile200ResponseConfigurationInference{} + return &this +} + +// NewGetProfile200ResponseConfigurationInferenceWithDefaults instantiates a new GetProfile200ResponseConfigurationInference 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 NewGetProfile200ResponseConfigurationInferenceWithDefaults() *GetProfile200ResponseConfigurationInference { + this := GetProfile200ResponseConfigurationInference{} + return &this +} + +// GetScalars returns the Scalars field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationInference) GetScalars() map[string]GetProfile200ResponseConfigurationInferenceScalarsValue { + if o == nil || IsNil(o.Scalars) { + var ret map[string]GetProfile200ResponseConfigurationInferenceScalarsValue + return ret + } + return o.Scalars +} + +// GetScalarsOk returns a tuple with the Scalars field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationInference) GetScalarsOk() (map[string]GetProfile200ResponseConfigurationInferenceScalarsValue, bool) { + if o == nil || IsNil(o.Scalars) { + return map[string]GetProfile200ResponseConfigurationInferenceScalarsValue{}, false + } + return o.Scalars, true +} + +// HasScalars returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationInference) HasScalars() bool { + if o != nil && !IsNil(o.Scalars) { + return true + } + + return false +} + +// SetScalars gets a reference to the given map[string]GetProfile200ResponseConfigurationInferenceScalarsValue and assigns it to the Scalars field. +func (o *GetProfile200ResponseConfigurationInference) SetScalars(v map[string]GetProfile200ResponseConfigurationInferenceScalarsValue) { + o.Scalars = v +} + +// GetNullIsUnauthenticated returns the NullIsUnauthenticated field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationInference) GetNullIsUnauthenticated() bool { + if o == nil || IsNil(o.NullIsUnauthenticated) { + var ret bool + return ret + } + return *o.NullIsUnauthenticated +} + +// GetNullIsUnauthenticatedOk returns a tuple with the NullIsUnauthenticated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationInference) GetNullIsUnauthenticatedOk() (*bool, bool) { + if o == nil || IsNil(o.NullIsUnauthenticated) { + return nil, false + } + return o.NullIsUnauthenticated, true +} + +// HasNullIsUnauthenticated returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationInference) HasNullIsUnauthenticated() bool { + if o != nil && !IsNil(o.NullIsUnauthenticated) { + return true + } + + return false +} + +// SetNullIsUnauthenticated gets a reference to the given bool and assigns it to the NullIsUnauthenticated field. +func (o *GetProfile200ResponseConfigurationInference) SetNullIsUnauthenticated(v bool) { + o.NullIsUnauthenticated = &v +} + +func (o GetProfile200ResponseConfigurationInference) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationInference) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Scalars) { + toSerialize["scalars"] = o.Scalars + } + if !IsNil(o.NullIsUnauthenticated) { + toSerialize["null_is_unauthenticated"] = o.NullIsUnauthenticated + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationInference) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationInference := _GetProfile200ResponseConfigurationInference{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationInference) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationInference(varGetProfile200ResponseConfigurationInference) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "scalars") + delete(additionalProperties, "null_is_unauthenticated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationInference struct { + value *GetProfile200ResponseConfigurationInference + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationInference) Get() *GetProfile200ResponseConfigurationInference { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationInference) Set(val *GetProfile200ResponseConfigurationInference) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationInference) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationInference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationInference(val *GetProfile200ResponseConfigurationInference) *NullableGetProfile200ResponseConfigurationInference { + return &NullableGetProfile200ResponseConfigurationInference{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationInference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationInference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed_configuration_inference_scalars_value.go b/pkg/api/v3/model_get_profile_200_response_configuration_inference_scalars_value.go similarity index 61% rename from pkg/api/v3/model_profile_detailed_configuration_inference_scalars_value.go rename to pkg/api/v3/model_get_profile_200_response_configuration_inference_scalars_value.go index 7eedd1b5..af5eb585 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_inference_scalars_value.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_inference_scalars_value.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the ProfileDetailedConfigurationInferenceScalarsValue type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationInferenceScalarsValue{} +// checks if the GetProfile200ResponseConfigurationInferenceScalarsValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationInferenceScalarsValue{} -// ProfileDetailedConfigurationInferenceScalarsValue struct for ProfileDetailedConfigurationInferenceScalarsValue -type ProfileDetailedConfigurationInferenceScalarsValue struct { +// GetProfile200ResponseConfigurationInferenceScalarsValue struct for GetProfile200ResponseConfigurationInferenceScalarsValue +type GetProfile200ResponseConfigurationInferenceScalarsValue struct { Names []string `json:"names,omitempty"` IgnoredNames []string `json:"ignored_names,omitempty"` Description *string `json:"description,omitempty"` @@ -34,27 +34,27 @@ type ProfileDetailedConfigurationInferenceScalarsValue struct { AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationInferenceScalarsValue ProfileDetailedConfigurationInferenceScalarsValue +type _GetProfile200ResponseConfigurationInferenceScalarsValue GetProfile200ResponseConfigurationInferenceScalarsValue -// NewProfileDetailedConfigurationInferenceScalarsValue instantiates a new ProfileDetailedConfigurationInferenceScalarsValue object +// NewGetProfile200ResponseConfigurationInferenceScalarsValue instantiates a new GetProfile200ResponseConfigurationInferenceScalarsValue 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 NewProfileDetailedConfigurationInferenceScalarsValue() *ProfileDetailedConfigurationInferenceScalarsValue { - this := ProfileDetailedConfigurationInferenceScalarsValue{} +func NewGetProfile200ResponseConfigurationInferenceScalarsValue() *GetProfile200ResponseConfigurationInferenceScalarsValue { + this := GetProfile200ResponseConfigurationInferenceScalarsValue{} return &this } -// NewProfileDetailedConfigurationInferenceScalarsValueWithDefaults instantiates a new ProfileDetailedConfigurationInferenceScalarsValue object +// NewGetProfile200ResponseConfigurationInferenceScalarsValueWithDefaults instantiates a new GetProfile200ResponseConfigurationInferenceScalarsValue 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 NewProfileDetailedConfigurationInferenceScalarsValueWithDefaults() *ProfileDetailedConfigurationInferenceScalarsValue { - this := ProfileDetailedConfigurationInferenceScalarsValue{} +func NewGetProfile200ResponseConfigurationInferenceScalarsValueWithDefaults() *GetProfile200ResponseConfigurationInferenceScalarsValue { + this := GetProfile200ResponseConfigurationInferenceScalarsValue{} return &this } // GetNames returns the Names field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetNames() []string { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetNames() []string { if o == nil || IsNil(o.Names) { var ret []string return ret @@ -64,7 +64,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetNames() []string // GetNamesOk returns a tuple with the Names field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetNamesOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetNamesOk() ([]string, bool) { if o == nil || IsNil(o.Names) { return nil, false } @@ -72,7 +72,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetNamesOk() ([]stri } // HasNames returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasNames() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasNames() bool { if o != nil && !IsNil(o.Names) { return true } @@ -81,12 +81,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasNames() bool { } // SetNames gets a reference to the given []string and assigns it to the Names field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetNames(v []string) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetNames(v []string) { o.Names = v } // GetIgnoredNames returns the IgnoredNames field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIgnoredNames() []string { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetIgnoredNames() []string { if o == nil || IsNil(o.IgnoredNames) { var ret []string return ret @@ -96,7 +96,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIgnoredNames() [] // GetIgnoredNamesOk returns a tuple with the IgnoredNames field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIgnoredNamesOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetIgnoredNamesOk() ([]string, bool) { if o == nil || IsNil(o.IgnoredNames) { return nil, false } @@ -104,7 +104,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIgnoredNamesOk() } // HasIgnoredNames returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasIgnoredNames() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasIgnoredNames() bool { if o != nil && !IsNil(o.IgnoredNames) { return true } @@ -113,12 +113,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasIgnoredNames() bo } // SetIgnoredNames gets a reference to the given []string and assigns it to the IgnoredNames field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetIgnoredNames(v []string) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetIgnoredNames(v []string) { o.IgnoredNames = v } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetDescription() string { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret @@ -128,7 +128,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetDescription() str // 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 *ProfileDetailedConfigurationInferenceScalarsValue) GetDescriptionOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } @@ -136,7 +136,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetDescriptionOk() ( } // HasDescription returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasDescription() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } @@ -145,12 +145,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasDescription() boo } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetDescription(v string) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetDescription(v string) { o.Description = &v } // GetPattern returns the Pattern field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetPattern() string { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetPattern() string { if o == nil || IsNil(o.Pattern) { var ret string return ret @@ -160,7 +160,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetPattern() string // GetPatternOk returns a tuple with the Pattern field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetPatternOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetPatternOk() (*string, bool) { if o == nil || IsNil(o.Pattern) { return nil, false } @@ -168,7 +168,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetPatternOk() (*str } // HasPattern returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasPattern() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasPattern() bool { if o != nil && !IsNil(o.Pattern) { return true } @@ -177,12 +177,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasPattern() bool { } // SetPattern gets a reference to the given string and assigns it to the Pattern field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetPattern(v string) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetPattern(v string) { o.Pattern = &v } // GetIgnoredPattern returns the IgnoredPattern field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIgnoredPattern() string { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetIgnoredPattern() string { if o == nil || IsNil(o.IgnoredPattern) { var ret string return ret @@ -192,7 +192,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIgnoredPattern() // GetIgnoredPatternOk returns a tuple with the IgnoredPattern field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIgnoredPatternOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetIgnoredPatternOk() (*string, bool) { if o == nil || IsNil(o.IgnoredPattern) { return nil, false } @@ -200,7 +200,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIgnoredPatternOk( } // HasIgnoredPattern returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasIgnoredPattern() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasIgnoredPattern() bool { if o != nil && !IsNil(o.IgnoredPattern) { return true } @@ -209,12 +209,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasIgnoredPattern() } // SetIgnoredPattern gets a reference to the given string and assigns it to the IgnoredPattern field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetIgnoredPattern(v string) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetIgnoredPattern(v string) { o.IgnoredPattern = &v } // GetExamples returns the Examples field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetExamples() []string { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetExamples() []string { if o == nil || IsNil(o.Examples) { var ret []string return ret @@ -224,7 +224,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetExamples() []stri // GetExamplesOk returns a tuple with the Examples field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetExamplesOk() ([]string, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetExamplesOk() ([]string, bool) { if o == nil || IsNil(o.Examples) { return nil, false } @@ -232,7 +232,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetExamplesOk() ([]s } // HasExamples returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasExamples() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasExamples() bool { if o != nil && !IsNil(o.Examples) { return true } @@ -241,12 +241,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasExamples() bool { } // SetExamples gets a reference to the given []string and assigns it to the Examples field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetExamples(v []string) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetExamples(v []string) { o.Examples = v } // GetParents returns the Parents field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetParents() []ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESPARENTSITEMS { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetParents() []ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESPARENTSITEMS { if o == nil || IsNil(o.Parents) { var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESPARENTSITEMS return ret @@ -256,7 +256,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetParents() []ENUMP // GetParentsOk returns a tuple with the Parents field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetParentsOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESPARENTSITEMS, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetParentsOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESPARENTSITEMS, bool) { if o == nil || IsNil(o.Parents) { return nil, false } @@ -264,7 +264,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetParentsOk() ([]EN } // HasParents returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasParents() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasParents() bool { if o != nil && !IsNil(o.Parents) { return true } @@ -273,12 +273,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasParents() bool { } // SetParents gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESPARENTSITEMS and assigns it to the Parents field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetParents(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESPARENTSITEMS) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetParents(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESPARENTSITEMS) { o.Parents = v } // GetSensitivity returns the Sensitivity field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetSensitivity() ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSENSITIVITY { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetSensitivity() ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSENSITIVITY { if o == nil || IsNil(o.Sensitivity) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSENSITIVITY return ret @@ -288,7 +288,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetSensitivity() ENU // GetSensitivityOk returns a tuple with the Sensitivity field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetSensitivityOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSENSITIVITY, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetSensitivityOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSENSITIVITY, bool) { if o == nil || IsNil(o.Sensitivity) { return nil, false } @@ -296,7 +296,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetSensitivityOk() ( } // HasSensitivity returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasSensitivity() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasSensitivity() bool { if o != nil && !IsNil(o.Sensitivity) { return true } @@ -305,12 +305,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasSensitivity() boo } // SetSensitivity gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSENSITIVITY and assigns it to the Sensitivity field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetSensitivity(v ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSENSITIVITY) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetSensitivity(v ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSENSITIVITY) { o.Sensitivity = &v } // GetStrategy returns the Strategy field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetStrategy() ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSTRATEGY { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetStrategy() ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSTRATEGY { if o == nil || IsNil(o.Strategy) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSTRATEGY return ret @@ -320,7 +320,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetStrategy() ENUMPR // GetStrategyOk returns a tuple with the Strategy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetStrategyOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSTRATEGY, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetStrategyOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSTRATEGY, bool) { if o == nil || IsNil(o.Strategy) { return nil, false } @@ -328,7 +328,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetStrategyOk() (*EN } // HasStrategy returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasStrategy() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasStrategy() bool { if o != nil && !IsNil(o.Strategy) { return true } @@ -337,12 +337,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasStrategy() bool { } // SetStrategy gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSTRATEGY and assigns it to the Strategy field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetStrategy(v ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSTRATEGY) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetStrategy(v ENUMPROPERTIESCONFIGURATIONPROPERTIESINFERENCEPROPERTIESSCALARSADDITIONALPROPERTIESPROPERTIESSTRATEGY) { o.Strategy = &v } // GetRaiseOnCommit returns the RaiseOnCommit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetRaiseOnCommit() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetRaiseOnCommit() bool { if o == nil || IsNil(o.RaiseOnCommit) { var ret bool return ret @@ -352,7 +352,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetRaiseOnCommit() b // GetRaiseOnCommitOk returns a tuple with the RaiseOnCommit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetRaiseOnCommitOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetRaiseOnCommitOk() (*bool, bool) { if o == nil || IsNil(o.RaiseOnCommit) { return nil, false } @@ -360,7 +360,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetRaiseOnCommitOk() } // HasRaiseOnCommit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasRaiseOnCommit() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasRaiseOnCommit() bool { if o != nil && !IsNil(o.RaiseOnCommit) { return true } @@ -369,12 +369,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasRaiseOnCommit() b } // SetRaiseOnCommit gets a reference to the given bool and assigns it to the RaiseOnCommit field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetRaiseOnCommit(v bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetRaiseOnCommit(v bool) { o.RaiseOnCommit = &v } // GetRaiseOnExposure returns the RaiseOnExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetRaiseOnExposure() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetRaiseOnExposure() bool { if o == nil || IsNil(o.RaiseOnExposure) { var ret bool return ret @@ -384,7 +384,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetRaiseOnExposure() // GetRaiseOnExposureOk returns a tuple with the RaiseOnExposure field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetRaiseOnExposureOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetRaiseOnExposureOk() (*bool, bool) { if o == nil || IsNil(o.RaiseOnExposure) { return nil, false } @@ -392,7 +392,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetRaiseOnExposureOk } // HasRaiseOnExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasRaiseOnExposure() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasRaiseOnExposure() bool { if o != nil && !IsNil(o.RaiseOnExposure) { return true } @@ -401,12 +401,12 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasRaiseOnExposure() } // SetRaiseOnExposure gets a reference to the given bool and assigns it to the RaiseOnExposure field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetRaiseOnExposure(v bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetRaiseOnExposure(v bool) { o.RaiseOnExposure = &v } // GetIsSourceable returns the IsSourceable field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIsSourceable() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetIsSourceable() bool { if o == nil || IsNil(o.IsSourceable) { var ret bool return ret @@ -416,7 +416,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIsSourceable() bo // GetIsSourceableOk returns a tuple with the IsSourceable field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIsSourceableOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) GetIsSourceableOk() (*bool, bool) { if o == nil || IsNil(o.IsSourceable) { return nil, false } @@ -424,7 +424,7 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) GetIsSourceableOk() } // HasIsSourceable returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasIsSourceable() bool { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) HasIsSourceable() bool { if o != nil && !IsNil(o.IsSourceable) { return true } @@ -433,11 +433,11 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) HasIsSourceable() bo } // SetIsSourceable gets a reference to the given bool and assigns it to the IsSourceable field. -func (o *ProfileDetailedConfigurationInferenceScalarsValue) SetIsSourceable(v bool) { +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) SetIsSourceable(v bool) { o.IsSourceable = &v } -func (o ProfileDetailedConfigurationInferenceScalarsValue) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationInferenceScalarsValue) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -445,7 +445,7 @@ func (o ProfileDetailedConfigurationInferenceScalarsValue) MarshalJSON() ([]byte return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationInferenceScalarsValue) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationInferenceScalarsValue) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Names) { toSerialize["names"] = o.Names @@ -491,16 +491,16 @@ func (o ProfileDetailedConfigurationInferenceScalarsValue) ToMap() (map[string]i return toSerialize, nil } -func (o *ProfileDetailedConfigurationInferenceScalarsValue) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationInferenceScalarsValue := _ProfileDetailedConfigurationInferenceScalarsValue{} +func (o *GetProfile200ResponseConfigurationInferenceScalarsValue) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationInferenceScalarsValue := _GetProfile200ResponseConfigurationInferenceScalarsValue{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationInferenceScalarsValue) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationInferenceScalarsValue) if err != nil { return err } - *o = ProfileDetailedConfigurationInferenceScalarsValue(varProfileDetailedConfigurationInferenceScalarsValue) + *o = GetProfile200ResponseConfigurationInferenceScalarsValue(varGetProfile200ResponseConfigurationInferenceScalarsValue) additionalProperties := make(map[string]interface{}) @@ -523,38 +523,38 @@ func (o *ProfileDetailedConfigurationInferenceScalarsValue) UnmarshalJSON(data [ return err } -type NullableProfileDetailedConfigurationInferenceScalarsValue struct { - value *ProfileDetailedConfigurationInferenceScalarsValue +type NullableGetProfile200ResponseConfigurationInferenceScalarsValue struct { + value *GetProfile200ResponseConfigurationInferenceScalarsValue isSet bool } -func (v NullableProfileDetailedConfigurationInferenceScalarsValue) Get() *ProfileDetailedConfigurationInferenceScalarsValue { +func (v NullableGetProfile200ResponseConfigurationInferenceScalarsValue) Get() *GetProfile200ResponseConfigurationInferenceScalarsValue { return v.value } -func (v *NullableProfileDetailedConfigurationInferenceScalarsValue) Set(val *ProfileDetailedConfigurationInferenceScalarsValue) { +func (v *NullableGetProfile200ResponseConfigurationInferenceScalarsValue) Set(val *GetProfile200ResponseConfigurationInferenceScalarsValue) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationInferenceScalarsValue) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationInferenceScalarsValue) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationInferenceScalarsValue) Unset() { +func (v *NullableGetProfile200ResponseConfigurationInferenceScalarsValue) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationInferenceScalarsValue(val *ProfileDetailedConfigurationInferenceScalarsValue) *NullableProfileDetailedConfigurationInferenceScalarsValue { - return &NullableProfileDetailedConfigurationInferenceScalarsValue{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationInferenceScalarsValue(val *GetProfile200ResponseConfigurationInferenceScalarsValue) *NullableGetProfile200ResponseConfigurationInferenceScalarsValue { + return &NullableGetProfile200ResponseConfigurationInferenceScalarsValue{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationInferenceScalarsValue) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationInferenceScalarsValue) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationInferenceScalarsValue) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationInferenceScalarsValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_network.go b/pkg/api/v3/model_get_profile_200_response_configuration_network.go similarity index 63% rename from pkg/api/v3/model_profile_detailed_configuration_network.go rename to pkg/api/v3/model_get_profile_200_response_configuration_network.go index 8027a237..dcc5a12a 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_network.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_network.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the ProfileDetailedConfigurationNetwork type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationNetwork{} +// checks if the GetProfile200ResponseConfigurationNetwork type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationNetwork{} -// ProfileDetailedConfigurationNetwork struct for ProfileDetailedConfigurationNetwork -type ProfileDetailedConfigurationNetwork struct { +// GetProfile200ResponseConfigurationNetwork struct for GetProfile200ResponseConfigurationNetwork +type GetProfile200ResponseConfigurationNetwork struct { RequestTimeoutS *float32 `json:"request_timeout_s,omitempty"` RequestsPerSecond *float32 `json:"requests_per_second,omitempty"` CustomHeaders map[string][]string `json:"custom_headers,omitempty"` @@ -29,27 +29,27 @@ type ProfileDetailedConfigurationNetwork struct { AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationNetwork ProfileDetailedConfigurationNetwork +type _GetProfile200ResponseConfigurationNetwork GetProfile200ResponseConfigurationNetwork -// NewProfileDetailedConfigurationNetwork instantiates a new ProfileDetailedConfigurationNetwork object +// NewGetProfile200ResponseConfigurationNetwork instantiates a new GetProfile200ResponseConfigurationNetwork 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 NewProfileDetailedConfigurationNetwork() *ProfileDetailedConfigurationNetwork { - this := ProfileDetailedConfigurationNetwork{} +func NewGetProfile200ResponseConfigurationNetwork() *GetProfile200ResponseConfigurationNetwork { + this := GetProfile200ResponseConfigurationNetwork{} return &this } -// NewProfileDetailedConfigurationNetworkWithDefaults instantiates a new ProfileDetailedConfigurationNetwork object +// NewGetProfile200ResponseConfigurationNetworkWithDefaults instantiates a new GetProfile200ResponseConfigurationNetwork 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 NewProfileDetailedConfigurationNetworkWithDefaults() *ProfileDetailedConfigurationNetwork { - this := ProfileDetailedConfigurationNetwork{} +func NewGetProfile200ResponseConfigurationNetworkWithDefaults() *GetProfile200ResponseConfigurationNetwork { + this := GetProfile200ResponseConfigurationNetwork{} return &this } // GetRequestTimeoutS returns the RequestTimeoutS field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationNetwork) GetRequestTimeoutS() float32 { +func (o *GetProfile200ResponseConfigurationNetwork) GetRequestTimeoutS() float32 { if o == nil || IsNil(o.RequestTimeoutS) { var ret float32 return ret @@ -59,7 +59,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetRequestTimeoutS() float32 { // GetRequestTimeoutSOk returns a tuple with the RequestTimeoutS field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationNetwork) GetRequestTimeoutSOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationNetwork) GetRequestTimeoutSOk() (*float32, bool) { if o == nil || IsNil(o.RequestTimeoutS) { return nil, false } @@ -67,7 +67,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetRequestTimeoutSOk() (*float32, } // HasRequestTimeoutS returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationNetwork) HasRequestTimeoutS() bool { +func (o *GetProfile200ResponseConfigurationNetwork) HasRequestTimeoutS() bool { if o != nil && !IsNil(o.RequestTimeoutS) { return true } @@ -76,12 +76,12 @@ func (o *ProfileDetailedConfigurationNetwork) HasRequestTimeoutS() bool { } // SetRequestTimeoutS gets a reference to the given float32 and assigns it to the RequestTimeoutS field. -func (o *ProfileDetailedConfigurationNetwork) SetRequestTimeoutS(v float32) { +func (o *GetProfile200ResponseConfigurationNetwork) SetRequestTimeoutS(v float32) { o.RequestTimeoutS = &v } // GetRequestsPerSecond returns the RequestsPerSecond field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationNetwork) GetRequestsPerSecond() float32 { +func (o *GetProfile200ResponseConfigurationNetwork) GetRequestsPerSecond() float32 { if o == nil || IsNil(o.RequestsPerSecond) { var ret float32 return ret @@ -91,7 +91,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetRequestsPerSecond() float32 { // GetRequestsPerSecondOk returns a tuple with the RequestsPerSecond field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationNetwork) GetRequestsPerSecondOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationNetwork) GetRequestsPerSecondOk() (*float32, bool) { if o == nil || IsNil(o.RequestsPerSecond) { return nil, false } @@ -99,7 +99,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetRequestsPerSecondOk() (*float32 } // HasRequestsPerSecond returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationNetwork) HasRequestsPerSecond() bool { +func (o *GetProfile200ResponseConfigurationNetwork) HasRequestsPerSecond() bool { if o != nil && !IsNil(o.RequestsPerSecond) { return true } @@ -108,12 +108,12 @@ func (o *ProfileDetailedConfigurationNetwork) HasRequestsPerSecond() bool { } // SetRequestsPerSecond gets a reference to the given float32 and assigns it to the RequestsPerSecond field. -func (o *ProfileDetailedConfigurationNetwork) SetRequestsPerSecond(v float32) { +func (o *GetProfile200ResponseConfigurationNetwork) SetRequestsPerSecond(v float32) { o.RequestsPerSecond = &v } // GetCustomHeaders returns the CustomHeaders field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationNetwork) GetCustomHeaders() map[string][]string { +func (o *GetProfile200ResponseConfigurationNetwork) GetCustomHeaders() map[string][]string { if o == nil || IsNil(o.CustomHeaders) { var ret map[string][]string return ret @@ -123,7 +123,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetCustomHeaders() map[string][]st // GetCustomHeadersOk returns a tuple with the CustomHeaders field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationNetwork) GetCustomHeadersOk() (map[string][]string, bool) { +func (o *GetProfile200ResponseConfigurationNetwork) GetCustomHeadersOk() (map[string][]string, bool) { if o == nil || IsNil(o.CustomHeaders) { return map[string][]string{}, false } @@ -131,7 +131,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetCustomHeadersOk() (map[string][ } // HasCustomHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationNetwork) HasCustomHeaders() bool { +func (o *GetProfile200ResponseConfigurationNetwork) HasCustomHeaders() bool { if o != nil && !IsNil(o.CustomHeaders) { return true } @@ -140,12 +140,12 @@ func (o *ProfileDetailedConfigurationNetwork) HasCustomHeaders() bool { } // SetCustomHeaders gets a reference to the given map[string][]string and assigns it to the CustomHeaders field. -func (o *ProfileDetailedConfigurationNetwork) SetCustomHeaders(v map[string][]string) { +func (o *GetProfile200ResponseConfigurationNetwork) SetCustomHeaders(v map[string][]string) { o.CustomHeaders = v } // GetCancelUnhealthyScanAfter returns the CancelUnhealthyScanAfter field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationNetwork) GetCancelUnhealthyScanAfter() float32 { +func (o *GetProfile200ResponseConfigurationNetwork) GetCancelUnhealthyScanAfter() float32 { if o == nil || IsNil(o.CancelUnhealthyScanAfter) { var ret float32 return ret @@ -155,7 +155,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetCancelUnhealthyScanAfter() floa // GetCancelUnhealthyScanAfterOk returns a tuple with the CancelUnhealthyScanAfter field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationNetwork) GetCancelUnhealthyScanAfterOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationNetwork) GetCancelUnhealthyScanAfterOk() (*float32, bool) { if o == nil || IsNil(o.CancelUnhealthyScanAfter) { return nil, false } @@ -163,7 +163,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetCancelUnhealthyScanAfterOk() (* } // HasCancelUnhealthyScanAfter returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationNetwork) HasCancelUnhealthyScanAfter() bool { +func (o *GetProfile200ResponseConfigurationNetwork) HasCancelUnhealthyScanAfter() bool { if o != nil && !IsNil(o.CancelUnhealthyScanAfter) { return true } @@ -172,12 +172,12 @@ func (o *ProfileDetailedConfigurationNetwork) HasCancelUnhealthyScanAfter() bool } // SetCancelUnhealthyScanAfter gets a reference to the given float32 and assigns it to the CancelUnhealthyScanAfter field. -func (o *ProfileDetailedConfigurationNetwork) SetCancelUnhealthyScanAfter(v float32) { +func (o *GetProfile200ResponseConfigurationNetwork) SetCancelUnhealthyScanAfter(v float32) { o.CancelUnhealthyScanAfter = &v } // GetEscapeUser returns the EscapeUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationNetwork) GetEscapeUser() bool { +func (o *GetProfile200ResponseConfigurationNetwork) GetEscapeUser() bool { if o == nil || IsNil(o.EscapeUser) { var ret bool return ret @@ -187,7 +187,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetEscapeUser() bool { // GetEscapeUserOk returns a tuple with the EscapeUser field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationNetwork) GetEscapeUserOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationNetwork) GetEscapeUserOk() (*bool, bool) { if o == nil || IsNil(o.EscapeUser) { return nil, false } @@ -195,7 +195,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetEscapeUserOk() (*bool, bool) { } // HasEscapeUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationNetwork) HasEscapeUser() bool { +func (o *GetProfile200ResponseConfigurationNetwork) HasEscapeUser() bool { if o != nil && !IsNil(o.EscapeUser) { return true } @@ -204,12 +204,12 @@ func (o *ProfileDetailedConfigurationNetwork) HasEscapeUser() bool { } // SetEscapeUser gets a reference to the given bool and assigns it to the EscapeUser field. -func (o *ProfileDetailedConfigurationNetwork) SetEscapeUser(v bool) { +func (o *GetProfile200ResponseConfigurationNetwork) SetEscapeUser(v bool) { o.EscapeUser = &v } // GetSecEscapeUser returns the SecEscapeUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationNetwork) GetSecEscapeUser() bool { +func (o *GetProfile200ResponseConfigurationNetwork) GetSecEscapeUser() bool { if o == nil || IsNil(o.SecEscapeUser) { var ret bool return ret @@ -219,7 +219,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetSecEscapeUser() bool { // GetSecEscapeUserOk returns a tuple with the SecEscapeUser field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationNetwork) GetSecEscapeUserOk() (*bool, bool) { +func (o *GetProfile200ResponseConfigurationNetwork) GetSecEscapeUserOk() (*bool, bool) { if o == nil || IsNil(o.SecEscapeUser) { return nil, false } @@ -227,7 +227,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetSecEscapeUserOk() (*bool, bool) } // HasSecEscapeUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationNetwork) HasSecEscapeUser() bool { +func (o *GetProfile200ResponseConfigurationNetwork) HasSecEscapeUser() bool { if o != nil && !IsNil(o.SecEscapeUser) { return true } @@ -236,12 +236,12 @@ func (o *ProfileDetailedConfigurationNetwork) HasSecEscapeUser() bool { } // SetSecEscapeUser gets a reference to the given bool and assigns it to the SecEscapeUser field. -func (o *ProfileDetailedConfigurationNetwork) SetSecEscapeUser(v bool) { +func (o *GetProfile200ResponseConfigurationNetwork) SetSecEscapeUser(v bool) { o.SecEscapeUser = &v } // GetParallelRequests returns the ParallelRequests field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationNetwork) GetParallelRequests() float32 { +func (o *GetProfile200ResponseConfigurationNetwork) GetParallelRequests() float32 { if o == nil || IsNil(o.ParallelRequests) { var ret float32 return ret @@ -251,7 +251,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetParallelRequests() float32 { // GetParallelRequestsOk returns a tuple with the ParallelRequests field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationNetwork) GetParallelRequestsOk() (*float32, bool) { +func (o *GetProfile200ResponseConfigurationNetwork) GetParallelRequestsOk() (*float32, bool) { if o == nil || IsNil(o.ParallelRequests) { return nil, false } @@ -259,7 +259,7 @@ func (o *ProfileDetailedConfigurationNetwork) GetParallelRequestsOk() (*float32, } // HasParallelRequests returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationNetwork) HasParallelRequests() bool { +func (o *GetProfile200ResponseConfigurationNetwork) HasParallelRequests() bool { if o != nil && !IsNil(o.ParallelRequests) { return true } @@ -268,11 +268,11 @@ func (o *ProfileDetailedConfigurationNetwork) HasParallelRequests() bool { } // SetParallelRequests gets a reference to the given float32 and assigns it to the ParallelRequests field. -func (o *ProfileDetailedConfigurationNetwork) SetParallelRequests(v float32) { +func (o *GetProfile200ResponseConfigurationNetwork) SetParallelRequests(v float32) { o.ParallelRequests = &v } -func (o ProfileDetailedConfigurationNetwork) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationNetwork) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -280,7 +280,7 @@ func (o ProfileDetailedConfigurationNetwork) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationNetwork) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationNetwork) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.RequestTimeoutS) { toSerialize["request_timeout_s"] = o.RequestTimeoutS @@ -311,16 +311,16 @@ func (o ProfileDetailedConfigurationNetwork) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *ProfileDetailedConfigurationNetwork) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationNetwork := _ProfileDetailedConfigurationNetwork{} +func (o *GetProfile200ResponseConfigurationNetwork) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationNetwork := _GetProfile200ResponseConfigurationNetwork{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationNetwork) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationNetwork) if err != nil { return err } - *o = ProfileDetailedConfigurationNetwork(varProfileDetailedConfigurationNetwork) + *o = GetProfile200ResponseConfigurationNetwork(varGetProfile200ResponseConfigurationNetwork) additionalProperties := make(map[string]interface{}) @@ -338,38 +338,38 @@ func (o *ProfileDetailedConfigurationNetwork) UnmarshalJSON(data []byte) (err er return err } -type NullableProfileDetailedConfigurationNetwork struct { - value *ProfileDetailedConfigurationNetwork +type NullableGetProfile200ResponseConfigurationNetwork struct { + value *GetProfile200ResponseConfigurationNetwork isSet bool } -func (v NullableProfileDetailedConfigurationNetwork) Get() *ProfileDetailedConfigurationNetwork { +func (v NullableGetProfile200ResponseConfigurationNetwork) Get() *GetProfile200ResponseConfigurationNetwork { return v.value } -func (v *NullableProfileDetailedConfigurationNetwork) Set(val *ProfileDetailedConfigurationNetwork) { +func (v *NullableGetProfile200ResponseConfigurationNetwork) Set(val *GetProfile200ResponseConfigurationNetwork) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationNetwork) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationNetwork) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationNetwork) Unset() { +func (v *NullableGetProfile200ResponseConfigurationNetwork) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationNetwork(val *ProfileDetailedConfigurationNetwork) *NullableProfileDetailedConfigurationNetwork { - return &NullableProfileDetailedConfigurationNetwork{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationNetwork(val *GetProfile200ResponseConfigurationNetwork) *NullableGetProfile200ResponseConfigurationNetwork { + return &NullableGetProfile200ResponseConfigurationNetwork{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationNetwork) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationNetwork) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationNetwork) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationNetwork) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_port_scanning.go b/pkg/api/v3/model_get_profile_200_response_configuration_port_scanning.go new file mode 100644 index 00000000..2144b273 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_port_scanning.go @@ -0,0 +1,153 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationPortScanning type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationPortScanning{} + +// GetProfile200ResponseConfigurationPortScanning struct for GetProfile200ResponseConfigurationPortScanning +type GetProfile200ResponseConfigurationPortScanning struct { + Ports []float32 `json:"ports,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationPortScanning GetProfile200ResponseConfigurationPortScanning + +// NewGetProfile200ResponseConfigurationPortScanning instantiates a new GetProfile200ResponseConfigurationPortScanning 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 NewGetProfile200ResponseConfigurationPortScanning() *GetProfile200ResponseConfigurationPortScanning { + this := GetProfile200ResponseConfigurationPortScanning{} + return &this +} + +// NewGetProfile200ResponseConfigurationPortScanningWithDefaults instantiates a new GetProfile200ResponseConfigurationPortScanning 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 NewGetProfile200ResponseConfigurationPortScanningWithDefaults() *GetProfile200ResponseConfigurationPortScanning { + this := GetProfile200ResponseConfigurationPortScanning{} + return &this +} + +// GetPorts returns the Ports field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationPortScanning) GetPorts() []float32 { + if o == nil || IsNil(o.Ports) { + var ret []float32 + return ret + } + return o.Ports +} + +// GetPortsOk returns a tuple with the Ports field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationPortScanning) GetPortsOk() ([]float32, bool) { + if o == nil || IsNil(o.Ports) { + return nil, false + } + return o.Ports, true +} + +// HasPorts returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationPortScanning) HasPorts() bool { + if o != nil && !IsNil(o.Ports) { + return true + } + + return false +} + +// SetPorts gets a reference to the given []float32 and assigns it to the Ports field. +func (o *GetProfile200ResponseConfigurationPortScanning) SetPorts(v []float32) { + o.Ports = v +} + +func (o GetProfile200ResponseConfigurationPortScanning) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationPortScanning) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Ports) { + toSerialize["ports"] = o.Ports + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationPortScanning) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationPortScanning := _GetProfile200ResponseConfigurationPortScanning{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationPortScanning) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationPortScanning(varGetProfile200ResponseConfigurationPortScanning) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ports") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationPortScanning struct { + value *GetProfile200ResponseConfigurationPortScanning + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationPortScanning) Get() *GetProfile200ResponseConfigurationPortScanning { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationPortScanning) Set(val *GetProfile200ResponseConfigurationPortScanning) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationPortScanning) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationPortScanning) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationPortScanning(val *GetProfile200ResponseConfigurationPortScanning) *NullableGetProfile200ResponseConfigurationPortScanning { + return &NullableGetProfile200ResponseConfigurationPortScanning{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationPortScanning) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationPortScanning) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_rest_api_dast.go b/pkg/api/v3/model_get_profile_200_response_configuration_rest_api_dast.go new file mode 100644 index 00000000..836142e6 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_rest_api_dast.go @@ -0,0 +1,708 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationRestApiDast type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationRestApiDast{} + +// GetProfile200ResponseConfigurationRestApiDast struct for GetProfile200ResponseConfigurationRestApiDast +type GetProfile200ResponseConfigurationRestApiDast struct { + CustomData map[string]string `json:"custom_data,omitempty"` + SchemaS3Key *string `json:"schema_s3_key,omitempty"` + LocationId *string `json:"location_id,omitempty"` + Profile *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE `json:"profile,omitempty"` + ExplorationDepth *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH `json:"exploration_depth,omitempty"` + ExploreWithAllUsers *bool `json:"explore_with_all_users,omitempty"` + CrossUserMemoryAllowlist []string `json:"cross_user_memory_allowlist,omitempty"` + Mode *ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE `json:"mode,omitempty"` + MaxDuration *float32 `json:"max_duration,omitempty"` + Hotstart []string `json:"hotstart,omitempty"` + HotstartOnly *bool `json:"hotstart_only,omitempty"` + Scope *GetProfile200ResponseConfigurationGraphqlApiDastScope `json:"scope,omitempty"` + AdditionalSchemaS3Keys []string `json:"additional_schema_s3_keys,omitempty"` + QueryParamsAreRequired *bool `json:"query_params_are_required,omitempty"` + InScopeOnly *bool `json:"in_scope_only,omitempty"` + AllowMissingEnvPostman *bool `json:"allow_missing_env_postman,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationRestApiDast GetProfile200ResponseConfigurationRestApiDast + +// NewGetProfile200ResponseConfigurationRestApiDast instantiates a new GetProfile200ResponseConfigurationRestApiDast 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 NewGetProfile200ResponseConfigurationRestApiDast() *GetProfile200ResponseConfigurationRestApiDast { + this := GetProfile200ResponseConfigurationRestApiDast{} + return &this +} + +// NewGetProfile200ResponseConfigurationRestApiDastWithDefaults instantiates a new GetProfile200ResponseConfigurationRestApiDast 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 NewGetProfile200ResponseConfigurationRestApiDastWithDefaults() *GetProfile200ResponseConfigurationRestApiDast { + this := GetProfile200ResponseConfigurationRestApiDast{} + return &this +} + +// GetCustomData returns the CustomData field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetCustomData() map[string]string { + if o == nil || IsNil(o.CustomData) { + var ret map[string]string + return ret + } + return o.CustomData +} + +// GetCustomDataOk returns a tuple with the CustomData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetCustomDataOk() (map[string]string, bool) { + if o == nil || IsNil(o.CustomData) { + return map[string]string{}, false + } + return o.CustomData, true +} + +// HasCustomData returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasCustomData() bool { + if o != nil && !IsNil(o.CustomData) { + return true + } + + return false +} + +// SetCustomData gets a reference to the given map[string]string and assigns it to the CustomData field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetCustomData(v map[string]string) { + o.CustomData = v +} + +// GetSchemaS3Key returns the SchemaS3Key field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetSchemaS3Key() string { + if o == nil || IsNil(o.SchemaS3Key) { + var ret string + return ret + } + return *o.SchemaS3Key +} + +// GetSchemaS3KeyOk returns a tuple with the SchemaS3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetSchemaS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.SchemaS3Key) { + return nil, false + } + return o.SchemaS3Key, true +} + +// HasSchemaS3Key returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasSchemaS3Key() bool { + if o != nil && !IsNil(o.SchemaS3Key) { + return true + } + + return false +} + +// SetSchemaS3Key gets a reference to the given string and assigns it to the SchemaS3Key field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetSchemaS3Key(v string) { + o.SchemaS3Key = &v +} + +// GetLocationId returns the LocationId field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetLocationId() string { + if o == nil || IsNil(o.LocationId) { + var ret string + return ret + } + return *o.LocationId +} + +// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetLocationIdOk() (*string, bool) { + if o == nil || IsNil(o.LocationId) { + return nil, false + } + return o.LocationId, true +} + +// HasLocationId returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasLocationId() bool { + if o != nil && !IsNil(o.LocationId) { + return true + } + + return false +} + +// SetLocationId gets a reference to the given string and assigns it to the LocationId field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetLocationId(v string) { + o.LocationId = &v +} + +// GetProfile returns the Profile field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetProfile() ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE { + if o == nil || IsNil(o.Profile) { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE + return ret + } + return *o.Profile +} + +// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetProfileOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE, bool) { + if o == nil || IsNil(o.Profile) { + return nil, false + } + return o.Profile, true +} + +// HasProfile returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasProfile() bool { + if o != nil && !IsNil(o.Profile) { + return true + } + + return false +} + +// SetProfile gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE and assigns it to the Profile field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetProfile(v ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE) { + o.Profile = &v +} + +// GetExplorationDepth returns the ExplorationDepth field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetExplorationDepth() ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH { + if o == nil || IsNil(o.ExplorationDepth) { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH + return ret + } + return *o.ExplorationDepth +} + +// GetExplorationDepthOk returns a tuple with the ExplorationDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetExplorationDepthOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH, bool) { + if o == nil || IsNil(o.ExplorationDepth) { + return nil, false + } + return o.ExplorationDepth, true +} + +// HasExplorationDepth returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasExplorationDepth() bool { + if o != nil && !IsNil(o.ExplorationDepth) { + return true + } + + return false +} + +// SetExplorationDepth gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH and assigns it to the ExplorationDepth field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetExplorationDepth(v ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESEXPLORATIONDEPTH) { + o.ExplorationDepth = &v +} + +// GetExploreWithAllUsers returns the ExploreWithAllUsers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetExploreWithAllUsers() bool { + if o == nil || IsNil(o.ExploreWithAllUsers) { + var ret bool + return ret + } + return *o.ExploreWithAllUsers +} + +// GetExploreWithAllUsersOk returns a tuple with the ExploreWithAllUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetExploreWithAllUsersOk() (*bool, bool) { + if o == nil || IsNil(o.ExploreWithAllUsers) { + return nil, false + } + return o.ExploreWithAllUsers, true +} + +// HasExploreWithAllUsers returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasExploreWithAllUsers() bool { + if o != nil && !IsNil(o.ExploreWithAllUsers) { + return true + } + + return false +} + +// SetExploreWithAllUsers gets a reference to the given bool and assigns it to the ExploreWithAllUsers field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetExploreWithAllUsers(v bool) { + o.ExploreWithAllUsers = &v +} + +// GetCrossUserMemoryAllowlist returns the CrossUserMemoryAllowlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetCrossUserMemoryAllowlist() []string { + if o == nil || IsNil(o.CrossUserMemoryAllowlist) { + var ret []string + return ret + } + return o.CrossUserMemoryAllowlist +} + +// GetCrossUserMemoryAllowlistOk returns a tuple with the CrossUserMemoryAllowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetCrossUserMemoryAllowlistOk() ([]string, bool) { + if o == nil || IsNil(o.CrossUserMemoryAllowlist) { + return nil, false + } + return o.CrossUserMemoryAllowlist, true +} + +// HasCrossUserMemoryAllowlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasCrossUserMemoryAllowlist() bool { + if o != nil && !IsNil(o.CrossUserMemoryAllowlist) { + return true + } + + return false +} + +// SetCrossUserMemoryAllowlist gets a reference to the given []string and assigns it to the CrossUserMemoryAllowlist field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetCrossUserMemoryAllowlist(v []string) { + o.CrossUserMemoryAllowlist = v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetMode() ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE { + if o == nil || IsNil(o.Mode) { + var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetModeOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE and assigns it to the Mode field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetMode(v ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE) { + o.Mode = &v +} + +// GetMaxDuration returns the MaxDuration field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetMaxDuration() float32 { + if o == nil || IsNil(o.MaxDuration) { + var ret float32 + return ret + } + return *o.MaxDuration +} + +// GetMaxDurationOk returns a tuple with the MaxDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetMaxDurationOk() (*float32, bool) { + if o == nil || IsNil(o.MaxDuration) { + return nil, false + } + return o.MaxDuration, true +} + +// HasMaxDuration returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasMaxDuration() bool { + if o != nil && !IsNil(o.MaxDuration) { + return true + } + + return false +} + +// SetMaxDuration gets a reference to the given float32 and assigns it to the MaxDuration field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetMaxDuration(v float32) { + o.MaxDuration = &v +} + +// GetHotstart returns the Hotstart field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetHotstart() []string { + if o == nil || IsNil(o.Hotstart) { + var ret []string + return ret + } + return o.Hotstart +} + +// GetHotstartOk returns a tuple with the Hotstart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetHotstartOk() ([]string, bool) { + if o == nil || IsNil(o.Hotstart) { + return nil, false + } + return o.Hotstart, true +} + +// HasHotstart returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasHotstart() bool { + if o != nil && !IsNil(o.Hotstart) { + return true + } + + return false +} + +// SetHotstart gets a reference to the given []string and assigns it to the Hotstart field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetHotstart(v []string) { + o.Hotstart = v +} + +// GetHotstartOnly returns the HotstartOnly field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetHotstartOnly() bool { + if o == nil || IsNil(o.HotstartOnly) { + var ret bool + return ret + } + return *o.HotstartOnly +} + +// GetHotstartOnlyOk returns a tuple with the HotstartOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetHotstartOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.HotstartOnly) { + return nil, false + } + return o.HotstartOnly, true +} + +// HasHotstartOnly returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasHotstartOnly() bool { + if o != nil && !IsNil(o.HotstartOnly) { + return true + } + + return false +} + +// SetHotstartOnly gets a reference to the given bool and assigns it to the HotstartOnly field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetHotstartOnly(v bool) { + o.HotstartOnly = &v +} + +// GetScope returns the Scope field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetScope() GetProfile200ResponseConfigurationGraphqlApiDastScope { + if o == nil || IsNil(o.Scope) { + var ret GetProfile200ResponseConfigurationGraphqlApiDastScope + return ret + } + return *o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetScopeOk() (*GetProfile200ResponseConfigurationGraphqlApiDastScope, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasScope() bool { + if o != nil && !IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given GetProfile200ResponseConfigurationGraphqlApiDastScope and assigns it to the Scope field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetScope(v GetProfile200ResponseConfigurationGraphqlApiDastScope) { + o.Scope = &v +} + +// GetAdditionalSchemaS3Keys returns the AdditionalSchemaS3Keys field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetAdditionalSchemaS3Keys() []string { + if o == nil || IsNil(o.AdditionalSchemaS3Keys) { + var ret []string + return ret + } + return o.AdditionalSchemaS3Keys +} + +// GetAdditionalSchemaS3KeysOk returns a tuple with the AdditionalSchemaS3Keys field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetAdditionalSchemaS3KeysOk() ([]string, bool) { + if o == nil || IsNil(o.AdditionalSchemaS3Keys) { + return nil, false + } + return o.AdditionalSchemaS3Keys, true +} + +// HasAdditionalSchemaS3Keys returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasAdditionalSchemaS3Keys() bool { + if o != nil && !IsNil(o.AdditionalSchemaS3Keys) { + return true + } + + return false +} + +// SetAdditionalSchemaS3Keys gets a reference to the given []string and assigns it to the AdditionalSchemaS3Keys field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetAdditionalSchemaS3Keys(v []string) { + o.AdditionalSchemaS3Keys = v +} + +// GetQueryParamsAreRequired returns the QueryParamsAreRequired field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetQueryParamsAreRequired() bool { + if o == nil || IsNil(o.QueryParamsAreRequired) { + var ret bool + return ret + } + return *o.QueryParamsAreRequired +} + +// GetQueryParamsAreRequiredOk returns a tuple with the QueryParamsAreRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetQueryParamsAreRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.QueryParamsAreRequired) { + return nil, false + } + return o.QueryParamsAreRequired, true +} + +// HasQueryParamsAreRequired returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasQueryParamsAreRequired() bool { + if o != nil && !IsNil(o.QueryParamsAreRequired) { + return true + } + + return false +} + +// SetQueryParamsAreRequired gets a reference to the given bool and assigns it to the QueryParamsAreRequired field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetQueryParamsAreRequired(v bool) { + o.QueryParamsAreRequired = &v +} + +// GetInScopeOnly returns the InScopeOnly field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetInScopeOnly() bool { + if o == nil || IsNil(o.InScopeOnly) { + var ret bool + return ret + } + return *o.InScopeOnly +} + +// GetInScopeOnlyOk returns a tuple with the InScopeOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetInScopeOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.InScopeOnly) { + return nil, false + } + return o.InScopeOnly, true +} + +// HasInScopeOnly returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasInScopeOnly() bool { + if o != nil && !IsNil(o.InScopeOnly) { + return true + } + + return false +} + +// SetInScopeOnly gets a reference to the given bool and assigns it to the InScopeOnly field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetInScopeOnly(v bool) { + o.InScopeOnly = &v +} + +// GetAllowMissingEnvPostman returns the AllowMissingEnvPostman field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetAllowMissingEnvPostman() bool { + if o == nil || IsNil(o.AllowMissingEnvPostman) { + var ret bool + return ret + } + return *o.AllowMissingEnvPostman +} + +// GetAllowMissingEnvPostmanOk returns a tuple with the AllowMissingEnvPostman field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) GetAllowMissingEnvPostmanOk() (*bool, bool) { + if o == nil || IsNil(o.AllowMissingEnvPostman) { + return nil, false + } + return o.AllowMissingEnvPostman, true +} + +// HasAllowMissingEnvPostman returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationRestApiDast) HasAllowMissingEnvPostman() bool { + if o != nil && !IsNil(o.AllowMissingEnvPostman) { + return true + } + + return false +} + +// SetAllowMissingEnvPostman gets a reference to the given bool and assigns it to the AllowMissingEnvPostman field. +func (o *GetProfile200ResponseConfigurationRestApiDast) SetAllowMissingEnvPostman(v bool) { + o.AllowMissingEnvPostman = &v +} + +func (o GetProfile200ResponseConfigurationRestApiDast) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationRestApiDast) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CustomData) { + toSerialize["custom_data"] = o.CustomData + } + if !IsNil(o.SchemaS3Key) { + toSerialize["schema_s3_key"] = o.SchemaS3Key + } + if !IsNil(o.LocationId) { + toSerialize["location_id"] = o.LocationId + } + if !IsNil(o.Profile) { + toSerialize["profile"] = o.Profile + } + if !IsNil(o.ExplorationDepth) { + toSerialize["exploration_depth"] = o.ExplorationDepth + } + if !IsNil(o.ExploreWithAllUsers) { + toSerialize["explore_with_all_users"] = o.ExploreWithAllUsers + } + if !IsNil(o.CrossUserMemoryAllowlist) { + toSerialize["cross_user_memory_allowlist"] = o.CrossUserMemoryAllowlist + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + if !IsNil(o.MaxDuration) { + toSerialize["max_duration"] = o.MaxDuration + } + if !IsNil(o.Hotstart) { + toSerialize["hotstart"] = o.Hotstart + } + if !IsNil(o.HotstartOnly) { + toSerialize["hotstart_only"] = o.HotstartOnly + } + if !IsNil(o.Scope) { + toSerialize["scope"] = o.Scope + } + if !IsNil(o.AdditionalSchemaS3Keys) { + toSerialize["additional_schema_s3_keys"] = o.AdditionalSchemaS3Keys + } + if !IsNil(o.QueryParamsAreRequired) { + toSerialize["query_params_are_required"] = o.QueryParamsAreRequired + } + if !IsNil(o.InScopeOnly) { + toSerialize["in_scope_only"] = o.InScopeOnly + } + if !IsNil(o.AllowMissingEnvPostman) { + toSerialize["allow_missing_env_postman"] = o.AllowMissingEnvPostman + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationRestApiDast) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationRestApiDast := _GetProfile200ResponseConfigurationRestApiDast{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationRestApiDast) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationRestApiDast(varGetProfile200ResponseConfigurationRestApiDast) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "custom_data") + delete(additionalProperties, "schema_s3_key") + delete(additionalProperties, "location_id") + delete(additionalProperties, "profile") + delete(additionalProperties, "exploration_depth") + delete(additionalProperties, "explore_with_all_users") + delete(additionalProperties, "cross_user_memory_allowlist") + delete(additionalProperties, "mode") + delete(additionalProperties, "max_duration") + delete(additionalProperties, "hotstart") + delete(additionalProperties, "hotstart_only") + delete(additionalProperties, "scope") + delete(additionalProperties, "additional_schema_s3_keys") + delete(additionalProperties, "query_params_are_required") + delete(additionalProperties, "in_scope_only") + delete(additionalProperties, "allow_missing_env_postman") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationRestApiDast struct { + value *GetProfile200ResponseConfigurationRestApiDast + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationRestApiDast) Get() *GetProfile200ResponseConfigurationRestApiDast { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationRestApiDast) Set(val *GetProfile200ResponseConfigurationRestApiDast) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationRestApiDast) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationRestApiDast) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationRestApiDast(val *GetProfile200ResponseConfigurationRestApiDast) *NullableGetProfile200ResponseConfigurationRestApiDast { + return &NullableGetProfile200ResponseConfigurationRestApiDast{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationRestApiDast) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationRestApiDast) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_scope.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope.go new file mode 100644 index 00000000..4ef33a60 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope.go @@ -0,0 +1,227 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationScope type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationScope{} + +// GetProfile200ResponseConfigurationScope struct for GetProfile200ResponseConfigurationScope +type GetProfile200ResponseConfigurationScope struct { + UseDefaults *bool `json:"use_defaults,omitempty"` + Allowlist []GetProfile200ResponseConfigurationScopeAllowlistInner `json:"allowlist,omitempty"` + Blocklist []GetProfile200ResponseConfigurationScopeAllowlistInner `json:"blocklist,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationScope GetProfile200ResponseConfigurationScope + +// NewGetProfile200ResponseConfigurationScope instantiates a new GetProfile200ResponseConfigurationScope 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 NewGetProfile200ResponseConfigurationScope() *GetProfile200ResponseConfigurationScope { + this := GetProfile200ResponseConfigurationScope{} + return &this +} + +// NewGetProfile200ResponseConfigurationScopeWithDefaults instantiates a new GetProfile200ResponseConfigurationScope 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 NewGetProfile200ResponseConfigurationScopeWithDefaults() *GetProfile200ResponseConfigurationScope { + this := GetProfile200ResponseConfigurationScope{} + return &this +} + +// GetUseDefaults returns the UseDefaults field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationScope) GetUseDefaults() bool { + if o == nil || IsNil(o.UseDefaults) { + var ret bool + return ret + } + return *o.UseDefaults +} + +// GetUseDefaultsOk returns a tuple with the UseDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationScope) GetUseDefaultsOk() (*bool, bool) { + if o == nil || IsNil(o.UseDefaults) { + return nil, false + } + return o.UseDefaults, true +} + +// HasUseDefaults returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationScope) HasUseDefaults() bool { + if o != nil && !IsNil(o.UseDefaults) { + return true + } + + return false +} + +// SetUseDefaults gets a reference to the given bool and assigns it to the UseDefaults field. +func (o *GetProfile200ResponseConfigurationScope) SetUseDefaults(v bool) { + o.UseDefaults = &v +} + +// GetAllowlist returns the Allowlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationScope) GetAllowlist() []GetProfile200ResponseConfigurationScopeAllowlistInner { + if o == nil || IsNil(o.Allowlist) { + var ret []GetProfile200ResponseConfigurationScopeAllowlistInner + return ret + } + return o.Allowlist +} + +// GetAllowlistOk returns a tuple with the Allowlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationScope) GetAllowlistOk() ([]GetProfile200ResponseConfigurationScopeAllowlistInner, bool) { + if o == nil || IsNil(o.Allowlist) { + return nil, false + } + return o.Allowlist, true +} + +// HasAllowlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationScope) HasAllowlist() bool { + if o != nil && !IsNil(o.Allowlist) { + return true + } + + return false +} + +// SetAllowlist gets a reference to the given []GetProfile200ResponseConfigurationScopeAllowlistInner and assigns it to the Allowlist field. +func (o *GetProfile200ResponseConfigurationScope) SetAllowlist(v []GetProfile200ResponseConfigurationScopeAllowlistInner) { + o.Allowlist = v +} + +// GetBlocklist returns the Blocklist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationScope) GetBlocklist() []GetProfile200ResponseConfigurationScopeAllowlistInner { + if o == nil || IsNil(o.Blocklist) { + var ret []GetProfile200ResponseConfigurationScopeAllowlistInner + return ret + } + return o.Blocklist +} + +// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationScope) GetBlocklistOk() ([]GetProfile200ResponseConfigurationScopeAllowlistInner, bool) { + if o == nil || IsNil(o.Blocklist) { + return nil, false + } + return o.Blocklist, true +} + +// HasBlocklist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationScope) HasBlocklist() bool { + if o != nil && !IsNil(o.Blocklist) { + return true + } + + return false +} + +// SetBlocklist gets a reference to the given []GetProfile200ResponseConfigurationScopeAllowlistInner and assigns it to the Blocklist field. +func (o *GetProfile200ResponseConfigurationScope) SetBlocklist(v []GetProfile200ResponseConfigurationScopeAllowlistInner) { + o.Blocklist = v +} + +func (o GetProfile200ResponseConfigurationScope) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationScope) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.UseDefaults) { + toSerialize["use_defaults"] = o.UseDefaults + } + if !IsNil(o.Allowlist) { + toSerialize["allowlist"] = o.Allowlist + } + if !IsNil(o.Blocklist) { + toSerialize["blocklist"] = o.Blocklist + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationScope) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationScope := _GetProfile200ResponseConfigurationScope{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationScope) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationScope(varGetProfile200ResponseConfigurationScope) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "use_defaults") + delete(additionalProperties, "allowlist") + delete(additionalProperties, "blocklist") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationScope struct { + value *GetProfile200ResponseConfigurationScope + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationScope) Get() *GetProfile200ResponseConfigurationScope { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationScope) Set(val *GetProfile200ResponseConfigurationScope) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationScope) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationScope) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationScope(val *GetProfile200ResponseConfigurationScope) *NullableGetProfile200ResponseConfigurationScope { + return &NullableGetProfile200ResponseConfigurationScope{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationScope) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationScope) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner.go new file mode 100644 index 00000000..10f619f6 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner.go @@ -0,0 +1,358 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" + "gopkg.in/validator.v2" +) + +// GetProfile200ResponseConfigurationScopeAllowlistInner - struct for GetProfile200ResponseConfigurationScopeAllowlistInner +type GetProfile200ResponseConfigurationScopeAllowlistInner struct { + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOfAsGetProfile200ResponseConfigurationScopeAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf wrapped in GetProfile200ResponseConfigurationScopeAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOfAsGetProfile200ResponseConfigurationScopeAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetProfile200ResponseConfigurationScopeAllowlistInner { + return GetProfile200ResponseConfigurationScopeAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1AsGetProfile200ResponseConfigurationScopeAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 wrapped in GetProfile200ResponseConfigurationScopeAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1AsGetProfile200ResponseConfigurationScopeAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetProfile200ResponseConfigurationScopeAllowlistInner { + return GetProfile200ResponseConfigurationScopeAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2AsGetProfile200ResponseConfigurationScopeAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 wrapped in GetProfile200ResponseConfigurationScopeAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2AsGetProfile200ResponseConfigurationScopeAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) GetProfile200ResponseConfigurationScopeAllowlistInner { + return GetProfile200ResponseConfigurationScopeAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3AsGetProfile200ResponseConfigurationScopeAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 wrapped in GetProfile200ResponseConfigurationScopeAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3AsGetProfile200ResponseConfigurationScopeAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetProfile200ResponseConfigurationScopeAllowlistInner { + return GetProfile200ResponseConfigurationScopeAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4AsGetProfile200ResponseConfigurationScopeAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 wrapped in GetProfile200ResponseConfigurationScopeAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4AsGetProfile200ResponseConfigurationScopeAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetProfile200ResponseConfigurationScopeAllowlistInner { + return GetProfile200ResponseConfigurationScopeAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5AsGetProfile200ResponseConfigurationScopeAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 wrapped in GetProfile200ResponseConfigurationScopeAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5AsGetProfile200ResponseConfigurationScopeAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) GetProfile200ResponseConfigurationScopeAllowlistInner { + return GetProfile200ResponseConfigurationScopeAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5: v, + } +} + +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6AsGetProfile200ResponseConfigurationScopeAllowlistInner is a convenience function that returns GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 wrapped in GetProfile200ResponseConfigurationScopeAllowlistInner +func GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6AsGetProfile200ResponseConfigurationScopeAllowlistInner(v *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) GetProfile200ResponseConfigurationScopeAllowlistInner { + return GetProfile200ResponseConfigurationScopeAllowlistInner{ + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationScopeAllowlistInner) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 = nil + } + + // try to unmarshal data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 + err = newStrictDecoder(data).Decode(&dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 = nil + } else { + if err = validator.Validate(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6); err != nil { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 = nil + } else { + match++ + } + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 = nil + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 = nil + + return fmt.Errorf("data matches more than one schema in oneOf(GetProfile200ResponseConfigurationScopeAllowlistInner)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(GetProfile200ResponseConfigurationScopeAllowlistInner)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationScopeAllowlistInner) MarshalJSON() ([]byte, error) { + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) + } + + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *GetProfile200ResponseConfigurationScopeAllowlistInner) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 != nil { + return obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj GetProfile200ResponseConfigurationScopeAllowlistInner) GetActualInstanceValue() interface{} { + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 + } + + if obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 != nil { + return *obj.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 + } + + // all schemas are nil + return nil +} + +type NullableGetProfile200ResponseConfigurationScopeAllowlistInner struct { + value *GetProfile200ResponseConfigurationScopeAllowlistInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInner) Get() *GetProfile200ResponseConfigurationScopeAllowlistInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInner) Set(val *GetProfile200ResponseConfigurationScopeAllowlistInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationScopeAllowlistInner(val *GetProfile200ResponseConfigurationScopeAllowlistInner) *NullableGetProfile200ResponseConfigurationScopeAllowlistInner { + return &NullableGetProfile200ResponseConfigurationScopeAllowlistInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of.go similarity index 50% rename from pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of.go rename to pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of.go index d84303bd..dd091784 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of.go @@ -15,40 +15,40 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationScopeAllowlistInnerOneOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationScopeAllowlistInnerOneOf{} +// checks if the GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf{} -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf struct for ProfileDetailedConfigurationScopeAllowlistInnerOneOf -type ProfileDetailedConfigurationScopeAllowlistInnerOneOf struct { +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf struct for GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf +type GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf struct { Type ENUMDOMAIN `json:"type"` Value string `json:"value"` Operation *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION `json:"operation,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationScopeAllowlistInnerOneOf ProfileDetailedConfigurationScopeAllowlistInnerOneOf +type _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf(type_ ENUMDOMAIN, value string) *ProfileDetailedConfigurationScopeAllowlistInnerOneOf { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf(type_ ENUMDOMAIN, value string) *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf{} this.Type = type_ this.Value = value return &this } -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOfWithDefaults instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOfWithDefaults instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOfWithDefaults() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOfWithDefaults() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf{} return &this } // GetType returns the Type field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetType() ENUMDOMAIN { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetType() ENUMDOMAIN { if o == nil { var ret ENUMDOMAIN return ret @@ -59,7 +59,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetType() ENUMDOM // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetTypeOk() (*ENUMDOMAIN, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetTypeOk() (*ENUMDOMAIN, bool) { if o == nil { return nil, false } @@ -67,12 +67,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetTypeOk() (*ENU } // SetType sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) SetType(v ENUMDOMAIN) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) SetType(v ENUMDOMAIN) { o.Type = v } // GetValue returns the Value field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetValue() string { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetValue() string { if o == nil { var ret string return ret @@ -83,7 +83,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetValue() string // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetValueOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetValueOk() (*string, bool) { if o == nil { return nil, false } @@ -91,12 +91,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetValueOk() (*st } // SetValue sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) SetValue(v string) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) SetValue(v string) { o.Value = v } // GetOperation returns the Operation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { if o == nil || IsNil(o.Operation) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION return ret @@ -106,7 +106,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetOperation() EN // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { if o == nil || IsNil(o.Operation) { return nil, false } @@ -114,7 +114,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) GetOperationOk() } // HasOperation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) HasOperation() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) HasOperation() bool { if o != nil && !IsNil(o.Operation) { return true } @@ -123,11 +123,11 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) HasOperation() bo } // SetOperation gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION and assigns it to the Operation field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { o.Operation = &v } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -135,7 +135,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf) MarshalJSON() ([]b return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["value"] = o.Value @@ -150,7 +150,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf) ToMap() (map[strin return toSerialize, nil } -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -173,15 +173,15 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) UnmarshalJSON(dat } } - varProfileDetailedConfigurationScopeAllowlistInnerOneOf := _ProfileDetailedConfigurationScopeAllowlistInnerOneOf{} + varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf := _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationScopeAllowlistInnerOneOf) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) if err != nil { return err } - *o = ProfileDetailedConfigurationScopeAllowlistInnerOneOf(varProfileDetailedConfigurationScopeAllowlistInnerOneOf) + *o = GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf(varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) additionalProperties := make(map[string]interface{}) @@ -195,38 +195,38 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) UnmarshalJSON(dat return err } -type NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf struct { - value *ProfileDetailedConfigurationScopeAllowlistInnerOneOf +type NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf struct { + value *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf isSet bool } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf) Get() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) Get() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf { return v.value } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf) Set(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) Set(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf) Unset() { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationScopeAllowlistInnerOneOf(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf { - return &NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf { + return &NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_1.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_1.go similarity index 50% rename from pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_1.go rename to pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_1.go index b61f0ca2..cdf61c75 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_1.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_1.go @@ -15,40 +15,40 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationScopeAllowlistInnerOneOf1{} +// checks if the GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1{} -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 struct for ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 -type ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 struct { +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 struct for GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 +type GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 struct { Type ENUMIP `json:"type"` Value string `json:"value"` Operation *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION `json:"operation,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 +type _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf1 instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf1(type_ ENUMIP, value string) *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf1{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1(type_ ENUMIP, value string) *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1{} this.Type = type_ this.Value = value return &this } -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf1WithDefaults instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1WithDefaults instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf1WithDefaults() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf1{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1WithDefaults() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1{} return &this } // GetType returns the Type field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetType() ENUMIP { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetType() ENUMIP { if o == nil { var ret ENUMIP return ret @@ -59,7 +59,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetType() ENUMIP // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetTypeOk() (*ENUMIP, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetTypeOk() (*ENUMIP, bool) { if o == nil { return nil, false } @@ -67,12 +67,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetTypeOk() (*EN } // SetType sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) SetType(v ENUMIP) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) SetType(v ENUMIP) { o.Type = v } // GetValue returns the Value field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetValue() string { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetValue() string { if o == nil { var ret string return ret @@ -83,7 +83,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetValue() strin // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetValueOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetValueOk() (*string, bool) { if o == nil { return nil, false } @@ -91,12 +91,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetValueOk() (*s } // SetValue sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) SetValue(v string) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) SetValue(v string) { o.Value = v } // GetOperation returns the Operation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { if o == nil || IsNil(o.Operation) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION return ret @@ -106,7 +106,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetOperation() E // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { if o == nil || IsNil(o.Operation) { return nil, false } @@ -114,7 +114,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) GetOperationOk() } // HasOperation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) HasOperation() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) HasOperation() bool { if o != nil && !IsNil(o.Operation) { return true } @@ -123,11 +123,11 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) HasOperation() b } // SetOperation gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION and assigns it to the Operation field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { o.Operation = &v } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -135,7 +135,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) MarshalJSON() ([] return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["value"] = o.Value @@ -150,7 +150,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) ToMap() (map[stri return toSerialize, nil } -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -173,15 +173,15 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) UnmarshalJSON(da } } - varProfileDetailedConfigurationScopeAllowlistInnerOneOf1 := _ProfileDetailedConfigurationScopeAllowlistInnerOneOf1{} + varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 := _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationScopeAllowlistInnerOneOf1) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) if err != nil { return err } - *o = ProfileDetailedConfigurationScopeAllowlistInnerOneOf1(varProfileDetailedConfigurationScopeAllowlistInnerOneOf1) + *o = GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1(varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) additionalProperties := make(map[string]interface{}) @@ -195,38 +195,38 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) UnmarshalJSON(da return err } -type NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1 struct { - value *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 +type NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 struct { + value *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 isSet bool } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1) Get() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) Get() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 { return v.value } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1) Set(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) Set(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1) Unset() { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1 { - return &NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1 { + return &NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf1) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_2.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_2.go similarity index 50% rename from pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_2.go rename to pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_2.go index e431747c..f70b5ad4 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_2.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_2.go @@ -15,40 +15,40 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationScopeAllowlistInnerOneOf2{} +// checks if the GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2{} -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 struct for ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 -type ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 struct { +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 struct for GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 +type GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 struct { Type ENUMWEBPAGEURL `json:"type"` Value string `json:"value"` Operation *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION `json:"operation,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 +type _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf2 instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf2(type_ ENUMWEBPAGEURL, value string) *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf2{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2(type_ ENUMWEBPAGEURL, value string) *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2{} this.Type = type_ this.Value = value return &this } -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf2WithDefaults instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2WithDefaults instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf2WithDefaults() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf2{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2WithDefaults() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2{} return &this } // GetType returns the Type field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetType() ENUMWEBPAGEURL { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) GetType() ENUMWEBPAGEURL { if o == nil { var ret ENUMWEBPAGEURL return ret @@ -59,7 +59,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetType() ENUMWE // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetTypeOk() (*ENUMWEBPAGEURL, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) GetTypeOk() (*ENUMWEBPAGEURL, bool) { if o == nil { return nil, false } @@ -67,12 +67,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetTypeOk() (*EN } // SetType sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) SetType(v ENUMWEBPAGEURL) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) SetType(v ENUMWEBPAGEURL) { o.Type = v } // GetValue returns the Value field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetValue() string { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) GetValue() string { if o == nil { var ret string return ret @@ -83,7 +83,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetValue() strin // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetValueOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) GetValueOk() (*string, bool) { if o == nil { return nil, false } @@ -91,12 +91,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetValueOk() (*s } // SetValue sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) SetValue(v string) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) SetValue(v string) { o.Value = v } // GetOperation returns the Operation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { if o == nil || IsNil(o.Operation) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION return ret @@ -106,7 +106,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetOperation() E // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { if o == nil || IsNil(o.Operation) { return nil, false } @@ -114,7 +114,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) GetOperationOk() } // HasOperation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) HasOperation() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) HasOperation() bool { if o != nil && !IsNil(o.Operation) { return true } @@ -123,11 +123,11 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) HasOperation() b } // SetOperation gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION and assigns it to the Operation field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { o.Operation = &v } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -135,7 +135,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) MarshalJSON() ([] return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["value"] = o.Value @@ -150,7 +150,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) ToMap() (map[stri return toSerialize, nil } -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -173,15 +173,15 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) UnmarshalJSON(da } } - varProfileDetailedConfigurationScopeAllowlistInnerOneOf2 := _ProfileDetailedConfigurationScopeAllowlistInnerOneOf2{} + varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 := _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationScopeAllowlistInnerOneOf2) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) if err != nil { return err } - *o = ProfileDetailedConfigurationScopeAllowlistInnerOneOf2(varProfileDetailedConfigurationScopeAllowlistInnerOneOf2) + *o = GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2(varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) additionalProperties := make(map[string]interface{}) @@ -195,38 +195,38 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) UnmarshalJSON(da return err } -type NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2 struct { - value *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 +type NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 struct { + value *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 isSet bool } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2) Get() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) Get() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 { return v.value } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2) Set(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) Set(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2) Unset() { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2 { - return &NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2 { + return &NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf2) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf2) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_3.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_3.go similarity index 54% rename from pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_3.go rename to pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_3.go index 6e66f896..f4a5ba67 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_3.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_3.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationScopeAllowlistInnerOneOf3{} +// checks if the GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3{} -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 struct for ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 -type ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 struct { +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 struct for GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 +type GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 struct { Type ENUMRESTAPIPATH `json:"type"` Value string `json:"value"` Operation *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION `json:"operation,omitempty"` @@ -28,29 +28,29 @@ type ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 struct { AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 +type _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf3 instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf3(type_ ENUMRESTAPIPATH, value string) *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf3{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3(type_ ENUMRESTAPIPATH, value string) *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3{} this.Type = type_ this.Value = value return &this } -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf3WithDefaults instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3WithDefaults instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf3WithDefaults() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf3{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3WithDefaults() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3{} return &this } // GetType returns the Type field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetType() ENUMRESTAPIPATH { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetType() ENUMRESTAPIPATH { if o == nil { var ret ENUMRESTAPIPATH return ret @@ -61,7 +61,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetType() ENUMRE // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetTypeOk() (*ENUMRESTAPIPATH, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetTypeOk() (*ENUMRESTAPIPATH, bool) { if o == nil { return nil, false } @@ -69,12 +69,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetTypeOk() (*EN } // SetType sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) SetType(v ENUMRESTAPIPATH) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) SetType(v ENUMRESTAPIPATH) { o.Type = v } // GetValue returns the Value field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetValue() string { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetValue() string { if o == nil { var ret string return ret @@ -85,7 +85,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetValue() strin // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetValueOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetValueOk() (*string, bool) { if o == nil { return nil, false } @@ -93,12 +93,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetValueOk() (*s } // SetValue sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) SetValue(v string) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) SetValue(v string) { o.Value = v } // GetOperation returns the Operation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { if o == nil || IsNil(o.Operation) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION return ret @@ -108,7 +108,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetOperation() E // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { if o == nil || IsNil(o.Operation) { return nil, false } @@ -116,7 +116,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetOperationOk() } // HasOperation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) HasOperation() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) HasOperation() bool { if o != nil && !IsNil(o.Operation) { return true } @@ -125,12 +125,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) HasOperation() b } // SetOperation gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION and assigns it to the Operation field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { o.Operation = &v } // GetMethod returns the Method field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { if o == nil || IsNil(o.Method) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD return ret @@ -140,7 +140,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetMethod() ENUM // GetMethodOk returns a tuple with the Method field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { if o == nil || IsNil(o.Method) { return nil, false } @@ -148,7 +148,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetMethodOk() (* } // HasMethod returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) HasMethod() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) HasMethod() bool { if o != nil && !IsNil(o.Method) { return true } @@ -157,12 +157,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) HasMethod() bool } // SetMethod gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD and assigns it to the Method field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { o.Method = &v } // GetDomain returns the Domain field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetDomain() string { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetDomain() string { if o == nil || IsNil(o.Domain) { var ret string return ret @@ -172,7 +172,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetDomain() stri // 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 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetDomainOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) GetDomainOk() (*string, bool) { if o == nil || IsNil(o.Domain) { return nil, false } @@ -180,7 +180,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) GetDomainOk() (* } // HasDomain returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) HasDomain() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) HasDomain() bool { if o != nil && !IsNil(o.Domain) { return true } @@ -189,11 +189,11 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) HasDomain() bool } // SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) SetDomain(v string) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) SetDomain(v string) { o.Domain = &v } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -201,7 +201,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) MarshalJSON() ([] return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["value"] = o.Value @@ -222,7 +222,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) ToMap() (map[stri return toSerialize, nil } -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -245,15 +245,15 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) UnmarshalJSON(da } } - varProfileDetailedConfigurationScopeAllowlistInnerOneOf3 := _ProfileDetailedConfigurationScopeAllowlistInnerOneOf3{} + varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 := _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationScopeAllowlistInnerOneOf3) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) if err != nil { return err } - *o = ProfileDetailedConfigurationScopeAllowlistInnerOneOf3(varProfileDetailedConfigurationScopeAllowlistInnerOneOf3) + *o = GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3(varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) additionalProperties := make(map[string]interface{}) @@ -269,38 +269,38 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) UnmarshalJSON(da return err } -type NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3 struct { - value *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 +type NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 struct { + value *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 isSet bool } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3) Get() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) Get() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 { return v.value } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3) Set(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) Set(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3) Unset() { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3 { - return &NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3 { + return &NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf3) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf3) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_4.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_4.go similarity index 52% rename from pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_4.go rename to pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_4.go index ecabf009..03b8a381 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_4.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_4.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationScopeAllowlistInnerOneOf4{} +// checks if the GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4{} -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 struct for ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 -type ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 struct { +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 struct for GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 +type GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 struct { Type ENUMRESTAPIURL `json:"type"` Value string `json:"value"` Operation *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION `json:"operation,omitempty"` @@ -27,29 +27,29 @@ type ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 struct { AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 +type _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf4 instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf4(type_ ENUMRESTAPIURL, value string) *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf4{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4(type_ ENUMRESTAPIURL, value string) *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4{} this.Type = type_ this.Value = value return &this } -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf4WithDefaults instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4WithDefaults instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf4WithDefaults() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf4{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4WithDefaults() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4{} return &this } // GetType returns the Type field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetType() ENUMRESTAPIURL { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetType() ENUMRESTAPIURL { if o == nil { var ret ENUMRESTAPIURL return ret @@ -60,7 +60,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetType() ENUMRE // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetTypeOk() (*ENUMRESTAPIURL, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetTypeOk() (*ENUMRESTAPIURL, bool) { if o == nil { return nil, false } @@ -68,12 +68,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetTypeOk() (*EN } // SetType sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) SetType(v ENUMRESTAPIURL) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) SetType(v ENUMRESTAPIURL) { o.Type = v } // GetValue returns the Value field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetValue() string { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetValue() string { if o == nil { var ret string return ret @@ -84,7 +84,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetValue() strin // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetValueOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetValueOk() (*string, bool) { if o == nil { return nil, false } @@ -92,12 +92,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetValueOk() (*s } // SetValue sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) SetValue(v string) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) SetValue(v string) { o.Value = v } // GetOperation returns the Operation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { if o == nil || IsNil(o.Operation) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION return ret @@ -107,7 +107,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetOperation() E // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { if o == nil || IsNil(o.Operation) { return nil, false } @@ -115,7 +115,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetOperationOk() } // HasOperation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) HasOperation() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) HasOperation() bool { if o != nil && !IsNil(o.Operation) { return true } @@ -124,12 +124,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) HasOperation() b } // SetOperation gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION and assigns it to the Operation field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { o.Operation = &v } // GetMethod returns the Method field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { if o == nil || IsNil(o.Method) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD return ret @@ -139,7 +139,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetMethod() ENUM // GetMethodOk returns a tuple with the Method field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { if o == nil || IsNil(o.Method) { return nil, false } @@ -147,7 +147,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) GetMethodOk() (* } // HasMethod returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) HasMethod() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) HasMethod() bool { if o != nil && !IsNil(o.Method) { return true } @@ -156,11 +156,11 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) HasMethod() bool } // SetMethod gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD and assigns it to the Method field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { o.Method = &v } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -168,7 +168,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) MarshalJSON() ([] return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["value"] = o.Value @@ -186,7 +186,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) ToMap() (map[stri return toSerialize, nil } -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -209,15 +209,15 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) UnmarshalJSON(da } } - varProfileDetailedConfigurationScopeAllowlistInnerOneOf4 := _ProfileDetailedConfigurationScopeAllowlistInnerOneOf4{} + varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 := _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationScopeAllowlistInnerOneOf4) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) if err != nil { return err } - *o = ProfileDetailedConfigurationScopeAllowlistInnerOneOf4(varProfileDetailedConfigurationScopeAllowlistInnerOneOf4) + *o = GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4(varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) additionalProperties := make(map[string]interface{}) @@ -232,38 +232,38 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) UnmarshalJSON(da return err } -type NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4 struct { - value *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 +type NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 struct { + value *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 isSet bool } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4) Get() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) Get() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 { return v.value } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4) Set(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) Set(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4) Unset() { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4 { - return &NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4 { + return &NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf4) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf4) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_5.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_5.go similarity index 50% rename from pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_5.go rename to pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_5.go index 99c43803..07c0191f 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_5.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_5.go @@ -15,40 +15,40 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationScopeAllowlistInnerOneOf5{} +// checks if the GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5{} -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 struct for ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 -type ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 struct { +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 struct for GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 +type GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 struct { Type ENUMGRAPHQLOPERATION `json:"type"` Value string `json:"value"` Operation *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION `json:"operation,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 +type _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf5 instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf5(type_ ENUMGRAPHQLOPERATION, value string) *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf5{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5(type_ ENUMGRAPHQLOPERATION, value string) *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5{} this.Type = type_ this.Value = value return &this } -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf5WithDefaults instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5WithDefaults instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf5WithDefaults() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf5{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5WithDefaults() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5{} return &this } // GetType returns the Type field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetType() ENUMGRAPHQLOPERATION { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) GetType() ENUMGRAPHQLOPERATION { if o == nil { var ret ENUMGRAPHQLOPERATION return ret @@ -59,7 +59,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetType() ENUMGR // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetTypeOk() (*ENUMGRAPHQLOPERATION, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) GetTypeOk() (*ENUMGRAPHQLOPERATION, bool) { if o == nil { return nil, false } @@ -67,12 +67,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetTypeOk() (*EN } // SetType sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) SetType(v ENUMGRAPHQLOPERATION) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) SetType(v ENUMGRAPHQLOPERATION) { o.Type = v } // GetValue returns the Value field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetValue() string { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) GetValue() string { if o == nil { var ret string return ret @@ -83,7 +83,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetValue() strin // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetValueOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) GetValueOk() (*string, bool) { if o == nil { return nil, false } @@ -91,12 +91,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetValueOk() (*s } // SetValue sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) SetValue(v string) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) SetValue(v string) { o.Value = v } // GetOperation returns the Operation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { if o == nil || IsNil(o.Operation) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION return ret @@ -106,7 +106,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetOperation() E // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { if o == nil || IsNil(o.Operation) { return nil, false } @@ -114,7 +114,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) GetOperationOk() } // HasOperation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) HasOperation() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) HasOperation() bool { if o != nil && !IsNil(o.Operation) { return true } @@ -123,11 +123,11 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) HasOperation() b } // SetOperation gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION and assigns it to the Operation field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { o.Operation = &v } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -135,7 +135,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) MarshalJSON() ([] return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["value"] = o.Value @@ -150,7 +150,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) ToMap() (map[stri return toSerialize, nil } -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -173,15 +173,15 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) UnmarshalJSON(da } } - varProfileDetailedConfigurationScopeAllowlistInnerOneOf5 := _ProfileDetailedConfigurationScopeAllowlistInnerOneOf5{} + varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 := _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationScopeAllowlistInnerOneOf5) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) if err != nil { return err } - *o = ProfileDetailedConfigurationScopeAllowlistInnerOneOf5(varProfileDetailedConfigurationScopeAllowlistInnerOneOf5) + *o = GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5(varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) additionalProperties := make(map[string]interface{}) @@ -195,38 +195,38 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) UnmarshalJSON(da return err } -type NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5 struct { - value *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 +type NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 struct { + value *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 isSet bool } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5) Get() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) Get() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 { return v.value } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5) Set(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) Set(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5) Unset() { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5 { - return &NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5 { + return &NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf5) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf5) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_6.go b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_6.go similarity index 50% rename from pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_6.go rename to pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_6.go index 08e5b0b3..3db13e3a 100644 --- a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner_one_of_6.go +++ b/pkg/api/v3/model_get_profile_200_response_configuration_scope_allowlist_inner_one_of_6.go @@ -15,40 +15,40 @@ import ( "fmt" ) -// checks if the ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationScopeAllowlistInnerOneOf6{} +// checks if the GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6{} -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 struct for ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 -type ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 struct { +// GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 struct for GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 +type GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 struct { Type ENUMWEBPAGEELEMENTSELECTOR `json:"type"` Value string `json:"value"` Operation *ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION `json:"operation,omitempty"` AdditionalProperties map[string]interface{} } -type _ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 +type _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf6 instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf6(type_ ENUMWEBPAGEELEMENTSELECTOR, value string) *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf6{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6(type_ ENUMWEBPAGEELEMENTSELECTOR, value string) *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6{} this.Type = type_ this.Value = value return &this } -// NewProfileDetailedConfigurationScopeAllowlistInnerOneOf6WithDefaults instantiates a new ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 object +// NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6WithDefaults instantiates a new GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 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 NewProfileDetailedConfigurationScopeAllowlistInnerOneOf6WithDefaults() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 { - this := ProfileDetailedConfigurationScopeAllowlistInnerOneOf6{} +func NewGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6WithDefaults() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 { + this := GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6{} return &this } // GetType returns the Type field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetType() ENUMWEBPAGEELEMENTSELECTOR { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) GetType() ENUMWEBPAGEELEMENTSELECTOR { if o == nil { var ret ENUMWEBPAGEELEMENTSELECTOR return ret @@ -59,7 +59,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetType() ENUMWE // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetTypeOk() (*ENUMWEBPAGEELEMENTSELECTOR, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) GetTypeOk() (*ENUMWEBPAGEELEMENTSELECTOR, bool) { if o == nil { return nil, false } @@ -67,12 +67,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetTypeOk() (*EN } // SetType sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) SetType(v ENUMWEBPAGEELEMENTSELECTOR) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) SetType(v ENUMWEBPAGEELEMENTSELECTOR) { o.Type = v } // GetValue returns the Value field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetValue() string { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) GetValue() string { if o == nil { var ret string return ret @@ -83,7 +83,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetValue() strin // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetValueOk() (*string, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) GetValueOk() (*string, bool) { if o == nil { return nil, false } @@ -91,12 +91,12 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetValueOk() (*s } // SetValue sets field value -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) SetValue(v string) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) SetValue(v string) { o.Value = v } // GetOperation returns the Operation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) GetOperation() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION { if o == nil || IsNil(o.Operation) { var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION return ret @@ -106,7 +106,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetOperation() E // GetOperationOk returns a tuple with the Operation field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) GetOperationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION, bool) { if o == nil || IsNil(o.Operation) { return nil, false } @@ -114,7 +114,7 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) GetOperationOk() } // HasOperation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) HasOperation() bool { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) HasOperation() bool { if o != nil && !IsNil(o.Operation) { return true } @@ -123,11 +123,11 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) HasOperation() b } // SetOperation gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION and assigns it to the Operation field. -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) SetOperation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS0PROPERTIESOPERATION) { o.Operation = &v } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) MarshalJSON() ([]byte, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -135,7 +135,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) MarshalJSON() ([] return json.Marshal(toSerialize) } -func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) ToMap() (map[string]interface{}, error) { +func (o GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["type"] = o.Type toSerialize["value"] = o.Value @@ -150,7 +150,7 @@ func (o ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) ToMap() (map[stri return toSerialize, nil } -func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) UnmarshalJSON(data []byte) (err error) { +func (o *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -173,15 +173,15 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) UnmarshalJSON(da } } - varProfileDetailedConfigurationScopeAllowlistInnerOneOf6 := _ProfileDetailedConfigurationScopeAllowlistInnerOneOf6{} + varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 := _GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6{} - err = json.Unmarshal(data, &varProfileDetailedConfigurationScopeAllowlistInnerOneOf6) + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) if err != nil { return err } - *o = ProfileDetailedConfigurationScopeAllowlistInnerOneOf6(varProfileDetailedConfigurationScopeAllowlistInnerOneOf6) + *o = GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6(varGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) additionalProperties := make(map[string]interface{}) @@ -195,38 +195,38 @@ func (o *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) UnmarshalJSON(da return err } -type NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6 struct { - value *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 +type NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 struct { + value *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 isSet bool } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6) Get() *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) Get() *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 { return v.value } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6) Set(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) Set(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) { v.value = val v.isSet = true } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6) IsSet() bool { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) IsSet() bool { return v.isSet } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6) Unset() { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) Unset() { v.value = nil v.isSet = false } -func NewNullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6(val *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6 { - return &NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6{value: val, isSet: true} +func NewNullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6(val *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6 { + return &NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6{value: val, isSet: true} } -func (v NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6) MarshalJSON() ([]byte, error) { +func (v NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableProfileDetailedConfigurationScopeAllowlistInnerOneOf6) UnmarshalJSON(src []byte) error { +func (v *NullableGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf6) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests.go new file mode 100644 index 00000000..b17be0ae --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests.go @@ -0,0 +1,10291 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTests type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTests{} + +// GetProfile200ResponseConfigurationSecurityTests struct for GetProfile200ResponseConfigurationSecurityTests +type GetProfile200ResponseConfigurationSecurityTests struct { + HighNumberOfCustomScalars *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_custom_scalars,omitempty"` + HighNumberOfPci *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_pci,omitempty"` + HighNumberOfPii *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_pii,omitempty"` + HighNumberOfPhi *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_phi,omitempty"` + HighNumberOfSecrets *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_secrets,omitempty"` + AdminerDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"adminer_default_login,omitempty"` + XssAgent *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"xss_agent,omitempty"` + ReplayAgent *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"replay_agent,omitempty"` + AirflowConfigExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"airflow_config_exposure,omitempty"` + AirflowDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"airflow_default_login,omitempty"` + AirflowV3DefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"airflow_v3_default_login,omitempty"` + AlibabaCanalLeak *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"alibaba_canal_leak,omitempty"` + AngularDevelopmentBuild *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"angular_development_build,omitempty"` + AnsibleConfigExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ansible_config_exposure,omitempty"` + ApacheApolloDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_apollo_default_login,omitempty"` + ApacheDruidLog4j *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_druid_log4j,omitempty"` + ApacheFlinkUnauthRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_flink_unauth_rce,omitempty"` + ApacheHertzbeatDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_hertzbeat_default_login,omitempty"` + ApacheNifiRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_nifi_rce,omitempty"` + ApacheOfbizLog4jRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_ofbiz_log4j_rce,omitempty"` + ApacheSolrFileRead *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_solr_file_read,omitempty"` + ApacheSolrLog4jRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_solr_log4j_rce,omitempty"` + ApacheSolrRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_solr_rce,omitempty"` + ApisixDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"apisix_default_login,omitempty"` + AppspecExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"appspec_exposure,omitempty"` + AppveyorConfigExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"appveyor_config_exposure,omitempty"` + AspNetViewStateEncryption *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"asp_net_view_state_encryption,omitempty"` + AspNetViewStateMacValidationDisabled *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"asp_net_view_state_mac_validation_disabled,omitempty"` + ArcadePhpSqli *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"arcade_php_sqli,omitempty"` + AwsAccessToken *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"aws_access_token,omitempty"` + AwsConfigExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"aws_config_exposure,omitempty"` + AwsDockerConfigExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"aws_docker_config_exposure,omitempty"` + AwstatsConfigExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"awstats_config_exposure,omitempty"` + AwstatsExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"awstats_exposure,omitempty"` + BsphpInfo *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"bsphp_info,omitempty"` + Bola *GetProfile200ResponseConfigurationSecurityTestsBola `json:"bola,omitempty"` + CharacterLimit *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"character_limit,omitempty"` + FrontendBola *GetProfile200ResponseConfigurationSecurityTestsBola `json:"frontend_bola,omitempty"` + CloudstackDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"cloudstack_default_login,omitempty"` + CodimdUnauthFileUpload *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"codimd_unauth_file_upload,omitempty"` + Command *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"command,omitempty"` + ConfigJsonExposureFuzz *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"config_json_exposure_fuzz,omitempty"` + FrontendCommandInjection *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_command_injection,omitempty"` + ConsoleError *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"console_error,omitempty"` + Cors *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"cors,omitempty"` + CrashingPage *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"crashing_page,omitempty"` + DbgateUnauthRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dbgate_unauth_rce,omitempty"` + FrontendCrlf *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_crlf,omitempty"` + CsrfGetBased *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"csrf_get_based,omitempty"` + Cve202144228 *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"cve_2021_44228,omitempty"` + Cve202425723 *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"cve_2024_25723,omitempty"` + Cve202432651 *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"cve_2024_32651,omitempty"` + Cve202440711 *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"cve_2024_40711,omitempty"` + CsrfPostBased *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"csrf_post_based,omitempty"` + FrontendCsrfGetBased *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_csrf_get_based,omitempty"` + FrontendCsrfPostBased *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_csrf_post_based,omitempty"` + DebugMode *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"debug_mode,omitempty"` + DjangoSecretKey *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"django_secret_key,omitempty"` + DolphinschedulerDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dolphinscheduler_default_login,omitempty"` + DorisDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"doris_default_login,omitempty"` + DirectoryTraversal *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"directory_traversal,omitempty"` + Dkim *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dkim,omitempty"` + Dmarc *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dmarc,omitempty"` + Loopback *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"loopback,omitempty"` + PermisiveSpf *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"permisive_spf,omitempty"` + DnsrecordPrivateIp *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dnsrecord_private_ip,omitempty"` + DnsrecordTxtLength *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dnsrecord_txt_length,omitempty"` + DnsrecordTxtSensitive *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dnsrecord_txt_sensitive,omitempty"` + DnssecDisabled *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dnssec_disabled,omitempty"` + StoredXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"stored_xss,omitempty"` + DomainTakeover *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"domain_takeover,omitempty"` + Drupal7ElfinderRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"drupal7_elfinder_rce,omitempty"` + DrupalAvatarXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"drupal_avatar_xss,omitempty"` + DubboAdminDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dubbo_admin_default_login,omitempty"` + EasyimageDownphpLfi *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"easyimage_downphp_lfi,omitempty"` + EcologyMysqlConfig *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ecology_mysql_config,omitempty"` + ElasticsearchDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"elasticsearch_default_login,omitempty"` + EsafenetMysqlFileread *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"esafenet_mysql_fileread,omitempty"` + ExcessiveBrowserPermissions *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"excessive_browser_permissions,omitempty"` + ExposedConfigFile *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_config_file,omitempty"` + FrontendDomainTakeover *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_domain_takeover,omitempty"` + FrontendHeaderSetCookie *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_header_set_cookie,omitempty"` + FrontendInsecureWebsocket *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_insecure_websocket,omitempty"` + FrontendPotentialCve *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_potential_cve,omitempty"` + FrontendServerError *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_server_error,omitempty"` + FrontendSoftwareComponentLeak *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_software_component_leak,omitempty"` + FrontendSqlInjection *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection `json:"frontend_sql_injection,omitempty"` + FrontendSsl *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_ssl,omitempty"` + FrontendTimeout *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_timeout,omitempty"` + FrontendXssViaDomainTakeover *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_xss_via_domain_takeover,omitempty"` + ExposedMysqlConfig *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_mysql_config,omitempty"` + ExposedSettingsPhp *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_settings_php,omitempty"` + ExposedSourcemap *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap `json:"exposed_sourcemap,omitempty"` + ExposedSqlDumps *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_sql_dumps,omitempty"` + FileDisclosure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"file_disclosure,omitempty"` + GraphqlAliasLimit *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_alias_limit,omitempty"` + GraphqlBatchLimit *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_batch_limit,omitempty"` + GraphqlCircularIntrospection *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_circular_introspection,omitempty"` + GraphqlDirectiveOverload *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_directive_overload,omitempty"` + GraphqlFieldDuplication *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_field_duplication,omitempty"` + GraphqlFieldSuggestion *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_field_suggestion,omitempty"` + GraphqlRecursiveFragment *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_recursive_fragment,omitempty"` + GuessableCookieValue *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"guessable_cookie_value,omitempty"` + HeaderCacheControl *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"header_cache_control,omitempty"` + HeaderContentSecurityPolicy *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"header_content_security_policy,omitempty"` + HeaderContentType *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"header_content_type,omitempty"` + HeaderSetCookie *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"header_set_cookie,omitempty"` + HeaderStrictTransportSecurity *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"header_strict_transport_security,omitempty"` + HeaderXContentTypeOptions *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"header_x_content_type_options,omitempty"` + HeaderXFrameOptions *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"header_x_frame_options,omitempty"` + HtmlInjection *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"html_injection,omitempty"` + Http2NotSupported *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"http2_not_supported,omitempty"` + HttpNoHttpsRedirect *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"http_no_https_redirect,omitempty"` + HttpParamPollution *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"http_param_pollution,omitempty"` + IdeEnabled *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ide_enabled,omitempty"` + ImproperInputClientSideProtoPollution *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"improper_input_client_side_proto_pollution,omitempty"` + ImproperInputFrontendTemplateInjection *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"improper_input_frontend_template_injection,omitempty"` + ImproperInputXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"improper_input_xss,omitempty"` + ImproperInputXssQueryParams *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"improper_input_xss_query_params,omitempty"` + IntrospectionEnabled *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"introspection_enabled,omitempty"` + JwtAlgConfusion *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"jwt_alg_confusion,omitempty"` + JwtAlgNone *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"jwt_alg_none,omitempty"` + ExposedJwt *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_jwt,omitempty"` + JwtSignCheck *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"jwt_sign_check,omitempty"` + LeakingAuthentication *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"leaking_authentication,omitempty"` + MassAssignment *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"mass_assignment,omitempty"` + McpUnauth *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"mcp_unauth,omitempty"` + Nosql *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"nosql,omitempty"` + FrontendNosqlInjection *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_nosql_injection,omitempty"` + PaginationMissing *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"pagination_missing,omitempty"` + FrontendOpenRedirect *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_open_redirect,omitempty"` + PasswordFieldAutocompletion *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"password_field_autocompletion,omitempty"` + PositiveIntegerValidation *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"positive_integer_validation,omitempty"` + PrivateData *GetProfile200ResponseConfigurationSecurityTestsPrivateData `json:"private_data,omitempty"` + PrivateIp *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"private_ip,omitempty"` + ReflectedUrlParameter *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"reflected_url_parameter,omitempty"` + RequestUrlOverride *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"request_url_override,omitempty"` + ResponseSize *GetProfile200ResponseConfigurationSecurityTestsResponseSize `json:"response_size,omitempty"` + SensitiveComments *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"sensitive_comments,omitempty"` + ServerError *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"server_error,omitempty"` + SoftwareComponentLeak *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"software_component_leak,omitempty"` + SpringbootActuatorDump *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_dump,omitempty"` + SpringbootActuatorEnv *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_env,omitempty"` + SpringbootActuatorHeapdump *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_heapdump,omitempty"` + SpringbootActuatorLogfile *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_logfile,omitempty"` + SpringbootActuatorMappings *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_mappings,omitempty"` + SpringbootActuatorRestart *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_restart,omitempty"` + SpringbootActuatorShutdown *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_shutdown,omitempty"` + SpringbootActuatorTrace *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_trace,omitempty"` + Sql *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection `json:"sql,omitempty"` + SqlInjectionOracleBased *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"sql_injection_oracle_based,omitempty"` + SslCertificate *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ssl_certificate,omitempty"` + Ssl *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ssl,omitempty"` + Ssrf *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ssrf,omitempty"` + Ssti *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ssti,omitempty"` + FrontendSsrfHeader *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_ssrf_header,omitempty"` + Stacktrace *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"stacktrace,omitempty"` + SubresourceIntegrityMissing *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"subresource_integrity_missing,omitempty"` + MultiUserAccessControl *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl `json:"multi_user_access_control,omitempty"` + Timeout *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"timeout,omitempty"` + UnreachableServer *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"unreachable_server,omitempty"` + UnsafeFunctionUse *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"unsafe_function_use,omitempty"` + VueDevelopmentBuild *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"vue_development_build,omitempty"` + WafBypass *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"waf_bypass,omitempty"` + WordpressOembedEndpointExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_oembed_endpoint_exposed,omitempty"` + WordpressRdfFeedUserExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_rdf_feed_user_exposed,omitempty"` + WordpressRestApiUsersExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_rest_api_users_exposed,omitempty"` + WordpressAffiliatewpLog *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_affiliatewp_log,omitempty"` + WordpressDbBackup *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_db_backup,omitempty"` + WordpressDbBackupListing *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_db_backup_listing,omitempty"` + WordpressDbRepair *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_db_repair,omitempty"` + WordpressDebugLog *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_debug_log,omitempty"` + WordpressSocialMetricsTracker *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_social_metrics_tracker,omitempty"` + WordpressSsrfOembed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_ssrf_oembed,omitempty"` + WordpressTotalUpkeepBackupDownload *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_total_upkeep_backup_download,omitempty"` + WordpressWordfenceLfi *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_wordfence_lfi,omitempty"` + WordpressWordfenceWafBypassXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_wordfence_waf_bypass_xss,omitempty"` + WordpressWordfenceXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_wordfence_xss,omitempty"` + WordpressWpCronExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_wp_cron_exposed,omitempty"` + WordpressXmlrpcPhpExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_xmlrpc_php_exposed,omitempty"` + WordpressZebraFormXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_zebra_form_xss,omitempty"` + WpInsertPhpXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wp_insert_php_xss,omitempty"` + WpPhpfreechatXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wp_phpfreechat_xss,omitempty"` + FlaskSessionCookie *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"flask_session_cookie,omitempty"` + GeovisionGeowebserverLfiXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"geovision_geowebserver_lfi_xss,omitempty"` + GitExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"git_exposure,omitempty"` + SvelteDevelopmentBuild *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"svelte_development_build,omitempty"` + GitlabWeakLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"gitlab_weak_login,omitempty"` + GlpiDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"glpi_default_login,omitempty"` + GrafanaDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"grafana_default_login,omitempty"` + InfobloxNetmriRailsCookieRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"infoblox_netmri_rails_cookie_rce,omitempty"` + IotawattAppExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"iotawatt_app_exposure,omitempty"` + JenkinsWeakPassword *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"jenkins_weak_password,omitempty"` + JolokiaTomcatCredsLeak *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"jolokia_tomcat_creds_leak,omitempty"` + JoomlaComBookingComponent *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_com_booking_component,omitempty"` + JoomlaComFabrikLfi *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_com_fabrik_lfi,omitempty"` + JoomlaDepartmentSqli *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_department_sqli,omitempty"` + JoomlaEasyshopLfi *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_easyshop_lfi,omitempty"` + JoomlaIpropertyXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_iproperty_xss,omitempty"` + JoomlaJlexXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_jlex_xss,omitempty"` + JoomlaJmarketXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_jmarket_xss,omitempty"` + JoomlaJoombriCareersXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_joombri_careers_xss,omitempty"` + JoomlaJvehiclesLfi *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_jvehicles_lfi,omitempty"` + JoomlaJvtwitterXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_jvtwitter_xss,omitempty"` + JoomlaMarvikshopSqli *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_marvikshop_sqli,omitempty"` + JoomlaMarvikshopXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_marvikshop_xss,omitempty"` + JoomlaSolidresXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_solidres_xss,omitempty"` + JupyterNotebookRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"jupyter_notebook_rce,omitempty"` + KafkaCenterDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"kafka_center_default_login,omitempty"` + KarafDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"karaf_default_login,omitempty"` + KkfileviewSsrf *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"kkfileview_ssrf,omitempty"` + KylinDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"kylin_default_login,omitempty"` + LuceeRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"lucee_rce,omitempty"` + MalwaredByobRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"malwared_byob_rce,omitempty"` + MdbDatabaseFile *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"mdb_database_file,omitempty"` + MinioDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"minio_default_login,omitempty"` + MssqlDefaultCredentials *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"mssql_default_credentials,omitempty"` + MssqlExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"mssql_exposed,omitempty"` + MysqlDefaultCredentials *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"mysql_default_credentials,omitempty"` + MysqlExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"mysql_exposed,omitempty"` + NginxMergeSlashesPathTraversal *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"nginx_merge_slashes_path_traversal,omitempty"` + NginxModuleVtsXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"nginx_module_vts_xss,omitempty"` + NginxProxyManagerDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"nginx_proxy_manager_default_login,omitempty"` + NginxWebuiRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"nginx_webui_rce,omitempty"` + NginxwebuiRuncmdRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"nginxwebui_runcmd_rce,omitempty"` + NodeEcstaticInternalPath *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"node_ecstatic_internal_path,omitempty"` + NoderedDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"nodered_default_login,omitempty"` + OpenmediavaultDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"openmediavault_default_login,omitempty"` + OpensearchDashboardDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"opensearch_dashboard_default_login,omitempty"` + PhpTimeclockXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"php_timeclock_xss,omitempty"` + PhpXdebugRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"php_xdebug_rce,omitempty"` + PhpZerodiumBackdoorRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"php_zerodium_backdoor_rce,omitempty"` + PhpldapadminXss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"phpldapadmin_xss,omitempty"` + PhpmyadminDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"phpmyadmin_default_login,omitempty"` + PhpmyadminUnauthAccess *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"phpmyadmin_unauth_access,omitempty"` + PhpokSqli *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"phpok_sqli,omitempty"` + PhpwikiLfi *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"phpwiki_lfi,omitempty"` + PsqlDefaultCredentials *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"psql_default_credentials,omitempty"` + PsqlExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"psql_exposed,omitempty"` + PrivateKeyExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"private_key_exposure,omitempty"` + RabbitmqDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"rabbitmq_default_login,omitempty"` + Rails6Xss *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"rails6_xss,omitempty"` + RangerDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ranger_default_login,omitempty"` + React2shell1 *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"react2shell_1,omitempty"` + React2shell2 *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"react2shell_2,omitempty"` + ReactDevelopmentBuild *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"react_development_build,omitempty"` + RundeckDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"rundeck_default_login,omitempty"` + RustyJoomla *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"rusty_joomla,omitempty"` + SangforCphpRce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"sangfor_cphp_rce,omitempty"` + SecretTokenRb *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"secret_token_rb,omitempty"` + SeeyonCreatemysqlExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"seeyon_createmysql_exposure,omitempty"` + SeleniumExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"selenium_exposure,omitempty"` + SelfSignedSsl *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"self_signed_ssl,omitempty"` + SonarqubeDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"sonarqube_default_login,omitempty"` + SshDefaultCredentials *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ssh_default_credentials,omitempty"` + SshExposed *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ssh_exposed,omitempty"` + SshPasswordAuthEnabled *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"ssh_password_auth_enabled,omitempty"` + Thinkphp6ArbitraryWrite *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp6_arbitrary_write,omitempty"` + Thinkphp2Rce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp_2_rce,omitempty"` + Thinkphp501Rce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp_501_rce,omitempty"` + Thinkphp5023Rce *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp_5023_rce,omitempty"` + Thinkphp509InformationDisclosure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp_509_information_disclosure,omitempty"` + TomcatDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"tomcat_default_login,omitempty"` + TomcatExamplesLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"tomcat_examples_login,omitempty"` + TotolinkN150rtPasswordExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"totolink_n150rt_password_exposure,omitempty"` + TwigPhpSsti *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"twig_php_ssti,omitempty"` + TwonkyServerExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"twonky_server_exposure,omitempty"` + WeaverMysqlConfigExposure *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"weaver_mysql_config_exposure,omitempty"` + WebminDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"webmin_default_login,omitempty"` + WordpressAccessibleWpconfig *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_accessible_wpconfig,omitempty"` + CompromisedSupplyChain *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"compromised_supply_chain,omitempty"` + ZabbixDefaultLogin *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"zabbix_default_login,omitempty"` + DnsRebindingAttack *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"dns_rebinding_attack,omitempty"` + SpoofableSpfRecordsPtrMechanism *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"spoofable_spf_records_ptr_mechanism,omitempty"` + Xxe *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin `json:"xxe,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTests GetProfile200ResponseConfigurationSecurityTests + +// NewGetProfile200ResponseConfigurationSecurityTests instantiates a new GetProfile200ResponseConfigurationSecurityTests 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 NewGetProfile200ResponseConfigurationSecurityTests() *GetProfile200ResponseConfigurationSecurityTests { + this := GetProfile200ResponseConfigurationSecurityTests{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTests 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 NewGetProfile200ResponseConfigurationSecurityTestsWithDefaults() *GetProfile200ResponseConfigurationSecurityTests { + this := GetProfile200ResponseConfigurationSecurityTests{} + return &this +} + +// GetHighNumberOfCustomScalars returns the HighNumberOfCustomScalars field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfCustomScalars() GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + if o == nil || IsNil(o.HighNumberOfCustomScalars) { + var ret GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars + return ret + } + return *o.HighNumberOfCustomScalars +} + +// GetHighNumberOfCustomScalarsOk returns a tuple with the HighNumberOfCustomScalars field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfCustomScalarsOk() (*GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { + if o == nil || IsNil(o.HighNumberOfCustomScalars) { + return nil, false + } + return o.HighNumberOfCustomScalars, true +} + +// HasHighNumberOfCustomScalars returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHighNumberOfCustomScalars() bool { + if o != nil && !IsNil(o.HighNumberOfCustomScalars) { + return true + } + + return false +} + +// SetHighNumberOfCustomScalars gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfCustomScalars field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHighNumberOfCustomScalars(v GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) { + o.HighNumberOfCustomScalars = &v +} + +// GetHighNumberOfPci returns the HighNumberOfPci field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfPci() GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + if o == nil || IsNil(o.HighNumberOfPci) { + var ret GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars + return ret + } + return *o.HighNumberOfPci +} + +// GetHighNumberOfPciOk returns a tuple with the HighNumberOfPci field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfPciOk() (*GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { + if o == nil || IsNil(o.HighNumberOfPci) { + return nil, false + } + return o.HighNumberOfPci, true +} + +// HasHighNumberOfPci returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHighNumberOfPci() bool { + if o != nil && !IsNil(o.HighNumberOfPci) { + return true + } + + return false +} + +// SetHighNumberOfPci gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfPci field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHighNumberOfPci(v GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) { + o.HighNumberOfPci = &v +} + +// GetHighNumberOfPii returns the HighNumberOfPii field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfPii() GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + if o == nil || IsNil(o.HighNumberOfPii) { + var ret GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars + return ret + } + return *o.HighNumberOfPii +} + +// GetHighNumberOfPiiOk returns a tuple with the HighNumberOfPii field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfPiiOk() (*GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { + if o == nil || IsNil(o.HighNumberOfPii) { + return nil, false + } + return o.HighNumberOfPii, true +} + +// HasHighNumberOfPii returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHighNumberOfPii() bool { + if o != nil && !IsNil(o.HighNumberOfPii) { + return true + } + + return false +} + +// SetHighNumberOfPii gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfPii field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHighNumberOfPii(v GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) { + o.HighNumberOfPii = &v +} + +// GetHighNumberOfPhi returns the HighNumberOfPhi field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfPhi() GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + if o == nil || IsNil(o.HighNumberOfPhi) { + var ret GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars + return ret + } + return *o.HighNumberOfPhi +} + +// GetHighNumberOfPhiOk returns a tuple with the HighNumberOfPhi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfPhiOk() (*GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { + if o == nil || IsNil(o.HighNumberOfPhi) { + return nil, false + } + return o.HighNumberOfPhi, true +} + +// HasHighNumberOfPhi returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHighNumberOfPhi() bool { + if o != nil && !IsNil(o.HighNumberOfPhi) { + return true + } + + return false +} + +// SetHighNumberOfPhi gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfPhi field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHighNumberOfPhi(v GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) { + o.HighNumberOfPhi = &v +} + +// GetHighNumberOfSecrets returns the HighNumberOfSecrets field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfSecrets() GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + if o == nil || IsNil(o.HighNumberOfSecrets) { + var ret GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars + return ret + } + return *o.HighNumberOfSecrets +} + +// GetHighNumberOfSecretsOk returns a tuple with the HighNumberOfSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHighNumberOfSecretsOk() (*GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { + if o == nil || IsNil(o.HighNumberOfSecrets) { + return nil, false + } + return o.HighNumberOfSecrets, true +} + +// HasHighNumberOfSecrets returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHighNumberOfSecrets() bool { + if o != nil && !IsNil(o.HighNumberOfSecrets) { + return true + } + + return false +} + +// SetHighNumberOfSecrets gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfSecrets field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHighNumberOfSecrets(v GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) { + o.HighNumberOfSecrets = &v +} + +// GetAdminerDefaultLogin returns the AdminerDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAdminerDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AdminerDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AdminerDefaultLogin +} + +// GetAdminerDefaultLoginOk returns a tuple with the AdminerDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAdminerDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AdminerDefaultLogin) { + return nil, false + } + return o.AdminerDefaultLogin, true +} + +// HasAdminerDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAdminerDefaultLogin() bool { + if o != nil && !IsNil(o.AdminerDefaultLogin) { + return true + } + + return false +} + +// SetAdminerDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AdminerDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAdminerDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AdminerDefaultLogin = &v +} + +// GetXssAgent returns the XssAgent field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetXssAgent() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.XssAgent) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.XssAgent +} + +// GetXssAgentOk returns a tuple with the XssAgent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetXssAgentOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.XssAgent) { + return nil, false + } + return o.XssAgent, true +} + +// HasXssAgent returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasXssAgent() bool { + if o != nil && !IsNil(o.XssAgent) { + return true + } + + return false +} + +// SetXssAgent gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the XssAgent field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetXssAgent(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.XssAgent = &v +} + +// GetReplayAgent returns the ReplayAgent field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReplayAgent() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ReplayAgent) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ReplayAgent +} + +// GetReplayAgentOk returns a tuple with the ReplayAgent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReplayAgentOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ReplayAgent) { + return nil, false + } + return o.ReplayAgent, true +} + +// HasReplayAgent returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasReplayAgent() bool { + if o != nil && !IsNil(o.ReplayAgent) { + return true + } + + return false +} + +// SetReplayAgent gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ReplayAgent field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetReplayAgent(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ReplayAgent = &v +} + +// GetAirflowConfigExposure returns the AirflowConfigExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAirflowConfigExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AirflowConfigExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AirflowConfigExposure +} + +// GetAirflowConfigExposureOk returns a tuple with the AirflowConfigExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAirflowConfigExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AirflowConfigExposure) { + return nil, false + } + return o.AirflowConfigExposure, true +} + +// HasAirflowConfigExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAirflowConfigExposure() bool { + if o != nil && !IsNil(o.AirflowConfigExposure) { + return true + } + + return false +} + +// SetAirflowConfigExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AirflowConfigExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAirflowConfigExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AirflowConfigExposure = &v +} + +// GetAirflowDefaultLogin returns the AirflowDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAirflowDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AirflowDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AirflowDefaultLogin +} + +// GetAirflowDefaultLoginOk returns a tuple with the AirflowDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAirflowDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AirflowDefaultLogin) { + return nil, false + } + return o.AirflowDefaultLogin, true +} + +// HasAirflowDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAirflowDefaultLogin() bool { + if o != nil && !IsNil(o.AirflowDefaultLogin) { + return true + } + + return false +} + +// SetAirflowDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AirflowDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAirflowDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AirflowDefaultLogin = &v +} + +// GetAirflowV3DefaultLogin returns the AirflowV3DefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAirflowV3DefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AirflowV3DefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AirflowV3DefaultLogin +} + +// GetAirflowV3DefaultLoginOk returns a tuple with the AirflowV3DefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAirflowV3DefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AirflowV3DefaultLogin) { + return nil, false + } + return o.AirflowV3DefaultLogin, true +} + +// HasAirflowV3DefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAirflowV3DefaultLogin() bool { + if o != nil && !IsNil(o.AirflowV3DefaultLogin) { + return true + } + + return false +} + +// SetAirflowV3DefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AirflowV3DefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAirflowV3DefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AirflowV3DefaultLogin = &v +} + +// GetAlibabaCanalLeak returns the AlibabaCanalLeak field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAlibabaCanalLeak() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AlibabaCanalLeak) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AlibabaCanalLeak +} + +// GetAlibabaCanalLeakOk returns a tuple with the AlibabaCanalLeak field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAlibabaCanalLeakOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AlibabaCanalLeak) { + return nil, false + } + return o.AlibabaCanalLeak, true +} + +// HasAlibabaCanalLeak returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAlibabaCanalLeak() bool { + if o != nil && !IsNil(o.AlibabaCanalLeak) { + return true + } + + return false +} + +// SetAlibabaCanalLeak gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AlibabaCanalLeak field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAlibabaCanalLeak(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AlibabaCanalLeak = &v +} + +// GetAngularDevelopmentBuild returns the AngularDevelopmentBuild field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAngularDevelopmentBuild() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AngularDevelopmentBuild) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AngularDevelopmentBuild +} + +// GetAngularDevelopmentBuildOk returns a tuple with the AngularDevelopmentBuild field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAngularDevelopmentBuildOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AngularDevelopmentBuild) { + return nil, false + } + return o.AngularDevelopmentBuild, true +} + +// HasAngularDevelopmentBuild returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAngularDevelopmentBuild() bool { + if o != nil && !IsNil(o.AngularDevelopmentBuild) { + return true + } + + return false +} + +// SetAngularDevelopmentBuild gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AngularDevelopmentBuild field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAngularDevelopmentBuild(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AngularDevelopmentBuild = &v +} + +// GetAnsibleConfigExposure returns the AnsibleConfigExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAnsibleConfigExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AnsibleConfigExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AnsibleConfigExposure +} + +// GetAnsibleConfigExposureOk returns a tuple with the AnsibleConfigExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAnsibleConfigExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AnsibleConfigExposure) { + return nil, false + } + return o.AnsibleConfigExposure, true +} + +// HasAnsibleConfigExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAnsibleConfigExposure() bool { + if o != nil && !IsNil(o.AnsibleConfigExposure) { + return true + } + + return false +} + +// SetAnsibleConfigExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AnsibleConfigExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAnsibleConfigExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AnsibleConfigExposure = &v +} + +// GetApacheApolloDefaultLogin returns the ApacheApolloDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheApolloDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheApolloDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheApolloDefaultLogin +} + +// GetApacheApolloDefaultLoginOk returns a tuple with the ApacheApolloDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheApolloDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheApolloDefaultLogin) { + return nil, false + } + return o.ApacheApolloDefaultLogin, true +} + +// HasApacheApolloDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheApolloDefaultLogin() bool { + if o != nil && !IsNil(o.ApacheApolloDefaultLogin) { + return true + } + + return false +} + +// SetApacheApolloDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheApolloDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheApolloDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheApolloDefaultLogin = &v +} + +// GetApacheDruidLog4j returns the ApacheDruidLog4j field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheDruidLog4j() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheDruidLog4j) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheDruidLog4j +} + +// GetApacheDruidLog4jOk returns a tuple with the ApacheDruidLog4j field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheDruidLog4jOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheDruidLog4j) { + return nil, false + } + return o.ApacheDruidLog4j, true +} + +// HasApacheDruidLog4j returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheDruidLog4j() bool { + if o != nil && !IsNil(o.ApacheDruidLog4j) { + return true + } + + return false +} + +// SetApacheDruidLog4j gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheDruidLog4j field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheDruidLog4j(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheDruidLog4j = &v +} + +// GetApacheFlinkUnauthRce returns the ApacheFlinkUnauthRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheFlinkUnauthRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheFlinkUnauthRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheFlinkUnauthRce +} + +// GetApacheFlinkUnauthRceOk returns a tuple with the ApacheFlinkUnauthRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheFlinkUnauthRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheFlinkUnauthRce) { + return nil, false + } + return o.ApacheFlinkUnauthRce, true +} + +// HasApacheFlinkUnauthRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheFlinkUnauthRce() bool { + if o != nil && !IsNil(o.ApacheFlinkUnauthRce) { + return true + } + + return false +} + +// SetApacheFlinkUnauthRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheFlinkUnauthRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheFlinkUnauthRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheFlinkUnauthRce = &v +} + +// GetApacheHertzbeatDefaultLogin returns the ApacheHertzbeatDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheHertzbeatDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheHertzbeatDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheHertzbeatDefaultLogin +} + +// GetApacheHertzbeatDefaultLoginOk returns a tuple with the ApacheHertzbeatDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheHertzbeatDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheHertzbeatDefaultLogin) { + return nil, false + } + return o.ApacheHertzbeatDefaultLogin, true +} + +// HasApacheHertzbeatDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheHertzbeatDefaultLogin() bool { + if o != nil && !IsNil(o.ApacheHertzbeatDefaultLogin) { + return true + } + + return false +} + +// SetApacheHertzbeatDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheHertzbeatDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheHertzbeatDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheHertzbeatDefaultLogin = &v +} + +// GetApacheNifiRce returns the ApacheNifiRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheNifiRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheNifiRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheNifiRce +} + +// GetApacheNifiRceOk returns a tuple with the ApacheNifiRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheNifiRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheNifiRce) { + return nil, false + } + return o.ApacheNifiRce, true +} + +// HasApacheNifiRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheNifiRce() bool { + if o != nil && !IsNil(o.ApacheNifiRce) { + return true + } + + return false +} + +// SetApacheNifiRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheNifiRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheNifiRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheNifiRce = &v +} + +// GetApacheOfbizLog4jRce returns the ApacheOfbizLog4jRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheOfbizLog4jRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheOfbizLog4jRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheOfbizLog4jRce +} + +// GetApacheOfbizLog4jRceOk returns a tuple with the ApacheOfbizLog4jRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheOfbizLog4jRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheOfbizLog4jRce) { + return nil, false + } + return o.ApacheOfbizLog4jRce, true +} + +// HasApacheOfbizLog4jRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheOfbizLog4jRce() bool { + if o != nil && !IsNil(o.ApacheOfbizLog4jRce) { + return true + } + + return false +} + +// SetApacheOfbizLog4jRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheOfbizLog4jRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheOfbizLog4jRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheOfbizLog4jRce = &v +} + +// GetApacheSolrFileRead returns the ApacheSolrFileRead field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheSolrFileRead() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheSolrFileRead) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheSolrFileRead +} + +// GetApacheSolrFileReadOk returns a tuple with the ApacheSolrFileRead field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheSolrFileReadOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheSolrFileRead) { + return nil, false + } + return o.ApacheSolrFileRead, true +} + +// HasApacheSolrFileRead returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheSolrFileRead() bool { + if o != nil && !IsNil(o.ApacheSolrFileRead) { + return true + } + + return false +} + +// SetApacheSolrFileRead gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheSolrFileRead field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheSolrFileRead(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheSolrFileRead = &v +} + +// GetApacheSolrLog4jRce returns the ApacheSolrLog4jRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheSolrLog4jRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheSolrLog4jRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheSolrLog4jRce +} + +// GetApacheSolrLog4jRceOk returns a tuple with the ApacheSolrLog4jRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheSolrLog4jRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheSolrLog4jRce) { + return nil, false + } + return o.ApacheSolrLog4jRce, true +} + +// HasApacheSolrLog4jRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheSolrLog4jRce() bool { + if o != nil && !IsNil(o.ApacheSolrLog4jRce) { + return true + } + + return false +} + +// SetApacheSolrLog4jRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheSolrLog4jRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheSolrLog4jRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheSolrLog4jRce = &v +} + +// GetApacheSolrRce returns the ApacheSolrRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheSolrRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApacheSolrRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApacheSolrRce +} + +// GetApacheSolrRceOk returns a tuple with the ApacheSolrRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApacheSolrRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApacheSolrRce) { + return nil, false + } + return o.ApacheSolrRce, true +} + +// HasApacheSolrRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApacheSolrRce() bool { + if o != nil && !IsNil(o.ApacheSolrRce) { + return true + } + + return false +} + +// SetApacheSolrRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheSolrRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApacheSolrRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApacheSolrRce = &v +} + +// GetApisixDefaultLogin returns the ApisixDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApisixDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ApisixDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ApisixDefaultLogin +} + +// GetApisixDefaultLoginOk returns a tuple with the ApisixDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetApisixDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ApisixDefaultLogin) { + return nil, false + } + return o.ApisixDefaultLogin, true +} + +// HasApisixDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasApisixDefaultLogin() bool { + if o != nil && !IsNil(o.ApisixDefaultLogin) { + return true + } + + return false +} + +// SetApisixDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApisixDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetApisixDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ApisixDefaultLogin = &v +} + +// GetAppspecExposure returns the AppspecExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAppspecExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AppspecExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AppspecExposure +} + +// GetAppspecExposureOk returns a tuple with the AppspecExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAppspecExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AppspecExposure) { + return nil, false + } + return o.AppspecExposure, true +} + +// HasAppspecExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAppspecExposure() bool { + if o != nil && !IsNil(o.AppspecExposure) { + return true + } + + return false +} + +// SetAppspecExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AppspecExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAppspecExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AppspecExposure = &v +} + +// GetAppveyorConfigExposure returns the AppveyorConfigExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAppveyorConfigExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AppveyorConfigExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AppveyorConfigExposure +} + +// GetAppveyorConfigExposureOk returns a tuple with the AppveyorConfigExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAppveyorConfigExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AppveyorConfigExposure) { + return nil, false + } + return o.AppveyorConfigExposure, true +} + +// HasAppveyorConfigExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAppveyorConfigExposure() bool { + if o != nil && !IsNil(o.AppveyorConfigExposure) { + return true + } + + return false +} + +// SetAppveyorConfigExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AppveyorConfigExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAppveyorConfigExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AppveyorConfigExposure = &v +} + +// GetAspNetViewStateEncryption returns the AspNetViewStateEncryption field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAspNetViewStateEncryption() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AspNetViewStateEncryption) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AspNetViewStateEncryption +} + +// GetAspNetViewStateEncryptionOk returns a tuple with the AspNetViewStateEncryption field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAspNetViewStateEncryptionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AspNetViewStateEncryption) { + return nil, false + } + return o.AspNetViewStateEncryption, true +} + +// HasAspNetViewStateEncryption returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAspNetViewStateEncryption() bool { + if o != nil && !IsNil(o.AspNetViewStateEncryption) { + return true + } + + return false +} + +// SetAspNetViewStateEncryption gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AspNetViewStateEncryption field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAspNetViewStateEncryption(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AspNetViewStateEncryption = &v +} + +// GetAspNetViewStateMacValidationDisabled returns the AspNetViewStateMacValidationDisabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAspNetViewStateMacValidationDisabled() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AspNetViewStateMacValidationDisabled) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AspNetViewStateMacValidationDisabled +} + +// GetAspNetViewStateMacValidationDisabledOk returns a tuple with the AspNetViewStateMacValidationDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAspNetViewStateMacValidationDisabledOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AspNetViewStateMacValidationDisabled) { + return nil, false + } + return o.AspNetViewStateMacValidationDisabled, true +} + +// HasAspNetViewStateMacValidationDisabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAspNetViewStateMacValidationDisabled() bool { + if o != nil && !IsNil(o.AspNetViewStateMacValidationDisabled) { + return true + } + + return false +} + +// SetAspNetViewStateMacValidationDisabled gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AspNetViewStateMacValidationDisabled field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAspNetViewStateMacValidationDisabled(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AspNetViewStateMacValidationDisabled = &v +} + +// GetArcadePhpSqli returns the ArcadePhpSqli field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetArcadePhpSqli() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ArcadePhpSqli) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ArcadePhpSqli +} + +// GetArcadePhpSqliOk returns a tuple with the ArcadePhpSqli field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetArcadePhpSqliOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ArcadePhpSqli) { + return nil, false + } + return o.ArcadePhpSqli, true +} + +// HasArcadePhpSqli returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasArcadePhpSqli() bool { + if o != nil && !IsNil(o.ArcadePhpSqli) { + return true + } + + return false +} + +// SetArcadePhpSqli gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ArcadePhpSqli field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetArcadePhpSqli(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ArcadePhpSqli = &v +} + +// GetAwsAccessToken returns the AwsAccessToken field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwsAccessToken() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AwsAccessToken) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AwsAccessToken +} + +// GetAwsAccessTokenOk returns a tuple with the AwsAccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwsAccessTokenOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AwsAccessToken) { + return nil, false + } + return o.AwsAccessToken, true +} + +// HasAwsAccessToken returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAwsAccessToken() bool { + if o != nil && !IsNil(o.AwsAccessToken) { + return true + } + + return false +} + +// SetAwsAccessToken gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwsAccessToken field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAwsAccessToken(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AwsAccessToken = &v +} + +// GetAwsConfigExposure returns the AwsConfigExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwsConfigExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AwsConfigExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AwsConfigExposure +} + +// GetAwsConfigExposureOk returns a tuple with the AwsConfigExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwsConfigExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AwsConfigExposure) { + return nil, false + } + return o.AwsConfigExposure, true +} + +// HasAwsConfigExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAwsConfigExposure() bool { + if o != nil && !IsNil(o.AwsConfigExposure) { + return true + } + + return false +} + +// SetAwsConfigExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwsConfigExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAwsConfigExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AwsConfigExposure = &v +} + +// GetAwsDockerConfigExposure returns the AwsDockerConfigExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwsDockerConfigExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AwsDockerConfigExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AwsDockerConfigExposure +} + +// GetAwsDockerConfigExposureOk returns a tuple with the AwsDockerConfigExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwsDockerConfigExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AwsDockerConfigExposure) { + return nil, false + } + return o.AwsDockerConfigExposure, true +} + +// HasAwsDockerConfigExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAwsDockerConfigExposure() bool { + if o != nil && !IsNil(o.AwsDockerConfigExposure) { + return true + } + + return false +} + +// SetAwsDockerConfigExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwsDockerConfigExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAwsDockerConfigExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AwsDockerConfigExposure = &v +} + +// GetAwstatsConfigExposure returns the AwstatsConfigExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwstatsConfigExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AwstatsConfigExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AwstatsConfigExposure +} + +// GetAwstatsConfigExposureOk returns a tuple with the AwstatsConfigExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwstatsConfigExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AwstatsConfigExposure) { + return nil, false + } + return o.AwstatsConfigExposure, true +} + +// HasAwstatsConfigExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAwstatsConfigExposure() bool { + if o != nil && !IsNil(o.AwstatsConfigExposure) { + return true + } + + return false +} + +// SetAwstatsConfigExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwstatsConfigExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAwstatsConfigExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AwstatsConfigExposure = &v +} + +// GetAwstatsExposure returns the AwstatsExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwstatsExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.AwstatsExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.AwstatsExposure +} + +// GetAwstatsExposureOk returns a tuple with the AwstatsExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetAwstatsExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.AwstatsExposure) { + return nil, false + } + return o.AwstatsExposure, true +} + +// HasAwstatsExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasAwstatsExposure() bool { + if o != nil && !IsNil(o.AwstatsExposure) { + return true + } + + return false +} + +// SetAwstatsExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwstatsExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetAwstatsExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.AwstatsExposure = &v +} + +// GetBsphpInfo returns the BsphpInfo field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetBsphpInfo() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.BsphpInfo) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.BsphpInfo +} + +// GetBsphpInfoOk returns a tuple with the BsphpInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetBsphpInfoOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.BsphpInfo) { + return nil, false + } + return o.BsphpInfo, true +} + +// HasBsphpInfo returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasBsphpInfo() bool { + if o != nil && !IsNil(o.BsphpInfo) { + return true + } + + return false +} + +// SetBsphpInfo gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the BsphpInfo field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetBsphpInfo(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.BsphpInfo = &v +} + +// GetBola returns the Bola field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetBola() GetProfile200ResponseConfigurationSecurityTestsBola { + if o == nil || IsNil(o.Bola) { + var ret GetProfile200ResponseConfigurationSecurityTestsBola + return ret + } + return *o.Bola +} + +// GetBolaOk returns a tuple with the Bola field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetBolaOk() (*GetProfile200ResponseConfigurationSecurityTestsBola, bool) { + if o == nil || IsNil(o.Bola) { + return nil, false + } + return o.Bola, true +} + +// HasBola returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasBola() bool { + if o != nil && !IsNil(o.Bola) { + return true + } + + return false +} + +// SetBola gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsBola and assigns it to the Bola field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetBola(v GetProfile200ResponseConfigurationSecurityTestsBola) { + o.Bola = &v +} + +// GetCharacterLimit returns the CharacterLimit field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCharacterLimit() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.CharacterLimit) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.CharacterLimit +} + +// GetCharacterLimitOk returns a tuple with the CharacterLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCharacterLimitOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.CharacterLimit) { + return nil, false + } + return o.CharacterLimit, true +} + +// HasCharacterLimit returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCharacterLimit() bool { + if o != nil && !IsNil(o.CharacterLimit) { + return true + } + + return false +} + +// SetCharacterLimit gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CharacterLimit field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCharacterLimit(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.CharacterLimit = &v +} + +// GetFrontendBola returns the FrontendBola field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendBola() GetProfile200ResponseConfigurationSecurityTestsBola { + if o == nil || IsNil(o.FrontendBola) { + var ret GetProfile200ResponseConfigurationSecurityTestsBola + return ret + } + return *o.FrontendBola +} + +// GetFrontendBolaOk returns a tuple with the FrontendBola field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendBolaOk() (*GetProfile200ResponseConfigurationSecurityTestsBola, bool) { + if o == nil || IsNil(o.FrontendBola) { + return nil, false + } + return o.FrontendBola, true +} + +// HasFrontendBola returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendBola() bool { + if o != nil && !IsNil(o.FrontendBola) { + return true + } + + return false +} + +// SetFrontendBola gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsBola and assigns it to the FrontendBola field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendBola(v GetProfile200ResponseConfigurationSecurityTestsBola) { + o.FrontendBola = &v +} + +// GetCloudstackDefaultLogin returns the CloudstackDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCloudstackDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.CloudstackDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.CloudstackDefaultLogin +} + +// GetCloudstackDefaultLoginOk returns a tuple with the CloudstackDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCloudstackDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.CloudstackDefaultLogin) { + return nil, false + } + return o.CloudstackDefaultLogin, true +} + +// HasCloudstackDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCloudstackDefaultLogin() bool { + if o != nil && !IsNil(o.CloudstackDefaultLogin) { + return true + } + + return false +} + +// SetCloudstackDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CloudstackDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCloudstackDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.CloudstackDefaultLogin = &v +} + +// GetCodimdUnauthFileUpload returns the CodimdUnauthFileUpload field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCodimdUnauthFileUpload() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.CodimdUnauthFileUpload) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.CodimdUnauthFileUpload +} + +// GetCodimdUnauthFileUploadOk returns a tuple with the CodimdUnauthFileUpload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCodimdUnauthFileUploadOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.CodimdUnauthFileUpload) { + return nil, false + } + return o.CodimdUnauthFileUpload, true +} + +// HasCodimdUnauthFileUpload returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCodimdUnauthFileUpload() bool { + if o != nil && !IsNil(o.CodimdUnauthFileUpload) { + return true + } + + return false +} + +// SetCodimdUnauthFileUpload gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CodimdUnauthFileUpload field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCodimdUnauthFileUpload(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.CodimdUnauthFileUpload = &v +} + +// GetCommand returns the Command field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCommand() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Command) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Command +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCommandOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Command) { + return nil, false + } + return o.Command, true +} + +// HasCommand returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCommand() bool { + if o != nil && !IsNil(o.Command) { + return true + } + + return false +} + +// SetCommand gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Command field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCommand(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Command = &v +} + +// GetConfigJsonExposureFuzz returns the ConfigJsonExposureFuzz field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetConfigJsonExposureFuzz() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ConfigJsonExposureFuzz) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ConfigJsonExposureFuzz +} + +// GetConfigJsonExposureFuzzOk returns a tuple with the ConfigJsonExposureFuzz field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetConfigJsonExposureFuzzOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ConfigJsonExposureFuzz) { + return nil, false + } + return o.ConfigJsonExposureFuzz, true +} + +// HasConfigJsonExposureFuzz returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasConfigJsonExposureFuzz() bool { + if o != nil && !IsNil(o.ConfigJsonExposureFuzz) { + return true + } + + return false +} + +// SetConfigJsonExposureFuzz gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ConfigJsonExposureFuzz field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetConfigJsonExposureFuzz(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ConfigJsonExposureFuzz = &v +} + +// GetFrontendCommandInjection returns the FrontendCommandInjection field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendCommandInjection() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendCommandInjection) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendCommandInjection +} + +// GetFrontendCommandInjectionOk returns a tuple with the FrontendCommandInjection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendCommandInjectionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendCommandInjection) { + return nil, false + } + return o.FrontendCommandInjection, true +} + +// HasFrontendCommandInjection returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendCommandInjection() bool { + if o != nil && !IsNil(o.FrontendCommandInjection) { + return true + } + + return false +} + +// SetFrontendCommandInjection gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendCommandInjection field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendCommandInjection(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendCommandInjection = &v +} + +// GetConsoleError returns the ConsoleError field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetConsoleError() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ConsoleError) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ConsoleError +} + +// GetConsoleErrorOk returns a tuple with the ConsoleError field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetConsoleErrorOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ConsoleError) { + return nil, false + } + return o.ConsoleError, true +} + +// HasConsoleError returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasConsoleError() bool { + if o != nil && !IsNil(o.ConsoleError) { + return true + } + + return false +} + +// SetConsoleError gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ConsoleError field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetConsoleError(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ConsoleError = &v +} + +// GetCors returns the Cors field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCors() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Cors) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Cors +} + +// GetCorsOk returns a tuple with the Cors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCorsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Cors) { + return nil, false + } + return o.Cors, true +} + +// HasCors returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCors() bool { + if o != nil && !IsNil(o.Cors) { + return true + } + + return false +} + +// SetCors gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cors field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCors(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Cors = &v +} + +// GetCrashingPage returns the CrashingPage field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCrashingPage() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.CrashingPage) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.CrashingPage +} + +// GetCrashingPageOk returns a tuple with the CrashingPage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCrashingPageOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.CrashingPage) { + return nil, false + } + return o.CrashingPage, true +} + +// HasCrashingPage returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCrashingPage() bool { + if o != nil && !IsNil(o.CrashingPage) { + return true + } + + return false +} + +// SetCrashingPage gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CrashingPage field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCrashingPage(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.CrashingPage = &v +} + +// GetDbgateUnauthRce returns the DbgateUnauthRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDbgateUnauthRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DbgateUnauthRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DbgateUnauthRce +} + +// GetDbgateUnauthRceOk returns a tuple with the DbgateUnauthRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDbgateUnauthRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DbgateUnauthRce) { + return nil, false + } + return o.DbgateUnauthRce, true +} + +// HasDbgateUnauthRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDbgateUnauthRce() bool { + if o != nil && !IsNil(o.DbgateUnauthRce) { + return true + } + + return false +} + +// SetDbgateUnauthRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DbgateUnauthRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDbgateUnauthRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DbgateUnauthRce = &v +} + +// GetFrontendCrlf returns the FrontendCrlf field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendCrlf() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendCrlf) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendCrlf +} + +// GetFrontendCrlfOk returns a tuple with the FrontendCrlf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendCrlfOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendCrlf) { + return nil, false + } + return o.FrontendCrlf, true +} + +// HasFrontendCrlf returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendCrlf() bool { + if o != nil && !IsNil(o.FrontendCrlf) { + return true + } + + return false +} + +// SetFrontendCrlf gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendCrlf field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendCrlf(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendCrlf = &v +} + +// GetCsrfGetBased returns the CsrfGetBased field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCsrfGetBased() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.CsrfGetBased) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.CsrfGetBased +} + +// GetCsrfGetBasedOk returns a tuple with the CsrfGetBased field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCsrfGetBasedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.CsrfGetBased) { + return nil, false + } + return o.CsrfGetBased, true +} + +// HasCsrfGetBased returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCsrfGetBased() bool { + if o != nil && !IsNil(o.CsrfGetBased) { + return true + } + + return false +} + +// SetCsrfGetBased gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CsrfGetBased field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCsrfGetBased(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.CsrfGetBased = &v +} + +// GetCve202144228 returns the Cve202144228 field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCve202144228() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Cve202144228) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Cve202144228 +} + +// GetCve202144228Ok returns a tuple with the Cve202144228 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCve202144228Ok() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Cve202144228) { + return nil, false + } + return o.Cve202144228, true +} + +// HasCve202144228 returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCve202144228() bool { + if o != nil && !IsNil(o.Cve202144228) { + return true + } + + return false +} + +// SetCve202144228 gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cve202144228 field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCve202144228(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Cve202144228 = &v +} + +// GetCve202425723 returns the Cve202425723 field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCve202425723() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Cve202425723) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Cve202425723 +} + +// GetCve202425723Ok returns a tuple with the Cve202425723 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCve202425723Ok() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Cve202425723) { + return nil, false + } + return o.Cve202425723, true +} + +// HasCve202425723 returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCve202425723() bool { + if o != nil && !IsNil(o.Cve202425723) { + return true + } + + return false +} + +// SetCve202425723 gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cve202425723 field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCve202425723(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Cve202425723 = &v +} + +// GetCve202432651 returns the Cve202432651 field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCve202432651() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Cve202432651) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Cve202432651 +} + +// GetCve202432651Ok returns a tuple with the Cve202432651 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCve202432651Ok() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Cve202432651) { + return nil, false + } + return o.Cve202432651, true +} + +// HasCve202432651 returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCve202432651() bool { + if o != nil && !IsNil(o.Cve202432651) { + return true + } + + return false +} + +// SetCve202432651 gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cve202432651 field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCve202432651(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Cve202432651 = &v +} + +// GetCve202440711 returns the Cve202440711 field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCve202440711() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Cve202440711) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Cve202440711 +} + +// GetCve202440711Ok returns a tuple with the Cve202440711 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCve202440711Ok() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Cve202440711) { + return nil, false + } + return o.Cve202440711, true +} + +// HasCve202440711 returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCve202440711() bool { + if o != nil && !IsNil(o.Cve202440711) { + return true + } + + return false +} + +// SetCve202440711 gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cve202440711 field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCve202440711(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Cve202440711 = &v +} + +// GetCsrfPostBased returns the CsrfPostBased field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCsrfPostBased() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.CsrfPostBased) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.CsrfPostBased +} + +// GetCsrfPostBasedOk returns a tuple with the CsrfPostBased field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCsrfPostBasedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.CsrfPostBased) { + return nil, false + } + return o.CsrfPostBased, true +} + +// HasCsrfPostBased returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCsrfPostBased() bool { + if o != nil && !IsNil(o.CsrfPostBased) { + return true + } + + return false +} + +// SetCsrfPostBased gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CsrfPostBased field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCsrfPostBased(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.CsrfPostBased = &v +} + +// GetFrontendCsrfGetBased returns the FrontendCsrfGetBased field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendCsrfGetBased() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendCsrfGetBased) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendCsrfGetBased +} + +// GetFrontendCsrfGetBasedOk returns a tuple with the FrontendCsrfGetBased field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendCsrfGetBasedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendCsrfGetBased) { + return nil, false + } + return o.FrontendCsrfGetBased, true +} + +// HasFrontendCsrfGetBased returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendCsrfGetBased() bool { + if o != nil && !IsNil(o.FrontendCsrfGetBased) { + return true + } + + return false +} + +// SetFrontendCsrfGetBased gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendCsrfGetBased field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendCsrfGetBased(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendCsrfGetBased = &v +} + +// GetFrontendCsrfPostBased returns the FrontendCsrfPostBased field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendCsrfPostBased() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendCsrfPostBased) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendCsrfPostBased +} + +// GetFrontendCsrfPostBasedOk returns a tuple with the FrontendCsrfPostBased field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendCsrfPostBasedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendCsrfPostBased) { + return nil, false + } + return o.FrontendCsrfPostBased, true +} + +// HasFrontendCsrfPostBased returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendCsrfPostBased() bool { + if o != nil && !IsNil(o.FrontendCsrfPostBased) { + return true + } + + return false +} + +// SetFrontendCsrfPostBased gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendCsrfPostBased field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendCsrfPostBased(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendCsrfPostBased = &v +} + +// GetDebugMode returns the DebugMode field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDebugMode() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DebugMode) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DebugMode +} + +// GetDebugModeOk returns a tuple with the DebugMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDebugModeOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DebugMode) { + return nil, false + } + return o.DebugMode, true +} + +// HasDebugMode returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDebugMode() bool { + if o != nil && !IsNil(o.DebugMode) { + return true + } + + return false +} + +// SetDebugMode gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DebugMode field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDebugMode(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DebugMode = &v +} + +// GetDjangoSecretKey returns the DjangoSecretKey field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDjangoSecretKey() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DjangoSecretKey) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DjangoSecretKey +} + +// GetDjangoSecretKeyOk returns a tuple with the DjangoSecretKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDjangoSecretKeyOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DjangoSecretKey) { + return nil, false + } + return o.DjangoSecretKey, true +} + +// HasDjangoSecretKey returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDjangoSecretKey() bool { + if o != nil && !IsNil(o.DjangoSecretKey) { + return true + } + + return false +} + +// SetDjangoSecretKey gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DjangoSecretKey field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDjangoSecretKey(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DjangoSecretKey = &v +} + +// GetDolphinschedulerDefaultLogin returns the DolphinschedulerDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDolphinschedulerDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DolphinschedulerDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DolphinschedulerDefaultLogin +} + +// GetDolphinschedulerDefaultLoginOk returns a tuple with the DolphinschedulerDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDolphinschedulerDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DolphinschedulerDefaultLogin) { + return nil, false + } + return o.DolphinschedulerDefaultLogin, true +} + +// HasDolphinschedulerDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDolphinschedulerDefaultLogin() bool { + if o != nil && !IsNil(o.DolphinschedulerDefaultLogin) { + return true + } + + return false +} + +// SetDolphinschedulerDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DolphinschedulerDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDolphinschedulerDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DolphinschedulerDefaultLogin = &v +} + +// GetDorisDefaultLogin returns the DorisDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDorisDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DorisDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DorisDefaultLogin +} + +// GetDorisDefaultLoginOk returns a tuple with the DorisDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDorisDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DorisDefaultLogin) { + return nil, false + } + return o.DorisDefaultLogin, true +} + +// HasDorisDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDorisDefaultLogin() bool { + if o != nil && !IsNil(o.DorisDefaultLogin) { + return true + } + + return false +} + +// SetDorisDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DorisDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDorisDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DorisDefaultLogin = &v +} + +// GetDirectoryTraversal returns the DirectoryTraversal field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDirectoryTraversal() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DirectoryTraversal) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DirectoryTraversal +} + +// GetDirectoryTraversalOk returns a tuple with the DirectoryTraversal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDirectoryTraversalOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DirectoryTraversal) { + return nil, false + } + return o.DirectoryTraversal, true +} + +// HasDirectoryTraversal returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDirectoryTraversal() bool { + if o != nil && !IsNil(o.DirectoryTraversal) { + return true + } + + return false +} + +// SetDirectoryTraversal gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DirectoryTraversal field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDirectoryTraversal(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DirectoryTraversal = &v +} + +// GetDkim returns the Dkim field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDkim() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Dkim) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Dkim +} + +// GetDkimOk returns a tuple with the Dkim field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDkimOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Dkim) { + return nil, false + } + return o.Dkim, true +} + +// HasDkim returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDkim() bool { + if o != nil && !IsNil(o.Dkim) { + return true + } + + return false +} + +// SetDkim gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Dkim field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDkim(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Dkim = &v +} + +// GetDmarc returns the Dmarc field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDmarc() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Dmarc) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Dmarc +} + +// GetDmarcOk returns a tuple with the Dmarc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDmarcOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Dmarc) { + return nil, false + } + return o.Dmarc, true +} + +// HasDmarc returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDmarc() bool { + if o != nil && !IsNil(o.Dmarc) { + return true + } + + return false +} + +// SetDmarc gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Dmarc field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDmarc(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Dmarc = &v +} + +// GetLoopback returns the Loopback field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetLoopback() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Loopback) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Loopback +} + +// GetLoopbackOk returns a tuple with the Loopback field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetLoopbackOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Loopback) { + return nil, false + } + return o.Loopback, true +} + +// HasLoopback returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasLoopback() bool { + if o != nil && !IsNil(o.Loopback) { + return true + } + + return false +} + +// SetLoopback gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Loopback field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetLoopback(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Loopback = &v +} + +// GetPermisiveSpf returns the PermisiveSpf field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPermisiveSpf() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PermisiveSpf) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PermisiveSpf +} + +// GetPermisiveSpfOk returns a tuple with the PermisiveSpf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPermisiveSpfOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PermisiveSpf) { + return nil, false + } + return o.PermisiveSpf, true +} + +// HasPermisiveSpf returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPermisiveSpf() bool { + if o != nil && !IsNil(o.PermisiveSpf) { + return true + } + + return false +} + +// SetPermisiveSpf gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PermisiveSpf field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPermisiveSpf(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PermisiveSpf = &v +} + +// GetDnsrecordPrivateIp returns the DnsrecordPrivateIp field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnsrecordPrivateIp() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DnsrecordPrivateIp) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DnsrecordPrivateIp +} + +// GetDnsrecordPrivateIpOk returns a tuple with the DnsrecordPrivateIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnsrecordPrivateIpOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DnsrecordPrivateIp) { + return nil, false + } + return o.DnsrecordPrivateIp, true +} + +// HasDnsrecordPrivateIp returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDnsrecordPrivateIp() bool { + if o != nil && !IsNil(o.DnsrecordPrivateIp) { + return true + } + + return false +} + +// SetDnsrecordPrivateIp gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnsrecordPrivateIp field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDnsrecordPrivateIp(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DnsrecordPrivateIp = &v +} + +// GetDnsrecordTxtLength returns the DnsrecordTxtLength field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnsrecordTxtLength() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DnsrecordTxtLength) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DnsrecordTxtLength +} + +// GetDnsrecordTxtLengthOk returns a tuple with the DnsrecordTxtLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnsrecordTxtLengthOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DnsrecordTxtLength) { + return nil, false + } + return o.DnsrecordTxtLength, true +} + +// HasDnsrecordTxtLength returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDnsrecordTxtLength() bool { + if o != nil && !IsNil(o.DnsrecordTxtLength) { + return true + } + + return false +} + +// SetDnsrecordTxtLength gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnsrecordTxtLength field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDnsrecordTxtLength(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DnsrecordTxtLength = &v +} + +// GetDnsrecordTxtSensitive returns the DnsrecordTxtSensitive field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnsrecordTxtSensitive() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DnsrecordTxtSensitive) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DnsrecordTxtSensitive +} + +// GetDnsrecordTxtSensitiveOk returns a tuple with the DnsrecordTxtSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnsrecordTxtSensitiveOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DnsrecordTxtSensitive) { + return nil, false + } + return o.DnsrecordTxtSensitive, true +} + +// HasDnsrecordTxtSensitive returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDnsrecordTxtSensitive() bool { + if o != nil && !IsNil(o.DnsrecordTxtSensitive) { + return true + } + + return false +} + +// SetDnsrecordTxtSensitive gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnsrecordTxtSensitive field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDnsrecordTxtSensitive(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DnsrecordTxtSensitive = &v +} + +// GetDnssecDisabled returns the DnssecDisabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnssecDisabled() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DnssecDisabled) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DnssecDisabled +} + +// GetDnssecDisabledOk returns a tuple with the DnssecDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnssecDisabledOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DnssecDisabled) { + return nil, false + } + return o.DnssecDisabled, true +} + +// HasDnssecDisabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDnssecDisabled() bool { + if o != nil && !IsNil(o.DnssecDisabled) { + return true + } + + return false +} + +// SetDnssecDisabled gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnssecDisabled field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDnssecDisabled(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DnssecDisabled = &v +} + +// GetStoredXss returns the StoredXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetStoredXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.StoredXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.StoredXss +} + +// GetStoredXssOk returns a tuple with the StoredXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetStoredXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.StoredXss) { + return nil, false + } + return o.StoredXss, true +} + +// HasStoredXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasStoredXss() bool { + if o != nil && !IsNil(o.StoredXss) { + return true + } + + return false +} + +// SetStoredXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the StoredXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetStoredXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.StoredXss = &v +} + +// GetDomainTakeover returns the DomainTakeover field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDomainTakeover() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DomainTakeover) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DomainTakeover +} + +// GetDomainTakeoverOk returns a tuple with the DomainTakeover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDomainTakeoverOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DomainTakeover) { + return nil, false + } + return o.DomainTakeover, true +} + +// HasDomainTakeover returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDomainTakeover() bool { + if o != nil && !IsNil(o.DomainTakeover) { + return true + } + + return false +} + +// SetDomainTakeover gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DomainTakeover field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDomainTakeover(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DomainTakeover = &v +} + +// GetDrupal7ElfinderRce returns the Drupal7ElfinderRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDrupal7ElfinderRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Drupal7ElfinderRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Drupal7ElfinderRce +} + +// GetDrupal7ElfinderRceOk returns a tuple with the Drupal7ElfinderRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDrupal7ElfinderRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Drupal7ElfinderRce) { + return nil, false + } + return o.Drupal7ElfinderRce, true +} + +// HasDrupal7ElfinderRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDrupal7ElfinderRce() bool { + if o != nil && !IsNil(o.Drupal7ElfinderRce) { + return true + } + + return false +} + +// SetDrupal7ElfinderRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Drupal7ElfinderRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDrupal7ElfinderRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Drupal7ElfinderRce = &v +} + +// GetDrupalAvatarXss returns the DrupalAvatarXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDrupalAvatarXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DrupalAvatarXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DrupalAvatarXss +} + +// GetDrupalAvatarXssOk returns a tuple with the DrupalAvatarXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDrupalAvatarXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DrupalAvatarXss) { + return nil, false + } + return o.DrupalAvatarXss, true +} + +// HasDrupalAvatarXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDrupalAvatarXss() bool { + if o != nil && !IsNil(o.DrupalAvatarXss) { + return true + } + + return false +} + +// SetDrupalAvatarXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DrupalAvatarXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDrupalAvatarXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DrupalAvatarXss = &v +} + +// GetDubboAdminDefaultLogin returns the DubboAdminDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDubboAdminDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DubboAdminDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DubboAdminDefaultLogin +} + +// GetDubboAdminDefaultLoginOk returns a tuple with the DubboAdminDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDubboAdminDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DubboAdminDefaultLogin) { + return nil, false + } + return o.DubboAdminDefaultLogin, true +} + +// HasDubboAdminDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDubboAdminDefaultLogin() bool { + if o != nil && !IsNil(o.DubboAdminDefaultLogin) { + return true + } + + return false +} + +// SetDubboAdminDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DubboAdminDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDubboAdminDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DubboAdminDefaultLogin = &v +} + +// GetEasyimageDownphpLfi returns the EasyimageDownphpLfi field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetEasyimageDownphpLfi() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.EasyimageDownphpLfi) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.EasyimageDownphpLfi +} + +// GetEasyimageDownphpLfiOk returns a tuple with the EasyimageDownphpLfi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetEasyimageDownphpLfiOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.EasyimageDownphpLfi) { + return nil, false + } + return o.EasyimageDownphpLfi, true +} + +// HasEasyimageDownphpLfi returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasEasyimageDownphpLfi() bool { + if o != nil && !IsNil(o.EasyimageDownphpLfi) { + return true + } + + return false +} + +// SetEasyimageDownphpLfi gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the EasyimageDownphpLfi field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetEasyimageDownphpLfi(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.EasyimageDownphpLfi = &v +} + +// GetEcologyMysqlConfig returns the EcologyMysqlConfig field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetEcologyMysqlConfig() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.EcologyMysqlConfig) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.EcologyMysqlConfig +} + +// GetEcologyMysqlConfigOk returns a tuple with the EcologyMysqlConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetEcologyMysqlConfigOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.EcologyMysqlConfig) { + return nil, false + } + return o.EcologyMysqlConfig, true +} + +// HasEcologyMysqlConfig returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasEcologyMysqlConfig() bool { + if o != nil && !IsNil(o.EcologyMysqlConfig) { + return true + } + + return false +} + +// SetEcologyMysqlConfig gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the EcologyMysqlConfig field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetEcologyMysqlConfig(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.EcologyMysqlConfig = &v +} + +// GetElasticsearchDefaultLogin returns the ElasticsearchDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetElasticsearchDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ElasticsearchDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ElasticsearchDefaultLogin +} + +// GetElasticsearchDefaultLoginOk returns a tuple with the ElasticsearchDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetElasticsearchDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ElasticsearchDefaultLogin) { + return nil, false + } + return o.ElasticsearchDefaultLogin, true +} + +// HasElasticsearchDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasElasticsearchDefaultLogin() bool { + if o != nil && !IsNil(o.ElasticsearchDefaultLogin) { + return true + } + + return false +} + +// SetElasticsearchDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ElasticsearchDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetElasticsearchDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ElasticsearchDefaultLogin = &v +} + +// GetEsafenetMysqlFileread returns the EsafenetMysqlFileread field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetEsafenetMysqlFileread() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.EsafenetMysqlFileread) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.EsafenetMysqlFileread +} + +// GetEsafenetMysqlFilereadOk returns a tuple with the EsafenetMysqlFileread field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetEsafenetMysqlFilereadOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.EsafenetMysqlFileread) { + return nil, false + } + return o.EsafenetMysqlFileread, true +} + +// HasEsafenetMysqlFileread returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasEsafenetMysqlFileread() bool { + if o != nil && !IsNil(o.EsafenetMysqlFileread) { + return true + } + + return false +} + +// SetEsafenetMysqlFileread gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the EsafenetMysqlFileread field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetEsafenetMysqlFileread(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.EsafenetMysqlFileread = &v +} + +// GetExcessiveBrowserPermissions returns the ExcessiveBrowserPermissions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExcessiveBrowserPermissions() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ExcessiveBrowserPermissions) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ExcessiveBrowserPermissions +} + +// GetExcessiveBrowserPermissionsOk returns a tuple with the ExcessiveBrowserPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExcessiveBrowserPermissionsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ExcessiveBrowserPermissions) { + return nil, false + } + return o.ExcessiveBrowserPermissions, true +} + +// HasExcessiveBrowserPermissions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasExcessiveBrowserPermissions() bool { + if o != nil && !IsNil(o.ExcessiveBrowserPermissions) { + return true + } + + return false +} + +// SetExcessiveBrowserPermissions gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExcessiveBrowserPermissions field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetExcessiveBrowserPermissions(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ExcessiveBrowserPermissions = &v +} + +// GetExposedConfigFile returns the ExposedConfigFile field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedConfigFile() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ExposedConfigFile) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ExposedConfigFile +} + +// GetExposedConfigFileOk returns a tuple with the ExposedConfigFile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedConfigFileOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ExposedConfigFile) { + return nil, false + } + return o.ExposedConfigFile, true +} + +// HasExposedConfigFile returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasExposedConfigFile() bool { + if o != nil && !IsNil(o.ExposedConfigFile) { + return true + } + + return false +} + +// SetExposedConfigFile gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedConfigFile field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetExposedConfigFile(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ExposedConfigFile = &v +} + +// GetFrontendDomainTakeover returns the FrontendDomainTakeover field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendDomainTakeover() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendDomainTakeover) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendDomainTakeover +} + +// GetFrontendDomainTakeoverOk returns a tuple with the FrontendDomainTakeover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendDomainTakeoverOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendDomainTakeover) { + return nil, false + } + return o.FrontendDomainTakeover, true +} + +// HasFrontendDomainTakeover returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendDomainTakeover() bool { + if o != nil && !IsNil(o.FrontendDomainTakeover) { + return true + } + + return false +} + +// SetFrontendDomainTakeover gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendDomainTakeover field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendDomainTakeover(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendDomainTakeover = &v +} + +// GetFrontendHeaderSetCookie returns the FrontendHeaderSetCookie field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendHeaderSetCookie() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendHeaderSetCookie) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendHeaderSetCookie +} + +// GetFrontendHeaderSetCookieOk returns a tuple with the FrontendHeaderSetCookie field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendHeaderSetCookieOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendHeaderSetCookie) { + return nil, false + } + return o.FrontendHeaderSetCookie, true +} + +// HasFrontendHeaderSetCookie returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendHeaderSetCookie() bool { + if o != nil && !IsNil(o.FrontendHeaderSetCookie) { + return true + } + + return false +} + +// SetFrontendHeaderSetCookie gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendHeaderSetCookie field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendHeaderSetCookie(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendHeaderSetCookie = &v +} + +// GetFrontendInsecureWebsocket returns the FrontendInsecureWebsocket field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendInsecureWebsocket() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendInsecureWebsocket) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendInsecureWebsocket +} + +// GetFrontendInsecureWebsocketOk returns a tuple with the FrontendInsecureWebsocket field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendInsecureWebsocketOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendInsecureWebsocket) { + return nil, false + } + return o.FrontendInsecureWebsocket, true +} + +// HasFrontendInsecureWebsocket returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendInsecureWebsocket() bool { + if o != nil && !IsNil(o.FrontendInsecureWebsocket) { + return true + } + + return false +} + +// SetFrontendInsecureWebsocket gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendInsecureWebsocket field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendInsecureWebsocket(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendInsecureWebsocket = &v +} + +// GetFrontendPotentialCve returns the FrontendPotentialCve field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendPotentialCve() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendPotentialCve) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendPotentialCve +} + +// GetFrontendPotentialCveOk returns a tuple with the FrontendPotentialCve field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendPotentialCveOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendPotentialCve) { + return nil, false + } + return o.FrontendPotentialCve, true +} + +// HasFrontendPotentialCve returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendPotentialCve() bool { + if o != nil && !IsNil(o.FrontendPotentialCve) { + return true + } + + return false +} + +// SetFrontendPotentialCve gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendPotentialCve field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendPotentialCve(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendPotentialCve = &v +} + +// GetFrontendServerError returns the FrontendServerError field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendServerError() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendServerError) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendServerError +} + +// GetFrontendServerErrorOk returns a tuple with the FrontendServerError field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendServerErrorOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendServerError) { + return nil, false + } + return o.FrontendServerError, true +} + +// HasFrontendServerError returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendServerError() bool { + if o != nil && !IsNil(o.FrontendServerError) { + return true + } + + return false +} + +// SetFrontendServerError gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendServerError field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendServerError(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendServerError = &v +} + +// GetFrontendSoftwareComponentLeak returns the FrontendSoftwareComponentLeak field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendSoftwareComponentLeak() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendSoftwareComponentLeak) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendSoftwareComponentLeak +} + +// GetFrontendSoftwareComponentLeakOk returns a tuple with the FrontendSoftwareComponentLeak field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendSoftwareComponentLeakOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendSoftwareComponentLeak) { + return nil, false + } + return o.FrontendSoftwareComponentLeak, true +} + +// HasFrontendSoftwareComponentLeak returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendSoftwareComponentLeak() bool { + if o != nil && !IsNil(o.FrontendSoftwareComponentLeak) { + return true + } + + return false +} + +// SetFrontendSoftwareComponentLeak gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendSoftwareComponentLeak field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendSoftwareComponentLeak(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendSoftwareComponentLeak = &v +} + +// GetFrontendSqlInjection returns the FrontendSqlInjection field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendSqlInjection() GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection { + if o == nil || IsNil(o.FrontendSqlInjection) { + var ret GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection + return ret + } + return *o.FrontendSqlInjection +} + +// GetFrontendSqlInjectionOk returns a tuple with the FrontendSqlInjection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendSqlInjectionOk() (*GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection, bool) { + if o == nil || IsNil(o.FrontendSqlInjection) { + return nil, false + } + return o.FrontendSqlInjection, true +} + +// HasFrontendSqlInjection returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendSqlInjection() bool { + if o != nil && !IsNil(o.FrontendSqlInjection) { + return true + } + + return false +} + +// SetFrontendSqlInjection gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection and assigns it to the FrontendSqlInjection field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendSqlInjection(v GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) { + o.FrontendSqlInjection = &v +} + +// GetFrontendSsl returns the FrontendSsl field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendSsl() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendSsl) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendSsl +} + +// GetFrontendSslOk returns a tuple with the FrontendSsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendSslOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendSsl) { + return nil, false + } + return o.FrontendSsl, true +} + +// HasFrontendSsl returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendSsl() bool { + if o != nil && !IsNil(o.FrontendSsl) { + return true + } + + return false +} + +// SetFrontendSsl gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendSsl field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendSsl(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendSsl = &v +} + +// GetFrontendTimeout returns the FrontendTimeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendTimeout() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendTimeout) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendTimeout +} + +// GetFrontendTimeoutOk returns a tuple with the FrontendTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendTimeoutOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendTimeout) { + return nil, false + } + return o.FrontendTimeout, true +} + +// HasFrontendTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendTimeout() bool { + if o != nil && !IsNil(o.FrontendTimeout) { + return true + } + + return false +} + +// SetFrontendTimeout gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendTimeout field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendTimeout(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendTimeout = &v +} + +// GetFrontendXssViaDomainTakeover returns the FrontendXssViaDomainTakeover field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendXssViaDomainTakeover() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendXssViaDomainTakeover) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendXssViaDomainTakeover +} + +// GetFrontendXssViaDomainTakeoverOk returns a tuple with the FrontendXssViaDomainTakeover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendXssViaDomainTakeoverOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendXssViaDomainTakeover) { + return nil, false + } + return o.FrontendXssViaDomainTakeover, true +} + +// HasFrontendXssViaDomainTakeover returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendXssViaDomainTakeover() bool { + if o != nil && !IsNil(o.FrontendXssViaDomainTakeover) { + return true + } + + return false +} + +// SetFrontendXssViaDomainTakeover gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendXssViaDomainTakeover field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendXssViaDomainTakeover(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendXssViaDomainTakeover = &v +} + +// GetExposedMysqlConfig returns the ExposedMysqlConfig field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedMysqlConfig() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ExposedMysqlConfig) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ExposedMysqlConfig +} + +// GetExposedMysqlConfigOk returns a tuple with the ExposedMysqlConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedMysqlConfigOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ExposedMysqlConfig) { + return nil, false + } + return o.ExposedMysqlConfig, true +} + +// HasExposedMysqlConfig returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasExposedMysqlConfig() bool { + if o != nil && !IsNil(o.ExposedMysqlConfig) { + return true + } + + return false +} + +// SetExposedMysqlConfig gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedMysqlConfig field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetExposedMysqlConfig(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ExposedMysqlConfig = &v +} + +// GetExposedSettingsPhp returns the ExposedSettingsPhp field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedSettingsPhp() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ExposedSettingsPhp) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ExposedSettingsPhp +} + +// GetExposedSettingsPhpOk returns a tuple with the ExposedSettingsPhp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedSettingsPhpOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ExposedSettingsPhp) { + return nil, false + } + return o.ExposedSettingsPhp, true +} + +// HasExposedSettingsPhp returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasExposedSettingsPhp() bool { + if o != nil && !IsNil(o.ExposedSettingsPhp) { + return true + } + + return false +} + +// SetExposedSettingsPhp gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedSettingsPhp field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetExposedSettingsPhp(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ExposedSettingsPhp = &v +} + +// GetExposedSourcemap returns the ExposedSourcemap field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedSourcemap() GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap { + if o == nil || IsNil(o.ExposedSourcemap) { + var ret GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap + return ret + } + return *o.ExposedSourcemap +} + +// GetExposedSourcemapOk returns a tuple with the ExposedSourcemap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedSourcemapOk() (*GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap, bool) { + if o == nil || IsNil(o.ExposedSourcemap) { + return nil, false + } + return o.ExposedSourcemap, true +} + +// HasExposedSourcemap returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasExposedSourcemap() bool { + if o != nil && !IsNil(o.ExposedSourcemap) { + return true + } + + return false +} + +// SetExposedSourcemap gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap and assigns it to the ExposedSourcemap field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetExposedSourcemap(v GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) { + o.ExposedSourcemap = &v +} + +// GetExposedSqlDumps returns the ExposedSqlDumps field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedSqlDumps() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ExposedSqlDumps) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ExposedSqlDumps +} + +// GetExposedSqlDumpsOk returns a tuple with the ExposedSqlDumps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedSqlDumpsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ExposedSqlDumps) { + return nil, false + } + return o.ExposedSqlDumps, true +} + +// HasExposedSqlDumps returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasExposedSqlDumps() bool { + if o != nil && !IsNil(o.ExposedSqlDumps) { + return true + } + + return false +} + +// SetExposedSqlDumps gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedSqlDumps field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetExposedSqlDumps(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ExposedSqlDumps = &v +} + +// GetFileDisclosure returns the FileDisclosure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFileDisclosure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FileDisclosure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FileDisclosure +} + +// GetFileDisclosureOk returns a tuple with the FileDisclosure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFileDisclosureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FileDisclosure) { + return nil, false + } + return o.FileDisclosure, true +} + +// HasFileDisclosure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFileDisclosure() bool { + if o != nil && !IsNil(o.FileDisclosure) { + return true + } + + return false +} + +// SetFileDisclosure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FileDisclosure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFileDisclosure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FileDisclosure = &v +} + +// GetGraphqlAliasLimit returns the GraphqlAliasLimit field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlAliasLimit() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GraphqlAliasLimit) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GraphqlAliasLimit +} + +// GetGraphqlAliasLimitOk returns a tuple with the GraphqlAliasLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlAliasLimitOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GraphqlAliasLimit) { + return nil, false + } + return o.GraphqlAliasLimit, true +} + +// HasGraphqlAliasLimit returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGraphqlAliasLimit() bool { + if o != nil && !IsNil(o.GraphqlAliasLimit) { + return true + } + + return false +} + +// SetGraphqlAliasLimit gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlAliasLimit field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGraphqlAliasLimit(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GraphqlAliasLimit = &v +} + +// GetGraphqlBatchLimit returns the GraphqlBatchLimit field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlBatchLimit() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GraphqlBatchLimit) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GraphqlBatchLimit +} + +// GetGraphqlBatchLimitOk returns a tuple with the GraphqlBatchLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlBatchLimitOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GraphqlBatchLimit) { + return nil, false + } + return o.GraphqlBatchLimit, true +} + +// HasGraphqlBatchLimit returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGraphqlBatchLimit() bool { + if o != nil && !IsNil(o.GraphqlBatchLimit) { + return true + } + + return false +} + +// SetGraphqlBatchLimit gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlBatchLimit field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGraphqlBatchLimit(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GraphqlBatchLimit = &v +} + +// GetGraphqlCircularIntrospection returns the GraphqlCircularIntrospection field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlCircularIntrospection() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GraphqlCircularIntrospection) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GraphqlCircularIntrospection +} + +// GetGraphqlCircularIntrospectionOk returns a tuple with the GraphqlCircularIntrospection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlCircularIntrospectionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GraphqlCircularIntrospection) { + return nil, false + } + return o.GraphqlCircularIntrospection, true +} + +// HasGraphqlCircularIntrospection returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGraphqlCircularIntrospection() bool { + if o != nil && !IsNil(o.GraphqlCircularIntrospection) { + return true + } + + return false +} + +// SetGraphqlCircularIntrospection gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlCircularIntrospection field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGraphqlCircularIntrospection(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GraphqlCircularIntrospection = &v +} + +// GetGraphqlDirectiveOverload returns the GraphqlDirectiveOverload field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlDirectiveOverload() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GraphqlDirectiveOverload) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GraphqlDirectiveOverload +} + +// GetGraphqlDirectiveOverloadOk returns a tuple with the GraphqlDirectiveOverload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlDirectiveOverloadOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GraphqlDirectiveOverload) { + return nil, false + } + return o.GraphqlDirectiveOverload, true +} + +// HasGraphqlDirectiveOverload returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGraphqlDirectiveOverload() bool { + if o != nil && !IsNil(o.GraphqlDirectiveOverload) { + return true + } + + return false +} + +// SetGraphqlDirectiveOverload gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlDirectiveOverload field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGraphqlDirectiveOverload(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GraphqlDirectiveOverload = &v +} + +// GetGraphqlFieldDuplication returns the GraphqlFieldDuplication field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlFieldDuplication() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GraphqlFieldDuplication) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GraphqlFieldDuplication +} + +// GetGraphqlFieldDuplicationOk returns a tuple with the GraphqlFieldDuplication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlFieldDuplicationOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GraphqlFieldDuplication) { + return nil, false + } + return o.GraphqlFieldDuplication, true +} + +// HasGraphqlFieldDuplication returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGraphqlFieldDuplication() bool { + if o != nil && !IsNil(o.GraphqlFieldDuplication) { + return true + } + + return false +} + +// SetGraphqlFieldDuplication gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlFieldDuplication field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGraphqlFieldDuplication(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GraphqlFieldDuplication = &v +} + +// GetGraphqlFieldSuggestion returns the GraphqlFieldSuggestion field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlFieldSuggestion() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GraphqlFieldSuggestion) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GraphqlFieldSuggestion +} + +// GetGraphqlFieldSuggestionOk returns a tuple with the GraphqlFieldSuggestion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlFieldSuggestionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GraphqlFieldSuggestion) { + return nil, false + } + return o.GraphqlFieldSuggestion, true +} + +// HasGraphqlFieldSuggestion returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGraphqlFieldSuggestion() bool { + if o != nil && !IsNil(o.GraphqlFieldSuggestion) { + return true + } + + return false +} + +// SetGraphqlFieldSuggestion gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlFieldSuggestion field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGraphqlFieldSuggestion(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GraphqlFieldSuggestion = &v +} + +// GetGraphqlRecursiveFragment returns the GraphqlRecursiveFragment field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlRecursiveFragment() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GraphqlRecursiveFragment) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GraphqlRecursiveFragment +} + +// GetGraphqlRecursiveFragmentOk returns a tuple with the GraphqlRecursiveFragment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGraphqlRecursiveFragmentOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GraphqlRecursiveFragment) { + return nil, false + } + return o.GraphqlRecursiveFragment, true +} + +// HasGraphqlRecursiveFragment returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGraphqlRecursiveFragment() bool { + if o != nil && !IsNil(o.GraphqlRecursiveFragment) { + return true + } + + return false +} + +// SetGraphqlRecursiveFragment gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlRecursiveFragment field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGraphqlRecursiveFragment(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GraphqlRecursiveFragment = &v +} + +// GetGuessableCookieValue returns the GuessableCookieValue field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGuessableCookieValue() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GuessableCookieValue) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GuessableCookieValue +} + +// GetGuessableCookieValueOk returns a tuple with the GuessableCookieValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGuessableCookieValueOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GuessableCookieValue) { + return nil, false + } + return o.GuessableCookieValue, true +} + +// HasGuessableCookieValue returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGuessableCookieValue() bool { + if o != nil && !IsNil(o.GuessableCookieValue) { + return true + } + + return false +} + +// SetGuessableCookieValue gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GuessableCookieValue field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGuessableCookieValue(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GuessableCookieValue = &v +} + +// GetHeaderCacheControl returns the HeaderCacheControl field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderCacheControl() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HeaderCacheControl) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HeaderCacheControl +} + +// GetHeaderCacheControlOk returns a tuple with the HeaderCacheControl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderCacheControlOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HeaderCacheControl) { + return nil, false + } + return o.HeaderCacheControl, true +} + +// HasHeaderCacheControl returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHeaderCacheControl() bool { + if o != nil && !IsNil(o.HeaderCacheControl) { + return true + } + + return false +} + +// SetHeaderCacheControl gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderCacheControl field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHeaderCacheControl(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HeaderCacheControl = &v +} + +// GetHeaderContentSecurityPolicy returns the HeaderContentSecurityPolicy field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderContentSecurityPolicy() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HeaderContentSecurityPolicy) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HeaderContentSecurityPolicy +} + +// GetHeaderContentSecurityPolicyOk returns a tuple with the HeaderContentSecurityPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderContentSecurityPolicyOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HeaderContentSecurityPolicy) { + return nil, false + } + return o.HeaderContentSecurityPolicy, true +} + +// HasHeaderContentSecurityPolicy returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHeaderContentSecurityPolicy() bool { + if o != nil && !IsNil(o.HeaderContentSecurityPolicy) { + return true + } + + return false +} + +// SetHeaderContentSecurityPolicy gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderContentSecurityPolicy field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHeaderContentSecurityPolicy(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HeaderContentSecurityPolicy = &v +} + +// GetHeaderContentType returns the HeaderContentType field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderContentType() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HeaderContentType) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HeaderContentType +} + +// GetHeaderContentTypeOk returns a tuple with the HeaderContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderContentTypeOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HeaderContentType) { + return nil, false + } + return o.HeaderContentType, true +} + +// HasHeaderContentType returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHeaderContentType() bool { + if o != nil && !IsNil(o.HeaderContentType) { + return true + } + + return false +} + +// SetHeaderContentType gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderContentType field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHeaderContentType(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HeaderContentType = &v +} + +// GetHeaderSetCookie returns the HeaderSetCookie field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderSetCookie() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HeaderSetCookie) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HeaderSetCookie +} + +// GetHeaderSetCookieOk returns a tuple with the HeaderSetCookie field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderSetCookieOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HeaderSetCookie) { + return nil, false + } + return o.HeaderSetCookie, true +} + +// HasHeaderSetCookie returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHeaderSetCookie() bool { + if o != nil && !IsNil(o.HeaderSetCookie) { + return true + } + + return false +} + +// SetHeaderSetCookie gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderSetCookie field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHeaderSetCookie(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HeaderSetCookie = &v +} + +// GetHeaderStrictTransportSecurity returns the HeaderStrictTransportSecurity field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderStrictTransportSecurity() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HeaderStrictTransportSecurity) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HeaderStrictTransportSecurity +} + +// GetHeaderStrictTransportSecurityOk returns a tuple with the HeaderStrictTransportSecurity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderStrictTransportSecurityOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HeaderStrictTransportSecurity) { + return nil, false + } + return o.HeaderStrictTransportSecurity, true +} + +// HasHeaderStrictTransportSecurity returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHeaderStrictTransportSecurity() bool { + if o != nil && !IsNil(o.HeaderStrictTransportSecurity) { + return true + } + + return false +} + +// SetHeaderStrictTransportSecurity gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderStrictTransportSecurity field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHeaderStrictTransportSecurity(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HeaderStrictTransportSecurity = &v +} + +// GetHeaderXContentTypeOptions returns the HeaderXContentTypeOptions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderXContentTypeOptions() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HeaderXContentTypeOptions) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HeaderXContentTypeOptions +} + +// GetHeaderXContentTypeOptionsOk returns a tuple with the HeaderXContentTypeOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderXContentTypeOptionsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HeaderXContentTypeOptions) { + return nil, false + } + return o.HeaderXContentTypeOptions, true +} + +// HasHeaderXContentTypeOptions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHeaderXContentTypeOptions() bool { + if o != nil && !IsNil(o.HeaderXContentTypeOptions) { + return true + } + + return false +} + +// SetHeaderXContentTypeOptions gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderXContentTypeOptions field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHeaderXContentTypeOptions(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HeaderXContentTypeOptions = &v +} + +// GetHeaderXFrameOptions returns the HeaderXFrameOptions field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderXFrameOptions() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HeaderXFrameOptions) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HeaderXFrameOptions +} + +// GetHeaderXFrameOptionsOk returns a tuple with the HeaderXFrameOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHeaderXFrameOptionsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HeaderXFrameOptions) { + return nil, false + } + return o.HeaderXFrameOptions, true +} + +// HasHeaderXFrameOptions returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHeaderXFrameOptions() bool { + if o != nil && !IsNil(o.HeaderXFrameOptions) { + return true + } + + return false +} + +// SetHeaderXFrameOptions gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderXFrameOptions field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHeaderXFrameOptions(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HeaderXFrameOptions = &v +} + +// GetHtmlInjection returns the HtmlInjection field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHtmlInjection() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HtmlInjection) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HtmlInjection +} + +// GetHtmlInjectionOk returns a tuple with the HtmlInjection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHtmlInjectionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HtmlInjection) { + return nil, false + } + return o.HtmlInjection, true +} + +// HasHtmlInjection returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHtmlInjection() bool { + if o != nil && !IsNil(o.HtmlInjection) { + return true + } + + return false +} + +// SetHtmlInjection gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HtmlInjection field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHtmlInjection(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HtmlInjection = &v +} + +// GetHttp2NotSupported returns the Http2NotSupported field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHttp2NotSupported() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Http2NotSupported) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Http2NotSupported +} + +// GetHttp2NotSupportedOk returns a tuple with the Http2NotSupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHttp2NotSupportedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Http2NotSupported) { + return nil, false + } + return o.Http2NotSupported, true +} + +// HasHttp2NotSupported returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHttp2NotSupported() bool { + if o != nil && !IsNil(o.Http2NotSupported) { + return true + } + + return false +} + +// SetHttp2NotSupported gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Http2NotSupported field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHttp2NotSupported(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Http2NotSupported = &v +} + +// GetHttpNoHttpsRedirect returns the HttpNoHttpsRedirect field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHttpNoHttpsRedirect() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HttpNoHttpsRedirect) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HttpNoHttpsRedirect +} + +// GetHttpNoHttpsRedirectOk returns a tuple with the HttpNoHttpsRedirect field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHttpNoHttpsRedirectOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HttpNoHttpsRedirect) { + return nil, false + } + return o.HttpNoHttpsRedirect, true +} + +// HasHttpNoHttpsRedirect returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHttpNoHttpsRedirect() bool { + if o != nil && !IsNil(o.HttpNoHttpsRedirect) { + return true + } + + return false +} + +// SetHttpNoHttpsRedirect gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HttpNoHttpsRedirect field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHttpNoHttpsRedirect(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HttpNoHttpsRedirect = &v +} + +// GetHttpParamPollution returns the HttpParamPollution field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHttpParamPollution() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.HttpParamPollution) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.HttpParamPollution +} + +// GetHttpParamPollutionOk returns a tuple with the HttpParamPollution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetHttpParamPollutionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.HttpParamPollution) { + return nil, false + } + return o.HttpParamPollution, true +} + +// HasHttpParamPollution returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasHttpParamPollution() bool { + if o != nil && !IsNil(o.HttpParamPollution) { + return true + } + + return false +} + +// SetHttpParamPollution gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HttpParamPollution field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetHttpParamPollution(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.HttpParamPollution = &v +} + +// GetIdeEnabled returns the IdeEnabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetIdeEnabled() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.IdeEnabled) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.IdeEnabled +} + +// GetIdeEnabledOk returns a tuple with the IdeEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetIdeEnabledOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.IdeEnabled) { + return nil, false + } + return o.IdeEnabled, true +} + +// HasIdeEnabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasIdeEnabled() bool { + if o != nil && !IsNil(o.IdeEnabled) { + return true + } + + return false +} + +// SetIdeEnabled gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the IdeEnabled field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetIdeEnabled(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.IdeEnabled = &v +} + +// GetImproperInputClientSideProtoPollution returns the ImproperInputClientSideProtoPollution field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetImproperInputClientSideProtoPollution() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ImproperInputClientSideProtoPollution) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ImproperInputClientSideProtoPollution +} + +// GetImproperInputClientSideProtoPollutionOk returns a tuple with the ImproperInputClientSideProtoPollution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetImproperInputClientSideProtoPollutionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ImproperInputClientSideProtoPollution) { + return nil, false + } + return o.ImproperInputClientSideProtoPollution, true +} + +// HasImproperInputClientSideProtoPollution returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasImproperInputClientSideProtoPollution() bool { + if o != nil && !IsNil(o.ImproperInputClientSideProtoPollution) { + return true + } + + return false +} + +// SetImproperInputClientSideProtoPollution gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ImproperInputClientSideProtoPollution field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetImproperInputClientSideProtoPollution(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ImproperInputClientSideProtoPollution = &v +} + +// GetImproperInputFrontendTemplateInjection returns the ImproperInputFrontendTemplateInjection field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetImproperInputFrontendTemplateInjection() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ImproperInputFrontendTemplateInjection) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ImproperInputFrontendTemplateInjection +} + +// GetImproperInputFrontendTemplateInjectionOk returns a tuple with the ImproperInputFrontendTemplateInjection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetImproperInputFrontendTemplateInjectionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ImproperInputFrontendTemplateInjection) { + return nil, false + } + return o.ImproperInputFrontendTemplateInjection, true +} + +// HasImproperInputFrontendTemplateInjection returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasImproperInputFrontendTemplateInjection() bool { + if o != nil && !IsNil(o.ImproperInputFrontendTemplateInjection) { + return true + } + + return false +} + +// SetImproperInputFrontendTemplateInjection gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ImproperInputFrontendTemplateInjection field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetImproperInputFrontendTemplateInjection(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ImproperInputFrontendTemplateInjection = &v +} + +// GetImproperInputXss returns the ImproperInputXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetImproperInputXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ImproperInputXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ImproperInputXss +} + +// GetImproperInputXssOk returns a tuple with the ImproperInputXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetImproperInputXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ImproperInputXss) { + return nil, false + } + return o.ImproperInputXss, true +} + +// HasImproperInputXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasImproperInputXss() bool { + if o != nil && !IsNil(o.ImproperInputXss) { + return true + } + + return false +} + +// SetImproperInputXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ImproperInputXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetImproperInputXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ImproperInputXss = &v +} + +// GetImproperInputXssQueryParams returns the ImproperInputXssQueryParams field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetImproperInputXssQueryParams() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ImproperInputXssQueryParams) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ImproperInputXssQueryParams +} + +// GetImproperInputXssQueryParamsOk returns a tuple with the ImproperInputXssQueryParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetImproperInputXssQueryParamsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ImproperInputXssQueryParams) { + return nil, false + } + return o.ImproperInputXssQueryParams, true +} + +// HasImproperInputXssQueryParams returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasImproperInputXssQueryParams() bool { + if o != nil && !IsNil(o.ImproperInputXssQueryParams) { + return true + } + + return false +} + +// SetImproperInputXssQueryParams gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ImproperInputXssQueryParams field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetImproperInputXssQueryParams(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ImproperInputXssQueryParams = &v +} + +// GetIntrospectionEnabled returns the IntrospectionEnabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetIntrospectionEnabled() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.IntrospectionEnabled) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.IntrospectionEnabled +} + +// GetIntrospectionEnabledOk returns a tuple with the IntrospectionEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetIntrospectionEnabledOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.IntrospectionEnabled) { + return nil, false + } + return o.IntrospectionEnabled, true +} + +// HasIntrospectionEnabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasIntrospectionEnabled() bool { + if o != nil && !IsNil(o.IntrospectionEnabled) { + return true + } + + return false +} + +// SetIntrospectionEnabled gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the IntrospectionEnabled field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetIntrospectionEnabled(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.IntrospectionEnabled = &v +} + +// GetJwtAlgConfusion returns the JwtAlgConfusion field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJwtAlgConfusion() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JwtAlgConfusion) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JwtAlgConfusion +} + +// GetJwtAlgConfusionOk returns a tuple with the JwtAlgConfusion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJwtAlgConfusionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JwtAlgConfusion) { + return nil, false + } + return o.JwtAlgConfusion, true +} + +// HasJwtAlgConfusion returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJwtAlgConfusion() bool { + if o != nil && !IsNil(o.JwtAlgConfusion) { + return true + } + + return false +} + +// SetJwtAlgConfusion gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JwtAlgConfusion field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJwtAlgConfusion(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JwtAlgConfusion = &v +} + +// GetJwtAlgNone returns the JwtAlgNone field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJwtAlgNone() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JwtAlgNone) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JwtAlgNone +} + +// GetJwtAlgNoneOk returns a tuple with the JwtAlgNone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJwtAlgNoneOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JwtAlgNone) { + return nil, false + } + return o.JwtAlgNone, true +} + +// HasJwtAlgNone returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJwtAlgNone() bool { + if o != nil && !IsNil(o.JwtAlgNone) { + return true + } + + return false +} + +// SetJwtAlgNone gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JwtAlgNone field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJwtAlgNone(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JwtAlgNone = &v +} + +// GetExposedJwt returns the ExposedJwt field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedJwt() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ExposedJwt) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ExposedJwt +} + +// GetExposedJwtOk returns a tuple with the ExposedJwt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetExposedJwtOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ExposedJwt) { + return nil, false + } + return o.ExposedJwt, true +} + +// HasExposedJwt returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasExposedJwt() bool { + if o != nil && !IsNil(o.ExposedJwt) { + return true + } + + return false +} + +// SetExposedJwt gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedJwt field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetExposedJwt(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ExposedJwt = &v +} + +// GetJwtSignCheck returns the JwtSignCheck field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJwtSignCheck() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JwtSignCheck) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JwtSignCheck +} + +// GetJwtSignCheckOk returns a tuple with the JwtSignCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJwtSignCheckOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JwtSignCheck) { + return nil, false + } + return o.JwtSignCheck, true +} + +// HasJwtSignCheck returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJwtSignCheck() bool { + if o != nil && !IsNil(o.JwtSignCheck) { + return true + } + + return false +} + +// SetJwtSignCheck gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JwtSignCheck field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJwtSignCheck(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JwtSignCheck = &v +} + +// GetLeakingAuthentication returns the LeakingAuthentication field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetLeakingAuthentication() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.LeakingAuthentication) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.LeakingAuthentication +} + +// GetLeakingAuthenticationOk returns a tuple with the LeakingAuthentication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetLeakingAuthenticationOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.LeakingAuthentication) { + return nil, false + } + return o.LeakingAuthentication, true +} + +// HasLeakingAuthentication returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasLeakingAuthentication() bool { + if o != nil && !IsNil(o.LeakingAuthentication) { + return true + } + + return false +} + +// SetLeakingAuthentication gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LeakingAuthentication field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetLeakingAuthentication(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.LeakingAuthentication = &v +} + +// GetMassAssignment returns the MassAssignment field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMassAssignment() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.MassAssignment) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.MassAssignment +} + +// GetMassAssignmentOk returns a tuple with the MassAssignment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMassAssignmentOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.MassAssignment) { + return nil, false + } + return o.MassAssignment, true +} + +// HasMassAssignment returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMassAssignment() bool { + if o != nil && !IsNil(o.MassAssignment) { + return true + } + + return false +} + +// SetMassAssignment gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MassAssignment field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMassAssignment(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.MassAssignment = &v +} + +// GetMcpUnauth returns the McpUnauth field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMcpUnauth() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.McpUnauth) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.McpUnauth +} + +// GetMcpUnauthOk returns a tuple with the McpUnauth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMcpUnauthOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.McpUnauth) { + return nil, false + } + return o.McpUnauth, true +} + +// HasMcpUnauth returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMcpUnauth() bool { + if o != nil && !IsNil(o.McpUnauth) { + return true + } + + return false +} + +// SetMcpUnauth gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the McpUnauth field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMcpUnauth(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.McpUnauth = &v +} + +// GetNosql returns the Nosql field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNosql() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Nosql) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Nosql +} + +// GetNosqlOk returns a tuple with the Nosql field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNosqlOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Nosql) { + return nil, false + } + return o.Nosql, true +} + +// HasNosql returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasNosql() bool { + if o != nil && !IsNil(o.Nosql) { + return true + } + + return false +} + +// SetNosql gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Nosql field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetNosql(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Nosql = &v +} + +// GetFrontendNosqlInjection returns the FrontendNosqlInjection field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendNosqlInjection() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendNosqlInjection) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendNosqlInjection +} + +// GetFrontendNosqlInjectionOk returns a tuple with the FrontendNosqlInjection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendNosqlInjectionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendNosqlInjection) { + return nil, false + } + return o.FrontendNosqlInjection, true +} + +// HasFrontendNosqlInjection returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendNosqlInjection() bool { + if o != nil && !IsNil(o.FrontendNosqlInjection) { + return true + } + + return false +} + +// SetFrontendNosqlInjection gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendNosqlInjection field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendNosqlInjection(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendNosqlInjection = &v +} + +// GetPaginationMissing returns the PaginationMissing field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPaginationMissing() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PaginationMissing) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PaginationMissing +} + +// GetPaginationMissingOk returns a tuple with the PaginationMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPaginationMissingOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PaginationMissing) { + return nil, false + } + return o.PaginationMissing, true +} + +// HasPaginationMissing returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPaginationMissing() bool { + if o != nil && !IsNil(o.PaginationMissing) { + return true + } + + return false +} + +// SetPaginationMissing gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PaginationMissing field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPaginationMissing(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PaginationMissing = &v +} + +// GetFrontendOpenRedirect returns the FrontendOpenRedirect field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendOpenRedirect() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendOpenRedirect) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendOpenRedirect +} + +// GetFrontendOpenRedirectOk returns a tuple with the FrontendOpenRedirect field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendOpenRedirectOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendOpenRedirect) { + return nil, false + } + return o.FrontendOpenRedirect, true +} + +// HasFrontendOpenRedirect returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendOpenRedirect() bool { + if o != nil && !IsNil(o.FrontendOpenRedirect) { + return true + } + + return false +} + +// SetFrontendOpenRedirect gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendOpenRedirect field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendOpenRedirect(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendOpenRedirect = &v +} + +// GetPasswordFieldAutocompletion returns the PasswordFieldAutocompletion field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPasswordFieldAutocompletion() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PasswordFieldAutocompletion) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PasswordFieldAutocompletion +} + +// GetPasswordFieldAutocompletionOk returns a tuple with the PasswordFieldAutocompletion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPasswordFieldAutocompletionOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PasswordFieldAutocompletion) { + return nil, false + } + return o.PasswordFieldAutocompletion, true +} + +// HasPasswordFieldAutocompletion returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPasswordFieldAutocompletion() bool { + if o != nil && !IsNil(o.PasswordFieldAutocompletion) { + return true + } + + return false +} + +// SetPasswordFieldAutocompletion gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PasswordFieldAutocompletion field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPasswordFieldAutocompletion(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PasswordFieldAutocompletion = &v +} + +// GetPositiveIntegerValidation returns the PositiveIntegerValidation field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPositiveIntegerValidation() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PositiveIntegerValidation) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PositiveIntegerValidation +} + +// GetPositiveIntegerValidationOk returns a tuple with the PositiveIntegerValidation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPositiveIntegerValidationOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PositiveIntegerValidation) { + return nil, false + } + return o.PositiveIntegerValidation, true +} + +// HasPositiveIntegerValidation returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPositiveIntegerValidation() bool { + if o != nil && !IsNil(o.PositiveIntegerValidation) { + return true + } + + return false +} + +// SetPositiveIntegerValidation gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PositiveIntegerValidation field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPositiveIntegerValidation(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PositiveIntegerValidation = &v +} + +// GetPrivateData returns the PrivateData field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPrivateData() GetProfile200ResponseConfigurationSecurityTestsPrivateData { + if o == nil || IsNil(o.PrivateData) { + var ret GetProfile200ResponseConfigurationSecurityTestsPrivateData + return ret + } + return *o.PrivateData +} + +// GetPrivateDataOk returns a tuple with the PrivateData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPrivateDataOk() (*GetProfile200ResponseConfigurationSecurityTestsPrivateData, bool) { + if o == nil || IsNil(o.PrivateData) { + return nil, false + } + return o.PrivateData, true +} + +// HasPrivateData returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPrivateData() bool { + if o != nil && !IsNil(o.PrivateData) { + return true + } + + return false +} + +// SetPrivateData gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsPrivateData and assigns it to the PrivateData field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPrivateData(v GetProfile200ResponseConfigurationSecurityTestsPrivateData) { + o.PrivateData = &v +} + +// GetPrivateIp returns the PrivateIp field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPrivateIp() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PrivateIp) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PrivateIp +} + +// GetPrivateIpOk returns a tuple with the PrivateIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPrivateIpOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PrivateIp) { + return nil, false + } + return o.PrivateIp, true +} + +// HasPrivateIp returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPrivateIp() bool { + if o != nil && !IsNil(o.PrivateIp) { + return true + } + + return false +} + +// SetPrivateIp gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PrivateIp field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPrivateIp(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PrivateIp = &v +} + +// GetReflectedUrlParameter returns the ReflectedUrlParameter field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReflectedUrlParameter() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ReflectedUrlParameter) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ReflectedUrlParameter +} + +// GetReflectedUrlParameterOk returns a tuple with the ReflectedUrlParameter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReflectedUrlParameterOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ReflectedUrlParameter) { + return nil, false + } + return o.ReflectedUrlParameter, true +} + +// HasReflectedUrlParameter returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasReflectedUrlParameter() bool { + if o != nil && !IsNil(o.ReflectedUrlParameter) { + return true + } + + return false +} + +// SetReflectedUrlParameter gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ReflectedUrlParameter field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetReflectedUrlParameter(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ReflectedUrlParameter = &v +} + +// GetRequestUrlOverride returns the RequestUrlOverride field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRequestUrlOverride() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.RequestUrlOverride) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.RequestUrlOverride +} + +// GetRequestUrlOverrideOk returns a tuple with the RequestUrlOverride field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRequestUrlOverrideOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.RequestUrlOverride) { + return nil, false + } + return o.RequestUrlOverride, true +} + +// HasRequestUrlOverride returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasRequestUrlOverride() bool { + if o != nil && !IsNil(o.RequestUrlOverride) { + return true + } + + return false +} + +// SetRequestUrlOverride gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RequestUrlOverride field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetRequestUrlOverride(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.RequestUrlOverride = &v +} + +// GetResponseSize returns the ResponseSize field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetResponseSize() GetProfile200ResponseConfigurationSecurityTestsResponseSize { + if o == nil || IsNil(o.ResponseSize) { + var ret GetProfile200ResponseConfigurationSecurityTestsResponseSize + return ret + } + return *o.ResponseSize +} + +// GetResponseSizeOk returns a tuple with the ResponseSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetResponseSizeOk() (*GetProfile200ResponseConfigurationSecurityTestsResponseSize, bool) { + if o == nil || IsNil(o.ResponseSize) { + return nil, false + } + return o.ResponseSize, true +} + +// HasResponseSize returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasResponseSize() bool { + if o != nil && !IsNil(o.ResponseSize) { + return true + } + + return false +} + +// SetResponseSize gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsResponseSize and assigns it to the ResponseSize field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetResponseSize(v GetProfile200ResponseConfigurationSecurityTestsResponseSize) { + o.ResponseSize = &v +} + +// GetSensitiveComments returns the SensitiveComments field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSensitiveComments() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SensitiveComments) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SensitiveComments +} + +// GetSensitiveCommentsOk returns a tuple with the SensitiveComments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSensitiveCommentsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SensitiveComments) { + return nil, false + } + return o.SensitiveComments, true +} + +// HasSensitiveComments returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSensitiveComments() bool { + if o != nil && !IsNil(o.SensitiveComments) { + return true + } + + return false +} + +// SetSensitiveComments gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SensitiveComments field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSensitiveComments(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SensitiveComments = &v +} + +// GetServerError returns the ServerError field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetServerError() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ServerError) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ServerError +} + +// GetServerErrorOk returns a tuple with the ServerError field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetServerErrorOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ServerError) { + return nil, false + } + return o.ServerError, true +} + +// HasServerError returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasServerError() bool { + if o != nil && !IsNil(o.ServerError) { + return true + } + + return false +} + +// SetServerError gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ServerError field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetServerError(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ServerError = &v +} + +// GetSoftwareComponentLeak returns the SoftwareComponentLeak field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSoftwareComponentLeak() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SoftwareComponentLeak) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SoftwareComponentLeak +} + +// GetSoftwareComponentLeakOk returns a tuple with the SoftwareComponentLeak field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSoftwareComponentLeakOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SoftwareComponentLeak) { + return nil, false + } + return o.SoftwareComponentLeak, true +} + +// HasSoftwareComponentLeak returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSoftwareComponentLeak() bool { + if o != nil && !IsNil(o.SoftwareComponentLeak) { + return true + } + + return false +} + +// SetSoftwareComponentLeak gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SoftwareComponentLeak field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSoftwareComponentLeak(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SoftwareComponentLeak = &v +} + +// GetSpringbootActuatorDump returns the SpringbootActuatorDump field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorDump() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpringbootActuatorDump) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpringbootActuatorDump +} + +// GetSpringbootActuatorDumpOk returns a tuple with the SpringbootActuatorDump field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorDumpOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpringbootActuatorDump) { + return nil, false + } + return o.SpringbootActuatorDump, true +} + +// HasSpringbootActuatorDump returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpringbootActuatorDump() bool { + if o != nil && !IsNil(o.SpringbootActuatorDump) { + return true + } + + return false +} + +// SetSpringbootActuatorDump gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorDump field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpringbootActuatorDump(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpringbootActuatorDump = &v +} + +// GetSpringbootActuatorEnv returns the SpringbootActuatorEnv field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorEnv() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpringbootActuatorEnv) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpringbootActuatorEnv +} + +// GetSpringbootActuatorEnvOk returns a tuple with the SpringbootActuatorEnv field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorEnvOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpringbootActuatorEnv) { + return nil, false + } + return o.SpringbootActuatorEnv, true +} + +// HasSpringbootActuatorEnv returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpringbootActuatorEnv() bool { + if o != nil && !IsNil(o.SpringbootActuatorEnv) { + return true + } + + return false +} + +// SetSpringbootActuatorEnv gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorEnv field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpringbootActuatorEnv(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpringbootActuatorEnv = &v +} + +// GetSpringbootActuatorHeapdump returns the SpringbootActuatorHeapdump field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorHeapdump() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpringbootActuatorHeapdump) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpringbootActuatorHeapdump +} + +// GetSpringbootActuatorHeapdumpOk returns a tuple with the SpringbootActuatorHeapdump field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorHeapdumpOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpringbootActuatorHeapdump) { + return nil, false + } + return o.SpringbootActuatorHeapdump, true +} + +// HasSpringbootActuatorHeapdump returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpringbootActuatorHeapdump() bool { + if o != nil && !IsNil(o.SpringbootActuatorHeapdump) { + return true + } + + return false +} + +// SetSpringbootActuatorHeapdump gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorHeapdump field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpringbootActuatorHeapdump(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpringbootActuatorHeapdump = &v +} + +// GetSpringbootActuatorLogfile returns the SpringbootActuatorLogfile field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorLogfile() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpringbootActuatorLogfile) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpringbootActuatorLogfile +} + +// GetSpringbootActuatorLogfileOk returns a tuple with the SpringbootActuatorLogfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorLogfileOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpringbootActuatorLogfile) { + return nil, false + } + return o.SpringbootActuatorLogfile, true +} + +// HasSpringbootActuatorLogfile returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpringbootActuatorLogfile() bool { + if o != nil && !IsNil(o.SpringbootActuatorLogfile) { + return true + } + + return false +} + +// SetSpringbootActuatorLogfile gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorLogfile field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpringbootActuatorLogfile(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpringbootActuatorLogfile = &v +} + +// GetSpringbootActuatorMappings returns the SpringbootActuatorMappings field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorMappings() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpringbootActuatorMappings) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpringbootActuatorMappings +} + +// GetSpringbootActuatorMappingsOk returns a tuple with the SpringbootActuatorMappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorMappingsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpringbootActuatorMappings) { + return nil, false + } + return o.SpringbootActuatorMappings, true +} + +// HasSpringbootActuatorMappings returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpringbootActuatorMappings() bool { + if o != nil && !IsNil(o.SpringbootActuatorMappings) { + return true + } + + return false +} + +// SetSpringbootActuatorMappings gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorMappings field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpringbootActuatorMappings(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpringbootActuatorMappings = &v +} + +// GetSpringbootActuatorRestart returns the SpringbootActuatorRestart field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorRestart() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpringbootActuatorRestart) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpringbootActuatorRestart +} + +// GetSpringbootActuatorRestartOk returns a tuple with the SpringbootActuatorRestart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorRestartOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpringbootActuatorRestart) { + return nil, false + } + return o.SpringbootActuatorRestart, true +} + +// HasSpringbootActuatorRestart returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpringbootActuatorRestart() bool { + if o != nil && !IsNil(o.SpringbootActuatorRestart) { + return true + } + + return false +} + +// SetSpringbootActuatorRestart gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorRestart field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpringbootActuatorRestart(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpringbootActuatorRestart = &v +} + +// GetSpringbootActuatorShutdown returns the SpringbootActuatorShutdown field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorShutdown() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpringbootActuatorShutdown) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpringbootActuatorShutdown +} + +// GetSpringbootActuatorShutdownOk returns a tuple with the SpringbootActuatorShutdown field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorShutdownOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpringbootActuatorShutdown) { + return nil, false + } + return o.SpringbootActuatorShutdown, true +} + +// HasSpringbootActuatorShutdown returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpringbootActuatorShutdown() bool { + if o != nil && !IsNil(o.SpringbootActuatorShutdown) { + return true + } + + return false +} + +// SetSpringbootActuatorShutdown gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorShutdown field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpringbootActuatorShutdown(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpringbootActuatorShutdown = &v +} + +// GetSpringbootActuatorTrace returns the SpringbootActuatorTrace field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorTrace() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpringbootActuatorTrace) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpringbootActuatorTrace +} + +// GetSpringbootActuatorTraceOk returns a tuple with the SpringbootActuatorTrace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpringbootActuatorTraceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpringbootActuatorTrace) { + return nil, false + } + return o.SpringbootActuatorTrace, true +} + +// HasSpringbootActuatorTrace returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpringbootActuatorTrace() bool { + if o != nil && !IsNil(o.SpringbootActuatorTrace) { + return true + } + + return false +} + +// SetSpringbootActuatorTrace gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorTrace field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpringbootActuatorTrace(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpringbootActuatorTrace = &v +} + +// GetSql returns the Sql field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSql() GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection { + if o == nil || IsNil(o.Sql) { + var ret GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection + return ret + } + return *o.Sql +} + +// GetSqlOk returns a tuple with the Sql field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSqlOk() (*GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection, bool) { + if o == nil || IsNil(o.Sql) { + return nil, false + } + return o.Sql, true +} + +// HasSql returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSql() bool { + if o != nil && !IsNil(o.Sql) { + return true + } + + return false +} + +// SetSql gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection and assigns it to the Sql field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSql(v GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) { + o.Sql = &v +} + +// GetSqlInjectionOracleBased returns the SqlInjectionOracleBased field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSqlInjectionOracleBased() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SqlInjectionOracleBased) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SqlInjectionOracleBased +} + +// GetSqlInjectionOracleBasedOk returns a tuple with the SqlInjectionOracleBased field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSqlInjectionOracleBasedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SqlInjectionOracleBased) { + return nil, false + } + return o.SqlInjectionOracleBased, true +} + +// HasSqlInjectionOracleBased returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSqlInjectionOracleBased() bool { + if o != nil && !IsNil(o.SqlInjectionOracleBased) { + return true + } + + return false +} + +// SetSqlInjectionOracleBased gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SqlInjectionOracleBased field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSqlInjectionOracleBased(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SqlInjectionOracleBased = &v +} + +// GetSslCertificate returns the SslCertificate field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSslCertificate() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SslCertificate) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SslCertificate +} + +// GetSslCertificateOk returns a tuple with the SslCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSslCertificateOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SslCertificate) { + return nil, false + } + return o.SslCertificate, true +} + +// HasSslCertificate returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSslCertificate() bool { + if o != nil && !IsNil(o.SslCertificate) { + return true + } + + return false +} + +// SetSslCertificate gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SslCertificate field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSslCertificate(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SslCertificate = &v +} + +// GetSsl returns the Ssl field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSsl() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Ssl) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Ssl +} + +// GetSslOk returns a tuple with the Ssl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSslOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Ssl) { + return nil, false + } + return o.Ssl, true +} + +// HasSsl returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSsl() bool { + if o != nil && !IsNil(o.Ssl) { + return true + } + + return false +} + +// SetSsl gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Ssl field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSsl(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Ssl = &v +} + +// GetSsrf returns the Ssrf field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSsrf() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Ssrf) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Ssrf +} + +// GetSsrfOk returns a tuple with the Ssrf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSsrfOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Ssrf) { + return nil, false + } + return o.Ssrf, true +} + +// HasSsrf returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSsrf() bool { + if o != nil && !IsNil(o.Ssrf) { + return true + } + + return false +} + +// SetSsrf gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Ssrf field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSsrf(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Ssrf = &v +} + +// GetSsti returns the Ssti field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSsti() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Ssti) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Ssti +} + +// GetSstiOk returns a tuple with the Ssti field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSstiOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Ssti) { + return nil, false + } + return o.Ssti, true +} + +// HasSsti returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSsti() bool { + if o != nil && !IsNil(o.Ssti) { + return true + } + + return false +} + +// SetSsti gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Ssti field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSsti(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Ssti = &v +} + +// GetFrontendSsrfHeader returns the FrontendSsrfHeader field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendSsrfHeader() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FrontendSsrfHeader) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FrontendSsrfHeader +} + +// GetFrontendSsrfHeaderOk returns a tuple with the FrontendSsrfHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFrontendSsrfHeaderOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FrontendSsrfHeader) { + return nil, false + } + return o.FrontendSsrfHeader, true +} + +// HasFrontendSsrfHeader returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFrontendSsrfHeader() bool { + if o != nil && !IsNil(o.FrontendSsrfHeader) { + return true + } + + return false +} + +// SetFrontendSsrfHeader gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendSsrfHeader field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFrontendSsrfHeader(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FrontendSsrfHeader = &v +} + +// GetStacktrace returns the Stacktrace field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetStacktrace() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Stacktrace) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + 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 *GetProfile200ResponseConfigurationSecurityTests) GetStacktraceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Stacktrace) { + return nil, false + } + return o.Stacktrace, true +} + +// HasStacktrace returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasStacktrace() bool { + if o != nil && !IsNil(o.Stacktrace) { + return true + } + + return false +} + +// SetStacktrace gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Stacktrace field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetStacktrace(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Stacktrace = &v +} + +// GetSubresourceIntegrityMissing returns the SubresourceIntegrityMissing field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSubresourceIntegrityMissing() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SubresourceIntegrityMissing) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SubresourceIntegrityMissing +} + +// GetSubresourceIntegrityMissingOk returns a tuple with the SubresourceIntegrityMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSubresourceIntegrityMissingOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SubresourceIntegrityMissing) { + return nil, false + } + return o.SubresourceIntegrityMissing, true +} + +// HasSubresourceIntegrityMissing returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSubresourceIntegrityMissing() bool { + if o != nil && !IsNil(o.SubresourceIntegrityMissing) { + return true + } + + return false +} + +// SetSubresourceIntegrityMissing gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SubresourceIntegrityMissing field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSubresourceIntegrityMissing(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SubresourceIntegrityMissing = &v +} + +// GetMultiUserAccessControl returns the MultiUserAccessControl field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMultiUserAccessControl() GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl { + if o == nil || IsNil(o.MultiUserAccessControl) { + var ret GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl + return ret + } + return *o.MultiUserAccessControl +} + +// GetMultiUserAccessControlOk returns a tuple with the MultiUserAccessControl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMultiUserAccessControlOk() (*GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl, bool) { + if o == nil || IsNil(o.MultiUserAccessControl) { + return nil, false + } + return o.MultiUserAccessControl, true +} + +// HasMultiUserAccessControl returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMultiUserAccessControl() bool { + if o != nil && !IsNil(o.MultiUserAccessControl) { + return true + } + + return false +} + +// SetMultiUserAccessControl gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl and assigns it to the MultiUserAccessControl field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMultiUserAccessControl(v GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) { + o.MultiUserAccessControl = &v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTimeout() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Timeout) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTimeoutOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Timeout) { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasTimeout() bool { + if o != nil && !IsNil(o.Timeout) { + return true + } + + return false +} + +// SetTimeout gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Timeout field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetTimeout(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Timeout = &v +} + +// GetUnreachableServer returns the UnreachableServer field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetUnreachableServer() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.UnreachableServer) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.UnreachableServer +} + +// GetUnreachableServerOk returns a tuple with the UnreachableServer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetUnreachableServerOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.UnreachableServer) { + return nil, false + } + return o.UnreachableServer, true +} + +// HasUnreachableServer returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasUnreachableServer() bool { + if o != nil && !IsNil(o.UnreachableServer) { + return true + } + + return false +} + +// SetUnreachableServer gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the UnreachableServer field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetUnreachableServer(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.UnreachableServer = &v +} + +// GetUnsafeFunctionUse returns the UnsafeFunctionUse field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetUnsafeFunctionUse() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.UnsafeFunctionUse) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.UnsafeFunctionUse +} + +// GetUnsafeFunctionUseOk returns a tuple with the UnsafeFunctionUse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetUnsafeFunctionUseOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.UnsafeFunctionUse) { + return nil, false + } + return o.UnsafeFunctionUse, true +} + +// HasUnsafeFunctionUse returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasUnsafeFunctionUse() bool { + if o != nil && !IsNil(o.UnsafeFunctionUse) { + return true + } + + return false +} + +// SetUnsafeFunctionUse gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the UnsafeFunctionUse field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetUnsafeFunctionUse(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.UnsafeFunctionUse = &v +} + +// GetVueDevelopmentBuild returns the VueDevelopmentBuild field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetVueDevelopmentBuild() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.VueDevelopmentBuild) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.VueDevelopmentBuild +} + +// GetVueDevelopmentBuildOk returns a tuple with the VueDevelopmentBuild field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetVueDevelopmentBuildOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.VueDevelopmentBuild) { + return nil, false + } + return o.VueDevelopmentBuild, true +} + +// HasVueDevelopmentBuild returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasVueDevelopmentBuild() bool { + if o != nil && !IsNil(o.VueDevelopmentBuild) { + return true + } + + return false +} + +// SetVueDevelopmentBuild gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the VueDevelopmentBuild field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetVueDevelopmentBuild(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.VueDevelopmentBuild = &v +} + +// GetWafBypass returns the WafBypass field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWafBypass() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WafBypass) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WafBypass +} + +// GetWafBypassOk returns a tuple with the WafBypass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWafBypassOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WafBypass) { + return nil, false + } + return o.WafBypass, true +} + +// HasWafBypass returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWafBypass() bool { + if o != nil && !IsNil(o.WafBypass) { + return true + } + + return false +} + +// SetWafBypass gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WafBypass field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWafBypass(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WafBypass = &v +} + +// GetWordpressOembedEndpointExposed returns the WordpressOembedEndpointExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressOembedEndpointExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressOembedEndpointExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressOembedEndpointExposed +} + +// GetWordpressOembedEndpointExposedOk returns a tuple with the WordpressOembedEndpointExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressOembedEndpointExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressOembedEndpointExposed) { + return nil, false + } + return o.WordpressOembedEndpointExposed, true +} + +// HasWordpressOembedEndpointExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressOembedEndpointExposed() bool { + if o != nil && !IsNil(o.WordpressOembedEndpointExposed) { + return true + } + + return false +} + +// SetWordpressOembedEndpointExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressOembedEndpointExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressOembedEndpointExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressOembedEndpointExposed = &v +} + +// GetWordpressRdfFeedUserExposed returns the WordpressRdfFeedUserExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressRdfFeedUserExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressRdfFeedUserExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressRdfFeedUserExposed +} + +// GetWordpressRdfFeedUserExposedOk returns a tuple with the WordpressRdfFeedUserExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressRdfFeedUserExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressRdfFeedUserExposed) { + return nil, false + } + return o.WordpressRdfFeedUserExposed, true +} + +// HasWordpressRdfFeedUserExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressRdfFeedUserExposed() bool { + if o != nil && !IsNil(o.WordpressRdfFeedUserExposed) { + return true + } + + return false +} + +// SetWordpressRdfFeedUserExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressRdfFeedUserExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressRdfFeedUserExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressRdfFeedUserExposed = &v +} + +// GetWordpressRestApiUsersExposed returns the WordpressRestApiUsersExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressRestApiUsersExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressRestApiUsersExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressRestApiUsersExposed +} + +// GetWordpressRestApiUsersExposedOk returns a tuple with the WordpressRestApiUsersExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressRestApiUsersExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressRestApiUsersExposed) { + return nil, false + } + return o.WordpressRestApiUsersExposed, true +} + +// HasWordpressRestApiUsersExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressRestApiUsersExposed() bool { + if o != nil && !IsNil(o.WordpressRestApiUsersExposed) { + return true + } + + return false +} + +// SetWordpressRestApiUsersExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressRestApiUsersExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressRestApiUsersExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressRestApiUsersExposed = &v +} + +// GetWordpressAffiliatewpLog returns the WordpressAffiliatewpLog field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressAffiliatewpLog() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressAffiliatewpLog) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressAffiliatewpLog +} + +// GetWordpressAffiliatewpLogOk returns a tuple with the WordpressAffiliatewpLog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressAffiliatewpLogOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressAffiliatewpLog) { + return nil, false + } + return o.WordpressAffiliatewpLog, true +} + +// HasWordpressAffiliatewpLog returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressAffiliatewpLog() bool { + if o != nil && !IsNil(o.WordpressAffiliatewpLog) { + return true + } + + return false +} + +// SetWordpressAffiliatewpLog gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressAffiliatewpLog field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressAffiliatewpLog(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressAffiliatewpLog = &v +} + +// GetWordpressDbBackup returns the WordpressDbBackup field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressDbBackup() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressDbBackup) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressDbBackup +} + +// GetWordpressDbBackupOk returns a tuple with the WordpressDbBackup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressDbBackupOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressDbBackup) { + return nil, false + } + return o.WordpressDbBackup, true +} + +// HasWordpressDbBackup returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressDbBackup() bool { + if o != nil && !IsNil(o.WordpressDbBackup) { + return true + } + + return false +} + +// SetWordpressDbBackup gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressDbBackup field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressDbBackup(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressDbBackup = &v +} + +// GetWordpressDbBackupListing returns the WordpressDbBackupListing field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressDbBackupListing() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressDbBackupListing) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressDbBackupListing +} + +// GetWordpressDbBackupListingOk returns a tuple with the WordpressDbBackupListing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressDbBackupListingOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressDbBackupListing) { + return nil, false + } + return o.WordpressDbBackupListing, true +} + +// HasWordpressDbBackupListing returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressDbBackupListing() bool { + if o != nil && !IsNil(o.WordpressDbBackupListing) { + return true + } + + return false +} + +// SetWordpressDbBackupListing gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressDbBackupListing field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressDbBackupListing(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressDbBackupListing = &v +} + +// GetWordpressDbRepair returns the WordpressDbRepair field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressDbRepair() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressDbRepair) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressDbRepair +} + +// GetWordpressDbRepairOk returns a tuple with the WordpressDbRepair field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressDbRepairOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressDbRepair) { + return nil, false + } + return o.WordpressDbRepair, true +} + +// HasWordpressDbRepair returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressDbRepair() bool { + if o != nil && !IsNil(o.WordpressDbRepair) { + return true + } + + return false +} + +// SetWordpressDbRepair gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressDbRepair field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressDbRepair(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressDbRepair = &v +} + +// GetWordpressDebugLog returns the WordpressDebugLog field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressDebugLog() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressDebugLog) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressDebugLog +} + +// GetWordpressDebugLogOk returns a tuple with the WordpressDebugLog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressDebugLogOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressDebugLog) { + return nil, false + } + return o.WordpressDebugLog, true +} + +// HasWordpressDebugLog returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressDebugLog() bool { + if o != nil && !IsNil(o.WordpressDebugLog) { + return true + } + + return false +} + +// SetWordpressDebugLog gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressDebugLog field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressDebugLog(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressDebugLog = &v +} + +// GetWordpressSocialMetricsTracker returns the WordpressSocialMetricsTracker field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressSocialMetricsTracker() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressSocialMetricsTracker) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressSocialMetricsTracker +} + +// GetWordpressSocialMetricsTrackerOk returns a tuple with the WordpressSocialMetricsTracker field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressSocialMetricsTrackerOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressSocialMetricsTracker) { + return nil, false + } + return o.WordpressSocialMetricsTracker, true +} + +// HasWordpressSocialMetricsTracker returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressSocialMetricsTracker() bool { + if o != nil && !IsNil(o.WordpressSocialMetricsTracker) { + return true + } + + return false +} + +// SetWordpressSocialMetricsTracker gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressSocialMetricsTracker field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressSocialMetricsTracker(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressSocialMetricsTracker = &v +} + +// GetWordpressSsrfOembed returns the WordpressSsrfOembed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressSsrfOembed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressSsrfOembed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressSsrfOembed +} + +// GetWordpressSsrfOembedOk returns a tuple with the WordpressSsrfOembed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressSsrfOembedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressSsrfOembed) { + return nil, false + } + return o.WordpressSsrfOembed, true +} + +// HasWordpressSsrfOembed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressSsrfOembed() bool { + if o != nil && !IsNil(o.WordpressSsrfOembed) { + return true + } + + return false +} + +// SetWordpressSsrfOembed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressSsrfOembed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressSsrfOembed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressSsrfOembed = &v +} + +// GetWordpressTotalUpkeepBackupDownload returns the WordpressTotalUpkeepBackupDownload field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressTotalUpkeepBackupDownload() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressTotalUpkeepBackupDownload) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressTotalUpkeepBackupDownload +} + +// GetWordpressTotalUpkeepBackupDownloadOk returns a tuple with the WordpressTotalUpkeepBackupDownload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressTotalUpkeepBackupDownloadOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressTotalUpkeepBackupDownload) { + return nil, false + } + return o.WordpressTotalUpkeepBackupDownload, true +} + +// HasWordpressTotalUpkeepBackupDownload returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressTotalUpkeepBackupDownload() bool { + if o != nil && !IsNil(o.WordpressTotalUpkeepBackupDownload) { + return true + } + + return false +} + +// SetWordpressTotalUpkeepBackupDownload gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressTotalUpkeepBackupDownload field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressTotalUpkeepBackupDownload(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressTotalUpkeepBackupDownload = &v +} + +// GetWordpressWordfenceLfi returns the WordpressWordfenceLfi field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressWordfenceLfi() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressWordfenceLfi) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressWordfenceLfi +} + +// GetWordpressWordfenceLfiOk returns a tuple with the WordpressWordfenceLfi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressWordfenceLfiOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressWordfenceLfi) { + return nil, false + } + return o.WordpressWordfenceLfi, true +} + +// HasWordpressWordfenceLfi returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressWordfenceLfi() bool { + if o != nil && !IsNil(o.WordpressWordfenceLfi) { + return true + } + + return false +} + +// SetWordpressWordfenceLfi gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressWordfenceLfi field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressWordfenceLfi(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressWordfenceLfi = &v +} + +// GetWordpressWordfenceWafBypassXss returns the WordpressWordfenceWafBypassXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressWordfenceWafBypassXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressWordfenceWafBypassXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressWordfenceWafBypassXss +} + +// GetWordpressWordfenceWafBypassXssOk returns a tuple with the WordpressWordfenceWafBypassXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressWordfenceWafBypassXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressWordfenceWafBypassXss) { + return nil, false + } + return o.WordpressWordfenceWafBypassXss, true +} + +// HasWordpressWordfenceWafBypassXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressWordfenceWafBypassXss() bool { + if o != nil && !IsNil(o.WordpressWordfenceWafBypassXss) { + return true + } + + return false +} + +// SetWordpressWordfenceWafBypassXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressWordfenceWafBypassXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressWordfenceWafBypassXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressWordfenceWafBypassXss = &v +} + +// GetWordpressWordfenceXss returns the WordpressWordfenceXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressWordfenceXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressWordfenceXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressWordfenceXss +} + +// GetWordpressWordfenceXssOk returns a tuple with the WordpressWordfenceXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressWordfenceXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressWordfenceXss) { + return nil, false + } + return o.WordpressWordfenceXss, true +} + +// HasWordpressWordfenceXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressWordfenceXss() bool { + if o != nil && !IsNil(o.WordpressWordfenceXss) { + return true + } + + return false +} + +// SetWordpressWordfenceXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressWordfenceXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressWordfenceXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressWordfenceXss = &v +} + +// GetWordpressWpCronExposed returns the WordpressWpCronExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressWpCronExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressWpCronExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressWpCronExposed +} + +// GetWordpressWpCronExposedOk returns a tuple with the WordpressWpCronExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressWpCronExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressWpCronExposed) { + return nil, false + } + return o.WordpressWpCronExposed, true +} + +// HasWordpressWpCronExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressWpCronExposed() bool { + if o != nil && !IsNil(o.WordpressWpCronExposed) { + return true + } + + return false +} + +// SetWordpressWpCronExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressWpCronExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressWpCronExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressWpCronExposed = &v +} + +// GetWordpressXmlrpcPhpExposed returns the WordpressXmlrpcPhpExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressXmlrpcPhpExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressXmlrpcPhpExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressXmlrpcPhpExposed +} + +// GetWordpressXmlrpcPhpExposedOk returns a tuple with the WordpressXmlrpcPhpExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressXmlrpcPhpExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressXmlrpcPhpExposed) { + return nil, false + } + return o.WordpressXmlrpcPhpExposed, true +} + +// HasWordpressXmlrpcPhpExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressXmlrpcPhpExposed() bool { + if o != nil && !IsNil(o.WordpressXmlrpcPhpExposed) { + return true + } + + return false +} + +// SetWordpressXmlrpcPhpExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressXmlrpcPhpExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressXmlrpcPhpExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressXmlrpcPhpExposed = &v +} + +// GetWordpressZebraFormXss returns the WordpressZebraFormXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressZebraFormXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressZebraFormXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressZebraFormXss +} + +// GetWordpressZebraFormXssOk returns a tuple with the WordpressZebraFormXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressZebraFormXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressZebraFormXss) { + return nil, false + } + return o.WordpressZebraFormXss, true +} + +// HasWordpressZebraFormXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressZebraFormXss() bool { + if o != nil && !IsNil(o.WordpressZebraFormXss) { + return true + } + + return false +} + +// SetWordpressZebraFormXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressZebraFormXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressZebraFormXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressZebraFormXss = &v +} + +// GetWpInsertPhpXss returns the WpInsertPhpXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWpInsertPhpXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WpInsertPhpXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WpInsertPhpXss +} + +// GetWpInsertPhpXssOk returns a tuple with the WpInsertPhpXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWpInsertPhpXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WpInsertPhpXss) { + return nil, false + } + return o.WpInsertPhpXss, true +} + +// HasWpInsertPhpXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWpInsertPhpXss() bool { + if o != nil && !IsNil(o.WpInsertPhpXss) { + return true + } + + return false +} + +// SetWpInsertPhpXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WpInsertPhpXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWpInsertPhpXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WpInsertPhpXss = &v +} + +// GetWpPhpfreechatXss returns the WpPhpfreechatXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWpPhpfreechatXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WpPhpfreechatXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WpPhpfreechatXss +} + +// GetWpPhpfreechatXssOk returns a tuple with the WpPhpfreechatXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWpPhpfreechatXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WpPhpfreechatXss) { + return nil, false + } + return o.WpPhpfreechatXss, true +} + +// HasWpPhpfreechatXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWpPhpfreechatXss() bool { + if o != nil && !IsNil(o.WpPhpfreechatXss) { + return true + } + + return false +} + +// SetWpPhpfreechatXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WpPhpfreechatXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWpPhpfreechatXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WpPhpfreechatXss = &v +} + +// GetFlaskSessionCookie returns the FlaskSessionCookie field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFlaskSessionCookie() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.FlaskSessionCookie) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.FlaskSessionCookie +} + +// GetFlaskSessionCookieOk returns a tuple with the FlaskSessionCookie field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetFlaskSessionCookieOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.FlaskSessionCookie) { + return nil, false + } + return o.FlaskSessionCookie, true +} + +// HasFlaskSessionCookie returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasFlaskSessionCookie() bool { + if o != nil && !IsNil(o.FlaskSessionCookie) { + return true + } + + return false +} + +// SetFlaskSessionCookie gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FlaskSessionCookie field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetFlaskSessionCookie(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.FlaskSessionCookie = &v +} + +// GetGeovisionGeowebserverLfiXss returns the GeovisionGeowebserverLfiXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGeovisionGeowebserverLfiXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GeovisionGeowebserverLfiXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GeovisionGeowebserverLfiXss +} + +// GetGeovisionGeowebserverLfiXssOk returns a tuple with the GeovisionGeowebserverLfiXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGeovisionGeowebserverLfiXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GeovisionGeowebserverLfiXss) { + return nil, false + } + return o.GeovisionGeowebserverLfiXss, true +} + +// HasGeovisionGeowebserverLfiXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGeovisionGeowebserverLfiXss() bool { + if o != nil && !IsNil(o.GeovisionGeowebserverLfiXss) { + return true + } + + return false +} + +// SetGeovisionGeowebserverLfiXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GeovisionGeowebserverLfiXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGeovisionGeowebserverLfiXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GeovisionGeowebserverLfiXss = &v +} + +// GetGitExposure returns the GitExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGitExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GitExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GitExposure +} + +// GetGitExposureOk returns a tuple with the GitExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGitExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GitExposure) { + return nil, false + } + return o.GitExposure, true +} + +// HasGitExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGitExposure() bool { + if o != nil && !IsNil(o.GitExposure) { + return true + } + + return false +} + +// SetGitExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GitExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGitExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GitExposure = &v +} + +// GetSvelteDevelopmentBuild returns the SvelteDevelopmentBuild field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSvelteDevelopmentBuild() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SvelteDevelopmentBuild) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SvelteDevelopmentBuild +} + +// GetSvelteDevelopmentBuildOk returns a tuple with the SvelteDevelopmentBuild field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSvelteDevelopmentBuildOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SvelteDevelopmentBuild) { + return nil, false + } + return o.SvelteDevelopmentBuild, true +} + +// HasSvelteDevelopmentBuild returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSvelteDevelopmentBuild() bool { + if o != nil && !IsNil(o.SvelteDevelopmentBuild) { + return true + } + + return false +} + +// SetSvelteDevelopmentBuild gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SvelteDevelopmentBuild field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSvelteDevelopmentBuild(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SvelteDevelopmentBuild = &v +} + +// GetGitlabWeakLogin returns the GitlabWeakLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGitlabWeakLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GitlabWeakLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GitlabWeakLogin +} + +// GetGitlabWeakLoginOk returns a tuple with the GitlabWeakLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGitlabWeakLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GitlabWeakLogin) { + return nil, false + } + return o.GitlabWeakLogin, true +} + +// HasGitlabWeakLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGitlabWeakLogin() bool { + if o != nil && !IsNil(o.GitlabWeakLogin) { + return true + } + + return false +} + +// SetGitlabWeakLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GitlabWeakLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGitlabWeakLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GitlabWeakLogin = &v +} + +// GetGlpiDefaultLogin returns the GlpiDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGlpiDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GlpiDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GlpiDefaultLogin +} + +// GetGlpiDefaultLoginOk returns a tuple with the GlpiDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGlpiDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GlpiDefaultLogin) { + return nil, false + } + return o.GlpiDefaultLogin, true +} + +// HasGlpiDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGlpiDefaultLogin() bool { + if o != nil && !IsNil(o.GlpiDefaultLogin) { + return true + } + + return false +} + +// SetGlpiDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GlpiDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGlpiDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GlpiDefaultLogin = &v +} + +// GetGrafanaDefaultLogin returns the GrafanaDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGrafanaDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.GrafanaDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.GrafanaDefaultLogin +} + +// GetGrafanaDefaultLoginOk returns a tuple with the GrafanaDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetGrafanaDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.GrafanaDefaultLogin) { + return nil, false + } + return o.GrafanaDefaultLogin, true +} + +// HasGrafanaDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasGrafanaDefaultLogin() bool { + if o != nil && !IsNil(o.GrafanaDefaultLogin) { + return true + } + + return false +} + +// SetGrafanaDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GrafanaDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetGrafanaDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.GrafanaDefaultLogin = &v +} + +// GetInfobloxNetmriRailsCookieRce returns the InfobloxNetmriRailsCookieRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetInfobloxNetmriRailsCookieRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.InfobloxNetmriRailsCookieRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.InfobloxNetmriRailsCookieRce +} + +// GetInfobloxNetmriRailsCookieRceOk returns a tuple with the InfobloxNetmriRailsCookieRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetInfobloxNetmriRailsCookieRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.InfobloxNetmriRailsCookieRce) { + return nil, false + } + return o.InfobloxNetmriRailsCookieRce, true +} + +// HasInfobloxNetmriRailsCookieRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasInfobloxNetmriRailsCookieRce() bool { + if o != nil && !IsNil(o.InfobloxNetmriRailsCookieRce) { + return true + } + + return false +} + +// SetInfobloxNetmriRailsCookieRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the InfobloxNetmriRailsCookieRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetInfobloxNetmriRailsCookieRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.InfobloxNetmriRailsCookieRce = &v +} + +// GetIotawattAppExposure returns the IotawattAppExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetIotawattAppExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.IotawattAppExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.IotawattAppExposure +} + +// GetIotawattAppExposureOk returns a tuple with the IotawattAppExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetIotawattAppExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.IotawattAppExposure) { + return nil, false + } + return o.IotawattAppExposure, true +} + +// HasIotawattAppExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasIotawattAppExposure() bool { + if o != nil && !IsNil(o.IotawattAppExposure) { + return true + } + + return false +} + +// SetIotawattAppExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the IotawattAppExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetIotawattAppExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.IotawattAppExposure = &v +} + +// GetJenkinsWeakPassword returns the JenkinsWeakPassword field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJenkinsWeakPassword() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JenkinsWeakPassword) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JenkinsWeakPassword +} + +// GetJenkinsWeakPasswordOk returns a tuple with the JenkinsWeakPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJenkinsWeakPasswordOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JenkinsWeakPassword) { + return nil, false + } + return o.JenkinsWeakPassword, true +} + +// HasJenkinsWeakPassword returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJenkinsWeakPassword() bool { + if o != nil && !IsNil(o.JenkinsWeakPassword) { + return true + } + + return false +} + +// SetJenkinsWeakPassword gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JenkinsWeakPassword field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJenkinsWeakPassword(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JenkinsWeakPassword = &v +} + +// GetJolokiaTomcatCredsLeak returns the JolokiaTomcatCredsLeak field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJolokiaTomcatCredsLeak() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JolokiaTomcatCredsLeak) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JolokiaTomcatCredsLeak +} + +// GetJolokiaTomcatCredsLeakOk returns a tuple with the JolokiaTomcatCredsLeak field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJolokiaTomcatCredsLeakOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JolokiaTomcatCredsLeak) { + return nil, false + } + return o.JolokiaTomcatCredsLeak, true +} + +// HasJolokiaTomcatCredsLeak returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJolokiaTomcatCredsLeak() bool { + if o != nil && !IsNil(o.JolokiaTomcatCredsLeak) { + return true + } + + return false +} + +// SetJolokiaTomcatCredsLeak gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JolokiaTomcatCredsLeak field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJolokiaTomcatCredsLeak(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JolokiaTomcatCredsLeak = &v +} + +// GetJoomlaComBookingComponent returns the JoomlaComBookingComponent field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaComBookingComponent() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaComBookingComponent) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaComBookingComponent +} + +// GetJoomlaComBookingComponentOk returns a tuple with the JoomlaComBookingComponent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaComBookingComponentOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaComBookingComponent) { + return nil, false + } + return o.JoomlaComBookingComponent, true +} + +// HasJoomlaComBookingComponent returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaComBookingComponent() bool { + if o != nil && !IsNil(o.JoomlaComBookingComponent) { + return true + } + + return false +} + +// SetJoomlaComBookingComponent gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaComBookingComponent field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaComBookingComponent(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaComBookingComponent = &v +} + +// GetJoomlaComFabrikLfi returns the JoomlaComFabrikLfi field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaComFabrikLfi() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaComFabrikLfi) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaComFabrikLfi +} + +// GetJoomlaComFabrikLfiOk returns a tuple with the JoomlaComFabrikLfi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaComFabrikLfiOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaComFabrikLfi) { + return nil, false + } + return o.JoomlaComFabrikLfi, true +} + +// HasJoomlaComFabrikLfi returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaComFabrikLfi() bool { + if o != nil && !IsNil(o.JoomlaComFabrikLfi) { + return true + } + + return false +} + +// SetJoomlaComFabrikLfi gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaComFabrikLfi field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaComFabrikLfi(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaComFabrikLfi = &v +} + +// GetJoomlaDepartmentSqli returns the JoomlaDepartmentSqli field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaDepartmentSqli() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaDepartmentSqli) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaDepartmentSqli +} + +// GetJoomlaDepartmentSqliOk returns a tuple with the JoomlaDepartmentSqli field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaDepartmentSqliOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaDepartmentSqli) { + return nil, false + } + return o.JoomlaDepartmentSqli, true +} + +// HasJoomlaDepartmentSqli returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaDepartmentSqli() bool { + if o != nil && !IsNil(o.JoomlaDepartmentSqli) { + return true + } + + return false +} + +// SetJoomlaDepartmentSqli gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaDepartmentSqli field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaDepartmentSqli(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaDepartmentSqli = &v +} + +// GetJoomlaEasyshopLfi returns the JoomlaEasyshopLfi field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaEasyshopLfi() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaEasyshopLfi) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaEasyshopLfi +} + +// GetJoomlaEasyshopLfiOk returns a tuple with the JoomlaEasyshopLfi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaEasyshopLfiOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaEasyshopLfi) { + return nil, false + } + return o.JoomlaEasyshopLfi, true +} + +// HasJoomlaEasyshopLfi returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaEasyshopLfi() bool { + if o != nil && !IsNil(o.JoomlaEasyshopLfi) { + return true + } + + return false +} + +// SetJoomlaEasyshopLfi gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaEasyshopLfi field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaEasyshopLfi(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaEasyshopLfi = &v +} + +// GetJoomlaIpropertyXss returns the JoomlaIpropertyXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaIpropertyXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaIpropertyXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaIpropertyXss +} + +// GetJoomlaIpropertyXssOk returns a tuple with the JoomlaIpropertyXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaIpropertyXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaIpropertyXss) { + return nil, false + } + return o.JoomlaIpropertyXss, true +} + +// HasJoomlaIpropertyXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaIpropertyXss() bool { + if o != nil && !IsNil(o.JoomlaIpropertyXss) { + return true + } + + return false +} + +// SetJoomlaIpropertyXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaIpropertyXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaIpropertyXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaIpropertyXss = &v +} + +// GetJoomlaJlexXss returns the JoomlaJlexXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJlexXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaJlexXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaJlexXss +} + +// GetJoomlaJlexXssOk returns a tuple with the JoomlaJlexXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJlexXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaJlexXss) { + return nil, false + } + return o.JoomlaJlexXss, true +} + +// HasJoomlaJlexXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaJlexXss() bool { + if o != nil && !IsNil(o.JoomlaJlexXss) { + return true + } + + return false +} + +// SetJoomlaJlexXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJlexXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaJlexXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaJlexXss = &v +} + +// GetJoomlaJmarketXss returns the JoomlaJmarketXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJmarketXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaJmarketXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaJmarketXss +} + +// GetJoomlaJmarketXssOk returns a tuple with the JoomlaJmarketXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJmarketXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaJmarketXss) { + return nil, false + } + return o.JoomlaJmarketXss, true +} + +// HasJoomlaJmarketXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaJmarketXss() bool { + if o != nil && !IsNil(o.JoomlaJmarketXss) { + return true + } + + return false +} + +// SetJoomlaJmarketXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJmarketXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaJmarketXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaJmarketXss = &v +} + +// GetJoomlaJoombriCareersXss returns the JoomlaJoombriCareersXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJoombriCareersXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaJoombriCareersXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaJoombriCareersXss +} + +// GetJoomlaJoombriCareersXssOk returns a tuple with the JoomlaJoombriCareersXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJoombriCareersXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaJoombriCareersXss) { + return nil, false + } + return o.JoomlaJoombriCareersXss, true +} + +// HasJoomlaJoombriCareersXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaJoombriCareersXss() bool { + if o != nil && !IsNil(o.JoomlaJoombriCareersXss) { + return true + } + + return false +} + +// SetJoomlaJoombriCareersXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJoombriCareersXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaJoombriCareersXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaJoombriCareersXss = &v +} + +// GetJoomlaJvehiclesLfi returns the JoomlaJvehiclesLfi field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJvehiclesLfi() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaJvehiclesLfi) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaJvehiclesLfi +} + +// GetJoomlaJvehiclesLfiOk returns a tuple with the JoomlaJvehiclesLfi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJvehiclesLfiOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaJvehiclesLfi) { + return nil, false + } + return o.JoomlaJvehiclesLfi, true +} + +// HasJoomlaJvehiclesLfi returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaJvehiclesLfi() bool { + if o != nil && !IsNil(o.JoomlaJvehiclesLfi) { + return true + } + + return false +} + +// SetJoomlaJvehiclesLfi gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJvehiclesLfi field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaJvehiclesLfi(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaJvehiclesLfi = &v +} + +// GetJoomlaJvtwitterXss returns the JoomlaJvtwitterXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJvtwitterXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaJvtwitterXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaJvtwitterXss +} + +// GetJoomlaJvtwitterXssOk returns a tuple with the JoomlaJvtwitterXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaJvtwitterXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaJvtwitterXss) { + return nil, false + } + return o.JoomlaJvtwitterXss, true +} + +// HasJoomlaJvtwitterXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaJvtwitterXss() bool { + if o != nil && !IsNil(o.JoomlaJvtwitterXss) { + return true + } + + return false +} + +// SetJoomlaJvtwitterXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJvtwitterXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaJvtwitterXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaJvtwitterXss = &v +} + +// GetJoomlaMarvikshopSqli returns the JoomlaMarvikshopSqli field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaMarvikshopSqli() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaMarvikshopSqli) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaMarvikshopSqli +} + +// GetJoomlaMarvikshopSqliOk returns a tuple with the JoomlaMarvikshopSqli field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaMarvikshopSqliOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaMarvikshopSqli) { + return nil, false + } + return o.JoomlaMarvikshopSqli, true +} + +// HasJoomlaMarvikshopSqli returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaMarvikshopSqli() bool { + if o != nil && !IsNil(o.JoomlaMarvikshopSqli) { + return true + } + + return false +} + +// SetJoomlaMarvikshopSqli gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaMarvikshopSqli field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaMarvikshopSqli(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaMarvikshopSqli = &v +} + +// GetJoomlaMarvikshopXss returns the JoomlaMarvikshopXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaMarvikshopXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaMarvikshopXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaMarvikshopXss +} + +// GetJoomlaMarvikshopXssOk returns a tuple with the JoomlaMarvikshopXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaMarvikshopXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaMarvikshopXss) { + return nil, false + } + return o.JoomlaMarvikshopXss, true +} + +// HasJoomlaMarvikshopXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaMarvikshopXss() bool { + if o != nil && !IsNil(o.JoomlaMarvikshopXss) { + return true + } + + return false +} + +// SetJoomlaMarvikshopXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaMarvikshopXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaMarvikshopXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaMarvikshopXss = &v +} + +// GetJoomlaSolidresXss returns the JoomlaSolidresXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaSolidresXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JoomlaSolidresXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JoomlaSolidresXss +} + +// GetJoomlaSolidresXssOk returns a tuple with the JoomlaSolidresXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJoomlaSolidresXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JoomlaSolidresXss) { + return nil, false + } + return o.JoomlaSolidresXss, true +} + +// HasJoomlaSolidresXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJoomlaSolidresXss() bool { + if o != nil && !IsNil(o.JoomlaSolidresXss) { + return true + } + + return false +} + +// SetJoomlaSolidresXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaSolidresXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJoomlaSolidresXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JoomlaSolidresXss = &v +} + +// GetJupyterNotebookRce returns the JupyterNotebookRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJupyterNotebookRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.JupyterNotebookRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.JupyterNotebookRce +} + +// GetJupyterNotebookRceOk returns a tuple with the JupyterNotebookRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetJupyterNotebookRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.JupyterNotebookRce) { + return nil, false + } + return o.JupyterNotebookRce, true +} + +// HasJupyterNotebookRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasJupyterNotebookRce() bool { + if o != nil && !IsNil(o.JupyterNotebookRce) { + return true + } + + return false +} + +// SetJupyterNotebookRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JupyterNotebookRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetJupyterNotebookRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.JupyterNotebookRce = &v +} + +// GetKafkaCenterDefaultLogin returns the KafkaCenterDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetKafkaCenterDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.KafkaCenterDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.KafkaCenterDefaultLogin +} + +// GetKafkaCenterDefaultLoginOk returns a tuple with the KafkaCenterDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetKafkaCenterDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.KafkaCenterDefaultLogin) { + return nil, false + } + return o.KafkaCenterDefaultLogin, true +} + +// HasKafkaCenterDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasKafkaCenterDefaultLogin() bool { + if o != nil && !IsNil(o.KafkaCenterDefaultLogin) { + return true + } + + return false +} + +// SetKafkaCenterDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the KafkaCenterDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetKafkaCenterDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.KafkaCenterDefaultLogin = &v +} + +// GetKarafDefaultLogin returns the KarafDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetKarafDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.KarafDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.KarafDefaultLogin +} + +// GetKarafDefaultLoginOk returns a tuple with the KarafDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetKarafDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.KarafDefaultLogin) { + return nil, false + } + return o.KarafDefaultLogin, true +} + +// HasKarafDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasKarafDefaultLogin() bool { + if o != nil && !IsNil(o.KarafDefaultLogin) { + return true + } + + return false +} + +// SetKarafDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the KarafDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetKarafDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.KarafDefaultLogin = &v +} + +// GetKkfileviewSsrf returns the KkfileviewSsrf field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetKkfileviewSsrf() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.KkfileviewSsrf) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.KkfileviewSsrf +} + +// GetKkfileviewSsrfOk returns a tuple with the KkfileviewSsrf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetKkfileviewSsrfOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.KkfileviewSsrf) { + return nil, false + } + return o.KkfileviewSsrf, true +} + +// HasKkfileviewSsrf returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasKkfileviewSsrf() bool { + if o != nil && !IsNil(o.KkfileviewSsrf) { + return true + } + + return false +} + +// SetKkfileviewSsrf gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the KkfileviewSsrf field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetKkfileviewSsrf(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.KkfileviewSsrf = &v +} + +// GetKylinDefaultLogin returns the KylinDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetKylinDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.KylinDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.KylinDefaultLogin +} + +// GetKylinDefaultLoginOk returns a tuple with the KylinDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetKylinDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.KylinDefaultLogin) { + return nil, false + } + return o.KylinDefaultLogin, true +} + +// HasKylinDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasKylinDefaultLogin() bool { + if o != nil && !IsNil(o.KylinDefaultLogin) { + return true + } + + return false +} + +// SetKylinDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the KylinDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetKylinDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.KylinDefaultLogin = &v +} + +// GetLuceeRce returns the LuceeRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetLuceeRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.LuceeRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.LuceeRce +} + +// GetLuceeRceOk returns a tuple with the LuceeRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetLuceeRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.LuceeRce) { + return nil, false + } + return o.LuceeRce, true +} + +// HasLuceeRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasLuceeRce() bool { + if o != nil && !IsNil(o.LuceeRce) { + return true + } + + return false +} + +// SetLuceeRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LuceeRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetLuceeRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.LuceeRce = &v +} + +// GetMalwaredByobRce returns the MalwaredByobRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMalwaredByobRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.MalwaredByobRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.MalwaredByobRce +} + +// GetMalwaredByobRceOk returns a tuple with the MalwaredByobRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMalwaredByobRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.MalwaredByobRce) { + return nil, false + } + return o.MalwaredByobRce, true +} + +// HasMalwaredByobRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMalwaredByobRce() bool { + if o != nil && !IsNil(o.MalwaredByobRce) { + return true + } + + return false +} + +// SetMalwaredByobRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MalwaredByobRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMalwaredByobRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.MalwaredByobRce = &v +} + +// GetMdbDatabaseFile returns the MdbDatabaseFile field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMdbDatabaseFile() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.MdbDatabaseFile) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.MdbDatabaseFile +} + +// GetMdbDatabaseFileOk returns a tuple with the MdbDatabaseFile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMdbDatabaseFileOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.MdbDatabaseFile) { + return nil, false + } + return o.MdbDatabaseFile, true +} + +// HasMdbDatabaseFile returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMdbDatabaseFile() bool { + if o != nil && !IsNil(o.MdbDatabaseFile) { + return true + } + + return false +} + +// SetMdbDatabaseFile gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MdbDatabaseFile field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMdbDatabaseFile(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.MdbDatabaseFile = &v +} + +// GetMinioDefaultLogin returns the MinioDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMinioDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.MinioDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.MinioDefaultLogin +} + +// GetMinioDefaultLoginOk returns a tuple with the MinioDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMinioDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.MinioDefaultLogin) { + return nil, false + } + return o.MinioDefaultLogin, true +} + +// HasMinioDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMinioDefaultLogin() bool { + if o != nil && !IsNil(o.MinioDefaultLogin) { + return true + } + + return false +} + +// SetMinioDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MinioDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMinioDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.MinioDefaultLogin = &v +} + +// GetMssqlDefaultCredentials returns the MssqlDefaultCredentials field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMssqlDefaultCredentials() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.MssqlDefaultCredentials) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.MssqlDefaultCredentials +} + +// GetMssqlDefaultCredentialsOk returns a tuple with the MssqlDefaultCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMssqlDefaultCredentialsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.MssqlDefaultCredentials) { + return nil, false + } + return o.MssqlDefaultCredentials, true +} + +// HasMssqlDefaultCredentials returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMssqlDefaultCredentials() bool { + if o != nil && !IsNil(o.MssqlDefaultCredentials) { + return true + } + + return false +} + +// SetMssqlDefaultCredentials gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MssqlDefaultCredentials field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMssqlDefaultCredentials(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.MssqlDefaultCredentials = &v +} + +// GetMssqlExposed returns the MssqlExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMssqlExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.MssqlExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.MssqlExposed +} + +// GetMssqlExposedOk returns a tuple with the MssqlExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMssqlExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.MssqlExposed) { + return nil, false + } + return o.MssqlExposed, true +} + +// HasMssqlExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMssqlExposed() bool { + if o != nil && !IsNil(o.MssqlExposed) { + return true + } + + return false +} + +// SetMssqlExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MssqlExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMssqlExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.MssqlExposed = &v +} + +// GetMysqlDefaultCredentials returns the MysqlDefaultCredentials field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMysqlDefaultCredentials() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.MysqlDefaultCredentials) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.MysqlDefaultCredentials +} + +// GetMysqlDefaultCredentialsOk returns a tuple with the MysqlDefaultCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMysqlDefaultCredentialsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.MysqlDefaultCredentials) { + return nil, false + } + return o.MysqlDefaultCredentials, true +} + +// HasMysqlDefaultCredentials returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMysqlDefaultCredentials() bool { + if o != nil && !IsNil(o.MysqlDefaultCredentials) { + return true + } + + return false +} + +// SetMysqlDefaultCredentials gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MysqlDefaultCredentials field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMysqlDefaultCredentials(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.MysqlDefaultCredentials = &v +} + +// GetMysqlExposed returns the MysqlExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMysqlExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.MysqlExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.MysqlExposed +} + +// GetMysqlExposedOk returns a tuple with the MysqlExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetMysqlExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.MysqlExposed) { + return nil, false + } + return o.MysqlExposed, true +} + +// HasMysqlExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasMysqlExposed() bool { + if o != nil && !IsNil(o.MysqlExposed) { + return true + } + + return false +} + +// SetMysqlExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MysqlExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetMysqlExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.MysqlExposed = &v +} + +// GetNginxMergeSlashesPathTraversal returns the NginxMergeSlashesPathTraversal field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxMergeSlashesPathTraversal() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.NginxMergeSlashesPathTraversal) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.NginxMergeSlashesPathTraversal +} + +// GetNginxMergeSlashesPathTraversalOk returns a tuple with the NginxMergeSlashesPathTraversal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxMergeSlashesPathTraversalOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.NginxMergeSlashesPathTraversal) { + return nil, false + } + return o.NginxMergeSlashesPathTraversal, true +} + +// HasNginxMergeSlashesPathTraversal returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasNginxMergeSlashesPathTraversal() bool { + if o != nil && !IsNil(o.NginxMergeSlashesPathTraversal) { + return true + } + + return false +} + +// SetNginxMergeSlashesPathTraversal gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxMergeSlashesPathTraversal field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetNginxMergeSlashesPathTraversal(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.NginxMergeSlashesPathTraversal = &v +} + +// GetNginxModuleVtsXss returns the NginxModuleVtsXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxModuleVtsXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.NginxModuleVtsXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.NginxModuleVtsXss +} + +// GetNginxModuleVtsXssOk returns a tuple with the NginxModuleVtsXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxModuleVtsXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.NginxModuleVtsXss) { + return nil, false + } + return o.NginxModuleVtsXss, true +} + +// HasNginxModuleVtsXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasNginxModuleVtsXss() bool { + if o != nil && !IsNil(o.NginxModuleVtsXss) { + return true + } + + return false +} + +// SetNginxModuleVtsXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxModuleVtsXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetNginxModuleVtsXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.NginxModuleVtsXss = &v +} + +// GetNginxProxyManagerDefaultLogin returns the NginxProxyManagerDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxProxyManagerDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.NginxProxyManagerDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.NginxProxyManagerDefaultLogin +} + +// GetNginxProxyManagerDefaultLoginOk returns a tuple with the NginxProxyManagerDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxProxyManagerDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.NginxProxyManagerDefaultLogin) { + return nil, false + } + return o.NginxProxyManagerDefaultLogin, true +} + +// HasNginxProxyManagerDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasNginxProxyManagerDefaultLogin() bool { + if o != nil && !IsNil(o.NginxProxyManagerDefaultLogin) { + return true + } + + return false +} + +// SetNginxProxyManagerDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxProxyManagerDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetNginxProxyManagerDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.NginxProxyManagerDefaultLogin = &v +} + +// GetNginxWebuiRce returns the NginxWebuiRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxWebuiRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.NginxWebuiRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.NginxWebuiRce +} + +// GetNginxWebuiRceOk returns a tuple with the NginxWebuiRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxWebuiRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.NginxWebuiRce) { + return nil, false + } + return o.NginxWebuiRce, true +} + +// HasNginxWebuiRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasNginxWebuiRce() bool { + if o != nil && !IsNil(o.NginxWebuiRce) { + return true + } + + return false +} + +// SetNginxWebuiRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxWebuiRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetNginxWebuiRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.NginxWebuiRce = &v +} + +// GetNginxwebuiRuncmdRce returns the NginxwebuiRuncmdRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxwebuiRuncmdRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.NginxwebuiRuncmdRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.NginxwebuiRuncmdRce +} + +// GetNginxwebuiRuncmdRceOk returns a tuple with the NginxwebuiRuncmdRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNginxwebuiRuncmdRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.NginxwebuiRuncmdRce) { + return nil, false + } + return o.NginxwebuiRuncmdRce, true +} + +// HasNginxwebuiRuncmdRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasNginxwebuiRuncmdRce() bool { + if o != nil && !IsNil(o.NginxwebuiRuncmdRce) { + return true + } + + return false +} + +// SetNginxwebuiRuncmdRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxwebuiRuncmdRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetNginxwebuiRuncmdRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.NginxwebuiRuncmdRce = &v +} + +// GetNodeEcstaticInternalPath returns the NodeEcstaticInternalPath field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNodeEcstaticInternalPath() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.NodeEcstaticInternalPath) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.NodeEcstaticInternalPath +} + +// GetNodeEcstaticInternalPathOk returns a tuple with the NodeEcstaticInternalPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNodeEcstaticInternalPathOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.NodeEcstaticInternalPath) { + return nil, false + } + return o.NodeEcstaticInternalPath, true +} + +// HasNodeEcstaticInternalPath returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasNodeEcstaticInternalPath() bool { + if o != nil && !IsNil(o.NodeEcstaticInternalPath) { + return true + } + + return false +} + +// SetNodeEcstaticInternalPath gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NodeEcstaticInternalPath field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetNodeEcstaticInternalPath(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.NodeEcstaticInternalPath = &v +} + +// GetNoderedDefaultLogin returns the NoderedDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNoderedDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.NoderedDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.NoderedDefaultLogin +} + +// GetNoderedDefaultLoginOk returns a tuple with the NoderedDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetNoderedDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.NoderedDefaultLogin) { + return nil, false + } + return o.NoderedDefaultLogin, true +} + +// HasNoderedDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasNoderedDefaultLogin() bool { + if o != nil && !IsNil(o.NoderedDefaultLogin) { + return true + } + + return false +} + +// SetNoderedDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NoderedDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetNoderedDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.NoderedDefaultLogin = &v +} + +// GetOpenmediavaultDefaultLogin returns the OpenmediavaultDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetOpenmediavaultDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.OpenmediavaultDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.OpenmediavaultDefaultLogin +} + +// GetOpenmediavaultDefaultLoginOk returns a tuple with the OpenmediavaultDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetOpenmediavaultDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.OpenmediavaultDefaultLogin) { + return nil, false + } + return o.OpenmediavaultDefaultLogin, true +} + +// HasOpenmediavaultDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasOpenmediavaultDefaultLogin() bool { + if o != nil && !IsNil(o.OpenmediavaultDefaultLogin) { + return true + } + + return false +} + +// SetOpenmediavaultDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the OpenmediavaultDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetOpenmediavaultDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.OpenmediavaultDefaultLogin = &v +} + +// GetOpensearchDashboardDefaultLogin returns the OpensearchDashboardDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetOpensearchDashboardDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.OpensearchDashboardDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.OpensearchDashboardDefaultLogin +} + +// GetOpensearchDashboardDefaultLoginOk returns a tuple with the OpensearchDashboardDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetOpensearchDashboardDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.OpensearchDashboardDefaultLogin) { + return nil, false + } + return o.OpensearchDashboardDefaultLogin, true +} + +// HasOpensearchDashboardDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasOpensearchDashboardDefaultLogin() bool { + if o != nil && !IsNil(o.OpensearchDashboardDefaultLogin) { + return true + } + + return false +} + +// SetOpensearchDashboardDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the OpensearchDashboardDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetOpensearchDashboardDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.OpensearchDashboardDefaultLogin = &v +} + +// GetPhpTimeclockXss returns the PhpTimeclockXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpTimeclockXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PhpTimeclockXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PhpTimeclockXss +} + +// GetPhpTimeclockXssOk returns a tuple with the PhpTimeclockXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpTimeclockXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PhpTimeclockXss) { + return nil, false + } + return o.PhpTimeclockXss, true +} + +// HasPhpTimeclockXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPhpTimeclockXss() bool { + if o != nil && !IsNil(o.PhpTimeclockXss) { + return true + } + + return false +} + +// SetPhpTimeclockXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpTimeclockXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPhpTimeclockXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PhpTimeclockXss = &v +} + +// GetPhpXdebugRce returns the PhpXdebugRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpXdebugRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PhpXdebugRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PhpXdebugRce +} + +// GetPhpXdebugRceOk returns a tuple with the PhpXdebugRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpXdebugRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PhpXdebugRce) { + return nil, false + } + return o.PhpXdebugRce, true +} + +// HasPhpXdebugRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPhpXdebugRce() bool { + if o != nil && !IsNil(o.PhpXdebugRce) { + return true + } + + return false +} + +// SetPhpXdebugRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpXdebugRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPhpXdebugRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PhpXdebugRce = &v +} + +// GetPhpZerodiumBackdoorRce returns the PhpZerodiumBackdoorRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpZerodiumBackdoorRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PhpZerodiumBackdoorRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PhpZerodiumBackdoorRce +} + +// GetPhpZerodiumBackdoorRceOk returns a tuple with the PhpZerodiumBackdoorRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpZerodiumBackdoorRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PhpZerodiumBackdoorRce) { + return nil, false + } + return o.PhpZerodiumBackdoorRce, true +} + +// HasPhpZerodiumBackdoorRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPhpZerodiumBackdoorRce() bool { + if o != nil && !IsNil(o.PhpZerodiumBackdoorRce) { + return true + } + + return false +} + +// SetPhpZerodiumBackdoorRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpZerodiumBackdoorRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPhpZerodiumBackdoorRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PhpZerodiumBackdoorRce = &v +} + +// GetPhpldapadminXss returns the PhpldapadminXss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpldapadminXss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PhpldapadminXss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PhpldapadminXss +} + +// GetPhpldapadminXssOk returns a tuple with the PhpldapadminXss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpldapadminXssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PhpldapadminXss) { + return nil, false + } + return o.PhpldapadminXss, true +} + +// HasPhpldapadminXss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPhpldapadminXss() bool { + if o != nil && !IsNil(o.PhpldapadminXss) { + return true + } + + return false +} + +// SetPhpldapadminXss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpldapadminXss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPhpldapadminXss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PhpldapadminXss = &v +} + +// GetPhpmyadminDefaultLogin returns the PhpmyadminDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpmyadminDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PhpmyadminDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PhpmyadminDefaultLogin +} + +// GetPhpmyadminDefaultLoginOk returns a tuple with the PhpmyadminDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpmyadminDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PhpmyadminDefaultLogin) { + return nil, false + } + return o.PhpmyadminDefaultLogin, true +} + +// HasPhpmyadminDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPhpmyadminDefaultLogin() bool { + if o != nil && !IsNil(o.PhpmyadminDefaultLogin) { + return true + } + + return false +} + +// SetPhpmyadminDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpmyadminDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPhpmyadminDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PhpmyadminDefaultLogin = &v +} + +// GetPhpmyadminUnauthAccess returns the PhpmyadminUnauthAccess field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpmyadminUnauthAccess() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PhpmyadminUnauthAccess) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PhpmyadminUnauthAccess +} + +// GetPhpmyadminUnauthAccessOk returns a tuple with the PhpmyadminUnauthAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpmyadminUnauthAccessOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PhpmyadminUnauthAccess) { + return nil, false + } + return o.PhpmyadminUnauthAccess, true +} + +// HasPhpmyadminUnauthAccess returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPhpmyadminUnauthAccess() bool { + if o != nil && !IsNil(o.PhpmyadminUnauthAccess) { + return true + } + + return false +} + +// SetPhpmyadminUnauthAccess gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpmyadminUnauthAccess field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPhpmyadminUnauthAccess(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PhpmyadminUnauthAccess = &v +} + +// GetPhpokSqli returns the PhpokSqli field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpokSqli() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PhpokSqli) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PhpokSqli +} + +// GetPhpokSqliOk returns a tuple with the PhpokSqli field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpokSqliOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PhpokSqli) { + return nil, false + } + return o.PhpokSqli, true +} + +// HasPhpokSqli returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPhpokSqli() bool { + if o != nil && !IsNil(o.PhpokSqli) { + return true + } + + return false +} + +// SetPhpokSqli gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpokSqli field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPhpokSqli(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PhpokSqli = &v +} + +// GetPhpwikiLfi returns the PhpwikiLfi field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpwikiLfi() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PhpwikiLfi) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PhpwikiLfi +} + +// GetPhpwikiLfiOk returns a tuple with the PhpwikiLfi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPhpwikiLfiOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PhpwikiLfi) { + return nil, false + } + return o.PhpwikiLfi, true +} + +// HasPhpwikiLfi returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPhpwikiLfi() bool { + if o != nil && !IsNil(o.PhpwikiLfi) { + return true + } + + return false +} + +// SetPhpwikiLfi gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpwikiLfi field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPhpwikiLfi(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PhpwikiLfi = &v +} + +// GetPsqlDefaultCredentials returns the PsqlDefaultCredentials field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPsqlDefaultCredentials() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PsqlDefaultCredentials) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PsqlDefaultCredentials +} + +// GetPsqlDefaultCredentialsOk returns a tuple with the PsqlDefaultCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPsqlDefaultCredentialsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PsqlDefaultCredentials) { + return nil, false + } + return o.PsqlDefaultCredentials, true +} + +// HasPsqlDefaultCredentials returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPsqlDefaultCredentials() bool { + if o != nil && !IsNil(o.PsqlDefaultCredentials) { + return true + } + + return false +} + +// SetPsqlDefaultCredentials gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PsqlDefaultCredentials field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPsqlDefaultCredentials(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PsqlDefaultCredentials = &v +} + +// GetPsqlExposed returns the PsqlExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPsqlExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PsqlExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PsqlExposed +} + +// GetPsqlExposedOk returns a tuple with the PsqlExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPsqlExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PsqlExposed) { + return nil, false + } + return o.PsqlExposed, true +} + +// HasPsqlExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPsqlExposed() bool { + if o != nil && !IsNil(o.PsqlExposed) { + return true + } + + return false +} + +// SetPsqlExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PsqlExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPsqlExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PsqlExposed = &v +} + +// GetPrivateKeyExposure returns the PrivateKeyExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPrivateKeyExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.PrivateKeyExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.PrivateKeyExposure +} + +// GetPrivateKeyExposureOk returns a tuple with the PrivateKeyExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetPrivateKeyExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.PrivateKeyExposure) { + return nil, false + } + return o.PrivateKeyExposure, true +} + +// HasPrivateKeyExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasPrivateKeyExposure() bool { + if o != nil && !IsNil(o.PrivateKeyExposure) { + return true + } + + return false +} + +// SetPrivateKeyExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PrivateKeyExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetPrivateKeyExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.PrivateKeyExposure = &v +} + +// GetRabbitmqDefaultLogin returns the RabbitmqDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRabbitmqDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.RabbitmqDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.RabbitmqDefaultLogin +} + +// GetRabbitmqDefaultLoginOk returns a tuple with the RabbitmqDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRabbitmqDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.RabbitmqDefaultLogin) { + return nil, false + } + return o.RabbitmqDefaultLogin, true +} + +// HasRabbitmqDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasRabbitmqDefaultLogin() bool { + if o != nil && !IsNil(o.RabbitmqDefaultLogin) { + return true + } + + return false +} + +// SetRabbitmqDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RabbitmqDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetRabbitmqDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.RabbitmqDefaultLogin = &v +} + +// GetRails6Xss returns the Rails6Xss field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRails6Xss() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Rails6Xss) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Rails6Xss +} + +// GetRails6XssOk returns a tuple with the Rails6Xss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRails6XssOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Rails6Xss) { + return nil, false + } + return o.Rails6Xss, true +} + +// HasRails6Xss returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasRails6Xss() bool { + if o != nil && !IsNil(o.Rails6Xss) { + return true + } + + return false +} + +// SetRails6Xss gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Rails6Xss field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetRails6Xss(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Rails6Xss = &v +} + +// GetRangerDefaultLogin returns the RangerDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRangerDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.RangerDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.RangerDefaultLogin +} + +// GetRangerDefaultLoginOk returns a tuple with the RangerDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRangerDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.RangerDefaultLogin) { + return nil, false + } + return o.RangerDefaultLogin, true +} + +// HasRangerDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasRangerDefaultLogin() bool { + if o != nil && !IsNil(o.RangerDefaultLogin) { + return true + } + + return false +} + +// SetRangerDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RangerDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetRangerDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.RangerDefaultLogin = &v +} + +// GetReact2shell1 returns the React2shell1 field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReact2shell1() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.React2shell1) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.React2shell1 +} + +// GetReact2shell1Ok returns a tuple with the React2shell1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReact2shell1Ok() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.React2shell1) { + return nil, false + } + return o.React2shell1, true +} + +// HasReact2shell1 returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasReact2shell1() bool { + if o != nil && !IsNil(o.React2shell1) { + return true + } + + return false +} + +// SetReact2shell1 gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the React2shell1 field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetReact2shell1(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.React2shell1 = &v +} + +// GetReact2shell2 returns the React2shell2 field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReact2shell2() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.React2shell2) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.React2shell2 +} + +// GetReact2shell2Ok returns a tuple with the React2shell2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReact2shell2Ok() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.React2shell2) { + return nil, false + } + return o.React2shell2, true +} + +// HasReact2shell2 returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasReact2shell2() bool { + if o != nil && !IsNil(o.React2shell2) { + return true + } + + return false +} + +// SetReact2shell2 gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the React2shell2 field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetReact2shell2(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.React2shell2 = &v +} + +// GetReactDevelopmentBuild returns the ReactDevelopmentBuild field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReactDevelopmentBuild() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ReactDevelopmentBuild) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ReactDevelopmentBuild +} + +// GetReactDevelopmentBuildOk returns a tuple with the ReactDevelopmentBuild field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetReactDevelopmentBuildOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ReactDevelopmentBuild) { + return nil, false + } + return o.ReactDevelopmentBuild, true +} + +// HasReactDevelopmentBuild returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasReactDevelopmentBuild() bool { + if o != nil && !IsNil(o.ReactDevelopmentBuild) { + return true + } + + return false +} + +// SetReactDevelopmentBuild gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ReactDevelopmentBuild field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetReactDevelopmentBuild(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ReactDevelopmentBuild = &v +} + +// GetRundeckDefaultLogin returns the RundeckDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRundeckDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.RundeckDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.RundeckDefaultLogin +} + +// GetRundeckDefaultLoginOk returns a tuple with the RundeckDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRundeckDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.RundeckDefaultLogin) { + return nil, false + } + return o.RundeckDefaultLogin, true +} + +// HasRundeckDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasRundeckDefaultLogin() bool { + if o != nil && !IsNil(o.RundeckDefaultLogin) { + return true + } + + return false +} + +// SetRundeckDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RundeckDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetRundeckDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.RundeckDefaultLogin = &v +} + +// GetRustyJoomla returns the RustyJoomla field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRustyJoomla() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.RustyJoomla) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.RustyJoomla +} + +// GetRustyJoomlaOk returns a tuple with the RustyJoomla field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetRustyJoomlaOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.RustyJoomla) { + return nil, false + } + return o.RustyJoomla, true +} + +// HasRustyJoomla returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasRustyJoomla() bool { + if o != nil && !IsNil(o.RustyJoomla) { + return true + } + + return false +} + +// SetRustyJoomla gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RustyJoomla field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetRustyJoomla(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.RustyJoomla = &v +} + +// GetSangforCphpRce returns the SangforCphpRce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSangforCphpRce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SangforCphpRce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SangforCphpRce +} + +// GetSangforCphpRceOk returns a tuple with the SangforCphpRce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSangforCphpRceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SangforCphpRce) { + return nil, false + } + return o.SangforCphpRce, true +} + +// HasSangforCphpRce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSangforCphpRce() bool { + if o != nil && !IsNil(o.SangforCphpRce) { + return true + } + + return false +} + +// SetSangforCphpRce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SangforCphpRce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSangforCphpRce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SangforCphpRce = &v +} + +// GetSecretTokenRb returns the SecretTokenRb field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSecretTokenRb() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SecretTokenRb) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SecretTokenRb +} + +// GetSecretTokenRbOk returns a tuple with the SecretTokenRb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSecretTokenRbOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SecretTokenRb) { + return nil, false + } + return o.SecretTokenRb, true +} + +// HasSecretTokenRb returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSecretTokenRb() bool { + if o != nil && !IsNil(o.SecretTokenRb) { + return true + } + + return false +} + +// SetSecretTokenRb gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SecretTokenRb field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSecretTokenRb(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SecretTokenRb = &v +} + +// GetSeeyonCreatemysqlExposure returns the SeeyonCreatemysqlExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSeeyonCreatemysqlExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SeeyonCreatemysqlExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SeeyonCreatemysqlExposure +} + +// GetSeeyonCreatemysqlExposureOk returns a tuple with the SeeyonCreatemysqlExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSeeyonCreatemysqlExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SeeyonCreatemysqlExposure) { + return nil, false + } + return o.SeeyonCreatemysqlExposure, true +} + +// HasSeeyonCreatemysqlExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSeeyonCreatemysqlExposure() bool { + if o != nil && !IsNil(o.SeeyonCreatemysqlExposure) { + return true + } + + return false +} + +// SetSeeyonCreatemysqlExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SeeyonCreatemysqlExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSeeyonCreatemysqlExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SeeyonCreatemysqlExposure = &v +} + +// GetSeleniumExposure returns the SeleniumExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSeleniumExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SeleniumExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SeleniumExposure +} + +// GetSeleniumExposureOk returns a tuple with the SeleniumExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSeleniumExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SeleniumExposure) { + return nil, false + } + return o.SeleniumExposure, true +} + +// HasSeleniumExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSeleniumExposure() bool { + if o != nil && !IsNil(o.SeleniumExposure) { + return true + } + + return false +} + +// SetSeleniumExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SeleniumExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSeleniumExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SeleniumExposure = &v +} + +// GetSelfSignedSsl returns the SelfSignedSsl field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSelfSignedSsl() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SelfSignedSsl) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SelfSignedSsl +} + +// GetSelfSignedSslOk returns a tuple with the SelfSignedSsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSelfSignedSslOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SelfSignedSsl) { + return nil, false + } + return o.SelfSignedSsl, true +} + +// HasSelfSignedSsl returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSelfSignedSsl() bool { + if o != nil && !IsNil(o.SelfSignedSsl) { + return true + } + + return false +} + +// SetSelfSignedSsl gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SelfSignedSsl field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSelfSignedSsl(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SelfSignedSsl = &v +} + +// GetSonarqubeDefaultLogin returns the SonarqubeDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSonarqubeDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SonarqubeDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SonarqubeDefaultLogin +} + +// GetSonarqubeDefaultLoginOk returns a tuple with the SonarqubeDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSonarqubeDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SonarqubeDefaultLogin) { + return nil, false + } + return o.SonarqubeDefaultLogin, true +} + +// HasSonarqubeDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSonarqubeDefaultLogin() bool { + if o != nil && !IsNil(o.SonarqubeDefaultLogin) { + return true + } + + return false +} + +// SetSonarqubeDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SonarqubeDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSonarqubeDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SonarqubeDefaultLogin = &v +} + +// GetSshDefaultCredentials returns the SshDefaultCredentials field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSshDefaultCredentials() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SshDefaultCredentials) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SshDefaultCredentials +} + +// GetSshDefaultCredentialsOk returns a tuple with the SshDefaultCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSshDefaultCredentialsOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SshDefaultCredentials) { + return nil, false + } + return o.SshDefaultCredentials, true +} + +// HasSshDefaultCredentials returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSshDefaultCredentials() bool { + if o != nil && !IsNil(o.SshDefaultCredentials) { + return true + } + + return false +} + +// SetSshDefaultCredentials gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SshDefaultCredentials field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSshDefaultCredentials(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SshDefaultCredentials = &v +} + +// GetSshExposed returns the SshExposed field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSshExposed() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SshExposed) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SshExposed +} + +// GetSshExposedOk returns a tuple with the SshExposed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSshExposedOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SshExposed) { + return nil, false + } + return o.SshExposed, true +} + +// HasSshExposed returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSshExposed() bool { + if o != nil && !IsNil(o.SshExposed) { + return true + } + + return false +} + +// SetSshExposed gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SshExposed field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSshExposed(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SshExposed = &v +} + +// GetSshPasswordAuthEnabled returns the SshPasswordAuthEnabled field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSshPasswordAuthEnabled() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SshPasswordAuthEnabled) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SshPasswordAuthEnabled +} + +// GetSshPasswordAuthEnabledOk returns a tuple with the SshPasswordAuthEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSshPasswordAuthEnabledOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SshPasswordAuthEnabled) { + return nil, false + } + return o.SshPasswordAuthEnabled, true +} + +// HasSshPasswordAuthEnabled returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSshPasswordAuthEnabled() bool { + if o != nil && !IsNil(o.SshPasswordAuthEnabled) { + return true + } + + return false +} + +// SetSshPasswordAuthEnabled gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SshPasswordAuthEnabled field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSshPasswordAuthEnabled(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SshPasswordAuthEnabled = &v +} + +// GetThinkphp6ArbitraryWrite returns the Thinkphp6ArbitraryWrite field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp6ArbitraryWrite() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Thinkphp6ArbitraryWrite) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Thinkphp6ArbitraryWrite +} + +// GetThinkphp6ArbitraryWriteOk returns a tuple with the Thinkphp6ArbitraryWrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp6ArbitraryWriteOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Thinkphp6ArbitraryWrite) { + return nil, false + } + return o.Thinkphp6ArbitraryWrite, true +} + +// HasThinkphp6ArbitraryWrite returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasThinkphp6ArbitraryWrite() bool { + if o != nil && !IsNil(o.Thinkphp6ArbitraryWrite) { + return true + } + + return false +} + +// SetThinkphp6ArbitraryWrite gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp6ArbitraryWrite field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetThinkphp6ArbitraryWrite(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Thinkphp6ArbitraryWrite = &v +} + +// GetThinkphp2Rce returns the Thinkphp2Rce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp2Rce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Thinkphp2Rce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Thinkphp2Rce +} + +// GetThinkphp2RceOk returns a tuple with the Thinkphp2Rce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp2RceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Thinkphp2Rce) { + return nil, false + } + return o.Thinkphp2Rce, true +} + +// HasThinkphp2Rce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasThinkphp2Rce() bool { + if o != nil && !IsNil(o.Thinkphp2Rce) { + return true + } + + return false +} + +// SetThinkphp2Rce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp2Rce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetThinkphp2Rce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Thinkphp2Rce = &v +} + +// GetThinkphp501Rce returns the Thinkphp501Rce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp501Rce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Thinkphp501Rce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Thinkphp501Rce +} + +// GetThinkphp501RceOk returns a tuple with the Thinkphp501Rce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp501RceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Thinkphp501Rce) { + return nil, false + } + return o.Thinkphp501Rce, true +} + +// HasThinkphp501Rce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasThinkphp501Rce() bool { + if o != nil && !IsNil(o.Thinkphp501Rce) { + return true + } + + return false +} + +// SetThinkphp501Rce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp501Rce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetThinkphp501Rce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Thinkphp501Rce = &v +} + +// GetThinkphp5023Rce returns the Thinkphp5023Rce field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp5023Rce() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Thinkphp5023Rce) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Thinkphp5023Rce +} + +// GetThinkphp5023RceOk returns a tuple with the Thinkphp5023Rce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp5023RceOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Thinkphp5023Rce) { + return nil, false + } + return o.Thinkphp5023Rce, true +} + +// HasThinkphp5023Rce returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasThinkphp5023Rce() bool { + if o != nil && !IsNil(o.Thinkphp5023Rce) { + return true + } + + return false +} + +// SetThinkphp5023Rce gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp5023Rce field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetThinkphp5023Rce(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Thinkphp5023Rce = &v +} + +// GetThinkphp509InformationDisclosure returns the Thinkphp509InformationDisclosure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp509InformationDisclosure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Thinkphp509InformationDisclosure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Thinkphp509InformationDisclosure +} + +// GetThinkphp509InformationDisclosureOk returns a tuple with the Thinkphp509InformationDisclosure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetThinkphp509InformationDisclosureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Thinkphp509InformationDisclosure) { + return nil, false + } + return o.Thinkphp509InformationDisclosure, true +} + +// HasThinkphp509InformationDisclosure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasThinkphp509InformationDisclosure() bool { + if o != nil && !IsNil(o.Thinkphp509InformationDisclosure) { + return true + } + + return false +} + +// SetThinkphp509InformationDisclosure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp509InformationDisclosure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetThinkphp509InformationDisclosure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Thinkphp509InformationDisclosure = &v +} + +// GetTomcatDefaultLogin returns the TomcatDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTomcatDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.TomcatDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.TomcatDefaultLogin +} + +// GetTomcatDefaultLoginOk returns a tuple with the TomcatDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTomcatDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.TomcatDefaultLogin) { + return nil, false + } + return o.TomcatDefaultLogin, true +} + +// HasTomcatDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasTomcatDefaultLogin() bool { + if o != nil && !IsNil(o.TomcatDefaultLogin) { + return true + } + + return false +} + +// SetTomcatDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TomcatDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetTomcatDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.TomcatDefaultLogin = &v +} + +// GetTomcatExamplesLogin returns the TomcatExamplesLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTomcatExamplesLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.TomcatExamplesLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.TomcatExamplesLogin +} + +// GetTomcatExamplesLoginOk returns a tuple with the TomcatExamplesLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTomcatExamplesLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.TomcatExamplesLogin) { + return nil, false + } + return o.TomcatExamplesLogin, true +} + +// HasTomcatExamplesLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasTomcatExamplesLogin() bool { + if o != nil && !IsNil(o.TomcatExamplesLogin) { + return true + } + + return false +} + +// SetTomcatExamplesLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TomcatExamplesLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetTomcatExamplesLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.TomcatExamplesLogin = &v +} + +// GetTotolinkN150rtPasswordExposure returns the TotolinkN150rtPasswordExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTotolinkN150rtPasswordExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.TotolinkN150rtPasswordExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.TotolinkN150rtPasswordExposure +} + +// GetTotolinkN150rtPasswordExposureOk returns a tuple with the TotolinkN150rtPasswordExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTotolinkN150rtPasswordExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.TotolinkN150rtPasswordExposure) { + return nil, false + } + return o.TotolinkN150rtPasswordExposure, true +} + +// HasTotolinkN150rtPasswordExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasTotolinkN150rtPasswordExposure() bool { + if o != nil && !IsNil(o.TotolinkN150rtPasswordExposure) { + return true + } + + return false +} + +// SetTotolinkN150rtPasswordExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TotolinkN150rtPasswordExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetTotolinkN150rtPasswordExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.TotolinkN150rtPasswordExposure = &v +} + +// GetTwigPhpSsti returns the TwigPhpSsti field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTwigPhpSsti() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.TwigPhpSsti) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.TwigPhpSsti +} + +// GetTwigPhpSstiOk returns a tuple with the TwigPhpSsti field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTwigPhpSstiOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.TwigPhpSsti) { + return nil, false + } + return o.TwigPhpSsti, true +} + +// HasTwigPhpSsti returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasTwigPhpSsti() bool { + if o != nil && !IsNil(o.TwigPhpSsti) { + return true + } + + return false +} + +// SetTwigPhpSsti gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TwigPhpSsti field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetTwigPhpSsti(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.TwigPhpSsti = &v +} + +// GetTwonkyServerExposure returns the TwonkyServerExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTwonkyServerExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.TwonkyServerExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.TwonkyServerExposure +} + +// GetTwonkyServerExposureOk returns a tuple with the TwonkyServerExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetTwonkyServerExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.TwonkyServerExposure) { + return nil, false + } + return o.TwonkyServerExposure, true +} + +// HasTwonkyServerExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasTwonkyServerExposure() bool { + if o != nil && !IsNil(o.TwonkyServerExposure) { + return true + } + + return false +} + +// SetTwonkyServerExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TwonkyServerExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetTwonkyServerExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.TwonkyServerExposure = &v +} + +// GetWeaverMysqlConfigExposure returns the WeaverMysqlConfigExposure field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWeaverMysqlConfigExposure() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WeaverMysqlConfigExposure) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WeaverMysqlConfigExposure +} + +// GetWeaverMysqlConfigExposureOk returns a tuple with the WeaverMysqlConfigExposure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWeaverMysqlConfigExposureOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WeaverMysqlConfigExposure) { + return nil, false + } + return o.WeaverMysqlConfigExposure, true +} + +// HasWeaverMysqlConfigExposure returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWeaverMysqlConfigExposure() bool { + if o != nil && !IsNil(o.WeaverMysqlConfigExposure) { + return true + } + + return false +} + +// SetWeaverMysqlConfigExposure gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WeaverMysqlConfigExposure field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWeaverMysqlConfigExposure(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WeaverMysqlConfigExposure = &v +} + +// GetWebminDefaultLogin returns the WebminDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWebminDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WebminDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WebminDefaultLogin +} + +// GetWebminDefaultLoginOk returns a tuple with the WebminDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWebminDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WebminDefaultLogin) { + return nil, false + } + return o.WebminDefaultLogin, true +} + +// HasWebminDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWebminDefaultLogin() bool { + if o != nil && !IsNil(o.WebminDefaultLogin) { + return true + } + + return false +} + +// SetWebminDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WebminDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWebminDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WebminDefaultLogin = &v +} + +// GetWordpressAccessibleWpconfig returns the WordpressAccessibleWpconfig field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressAccessibleWpconfig() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.WordpressAccessibleWpconfig) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.WordpressAccessibleWpconfig +} + +// GetWordpressAccessibleWpconfigOk returns a tuple with the WordpressAccessibleWpconfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetWordpressAccessibleWpconfigOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.WordpressAccessibleWpconfig) { + return nil, false + } + return o.WordpressAccessibleWpconfig, true +} + +// HasWordpressAccessibleWpconfig returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasWordpressAccessibleWpconfig() bool { + if o != nil && !IsNil(o.WordpressAccessibleWpconfig) { + return true + } + + return false +} + +// SetWordpressAccessibleWpconfig gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressAccessibleWpconfig field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetWordpressAccessibleWpconfig(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.WordpressAccessibleWpconfig = &v +} + +// GetCompromisedSupplyChain returns the CompromisedSupplyChain field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCompromisedSupplyChain() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.CompromisedSupplyChain) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.CompromisedSupplyChain +} + +// GetCompromisedSupplyChainOk returns a tuple with the CompromisedSupplyChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetCompromisedSupplyChainOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.CompromisedSupplyChain) { + return nil, false + } + return o.CompromisedSupplyChain, true +} + +// HasCompromisedSupplyChain returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasCompromisedSupplyChain() bool { + if o != nil && !IsNil(o.CompromisedSupplyChain) { + return true + } + + return false +} + +// SetCompromisedSupplyChain gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CompromisedSupplyChain field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetCompromisedSupplyChain(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.CompromisedSupplyChain = &v +} + +// GetZabbixDefaultLogin returns the ZabbixDefaultLogin field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetZabbixDefaultLogin() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.ZabbixDefaultLogin) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.ZabbixDefaultLogin +} + +// GetZabbixDefaultLoginOk returns a tuple with the ZabbixDefaultLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetZabbixDefaultLoginOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.ZabbixDefaultLogin) { + return nil, false + } + return o.ZabbixDefaultLogin, true +} + +// HasZabbixDefaultLogin returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasZabbixDefaultLogin() bool { + if o != nil && !IsNil(o.ZabbixDefaultLogin) { + return true + } + + return false +} + +// SetZabbixDefaultLogin gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ZabbixDefaultLogin field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetZabbixDefaultLogin(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.ZabbixDefaultLogin = &v +} + +// GetDnsRebindingAttack returns the DnsRebindingAttack field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnsRebindingAttack() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.DnsRebindingAttack) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.DnsRebindingAttack +} + +// GetDnsRebindingAttackOk returns a tuple with the DnsRebindingAttack field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetDnsRebindingAttackOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.DnsRebindingAttack) { + return nil, false + } + return o.DnsRebindingAttack, true +} + +// HasDnsRebindingAttack returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasDnsRebindingAttack() bool { + if o != nil && !IsNil(o.DnsRebindingAttack) { + return true + } + + return false +} + +// SetDnsRebindingAttack gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnsRebindingAttack field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetDnsRebindingAttack(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.DnsRebindingAttack = &v +} + +// GetSpoofableSpfRecordsPtrMechanism returns the SpoofableSpfRecordsPtrMechanism field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpoofableSpfRecordsPtrMechanism() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.SpoofableSpfRecordsPtrMechanism) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.SpoofableSpfRecordsPtrMechanism +} + +// GetSpoofableSpfRecordsPtrMechanismOk returns a tuple with the SpoofableSpfRecordsPtrMechanism field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetSpoofableSpfRecordsPtrMechanismOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.SpoofableSpfRecordsPtrMechanism) { + return nil, false + } + return o.SpoofableSpfRecordsPtrMechanism, true +} + +// HasSpoofableSpfRecordsPtrMechanism returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasSpoofableSpfRecordsPtrMechanism() bool { + if o != nil && !IsNil(o.SpoofableSpfRecordsPtrMechanism) { + return true + } + + return false +} + +// SetSpoofableSpfRecordsPtrMechanism gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpoofableSpfRecordsPtrMechanism field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetSpoofableSpfRecordsPtrMechanism(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.SpoofableSpfRecordsPtrMechanism = &v +} + +// GetXxe returns the Xxe field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetXxe() GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + if o == nil || IsNil(o.Xxe) { + var ret GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + return ret + } + return *o.Xxe +} + +// GetXxeOk returns a tuple with the Xxe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) GetXxeOk() (*GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin, bool) { + if o == nil || IsNil(o.Xxe) { + return nil, false + } + return o.Xxe, true +} + +// HasXxe returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTests) HasXxe() bool { + if o != nil && !IsNil(o.Xxe) { + return true + } + + return false +} + +// SetXxe gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Xxe field. +func (o *GetProfile200ResponseConfigurationSecurityTests) SetXxe(v GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + o.Xxe = &v +} + +func (o GetProfile200ResponseConfigurationSecurityTests) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTests) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.HighNumberOfCustomScalars) { + toSerialize["high_number_of_custom_scalars"] = o.HighNumberOfCustomScalars + } + if !IsNil(o.HighNumberOfPci) { + toSerialize["high_number_of_pci"] = o.HighNumberOfPci + } + if !IsNil(o.HighNumberOfPii) { + toSerialize["high_number_of_pii"] = o.HighNumberOfPii + } + if !IsNil(o.HighNumberOfPhi) { + toSerialize["high_number_of_phi"] = o.HighNumberOfPhi + } + if !IsNil(o.HighNumberOfSecrets) { + toSerialize["high_number_of_secrets"] = o.HighNumberOfSecrets + } + if !IsNil(o.AdminerDefaultLogin) { + toSerialize["adminer_default_login"] = o.AdminerDefaultLogin + } + if !IsNil(o.XssAgent) { + toSerialize["xss_agent"] = o.XssAgent + } + if !IsNil(o.ReplayAgent) { + toSerialize["replay_agent"] = o.ReplayAgent + } + if !IsNil(o.AirflowConfigExposure) { + toSerialize["airflow_config_exposure"] = o.AirflowConfigExposure + } + if !IsNil(o.AirflowDefaultLogin) { + toSerialize["airflow_default_login"] = o.AirflowDefaultLogin + } + if !IsNil(o.AirflowV3DefaultLogin) { + toSerialize["airflow_v3_default_login"] = o.AirflowV3DefaultLogin + } + if !IsNil(o.AlibabaCanalLeak) { + toSerialize["alibaba_canal_leak"] = o.AlibabaCanalLeak + } + if !IsNil(o.AngularDevelopmentBuild) { + toSerialize["angular_development_build"] = o.AngularDevelopmentBuild + } + if !IsNil(o.AnsibleConfigExposure) { + toSerialize["ansible_config_exposure"] = o.AnsibleConfigExposure + } + if !IsNil(o.ApacheApolloDefaultLogin) { + toSerialize["apache_apollo_default_login"] = o.ApacheApolloDefaultLogin + } + if !IsNil(o.ApacheDruidLog4j) { + toSerialize["apache_druid_log4j"] = o.ApacheDruidLog4j + } + if !IsNil(o.ApacheFlinkUnauthRce) { + toSerialize["apache_flink_unauth_rce"] = o.ApacheFlinkUnauthRce + } + if !IsNil(o.ApacheHertzbeatDefaultLogin) { + toSerialize["apache_hertzbeat_default_login"] = o.ApacheHertzbeatDefaultLogin + } + if !IsNil(o.ApacheNifiRce) { + toSerialize["apache_nifi_rce"] = o.ApacheNifiRce + } + if !IsNil(o.ApacheOfbizLog4jRce) { + toSerialize["apache_ofbiz_log4j_rce"] = o.ApacheOfbizLog4jRce + } + if !IsNil(o.ApacheSolrFileRead) { + toSerialize["apache_solr_file_read"] = o.ApacheSolrFileRead + } + if !IsNil(o.ApacheSolrLog4jRce) { + toSerialize["apache_solr_log4j_rce"] = o.ApacheSolrLog4jRce + } + if !IsNil(o.ApacheSolrRce) { + toSerialize["apache_solr_rce"] = o.ApacheSolrRce + } + if !IsNil(o.ApisixDefaultLogin) { + toSerialize["apisix_default_login"] = o.ApisixDefaultLogin + } + if !IsNil(o.AppspecExposure) { + toSerialize["appspec_exposure"] = o.AppspecExposure + } + if !IsNil(o.AppveyorConfigExposure) { + toSerialize["appveyor_config_exposure"] = o.AppveyorConfigExposure + } + if !IsNil(o.AspNetViewStateEncryption) { + toSerialize["asp_net_view_state_encryption"] = o.AspNetViewStateEncryption + } + if !IsNil(o.AspNetViewStateMacValidationDisabled) { + toSerialize["asp_net_view_state_mac_validation_disabled"] = o.AspNetViewStateMacValidationDisabled + } + if !IsNil(o.ArcadePhpSqli) { + toSerialize["arcade_php_sqli"] = o.ArcadePhpSqli + } + if !IsNil(o.AwsAccessToken) { + toSerialize["aws_access_token"] = o.AwsAccessToken + } + if !IsNil(o.AwsConfigExposure) { + toSerialize["aws_config_exposure"] = o.AwsConfigExposure + } + if !IsNil(o.AwsDockerConfigExposure) { + toSerialize["aws_docker_config_exposure"] = o.AwsDockerConfigExposure + } + if !IsNil(o.AwstatsConfigExposure) { + toSerialize["awstats_config_exposure"] = o.AwstatsConfigExposure + } + if !IsNil(o.AwstatsExposure) { + toSerialize["awstats_exposure"] = o.AwstatsExposure + } + if !IsNil(o.BsphpInfo) { + toSerialize["bsphp_info"] = o.BsphpInfo + } + if !IsNil(o.Bola) { + toSerialize["bola"] = o.Bola + } + if !IsNil(o.CharacterLimit) { + toSerialize["character_limit"] = o.CharacterLimit + } + if !IsNil(o.FrontendBola) { + toSerialize["frontend_bola"] = o.FrontendBola + } + if !IsNil(o.CloudstackDefaultLogin) { + toSerialize["cloudstack_default_login"] = o.CloudstackDefaultLogin + } + if !IsNil(o.CodimdUnauthFileUpload) { + toSerialize["codimd_unauth_file_upload"] = o.CodimdUnauthFileUpload + } + if !IsNil(o.Command) { + toSerialize["command"] = o.Command + } + if !IsNil(o.ConfigJsonExposureFuzz) { + toSerialize["config_json_exposure_fuzz"] = o.ConfigJsonExposureFuzz + } + if !IsNil(o.FrontendCommandInjection) { + toSerialize["frontend_command_injection"] = o.FrontendCommandInjection + } + if !IsNil(o.ConsoleError) { + toSerialize["console_error"] = o.ConsoleError + } + if !IsNil(o.Cors) { + toSerialize["cors"] = o.Cors + } + if !IsNil(o.CrashingPage) { + toSerialize["crashing_page"] = o.CrashingPage + } + if !IsNil(o.DbgateUnauthRce) { + toSerialize["dbgate_unauth_rce"] = o.DbgateUnauthRce + } + if !IsNil(o.FrontendCrlf) { + toSerialize["frontend_crlf"] = o.FrontendCrlf + } + if !IsNil(o.CsrfGetBased) { + toSerialize["csrf_get_based"] = o.CsrfGetBased + } + if !IsNil(o.Cve202144228) { + toSerialize["cve_2021_44228"] = o.Cve202144228 + } + if !IsNil(o.Cve202425723) { + toSerialize["cve_2024_25723"] = o.Cve202425723 + } + if !IsNil(o.Cve202432651) { + toSerialize["cve_2024_32651"] = o.Cve202432651 + } + if !IsNil(o.Cve202440711) { + toSerialize["cve_2024_40711"] = o.Cve202440711 + } + if !IsNil(o.CsrfPostBased) { + toSerialize["csrf_post_based"] = o.CsrfPostBased + } + if !IsNil(o.FrontendCsrfGetBased) { + toSerialize["frontend_csrf_get_based"] = o.FrontendCsrfGetBased + } + if !IsNil(o.FrontendCsrfPostBased) { + toSerialize["frontend_csrf_post_based"] = o.FrontendCsrfPostBased + } + if !IsNil(o.DebugMode) { + toSerialize["debug_mode"] = o.DebugMode + } + if !IsNil(o.DjangoSecretKey) { + toSerialize["django_secret_key"] = o.DjangoSecretKey + } + if !IsNil(o.DolphinschedulerDefaultLogin) { + toSerialize["dolphinscheduler_default_login"] = o.DolphinschedulerDefaultLogin + } + if !IsNil(o.DorisDefaultLogin) { + toSerialize["doris_default_login"] = o.DorisDefaultLogin + } + if !IsNil(o.DirectoryTraversal) { + toSerialize["directory_traversal"] = o.DirectoryTraversal + } + if !IsNil(o.Dkim) { + toSerialize["dkim"] = o.Dkim + } + if !IsNil(o.Dmarc) { + toSerialize["dmarc"] = o.Dmarc + } + if !IsNil(o.Loopback) { + toSerialize["loopback"] = o.Loopback + } + if !IsNil(o.PermisiveSpf) { + toSerialize["permisive_spf"] = o.PermisiveSpf + } + if !IsNil(o.DnsrecordPrivateIp) { + toSerialize["dnsrecord_private_ip"] = o.DnsrecordPrivateIp + } + if !IsNil(o.DnsrecordTxtLength) { + toSerialize["dnsrecord_txt_length"] = o.DnsrecordTxtLength + } + if !IsNil(o.DnsrecordTxtSensitive) { + toSerialize["dnsrecord_txt_sensitive"] = o.DnsrecordTxtSensitive + } + if !IsNil(o.DnssecDisabled) { + toSerialize["dnssec_disabled"] = o.DnssecDisabled + } + if !IsNil(o.StoredXss) { + toSerialize["stored_xss"] = o.StoredXss + } + if !IsNil(o.DomainTakeover) { + toSerialize["domain_takeover"] = o.DomainTakeover + } + if !IsNil(o.Drupal7ElfinderRce) { + toSerialize["drupal7_elfinder_rce"] = o.Drupal7ElfinderRce + } + if !IsNil(o.DrupalAvatarXss) { + toSerialize["drupal_avatar_xss"] = o.DrupalAvatarXss + } + if !IsNil(o.DubboAdminDefaultLogin) { + toSerialize["dubbo_admin_default_login"] = o.DubboAdminDefaultLogin + } + if !IsNil(o.EasyimageDownphpLfi) { + toSerialize["easyimage_downphp_lfi"] = o.EasyimageDownphpLfi + } + if !IsNil(o.EcologyMysqlConfig) { + toSerialize["ecology_mysql_config"] = o.EcologyMysqlConfig + } + if !IsNil(o.ElasticsearchDefaultLogin) { + toSerialize["elasticsearch_default_login"] = o.ElasticsearchDefaultLogin + } + if !IsNil(o.EsafenetMysqlFileread) { + toSerialize["esafenet_mysql_fileread"] = o.EsafenetMysqlFileread + } + if !IsNil(o.ExcessiveBrowserPermissions) { + toSerialize["excessive_browser_permissions"] = o.ExcessiveBrowserPermissions + } + if !IsNil(o.ExposedConfigFile) { + toSerialize["exposed_config_file"] = o.ExposedConfigFile + } + if !IsNil(o.FrontendDomainTakeover) { + toSerialize["frontend_domain_takeover"] = o.FrontendDomainTakeover + } + if !IsNil(o.FrontendHeaderSetCookie) { + toSerialize["frontend_header_set_cookie"] = o.FrontendHeaderSetCookie + } + if !IsNil(o.FrontendInsecureWebsocket) { + toSerialize["frontend_insecure_websocket"] = o.FrontendInsecureWebsocket + } + if !IsNil(o.FrontendPotentialCve) { + toSerialize["frontend_potential_cve"] = o.FrontendPotentialCve + } + if !IsNil(o.FrontendServerError) { + toSerialize["frontend_server_error"] = o.FrontendServerError + } + if !IsNil(o.FrontendSoftwareComponentLeak) { + toSerialize["frontend_software_component_leak"] = o.FrontendSoftwareComponentLeak + } + if !IsNil(o.FrontendSqlInjection) { + toSerialize["frontend_sql_injection"] = o.FrontendSqlInjection + } + if !IsNil(o.FrontendSsl) { + toSerialize["frontend_ssl"] = o.FrontendSsl + } + if !IsNil(o.FrontendTimeout) { + toSerialize["frontend_timeout"] = o.FrontendTimeout + } + if !IsNil(o.FrontendXssViaDomainTakeover) { + toSerialize["frontend_xss_via_domain_takeover"] = o.FrontendXssViaDomainTakeover + } + if !IsNil(o.ExposedMysqlConfig) { + toSerialize["exposed_mysql_config"] = o.ExposedMysqlConfig + } + if !IsNil(o.ExposedSettingsPhp) { + toSerialize["exposed_settings_php"] = o.ExposedSettingsPhp + } + if !IsNil(o.ExposedSourcemap) { + toSerialize["exposed_sourcemap"] = o.ExposedSourcemap + } + if !IsNil(o.ExposedSqlDumps) { + toSerialize["exposed_sql_dumps"] = o.ExposedSqlDumps + } + if !IsNil(o.FileDisclosure) { + toSerialize["file_disclosure"] = o.FileDisclosure + } + if !IsNil(o.GraphqlAliasLimit) { + toSerialize["graphql_alias_limit"] = o.GraphqlAliasLimit + } + if !IsNil(o.GraphqlBatchLimit) { + toSerialize["graphql_batch_limit"] = o.GraphqlBatchLimit + } + if !IsNil(o.GraphqlCircularIntrospection) { + toSerialize["graphql_circular_introspection"] = o.GraphqlCircularIntrospection + } + if !IsNil(o.GraphqlDirectiveOverload) { + toSerialize["graphql_directive_overload"] = o.GraphqlDirectiveOverload + } + if !IsNil(o.GraphqlFieldDuplication) { + toSerialize["graphql_field_duplication"] = o.GraphqlFieldDuplication + } + if !IsNil(o.GraphqlFieldSuggestion) { + toSerialize["graphql_field_suggestion"] = o.GraphqlFieldSuggestion + } + if !IsNil(o.GraphqlRecursiveFragment) { + toSerialize["graphql_recursive_fragment"] = o.GraphqlRecursiveFragment + } + if !IsNil(o.GuessableCookieValue) { + toSerialize["guessable_cookie_value"] = o.GuessableCookieValue + } + if !IsNil(o.HeaderCacheControl) { + toSerialize["header_cache_control"] = o.HeaderCacheControl + } + if !IsNil(o.HeaderContentSecurityPolicy) { + toSerialize["header_content_security_policy"] = o.HeaderContentSecurityPolicy + } + if !IsNil(o.HeaderContentType) { + toSerialize["header_content_type"] = o.HeaderContentType + } + if !IsNil(o.HeaderSetCookie) { + toSerialize["header_set_cookie"] = o.HeaderSetCookie + } + if !IsNil(o.HeaderStrictTransportSecurity) { + toSerialize["header_strict_transport_security"] = o.HeaderStrictTransportSecurity + } + if !IsNil(o.HeaderXContentTypeOptions) { + toSerialize["header_x_content_type_options"] = o.HeaderXContentTypeOptions + } + if !IsNil(o.HeaderXFrameOptions) { + toSerialize["header_x_frame_options"] = o.HeaderXFrameOptions + } + if !IsNil(o.HtmlInjection) { + toSerialize["html_injection"] = o.HtmlInjection + } + if !IsNil(o.Http2NotSupported) { + toSerialize["http2_not_supported"] = o.Http2NotSupported + } + if !IsNil(o.HttpNoHttpsRedirect) { + toSerialize["http_no_https_redirect"] = o.HttpNoHttpsRedirect + } + if !IsNil(o.HttpParamPollution) { + toSerialize["http_param_pollution"] = o.HttpParamPollution + } + if !IsNil(o.IdeEnabled) { + toSerialize["ide_enabled"] = o.IdeEnabled + } + if !IsNil(o.ImproperInputClientSideProtoPollution) { + toSerialize["improper_input_client_side_proto_pollution"] = o.ImproperInputClientSideProtoPollution + } + if !IsNil(o.ImproperInputFrontendTemplateInjection) { + toSerialize["improper_input_frontend_template_injection"] = o.ImproperInputFrontendTemplateInjection + } + if !IsNil(o.ImproperInputXss) { + toSerialize["improper_input_xss"] = o.ImproperInputXss + } + if !IsNil(o.ImproperInputXssQueryParams) { + toSerialize["improper_input_xss_query_params"] = o.ImproperInputXssQueryParams + } + if !IsNil(o.IntrospectionEnabled) { + toSerialize["introspection_enabled"] = o.IntrospectionEnabled + } + if !IsNil(o.JwtAlgConfusion) { + toSerialize["jwt_alg_confusion"] = o.JwtAlgConfusion + } + if !IsNil(o.JwtAlgNone) { + toSerialize["jwt_alg_none"] = o.JwtAlgNone + } + if !IsNil(o.ExposedJwt) { + toSerialize["exposed_jwt"] = o.ExposedJwt + } + if !IsNil(o.JwtSignCheck) { + toSerialize["jwt_sign_check"] = o.JwtSignCheck + } + if !IsNil(o.LeakingAuthentication) { + toSerialize["leaking_authentication"] = o.LeakingAuthentication + } + if !IsNil(o.MassAssignment) { + toSerialize["mass_assignment"] = o.MassAssignment + } + if !IsNil(o.McpUnauth) { + toSerialize["mcp_unauth"] = o.McpUnauth + } + if !IsNil(o.Nosql) { + toSerialize["nosql"] = o.Nosql + } + if !IsNil(o.FrontendNosqlInjection) { + toSerialize["frontend_nosql_injection"] = o.FrontendNosqlInjection + } + if !IsNil(o.PaginationMissing) { + toSerialize["pagination_missing"] = o.PaginationMissing + } + if !IsNil(o.FrontendOpenRedirect) { + toSerialize["frontend_open_redirect"] = o.FrontendOpenRedirect + } + if !IsNil(o.PasswordFieldAutocompletion) { + toSerialize["password_field_autocompletion"] = o.PasswordFieldAutocompletion + } + if !IsNil(o.PositiveIntegerValidation) { + toSerialize["positive_integer_validation"] = o.PositiveIntegerValidation + } + if !IsNil(o.PrivateData) { + toSerialize["private_data"] = o.PrivateData + } + if !IsNil(o.PrivateIp) { + toSerialize["private_ip"] = o.PrivateIp + } + if !IsNil(o.ReflectedUrlParameter) { + toSerialize["reflected_url_parameter"] = o.ReflectedUrlParameter + } + if !IsNil(o.RequestUrlOverride) { + toSerialize["request_url_override"] = o.RequestUrlOverride + } + if !IsNil(o.ResponseSize) { + toSerialize["response_size"] = o.ResponseSize + } + if !IsNil(o.SensitiveComments) { + toSerialize["sensitive_comments"] = o.SensitiveComments + } + if !IsNil(o.ServerError) { + toSerialize["server_error"] = o.ServerError + } + if !IsNil(o.SoftwareComponentLeak) { + toSerialize["software_component_leak"] = o.SoftwareComponentLeak + } + if !IsNil(o.SpringbootActuatorDump) { + toSerialize["springboot_actuator_dump"] = o.SpringbootActuatorDump + } + if !IsNil(o.SpringbootActuatorEnv) { + toSerialize["springboot_actuator_env"] = o.SpringbootActuatorEnv + } + if !IsNil(o.SpringbootActuatorHeapdump) { + toSerialize["springboot_actuator_heapdump"] = o.SpringbootActuatorHeapdump + } + if !IsNil(o.SpringbootActuatorLogfile) { + toSerialize["springboot_actuator_logfile"] = o.SpringbootActuatorLogfile + } + if !IsNil(o.SpringbootActuatorMappings) { + toSerialize["springboot_actuator_mappings"] = o.SpringbootActuatorMappings + } + if !IsNil(o.SpringbootActuatorRestart) { + toSerialize["springboot_actuator_restart"] = o.SpringbootActuatorRestart + } + if !IsNil(o.SpringbootActuatorShutdown) { + toSerialize["springboot_actuator_shutdown"] = o.SpringbootActuatorShutdown + } + if !IsNil(o.SpringbootActuatorTrace) { + toSerialize["springboot_actuator_trace"] = o.SpringbootActuatorTrace + } + if !IsNil(o.Sql) { + toSerialize["sql"] = o.Sql + } + if !IsNil(o.SqlInjectionOracleBased) { + toSerialize["sql_injection_oracle_based"] = o.SqlInjectionOracleBased + } + if !IsNil(o.SslCertificate) { + toSerialize["ssl_certificate"] = o.SslCertificate + } + if !IsNil(o.Ssl) { + toSerialize["ssl"] = o.Ssl + } + if !IsNil(o.Ssrf) { + toSerialize["ssrf"] = o.Ssrf + } + if !IsNil(o.Ssti) { + toSerialize["ssti"] = o.Ssti + } + if !IsNil(o.FrontendSsrfHeader) { + toSerialize["frontend_ssrf_header"] = o.FrontendSsrfHeader + } + if !IsNil(o.Stacktrace) { + toSerialize["stacktrace"] = o.Stacktrace + } + if !IsNil(o.SubresourceIntegrityMissing) { + toSerialize["subresource_integrity_missing"] = o.SubresourceIntegrityMissing + } + if !IsNil(o.MultiUserAccessControl) { + toSerialize["multi_user_access_control"] = o.MultiUserAccessControl + } + if !IsNil(o.Timeout) { + toSerialize["timeout"] = o.Timeout + } + if !IsNil(o.UnreachableServer) { + toSerialize["unreachable_server"] = o.UnreachableServer + } + if !IsNil(o.UnsafeFunctionUse) { + toSerialize["unsafe_function_use"] = o.UnsafeFunctionUse + } + if !IsNil(o.VueDevelopmentBuild) { + toSerialize["vue_development_build"] = o.VueDevelopmentBuild + } + if !IsNil(o.WafBypass) { + toSerialize["waf_bypass"] = o.WafBypass + } + if !IsNil(o.WordpressOembedEndpointExposed) { + toSerialize["wordpress_oembed_endpoint_exposed"] = o.WordpressOembedEndpointExposed + } + if !IsNil(o.WordpressRdfFeedUserExposed) { + toSerialize["wordpress_rdf_feed_user_exposed"] = o.WordpressRdfFeedUserExposed + } + if !IsNil(o.WordpressRestApiUsersExposed) { + toSerialize["wordpress_rest_api_users_exposed"] = o.WordpressRestApiUsersExposed + } + if !IsNil(o.WordpressAffiliatewpLog) { + toSerialize["wordpress_affiliatewp_log"] = o.WordpressAffiliatewpLog + } + if !IsNil(o.WordpressDbBackup) { + toSerialize["wordpress_db_backup"] = o.WordpressDbBackup + } + if !IsNil(o.WordpressDbBackupListing) { + toSerialize["wordpress_db_backup_listing"] = o.WordpressDbBackupListing + } + if !IsNil(o.WordpressDbRepair) { + toSerialize["wordpress_db_repair"] = o.WordpressDbRepair + } + if !IsNil(o.WordpressDebugLog) { + toSerialize["wordpress_debug_log"] = o.WordpressDebugLog + } + if !IsNil(o.WordpressSocialMetricsTracker) { + toSerialize["wordpress_social_metrics_tracker"] = o.WordpressSocialMetricsTracker + } + if !IsNil(o.WordpressSsrfOembed) { + toSerialize["wordpress_ssrf_oembed"] = o.WordpressSsrfOembed + } + if !IsNil(o.WordpressTotalUpkeepBackupDownload) { + toSerialize["wordpress_total_upkeep_backup_download"] = o.WordpressTotalUpkeepBackupDownload + } + if !IsNil(o.WordpressWordfenceLfi) { + toSerialize["wordpress_wordfence_lfi"] = o.WordpressWordfenceLfi + } + if !IsNil(o.WordpressWordfenceWafBypassXss) { + toSerialize["wordpress_wordfence_waf_bypass_xss"] = o.WordpressWordfenceWafBypassXss + } + if !IsNil(o.WordpressWordfenceXss) { + toSerialize["wordpress_wordfence_xss"] = o.WordpressWordfenceXss + } + if !IsNil(o.WordpressWpCronExposed) { + toSerialize["wordpress_wp_cron_exposed"] = o.WordpressWpCronExposed + } + if !IsNil(o.WordpressXmlrpcPhpExposed) { + toSerialize["wordpress_xmlrpc_php_exposed"] = o.WordpressXmlrpcPhpExposed + } + if !IsNil(o.WordpressZebraFormXss) { + toSerialize["wordpress_zebra_form_xss"] = o.WordpressZebraFormXss + } + if !IsNil(o.WpInsertPhpXss) { + toSerialize["wp_insert_php_xss"] = o.WpInsertPhpXss + } + if !IsNil(o.WpPhpfreechatXss) { + toSerialize["wp_phpfreechat_xss"] = o.WpPhpfreechatXss + } + if !IsNil(o.FlaskSessionCookie) { + toSerialize["flask_session_cookie"] = o.FlaskSessionCookie + } + if !IsNil(o.GeovisionGeowebserverLfiXss) { + toSerialize["geovision_geowebserver_lfi_xss"] = o.GeovisionGeowebserverLfiXss + } + if !IsNil(o.GitExposure) { + toSerialize["git_exposure"] = o.GitExposure + } + if !IsNil(o.SvelteDevelopmentBuild) { + toSerialize["svelte_development_build"] = o.SvelteDevelopmentBuild + } + if !IsNil(o.GitlabWeakLogin) { + toSerialize["gitlab_weak_login"] = o.GitlabWeakLogin + } + if !IsNil(o.GlpiDefaultLogin) { + toSerialize["glpi_default_login"] = o.GlpiDefaultLogin + } + if !IsNil(o.GrafanaDefaultLogin) { + toSerialize["grafana_default_login"] = o.GrafanaDefaultLogin + } + if !IsNil(o.InfobloxNetmriRailsCookieRce) { + toSerialize["infoblox_netmri_rails_cookie_rce"] = o.InfobloxNetmriRailsCookieRce + } + if !IsNil(o.IotawattAppExposure) { + toSerialize["iotawatt_app_exposure"] = o.IotawattAppExposure + } + if !IsNil(o.JenkinsWeakPassword) { + toSerialize["jenkins_weak_password"] = o.JenkinsWeakPassword + } + if !IsNil(o.JolokiaTomcatCredsLeak) { + toSerialize["jolokia_tomcat_creds_leak"] = o.JolokiaTomcatCredsLeak + } + if !IsNil(o.JoomlaComBookingComponent) { + toSerialize["joomla_com_booking_component"] = o.JoomlaComBookingComponent + } + if !IsNil(o.JoomlaComFabrikLfi) { + toSerialize["joomla_com_fabrik_lfi"] = o.JoomlaComFabrikLfi + } + if !IsNil(o.JoomlaDepartmentSqli) { + toSerialize["joomla_department_sqli"] = o.JoomlaDepartmentSqli + } + if !IsNil(o.JoomlaEasyshopLfi) { + toSerialize["joomla_easyshop_lfi"] = o.JoomlaEasyshopLfi + } + if !IsNil(o.JoomlaIpropertyXss) { + toSerialize["joomla_iproperty_xss"] = o.JoomlaIpropertyXss + } + if !IsNil(o.JoomlaJlexXss) { + toSerialize["joomla_jlex_xss"] = o.JoomlaJlexXss + } + if !IsNil(o.JoomlaJmarketXss) { + toSerialize["joomla_jmarket_xss"] = o.JoomlaJmarketXss + } + if !IsNil(o.JoomlaJoombriCareersXss) { + toSerialize["joomla_joombri_careers_xss"] = o.JoomlaJoombriCareersXss + } + if !IsNil(o.JoomlaJvehiclesLfi) { + toSerialize["joomla_jvehicles_lfi"] = o.JoomlaJvehiclesLfi + } + if !IsNil(o.JoomlaJvtwitterXss) { + toSerialize["joomla_jvtwitter_xss"] = o.JoomlaJvtwitterXss + } + if !IsNil(o.JoomlaMarvikshopSqli) { + toSerialize["joomla_marvikshop_sqli"] = o.JoomlaMarvikshopSqli + } + if !IsNil(o.JoomlaMarvikshopXss) { + toSerialize["joomla_marvikshop_xss"] = o.JoomlaMarvikshopXss + } + if !IsNil(o.JoomlaSolidresXss) { + toSerialize["joomla_solidres_xss"] = o.JoomlaSolidresXss + } + if !IsNil(o.JupyterNotebookRce) { + toSerialize["jupyter_notebook_rce"] = o.JupyterNotebookRce + } + if !IsNil(o.KafkaCenterDefaultLogin) { + toSerialize["kafka_center_default_login"] = o.KafkaCenterDefaultLogin + } + if !IsNil(o.KarafDefaultLogin) { + toSerialize["karaf_default_login"] = o.KarafDefaultLogin + } + if !IsNil(o.KkfileviewSsrf) { + toSerialize["kkfileview_ssrf"] = o.KkfileviewSsrf + } + if !IsNil(o.KylinDefaultLogin) { + toSerialize["kylin_default_login"] = o.KylinDefaultLogin + } + if !IsNil(o.LuceeRce) { + toSerialize["lucee_rce"] = o.LuceeRce + } + if !IsNil(o.MalwaredByobRce) { + toSerialize["malwared_byob_rce"] = o.MalwaredByobRce + } + if !IsNil(o.MdbDatabaseFile) { + toSerialize["mdb_database_file"] = o.MdbDatabaseFile + } + if !IsNil(o.MinioDefaultLogin) { + toSerialize["minio_default_login"] = o.MinioDefaultLogin + } + if !IsNil(o.MssqlDefaultCredentials) { + toSerialize["mssql_default_credentials"] = o.MssqlDefaultCredentials + } + if !IsNil(o.MssqlExposed) { + toSerialize["mssql_exposed"] = o.MssqlExposed + } + if !IsNil(o.MysqlDefaultCredentials) { + toSerialize["mysql_default_credentials"] = o.MysqlDefaultCredentials + } + if !IsNil(o.MysqlExposed) { + toSerialize["mysql_exposed"] = o.MysqlExposed + } + if !IsNil(o.NginxMergeSlashesPathTraversal) { + toSerialize["nginx_merge_slashes_path_traversal"] = o.NginxMergeSlashesPathTraversal + } + if !IsNil(o.NginxModuleVtsXss) { + toSerialize["nginx_module_vts_xss"] = o.NginxModuleVtsXss + } + if !IsNil(o.NginxProxyManagerDefaultLogin) { + toSerialize["nginx_proxy_manager_default_login"] = o.NginxProxyManagerDefaultLogin + } + if !IsNil(o.NginxWebuiRce) { + toSerialize["nginx_webui_rce"] = o.NginxWebuiRce + } + if !IsNil(o.NginxwebuiRuncmdRce) { + toSerialize["nginxwebui_runcmd_rce"] = o.NginxwebuiRuncmdRce + } + if !IsNil(o.NodeEcstaticInternalPath) { + toSerialize["node_ecstatic_internal_path"] = o.NodeEcstaticInternalPath + } + if !IsNil(o.NoderedDefaultLogin) { + toSerialize["nodered_default_login"] = o.NoderedDefaultLogin + } + if !IsNil(o.OpenmediavaultDefaultLogin) { + toSerialize["openmediavault_default_login"] = o.OpenmediavaultDefaultLogin + } + if !IsNil(o.OpensearchDashboardDefaultLogin) { + toSerialize["opensearch_dashboard_default_login"] = o.OpensearchDashboardDefaultLogin + } + if !IsNil(o.PhpTimeclockXss) { + toSerialize["php_timeclock_xss"] = o.PhpTimeclockXss + } + if !IsNil(o.PhpXdebugRce) { + toSerialize["php_xdebug_rce"] = o.PhpXdebugRce + } + if !IsNil(o.PhpZerodiumBackdoorRce) { + toSerialize["php_zerodium_backdoor_rce"] = o.PhpZerodiumBackdoorRce + } + if !IsNil(o.PhpldapadminXss) { + toSerialize["phpldapadmin_xss"] = o.PhpldapadminXss + } + if !IsNil(o.PhpmyadminDefaultLogin) { + toSerialize["phpmyadmin_default_login"] = o.PhpmyadminDefaultLogin + } + if !IsNil(o.PhpmyadminUnauthAccess) { + toSerialize["phpmyadmin_unauth_access"] = o.PhpmyadminUnauthAccess + } + if !IsNil(o.PhpokSqli) { + toSerialize["phpok_sqli"] = o.PhpokSqli + } + if !IsNil(o.PhpwikiLfi) { + toSerialize["phpwiki_lfi"] = o.PhpwikiLfi + } + if !IsNil(o.PsqlDefaultCredentials) { + toSerialize["psql_default_credentials"] = o.PsqlDefaultCredentials + } + if !IsNil(o.PsqlExposed) { + toSerialize["psql_exposed"] = o.PsqlExposed + } + if !IsNil(o.PrivateKeyExposure) { + toSerialize["private_key_exposure"] = o.PrivateKeyExposure + } + if !IsNil(o.RabbitmqDefaultLogin) { + toSerialize["rabbitmq_default_login"] = o.RabbitmqDefaultLogin + } + if !IsNil(o.Rails6Xss) { + toSerialize["rails6_xss"] = o.Rails6Xss + } + if !IsNil(o.RangerDefaultLogin) { + toSerialize["ranger_default_login"] = o.RangerDefaultLogin + } + if !IsNil(o.React2shell1) { + toSerialize["react2shell_1"] = o.React2shell1 + } + if !IsNil(o.React2shell2) { + toSerialize["react2shell_2"] = o.React2shell2 + } + if !IsNil(o.ReactDevelopmentBuild) { + toSerialize["react_development_build"] = o.ReactDevelopmentBuild + } + if !IsNil(o.RundeckDefaultLogin) { + toSerialize["rundeck_default_login"] = o.RundeckDefaultLogin + } + if !IsNil(o.RustyJoomla) { + toSerialize["rusty_joomla"] = o.RustyJoomla + } + if !IsNil(o.SangforCphpRce) { + toSerialize["sangfor_cphp_rce"] = o.SangforCphpRce + } + if !IsNil(o.SecretTokenRb) { + toSerialize["secret_token_rb"] = o.SecretTokenRb + } + if !IsNil(o.SeeyonCreatemysqlExposure) { + toSerialize["seeyon_createmysql_exposure"] = o.SeeyonCreatemysqlExposure + } + if !IsNil(o.SeleniumExposure) { + toSerialize["selenium_exposure"] = o.SeleniumExposure + } + if !IsNil(o.SelfSignedSsl) { + toSerialize["self_signed_ssl"] = o.SelfSignedSsl + } + if !IsNil(o.SonarqubeDefaultLogin) { + toSerialize["sonarqube_default_login"] = o.SonarqubeDefaultLogin + } + if !IsNil(o.SshDefaultCredentials) { + toSerialize["ssh_default_credentials"] = o.SshDefaultCredentials + } + if !IsNil(o.SshExposed) { + toSerialize["ssh_exposed"] = o.SshExposed + } + if !IsNil(o.SshPasswordAuthEnabled) { + toSerialize["ssh_password_auth_enabled"] = o.SshPasswordAuthEnabled + } + if !IsNil(o.Thinkphp6ArbitraryWrite) { + toSerialize["thinkphp6_arbitrary_write"] = o.Thinkphp6ArbitraryWrite + } + if !IsNil(o.Thinkphp2Rce) { + toSerialize["thinkphp_2_rce"] = o.Thinkphp2Rce + } + if !IsNil(o.Thinkphp501Rce) { + toSerialize["thinkphp_501_rce"] = o.Thinkphp501Rce + } + if !IsNil(o.Thinkphp5023Rce) { + toSerialize["thinkphp_5023_rce"] = o.Thinkphp5023Rce + } + if !IsNil(o.Thinkphp509InformationDisclosure) { + toSerialize["thinkphp_509_information_disclosure"] = o.Thinkphp509InformationDisclosure + } + if !IsNil(o.TomcatDefaultLogin) { + toSerialize["tomcat_default_login"] = o.TomcatDefaultLogin + } + if !IsNil(o.TomcatExamplesLogin) { + toSerialize["tomcat_examples_login"] = o.TomcatExamplesLogin + } + if !IsNil(o.TotolinkN150rtPasswordExposure) { + toSerialize["totolink_n150rt_password_exposure"] = o.TotolinkN150rtPasswordExposure + } + if !IsNil(o.TwigPhpSsti) { + toSerialize["twig_php_ssti"] = o.TwigPhpSsti + } + if !IsNil(o.TwonkyServerExposure) { + toSerialize["twonky_server_exposure"] = o.TwonkyServerExposure + } + if !IsNil(o.WeaverMysqlConfigExposure) { + toSerialize["weaver_mysql_config_exposure"] = o.WeaverMysqlConfigExposure + } + if !IsNil(o.WebminDefaultLogin) { + toSerialize["webmin_default_login"] = o.WebminDefaultLogin + } + if !IsNil(o.WordpressAccessibleWpconfig) { + toSerialize["wordpress_accessible_wpconfig"] = o.WordpressAccessibleWpconfig + } + if !IsNil(o.CompromisedSupplyChain) { + toSerialize["compromised_supply_chain"] = o.CompromisedSupplyChain + } + if !IsNil(o.ZabbixDefaultLogin) { + toSerialize["zabbix_default_login"] = o.ZabbixDefaultLogin + } + if !IsNil(o.DnsRebindingAttack) { + toSerialize["dns_rebinding_attack"] = o.DnsRebindingAttack + } + if !IsNil(o.SpoofableSpfRecordsPtrMechanism) { + toSerialize["spoofable_spf_records_ptr_mechanism"] = o.SpoofableSpfRecordsPtrMechanism + } + if !IsNil(o.Xxe) { + toSerialize["xxe"] = o.Xxe + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTests) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTests := _GetProfile200ResponseConfigurationSecurityTests{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTests) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTests(varGetProfile200ResponseConfigurationSecurityTests) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "high_number_of_custom_scalars") + delete(additionalProperties, "high_number_of_pci") + delete(additionalProperties, "high_number_of_pii") + delete(additionalProperties, "high_number_of_phi") + delete(additionalProperties, "high_number_of_secrets") + delete(additionalProperties, "adminer_default_login") + delete(additionalProperties, "xss_agent") + delete(additionalProperties, "replay_agent") + delete(additionalProperties, "airflow_config_exposure") + delete(additionalProperties, "airflow_default_login") + delete(additionalProperties, "airflow_v3_default_login") + delete(additionalProperties, "alibaba_canal_leak") + delete(additionalProperties, "angular_development_build") + delete(additionalProperties, "ansible_config_exposure") + delete(additionalProperties, "apache_apollo_default_login") + delete(additionalProperties, "apache_druid_log4j") + delete(additionalProperties, "apache_flink_unauth_rce") + delete(additionalProperties, "apache_hertzbeat_default_login") + delete(additionalProperties, "apache_nifi_rce") + delete(additionalProperties, "apache_ofbiz_log4j_rce") + delete(additionalProperties, "apache_solr_file_read") + delete(additionalProperties, "apache_solr_log4j_rce") + delete(additionalProperties, "apache_solr_rce") + delete(additionalProperties, "apisix_default_login") + delete(additionalProperties, "appspec_exposure") + delete(additionalProperties, "appveyor_config_exposure") + delete(additionalProperties, "asp_net_view_state_encryption") + delete(additionalProperties, "asp_net_view_state_mac_validation_disabled") + delete(additionalProperties, "arcade_php_sqli") + delete(additionalProperties, "aws_access_token") + delete(additionalProperties, "aws_config_exposure") + delete(additionalProperties, "aws_docker_config_exposure") + delete(additionalProperties, "awstats_config_exposure") + delete(additionalProperties, "awstats_exposure") + delete(additionalProperties, "bsphp_info") + delete(additionalProperties, "bola") + delete(additionalProperties, "character_limit") + delete(additionalProperties, "frontend_bola") + delete(additionalProperties, "cloudstack_default_login") + delete(additionalProperties, "codimd_unauth_file_upload") + delete(additionalProperties, "command") + delete(additionalProperties, "config_json_exposure_fuzz") + delete(additionalProperties, "frontend_command_injection") + delete(additionalProperties, "console_error") + delete(additionalProperties, "cors") + delete(additionalProperties, "crashing_page") + delete(additionalProperties, "dbgate_unauth_rce") + delete(additionalProperties, "frontend_crlf") + delete(additionalProperties, "csrf_get_based") + delete(additionalProperties, "cve_2021_44228") + delete(additionalProperties, "cve_2024_25723") + delete(additionalProperties, "cve_2024_32651") + delete(additionalProperties, "cve_2024_40711") + delete(additionalProperties, "csrf_post_based") + delete(additionalProperties, "frontend_csrf_get_based") + delete(additionalProperties, "frontend_csrf_post_based") + delete(additionalProperties, "debug_mode") + delete(additionalProperties, "django_secret_key") + delete(additionalProperties, "dolphinscheduler_default_login") + delete(additionalProperties, "doris_default_login") + delete(additionalProperties, "directory_traversal") + delete(additionalProperties, "dkim") + delete(additionalProperties, "dmarc") + delete(additionalProperties, "loopback") + delete(additionalProperties, "permisive_spf") + delete(additionalProperties, "dnsrecord_private_ip") + delete(additionalProperties, "dnsrecord_txt_length") + delete(additionalProperties, "dnsrecord_txt_sensitive") + delete(additionalProperties, "dnssec_disabled") + delete(additionalProperties, "stored_xss") + delete(additionalProperties, "domain_takeover") + delete(additionalProperties, "drupal7_elfinder_rce") + delete(additionalProperties, "drupal_avatar_xss") + delete(additionalProperties, "dubbo_admin_default_login") + delete(additionalProperties, "easyimage_downphp_lfi") + delete(additionalProperties, "ecology_mysql_config") + delete(additionalProperties, "elasticsearch_default_login") + delete(additionalProperties, "esafenet_mysql_fileread") + delete(additionalProperties, "excessive_browser_permissions") + delete(additionalProperties, "exposed_config_file") + delete(additionalProperties, "frontend_domain_takeover") + delete(additionalProperties, "frontend_header_set_cookie") + delete(additionalProperties, "frontend_insecure_websocket") + delete(additionalProperties, "frontend_potential_cve") + delete(additionalProperties, "frontend_server_error") + delete(additionalProperties, "frontend_software_component_leak") + delete(additionalProperties, "frontend_sql_injection") + delete(additionalProperties, "frontend_ssl") + delete(additionalProperties, "frontend_timeout") + delete(additionalProperties, "frontend_xss_via_domain_takeover") + delete(additionalProperties, "exposed_mysql_config") + delete(additionalProperties, "exposed_settings_php") + delete(additionalProperties, "exposed_sourcemap") + delete(additionalProperties, "exposed_sql_dumps") + delete(additionalProperties, "file_disclosure") + delete(additionalProperties, "graphql_alias_limit") + delete(additionalProperties, "graphql_batch_limit") + delete(additionalProperties, "graphql_circular_introspection") + delete(additionalProperties, "graphql_directive_overload") + delete(additionalProperties, "graphql_field_duplication") + delete(additionalProperties, "graphql_field_suggestion") + delete(additionalProperties, "graphql_recursive_fragment") + delete(additionalProperties, "guessable_cookie_value") + delete(additionalProperties, "header_cache_control") + delete(additionalProperties, "header_content_security_policy") + delete(additionalProperties, "header_content_type") + delete(additionalProperties, "header_set_cookie") + delete(additionalProperties, "header_strict_transport_security") + delete(additionalProperties, "header_x_content_type_options") + delete(additionalProperties, "header_x_frame_options") + delete(additionalProperties, "html_injection") + delete(additionalProperties, "http2_not_supported") + delete(additionalProperties, "http_no_https_redirect") + delete(additionalProperties, "http_param_pollution") + delete(additionalProperties, "ide_enabled") + delete(additionalProperties, "improper_input_client_side_proto_pollution") + delete(additionalProperties, "improper_input_frontend_template_injection") + delete(additionalProperties, "improper_input_xss") + delete(additionalProperties, "improper_input_xss_query_params") + delete(additionalProperties, "introspection_enabled") + delete(additionalProperties, "jwt_alg_confusion") + delete(additionalProperties, "jwt_alg_none") + delete(additionalProperties, "exposed_jwt") + delete(additionalProperties, "jwt_sign_check") + delete(additionalProperties, "leaking_authentication") + delete(additionalProperties, "mass_assignment") + delete(additionalProperties, "mcp_unauth") + delete(additionalProperties, "nosql") + delete(additionalProperties, "frontend_nosql_injection") + delete(additionalProperties, "pagination_missing") + delete(additionalProperties, "frontend_open_redirect") + delete(additionalProperties, "password_field_autocompletion") + delete(additionalProperties, "positive_integer_validation") + delete(additionalProperties, "private_data") + delete(additionalProperties, "private_ip") + delete(additionalProperties, "reflected_url_parameter") + delete(additionalProperties, "request_url_override") + delete(additionalProperties, "response_size") + delete(additionalProperties, "sensitive_comments") + delete(additionalProperties, "server_error") + delete(additionalProperties, "software_component_leak") + delete(additionalProperties, "springboot_actuator_dump") + delete(additionalProperties, "springboot_actuator_env") + delete(additionalProperties, "springboot_actuator_heapdump") + delete(additionalProperties, "springboot_actuator_logfile") + delete(additionalProperties, "springboot_actuator_mappings") + delete(additionalProperties, "springboot_actuator_restart") + delete(additionalProperties, "springboot_actuator_shutdown") + delete(additionalProperties, "springboot_actuator_trace") + delete(additionalProperties, "sql") + delete(additionalProperties, "sql_injection_oracle_based") + delete(additionalProperties, "ssl_certificate") + delete(additionalProperties, "ssl") + delete(additionalProperties, "ssrf") + delete(additionalProperties, "ssti") + delete(additionalProperties, "frontend_ssrf_header") + delete(additionalProperties, "stacktrace") + delete(additionalProperties, "subresource_integrity_missing") + delete(additionalProperties, "multi_user_access_control") + delete(additionalProperties, "timeout") + delete(additionalProperties, "unreachable_server") + delete(additionalProperties, "unsafe_function_use") + delete(additionalProperties, "vue_development_build") + delete(additionalProperties, "waf_bypass") + delete(additionalProperties, "wordpress_oembed_endpoint_exposed") + delete(additionalProperties, "wordpress_rdf_feed_user_exposed") + delete(additionalProperties, "wordpress_rest_api_users_exposed") + delete(additionalProperties, "wordpress_affiliatewp_log") + delete(additionalProperties, "wordpress_db_backup") + delete(additionalProperties, "wordpress_db_backup_listing") + delete(additionalProperties, "wordpress_db_repair") + delete(additionalProperties, "wordpress_debug_log") + delete(additionalProperties, "wordpress_social_metrics_tracker") + delete(additionalProperties, "wordpress_ssrf_oembed") + delete(additionalProperties, "wordpress_total_upkeep_backup_download") + delete(additionalProperties, "wordpress_wordfence_lfi") + delete(additionalProperties, "wordpress_wordfence_waf_bypass_xss") + delete(additionalProperties, "wordpress_wordfence_xss") + delete(additionalProperties, "wordpress_wp_cron_exposed") + delete(additionalProperties, "wordpress_xmlrpc_php_exposed") + delete(additionalProperties, "wordpress_zebra_form_xss") + delete(additionalProperties, "wp_insert_php_xss") + delete(additionalProperties, "wp_phpfreechat_xss") + delete(additionalProperties, "flask_session_cookie") + delete(additionalProperties, "geovision_geowebserver_lfi_xss") + delete(additionalProperties, "git_exposure") + delete(additionalProperties, "svelte_development_build") + delete(additionalProperties, "gitlab_weak_login") + delete(additionalProperties, "glpi_default_login") + delete(additionalProperties, "grafana_default_login") + delete(additionalProperties, "infoblox_netmri_rails_cookie_rce") + delete(additionalProperties, "iotawatt_app_exposure") + delete(additionalProperties, "jenkins_weak_password") + delete(additionalProperties, "jolokia_tomcat_creds_leak") + delete(additionalProperties, "joomla_com_booking_component") + delete(additionalProperties, "joomla_com_fabrik_lfi") + delete(additionalProperties, "joomla_department_sqli") + delete(additionalProperties, "joomla_easyshop_lfi") + delete(additionalProperties, "joomla_iproperty_xss") + delete(additionalProperties, "joomla_jlex_xss") + delete(additionalProperties, "joomla_jmarket_xss") + delete(additionalProperties, "joomla_joombri_careers_xss") + delete(additionalProperties, "joomla_jvehicles_lfi") + delete(additionalProperties, "joomla_jvtwitter_xss") + delete(additionalProperties, "joomla_marvikshop_sqli") + delete(additionalProperties, "joomla_marvikshop_xss") + delete(additionalProperties, "joomla_solidres_xss") + delete(additionalProperties, "jupyter_notebook_rce") + delete(additionalProperties, "kafka_center_default_login") + delete(additionalProperties, "karaf_default_login") + delete(additionalProperties, "kkfileview_ssrf") + delete(additionalProperties, "kylin_default_login") + delete(additionalProperties, "lucee_rce") + delete(additionalProperties, "malwared_byob_rce") + delete(additionalProperties, "mdb_database_file") + delete(additionalProperties, "minio_default_login") + delete(additionalProperties, "mssql_default_credentials") + delete(additionalProperties, "mssql_exposed") + delete(additionalProperties, "mysql_default_credentials") + delete(additionalProperties, "mysql_exposed") + delete(additionalProperties, "nginx_merge_slashes_path_traversal") + delete(additionalProperties, "nginx_module_vts_xss") + delete(additionalProperties, "nginx_proxy_manager_default_login") + delete(additionalProperties, "nginx_webui_rce") + delete(additionalProperties, "nginxwebui_runcmd_rce") + delete(additionalProperties, "node_ecstatic_internal_path") + delete(additionalProperties, "nodered_default_login") + delete(additionalProperties, "openmediavault_default_login") + delete(additionalProperties, "opensearch_dashboard_default_login") + delete(additionalProperties, "php_timeclock_xss") + delete(additionalProperties, "php_xdebug_rce") + delete(additionalProperties, "php_zerodium_backdoor_rce") + delete(additionalProperties, "phpldapadmin_xss") + delete(additionalProperties, "phpmyadmin_default_login") + delete(additionalProperties, "phpmyadmin_unauth_access") + delete(additionalProperties, "phpok_sqli") + delete(additionalProperties, "phpwiki_lfi") + delete(additionalProperties, "psql_default_credentials") + delete(additionalProperties, "psql_exposed") + delete(additionalProperties, "private_key_exposure") + delete(additionalProperties, "rabbitmq_default_login") + delete(additionalProperties, "rails6_xss") + delete(additionalProperties, "ranger_default_login") + delete(additionalProperties, "react2shell_1") + delete(additionalProperties, "react2shell_2") + delete(additionalProperties, "react_development_build") + delete(additionalProperties, "rundeck_default_login") + delete(additionalProperties, "rusty_joomla") + delete(additionalProperties, "sangfor_cphp_rce") + delete(additionalProperties, "secret_token_rb") + delete(additionalProperties, "seeyon_createmysql_exposure") + delete(additionalProperties, "selenium_exposure") + delete(additionalProperties, "self_signed_ssl") + delete(additionalProperties, "sonarqube_default_login") + delete(additionalProperties, "ssh_default_credentials") + delete(additionalProperties, "ssh_exposed") + delete(additionalProperties, "ssh_password_auth_enabled") + delete(additionalProperties, "thinkphp6_arbitrary_write") + delete(additionalProperties, "thinkphp_2_rce") + delete(additionalProperties, "thinkphp_501_rce") + delete(additionalProperties, "thinkphp_5023_rce") + delete(additionalProperties, "thinkphp_509_information_disclosure") + delete(additionalProperties, "tomcat_default_login") + delete(additionalProperties, "tomcat_examples_login") + delete(additionalProperties, "totolink_n150rt_password_exposure") + delete(additionalProperties, "twig_php_ssti") + delete(additionalProperties, "twonky_server_exposure") + delete(additionalProperties, "weaver_mysql_config_exposure") + delete(additionalProperties, "webmin_default_login") + delete(additionalProperties, "wordpress_accessible_wpconfig") + delete(additionalProperties, "compromised_supply_chain") + delete(additionalProperties, "zabbix_default_login") + delete(additionalProperties, "dns_rebinding_attack") + delete(additionalProperties, "spoofable_spf_records_ptr_mechanism") + delete(additionalProperties, "xxe") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTests struct { + value *GetProfile200ResponseConfigurationSecurityTests + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTests) Get() *GetProfile200ResponseConfigurationSecurityTests { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTests) Set(val *GetProfile200ResponseConfigurationSecurityTests) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTests) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTests) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTests(val *GetProfile200ResponseConfigurationSecurityTests) *NullableGetProfile200ResponseConfigurationSecurityTests { + return &NullableGetProfile200ResponseConfigurationSecurityTests{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTests) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTests) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_adminer_default_login.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_adminer_default_login.go new file mode 100644 index 00000000..1ac425ef --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_adminer_default_login.go @@ -0,0 +1,153 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin{} + +// GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin struct for GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin +type GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin struct { + Skip *bool `json:"skip,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + +// NewGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin instantiates a new GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin 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 NewGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin() *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + this := GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLoginWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin 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 NewGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLoginWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + this := GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin{} + return &this +} + +// GetSkip returns the Skip field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) GetSkip() bool { + if o == nil || IsNil(o.Skip) { + var ret bool + return ret + } + return *o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) GetSkipOk() (*bool, bool) { + if o == nil || IsNil(o.Skip) { + return nil, false + } + return o.Skip, true +} + +// HasSkip returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) HasSkip() bool { + if o != nil && !IsNil(o.Skip) { + return true + } + + return false +} + +// SetSkip gets a reference to the given bool and assigns it to the Skip field. +func (o *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) SetSkip(v bool) { + o.Skip = &v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skip) { + toSerialize["skip"] = o.Skip + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin := _GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin(varGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skip") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin struct { + value *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) Get() *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) Set(val *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin(val *GetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) *NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin { + return &NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsAdminerDefaultLogin) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_bola.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_bola.go new file mode 100644 index 00000000..5f8e796a --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_bola.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsBola type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsBola{} + +// GetProfile200ResponseConfigurationSecurityTestsBola struct for GetProfile200ResponseConfigurationSecurityTestsBola +type GetProfile200ResponseConfigurationSecurityTestsBola struct { + Skip *bool `json:"skip,omitempty"` + DoNotFuzz []string `json:"do_not_fuzz,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsBola GetProfile200ResponseConfigurationSecurityTestsBola + +// NewGetProfile200ResponseConfigurationSecurityTestsBola instantiates a new GetProfile200ResponseConfigurationSecurityTestsBola 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 NewGetProfile200ResponseConfigurationSecurityTestsBola() *GetProfile200ResponseConfigurationSecurityTestsBola { + this := GetProfile200ResponseConfigurationSecurityTestsBola{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsBolaWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsBola 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 NewGetProfile200ResponseConfigurationSecurityTestsBolaWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsBola { + this := GetProfile200ResponseConfigurationSecurityTestsBola{} + return &this +} + +// GetSkip returns the Skip field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) GetSkip() bool { + if o == nil || IsNil(o.Skip) { + var ret bool + return ret + } + return *o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) GetSkipOk() (*bool, bool) { + if o == nil || IsNil(o.Skip) { + return nil, false + } + return o.Skip, true +} + +// HasSkip returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) HasSkip() bool { + if o != nil && !IsNil(o.Skip) { + return true + } + + return false +} + +// SetSkip gets a reference to the given bool and assigns it to the Skip field. +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) SetSkip(v bool) { + o.Skip = &v +} + +// GetDoNotFuzz returns the DoNotFuzz field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) GetDoNotFuzz() []string { + if o == nil || IsNil(o.DoNotFuzz) { + var ret []string + return ret + } + return o.DoNotFuzz +} + +// GetDoNotFuzzOk returns a tuple with the DoNotFuzz field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) GetDoNotFuzzOk() ([]string, bool) { + if o == nil || IsNil(o.DoNotFuzz) { + return nil, false + } + return o.DoNotFuzz, true +} + +// HasDoNotFuzz returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) HasDoNotFuzz() bool { + if o != nil && !IsNil(o.DoNotFuzz) { + return true + } + + return false +} + +// SetDoNotFuzz gets a reference to the given []string and assigns it to the DoNotFuzz field. +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) SetDoNotFuzz(v []string) { + o.DoNotFuzz = v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsBola) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsBola) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skip) { + toSerialize["skip"] = o.Skip + } + if !IsNil(o.DoNotFuzz) { + toSerialize["do_not_fuzz"] = o.DoNotFuzz + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsBola) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTestsBola := _GetProfile200ResponseConfigurationSecurityTestsBola{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsBola) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsBola(varGetProfile200ResponseConfigurationSecurityTestsBola) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skip") + delete(additionalProperties, "do_not_fuzz") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsBola struct { + value *GetProfile200ResponseConfigurationSecurityTestsBola + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsBola) Get() *GetProfile200ResponseConfigurationSecurityTestsBola { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsBola) Set(val *GetProfile200ResponseConfigurationSecurityTestsBola) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsBola) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsBola) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsBola(val *GetProfile200ResponseConfigurationSecurityTestsBola) *NullableGetProfile200ResponseConfigurationSecurityTestsBola { + return &NullableGetProfile200ResponseConfigurationSecurityTestsBola{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsBola) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsBola) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_exposed_sourcemap.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_exposed_sourcemap.go new file mode 100644 index 00000000..cb40be8e --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_exposed_sourcemap.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap{} + +// GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap struct for GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap +type GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap struct { + Skip *bool `json:"skip,omitempty"` + IssuesCountLimit *float32 `json:"issues_count_limit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap + +// NewGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap instantiates a new GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap 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 NewGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap() *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap { + this := GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsExposedSourcemapWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap 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 NewGetProfile200ResponseConfigurationSecurityTestsExposedSourcemapWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap { + this := GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap{} + return &this +} + +// GetSkip returns the Skip field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) GetSkip() bool { + if o == nil || IsNil(o.Skip) { + var ret bool + return ret + } + return *o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) GetSkipOk() (*bool, bool) { + if o == nil || IsNil(o.Skip) { + return nil, false + } + return o.Skip, true +} + +// HasSkip returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) HasSkip() bool { + if o != nil && !IsNil(o.Skip) { + return true + } + + return false +} + +// SetSkip gets a reference to the given bool and assigns it to the Skip field. +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) SetSkip(v bool) { + o.Skip = &v +} + +// GetIssuesCountLimit returns the IssuesCountLimit field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) GetIssuesCountLimit() float32 { + if o == nil || IsNil(o.IssuesCountLimit) { + var ret float32 + return ret + } + return *o.IssuesCountLimit +} + +// GetIssuesCountLimitOk returns a tuple with the IssuesCountLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) GetIssuesCountLimitOk() (*float32, bool) { + if o == nil || IsNil(o.IssuesCountLimit) { + return nil, false + } + return o.IssuesCountLimit, true +} + +// HasIssuesCountLimit returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) HasIssuesCountLimit() bool { + if o != nil && !IsNil(o.IssuesCountLimit) { + return true + } + + return false +} + +// SetIssuesCountLimit gets a reference to the given float32 and assigns it to the IssuesCountLimit field. +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) SetIssuesCountLimit(v float32) { + o.IssuesCountLimit = &v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skip) { + toSerialize["skip"] = o.Skip + } + if !IsNil(o.IssuesCountLimit) { + toSerialize["issues_count_limit"] = o.IssuesCountLimit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap := _GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap(varGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skip") + delete(additionalProperties, "issues_count_limit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap struct { + value *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) Get() *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) Set(val *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap(val *GetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) *NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap { + return &NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsExposedSourcemap) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_frontend_sql_injection.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_frontend_sql_injection.go new file mode 100644 index 00000000..5d93edad --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_frontend_sql_injection.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection{} + +// GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection struct for GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection +type GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection struct { + Skip *bool `json:"skip,omitempty"` + DedupeQueryParamsByName *bool `json:"dedupe_query_params_by_name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection + +// NewGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection instantiates a new GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection 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 NewGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection() *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection { + this := GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjectionWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection 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 NewGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjectionWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection { + this := GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection{} + return &this +} + +// GetSkip returns the Skip field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) GetSkip() bool { + if o == nil || IsNil(o.Skip) { + var ret bool + return ret + } + return *o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) GetSkipOk() (*bool, bool) { + if o == nil || IsNil(o.Skip) { + return nil, false + } + return o.Skip, true +} + +// HasSkip returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) HasSkip() bool { + if o != nil && !IsNil(o.Skip) { + return true + } + + return false +} + +// SetSkip gets a reference to the given bool and assigns it to the Skip field. +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) SetSkip(v bool) { + o.Skip = &v +} + +// GetDedupeQueryParamsByName returns the DedupeQueryParamsByName field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) GetDedupeQueryParamsByName() bool { + if o == nil || IsNil(o.DedupeQueryParamsByName) { + var ret bool + return ret + } + return *o.DedupeQueryParamsByName +} + +// GetDedupeQueryParamsByNameOk returns a tuple with the DedupeQueryParamsByName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) GetDedupeQueryParamsByNameOk() (*bool, bool) { + if o == nil || IsNil(o.DedupeQueryParamsByName) { + return nil, false + } + return o.DedupeQueryParamsByName, true +} + +// HasDedupeQueryParamsByName returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) HasDedupeQueryParamsByName() bool { + if o != nil && !IsNil(o.DedupeQueryParamsByName) { + return true + } + + return false +} + +// SetDedupeQueryParamsByName gets a reference to the given bool and assigns it to the DedupeQueryParamsByName field. +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) SetDedupeQueryParamsByName(v bool) { + o.DedupeQueryParamsByName = &v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skip) { + toSerialize["skip"] = o.Skip + } + if !IsNil(o.DedupeQueryParamsByName) { + toSerialize["dedupe_query_params_by_name"] = o.DedupeQueryParamsByName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection := _GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection(varGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skip") + delete(additionalProperties, "dedupe_query_params_by_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection struct { + value *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) Get() *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) Set(val *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection(val *GetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) *NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection { + return &NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsFrontendSqlInjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_high_number_of_custom_scalars.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_high_number_of_custom_scalars.go new file mode 100644 index 00000000..44310252 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_high_number_of_custom_scalars.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars{} + +// GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars struct for GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars +type GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars struct { + Skip *bool `json:"skip,omitempty"` + DetectionThreshold *float32 `json:"detection_threshold,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars + +// NewGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars instantiates a new GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars 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 NewGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars() *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + this := GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalarsWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars 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 NewGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalarsWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + this := GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars{} + return &this +} + +// GetSkip returns the Skip field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) GetSkip() bool { + if o == nil || IsNil(o.Skip) { + var ret bool + return ret + } + return *o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) GetSkipOk() (*bool, bool) { + if o == nil || IsNil(o.Skip) { + return nil, false + } + return o.Skip, true +} + +// HasSkip returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) HasSkip() bool { + if o != nil && !IsNil(o.Skip) { + return true + } + + return false +} + +// SetSkip gets a reference to the given bool and assigns it to the Skip field. +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) SetSkip(v bool) { + o.Skip = &v +} + +// GetDetectionThreshold returns the DetectionThreshold field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) GetDetectionThreshold() float32 { + if o == nil || IsNil(o.DetectionThreshold) { + var ret float32 + return ret + } + return *o.DetectionThreshold +} + +// GetDetectionThresholdOk returns a tuple with the DetectionThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) GetDetectionThresholdOk() (*float32, bool) { + if o == nil || IsNil(o.DetectionThreshold) { + return nil, false + } + return o.DetectionThreshold, true +} + +// HasDetectionThreshold returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) HasDetectionThreshold() bool { + if o != nil && !IsNil(o.DetectionThreshold) { + return true + } + + return false +} + +// SetDetectionThreshold gets a reference to the given float32 and assigns it to the DetectionThreshold field. +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) SetDetectionThreshold(v float32) { + o.DetectionThreshold = &v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skip) { + toSerialize["skip"] = o.Skip + } + if !IsNil(o.DetectionThreshold) { + toSerialize["detection_threshold"] = o.DetectionThreshold + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars := _GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars(varGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skip") + delete(additionalProperties, "detection_threshold") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars struct { + value *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) Get() *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) Set(val *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars(val *GetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) *NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars { + return &NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsHighNumberOfCustomScalars) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control.go new file mode 100644 index 00000000..484395d5 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control.go @@ -0,0 +1,375 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl{} + +// GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl struct for GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl +type GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl struct { + Skip *bool `json:"skip,omitempty"` + MainUser *string `json:"main_user,omitempty"` + NaturalLanguageRule *string `json:"natural_language_rule,omitempty"` + OtherUsers *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers `json:"other_users,omitempty"` + SpecificUsers map[string]GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue `json:"specific_users,omitempty"` + Paths []string `json:"paths,omitempty"` + KeysMatching []string `json:"keys_matching,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl + +// NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl instantiates a new GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl 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 NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl() *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl { + this := GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl 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 NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl { + this := GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl{} + return &this +} + +// GetSkip returns the Skip field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetSkip() bool { + if o == nil || IsNil(o.Skip) { + var ret bool + return ret + } + return *o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetSkipOk() (*bool, bool) { + if o == nil || IsNil(o.Skip) { + return nil, false + } + return o.Skip, true +} + +// HasSkip returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) HasSkip() bool { + if o != nil && !IsNil(o.Skip) { + return true + } + + return false +} + +// SetSkip gets a reference to the given bool and assigns it to the Skip field. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) SetSkip(v bool) { + o.Skip = &v +} + +// GetMainUser returns the MainUser field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetMainUser() string { + if o == nil || IsNil(o.MainUser) { + var ret string + return ret + } + return *o.MainUser +} + +// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetMainUserOk() (*string, bool) { + if o == nil || IsNil(o.MainUser) { + return nil, false + } + return o.MainUser, true +} + +// HasMainUser returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) HasMainUser() bool { + if o != nil && !IsNil(o.MainUser) { + return true + } + + return false +} + +// SetMainUser gets a reference to the given string and assigns it to the MainUser field. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) SetMainUser(v string) { + o.MainUser = &v +} + +// GetNaturalLanguageRule returns the NaturalLanguageRule field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetNaturalLanguageRule() string { + if o == nil || IsNil(o.NaturalLanguageRule) { + var ret string + return ret + } + return *o.NaturalLanguageRule +} + +// GetNaturalLanguageRuleOk returns a tuple with the NaturalLanguageRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetNaturalLanguageRuleOk() (*string, bool) { + if o == nil || IsNil(o.NaturalLanguageRule) { + return nil, false + } + return o.NaturalLanguageRule, true +} + +// HasNaturalLanguageRule returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) HasNaturalLanguageRule() bool { + if o != nil && !IsNil(o.NaturalLanguageRule) { + return true + } + + return false +} + +// SetNaturalLanguageRule gets a reference to the given string and assigns it to the NaturalLanguageRule field. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) SetNaturalLanguageRule(v string) { + o.NaturalLanguageRule = &v +} + +// GetOtherUsers returns the OtherUsers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetOtherUsers() GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers { + if o == nil || IsNil(o.OtherUsers) { + var ret GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers + return ret + } + return *o.OtherUsers +} + +// GetOtherUsersOk returns a tuple with the OtherUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetOtherUsersOk() (*GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers, bool) { + if o == nil || IsNil(o.OtherUsers) { + return nil, false + } + return o.OtherUsers, true +} + +// HasOtherUsers returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) HasOtherUsers() bool { + if o != nil && !IsNil(o.OtherUsers) { + return true + } + + return false +} + +// SetOtherUsers gets a reference to the given GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers and assigns it to the OtherUsers field. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) SetOtherUsers(v GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) { + o.OtherUsers = &v +} + +// GetSpecificUsers returns the SpecificUsers field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetSpecificUsers() map[string]GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue { + if o == nil || IsNil(o.SpecificUsers) { + var ret map[string]GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue + return ret + } + return o.SpecificUsers +} + +// GetSpecificUsersOk returns a tuple with the SpecificUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetSpecificUsersOk() (map[string]GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue, bool) { + if o == nil || IsNil(o.SpecificUsers) { + return map[string]GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue{}, false + } + return o.SpecificUsers, true +} + +// HasSpecificUsers returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) HasSpecificUsers() bool { + if o != nil && !IsNil(o.SpecificUsers) { + return true + } + + return false +} + +// SetSpecificUsers gets a reference to the given map[string]GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue and assigns it to the SpecificUsers field. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) SetSpecificUsers(v map[string]GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) { + o.SpecificUsers = v +} + +// GetPaths returns the Paths field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetPaths() []string { + if o == nil || IsNil(o.Paths) { + var ret []string + return ret + } + return o.Paths +} + +// GetPathsOk returns a tuple with the Paths field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetPathsOk() ([]string, bool) { + if o == nil || IsNil(o.Paths) { + return nil, false + } + return o.Paths, true +} + +// HasPaths returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) HasPaths() bool { + if o != nil && !IsNil(o.Paths) { + return true + } + + return false +} + +// SetPaths gets a reference to the given []string and assigns it to the Paths field. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) SetPaths(v []string) { + o.Paths = v +} + +// GetKeysMatching returns the KeysMatching field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetKeysMatching() []string { + if o == nil || IsNil(o.KeysMatching) { + var ret []string + return ret + } + return o.KeysMatching +} + +// GetKeysMatchingOk returns a tuple with the KeysMatching field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) GetKeysMatchingOk() ([]string, bool) { + if o == nil || IsNil(o.KeysMatching) { + return nil, false + } + return o.KeysMatching, true +} + +// HasKeysMatching returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) HasKeysMatching() bool { + if o != nil && !IsNil(o.KeysMatching) { + return true + } + + return false +} + +// SetKeysMatching gets a reference to the given []string and assigns it to the KeysMatching field. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) SetKeysMatching(v []string) { + o.KeysMatching = v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skip) { + toSerialize["skip"] = o.Skip + } + if !IsNil(o.MainUser) { + toSerialize["main_user"] = o.MainUser + } + if !IsNil(o.NaturalLanguageRule) { + toSerialize["natural_language_rule"] = o.NaturalLanguageRule + } + if !IsNil(o.OtherUsers) { + toSerialize["other_users"] = o.OtherUsers + } + if !IsNil(o.SpecificUsers) { + toSerialize["specific_users"] = o.SpecificUsers + } + if !IsNil(o.Paths) { + toSerialize["paths"] = o.Paths + } + if !IsNil(o.KeysMatching) { + toSerialize["keys_matching"] = o.KeysMatching + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl := _GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl(varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skip") + delete(additionalProperties, "main_user") + delete(additionalProperties, "natural_language_rule") + delete(additionalProperties, "other_users") + delete(additionalProperties, "specific_users") + delete(additionalProperties, "paths") + delete(additionalProperties, "keys_matching") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl struct { + value *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) Get() *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) Set(val *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl(val *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl { + return &NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControl) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control_other_users.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control_other_users.go new file mode 100644 index 00000000..b3eea228 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control_other_users.go @@ -0,0 +1,166 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers{} + +// GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers struct for GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers +type GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers struct { + Detect []interface{} `json:"detect"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers + +// NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers instantiates a new GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers 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 NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers(detect []interface{}) *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers { + this := GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers{} + this.Detect = detect + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsersWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers 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 NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsersWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers { + this := GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers{} + return &this +} + +// GetDetect returns the Detect field value +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) GetDetect() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Detect +} + +// GetDetectOk returns a tuple with the Detect field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) GetDetectOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Detect, true +} + +// SetDetect sets field value +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) SetDetect(v []interface{}) { + o.Detect = v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["detect"] = o.Detect + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "detect", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers := _GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers(varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "detect") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers struct { + value *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) Get() *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) Set(val *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers(val *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers { + return &NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlOtherUsers) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control_specific_users_value.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control_specific_users_value.go new file mode 100644 index 00000000..a7ba5c96 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_multi_user_access_control_specific_users_value.go @@ -0,0 +1,166 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue{} + +// GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue struct for GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue +type GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue struct { + Detect []interface{} `json:"detect"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue + +// NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue instantiates a new GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue 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 NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue(detect []interface{}) *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue { + this := GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue{} + this.Detect = detect + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValueWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue 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 NewGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValueWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue { + this := GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue{} + return &this +} + +// GetDetect returns the Detect field value +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) GetDetect() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.Detect +} + +// GetDetectOk returns a tuple with the Detect field value +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) GetDetectOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Detect, true +} + +// SetDetect sets field value +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) SetDetect(v []interface{}) { + o.Detect = v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["detect"] = o.Detect + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "detect", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue := _GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue(varGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "detect") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue struct { + value *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) Get() *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) Set(val *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue(val *GetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue { + return &NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsMultiUserAccessControlSpecificUsersValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_private_data.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_private_data.go new file mode 100644 index 00000000..767ccd5f --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_private_data.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsPrivateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsPrivateData{} + +// GetProfile200ResponseConfigurationSecurityTestsPrivateData struct for GetProfile200ResponseConfigurationSecurityTestsPrivateData +type GetProfile200ResponseConfigurationSecurityTestsPrivateData struct { + Skip *bool `json:"skip,omitempty"` + Users map[string][]string `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsPrivateData GetProfile200ResponseConfigurationSecurityTestsPrivateData + +// NewGetProfile200ResponseConfigurationSecurityTestsPrivateData instantiates a new GetProfile200ResponseConfigurationSecurityTestsPrivateData 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 NewGetProfile200ResponseConfigurationSecurityTestsPrivateData() *GetProfile200ResponseConfigurationSecurityTestsPrivateData { + this := GetProfile200ResponseConfigurationSecurityTestsPrivateData{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsPrivateDataWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsPrivateData 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 NewGetProfile200ResponseConfigurationSecurityTestsPrivateDataWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsPrivateData { + this := GetProfile200ResponseConfigurationSecurityTestsPrivateData{} + return &this +} + +// GetSkip returns the Skip field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) GetSkip() bool { + if o == nil || IsNil(o.Skip) { + var ret bool + return ret + } + return *o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) GetSkipOk() (*bool, bool) { + if o == nil || IsNil(o.Skip) { + return nil, false + } + return o.Skip, true +} + +// HasSkip returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) HasSkip() bool { + if o != nil && !IsNil(o.Skip) { + return true + } + + return false +} + +// SetSkip gets a reference to the given bool and assigns it to the Skip field. +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) SetSkip(v bool) { + o.Skip = &v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) GetUsers() map[string][]string { + if o == nil || IsNil(o.Users) { + var ret map[string][]string + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) GetUsersOk() (map[string][]string, bool) { + if o == nil || IsNil(o.Users) { + return map[string][]string{}, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given map[string][]string and assigns it to the Users field. +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) SetUsers(v map[string][]string) { + o.Users = v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsPrivateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsPrivateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skip) { + toSerialize["skip"] = o.Skip + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsPrivateData) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTestsPrivateData := _GetProfile200ResponseConfigurationSecurityTestsPrivateData{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsPrivateData) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsPrivateData(varGetProfile200ResponseConfigurationSecurityTestsPrivateData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skip") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData struct { + value *GetProfile200ResponseConfigurationSecurityTestsPrivateData + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData) Get() *GetProfile200ResponseConfigurationSecurityTestsPrivateData { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData) Set(val *GetProfile200ResponseConfigurationSecurityTestsPrivateData) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsPrivateData(val *GetProfile200ResponseConfigurationSecurityTestsPrivateData) *NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData { + return &NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsPrivateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_response_size.go b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_response_size.go new file mode 100644 index 00000000..33427b59 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_security_tests_response_size.go @@ -0,0 +1,190 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSecurityTestsResponseSize type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSecurityTestsResponseSize{} + +// GetProfile200ResponseConfigurationSecurityTestsResponseSize struct for GetProfile200ResponseConfigurationSecurityTestsResponseSize +type GetProfile200ResponseConfigurationSecurityTestsResponseSize struct { + Skip *bool `json:"skip,omitempty"` + MaxLength *float32 `json:"max_length,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSecurityTestsResponseSize GetProfile200ResponseConfigurationSecurityTestsResponseSize + +// NewGetProfile200ResponseConfigurationSecurityTestsResponseSize instantiates a new GetProfile200ResponseConfigurationSecurityTestsResponseSize 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 NewGetProfile200ResponseConfigurationSecurityTestsResponseSize() *GetProfile200ResponseConfigurationSecurityTestsResponseSize { + this := GetProfile200ResponseConfigurationSecurityTestsResponseSize{} + return &this +} + +// NewGetProfile200ResponseConfigurationSecurityTestsResponseSizeWithDefaults instantiates a new GetProfile200ResponseConfigurationSecurityTestsResponseSize 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 NewGetProfile200ResponseConfigurationSecurityTestsResponseSizeWithDefaults() *GetProfile200ResponseConfigurationSecurityTestsResponseSize { + this := GetProfile200ResponseConfigurationSecurityTestsResponseSize{} + return &this +} + +// GetSkip returns the Skip field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) GetSkip() bool { + if o == nil || IsNil(o.Skip) { + var ret bool + return ret + } + return *o.Skip +} + +// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) GetSkipOk() (*bool, bool) { + if o == nil || IsNil(o.Skip) { + return nil, false + } + return o.Skip, true +} + +// HasSkip returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) HasSkip() bool { + if o != nil && !IsNil(o.Skip) { + return true + } + + return false +} + +// SetSkip gets a reference to the given bool and assigns it to the Skip field. +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) SetSkip(v bool) { + o.Skip = &v +} + +// GetMaxLength returns the MaxLength field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) GetMaxLength() float32 { + if o == nil || IsNil(o.MaxLength) { + var ret float32 + return ret + } + return *o.MaxLength +} + +// GetMaxLengthOk returns a tuple with the MaxLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) GetMaxLengthOk() (*float32, bool) { + if o == nil || IsNil(o.MaxLength) { + return nil, false + } + return o.MaxLength, true +} + +// HasMaxLength returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) HasMaxLength() bool { + if o != nil && !IsNil(o.MaxLength) { + return true + } + + return false +} + +// SetMaxLength gets a reference to the given float32 and assigns it to the MaxLength field. +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) SetMaxLength(v float32) { + o.MaxLength = &v +} + +func (o GetProfile200ResponseConfigurationSecurityTestsResponseSize) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSecurityTestsResponseSize) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Skip) { + toSerialize["skip"] = o.Skip + } + if !IsNil(o.MaxLength) { + toSerialize["max_length"] = o.MaxLength + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSecurityTestsResponseSize) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSecurityTestsResponseSize := _GetProfile200ResponseConfigurationSecurityTestsResponseSize{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSecurityTestsResponseSize) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSecurityTestsResponseSize(varGetProfile200ResponseConfigurationSecurityTestsResponseSize) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "skip") + delete(additionalProperties, "max_length") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize struct { + value *GetProfile200ResponseConfigurationSecurityTestsResponseSize + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize) Get() *GetProfile200ResponseConfigurationSecurityTestsResponseSize { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize) Set(val *GetProfile200ResponseConfigurationSecurityTestsResponseSize) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSecurityTestsResponseSize(val *GetProfile200ResponseConfigurationSecurityTestsResponseSize) *NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize { + return &NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSecurityTestsResponseSize) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_service_discovery.go b/pkg/api/v3/model_get_profile_200_response_configuration_service_discovery.go new file mode 100644 index 00000000..0586e676 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_service_discovery.go @@ -0,0 +1,301 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationServiceDiscovery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationServiceDiscovery{} + +// GetProfile200ResponseConfigurationServiceDiscovery struct for GetProfile200ResponseConfigurationServiceDiscovery +type GetProfile200ResponseConfigurationServiceDiscovery struct { + Blocklist []GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf `json:"blocklist,omitempty"` + BaseUrlsDelimiters []string `json:"base_urls_delimiters,omitempty"` + BaseUrlsWordlist []string `json:"base_urls_wordlist,omitempty"` + EndpointsWordlist []string `json:"endpoints_wordlist,omitempty"` + GraphqlEndpointsWordlist []string `json:"graphql_endpoints_wordlist,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationServiceDiscovery GetProfile200ResponseConfigurationServiceDiscovery + +// NewGetProfile200ResponseConfigurationServiceDiscovery instantiates a new GetProfile200ResponseConfigurationServiceDiscovery 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 NewGetProfile200ResponseConfigurationServiceDiscovery() *GetProfile200ResponseConfigurationServiceDiscovery { + this := GetProfile200ResponseConfigurationServiceDiscovery{} + return &this +} + +// NewGetProfile200ResponseConfigurationServiceDiscoveryWithDefaults instantiates a new GetProfile200ResponseConfigurationServiceDiscovery 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 NewGetProfile200ResponseConfigurationServiceDiscoveryWithDefaults() *GetProfile200ResponseConfigurationServiceDiscovery { + this := GetProfile200ResponseConfigurationServiceDiscovery{} + return &this +} + +// GetBlocklist returns the Blocklist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetBlocklist() []GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf { + if o == nil || IsNil(o.Blocklist) { + var ret []GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + return ret + } + return o.Blocklist +} + +// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetBlocklistOk() ([]GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf, bool) { + if o == nil || IsNil(o.Blocklist) { + return nil, false + } + return o.Blocklist, true +} + +// HasBlocklist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) HasBlocklist() bool { + if o != nil && !IsNil(o.Blocklist) { + return true + } + + return false +} + +// SetBlocklist gets a reference to the given []GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf and assigns it to the Blocklist field. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) SetBlocklist(v []GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) { + o.Blocklist = v +} + +// GetBaseUrlsDelimiters returns the BaseUrlsDelimiters field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetBaseUrlsDelimiters() []string { + if o == nil || IsNil(o.BaseUrlsDelimiters) { + var ret []string + return ret + } + return o.BaseUrlsDelimiters +} + +// GetBaseUrlsDelimitersOk returns a tuple with the BaseUrlsDelimiters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetBaseUrlsDelimitersOk() ([]string, bool) { + if o == nil || IsNil(o.BaseUrlsDelimiters) { + return nil, false + } + return o.BaseUrlsDelimiters, true +} + +// HasBaseUrlsDelimiters returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) HasBaseUrlsDelimiters() bool { + if o != nil && !IsNil(o.BaseUrlsDelimiters) { + return true + } + + return false +} + +// SetBaseUrlsDelimiters gets a reference to the given []string and assigns it to the BaseUrlsDelimiters field. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) SetBaseUrlsDelimiters(v []string) { + o.BaseUrlsDelimiters = v +} + +// GetBaseUrlsWordlist returns the BaseUrlsWordlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetBaseUrlsWordlist() []string { + if o == nil || IsNil(o.BaseUrlsWordlist) { + var ret []string + return ret + } + return o.BaseUrlsWordlist +} + +// GetBaseUrlsWordlistOk returns a tuple with the BaseUrlsWordlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetBaseUrlsWordlistOk() ([]string, bool) { + if o == nil || IsNil(o.BaseUrlsWordlist) { + return nil, false + } + return o.BaseUrlsWordlist, true +} + +// HasBaseUrlsWordlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) HasBaseUrlsWordlist() bool { + if o != nil && !IsNil(o.BaseUrlsWordlist) { + return true + } + + return false +} + +// SetBaseUrlsWordlist gets a reference to the given []string and assigns it to the BaseUrlsWordlist field. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) SetBaseUrlsWordlist(v []string) { + o.BaseUrlsWordlist = v +} + +// GetEndpointsWordlist returns the EndpointsWordlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetEndpointsWordlist() []string { + if o == nil || IsNil(o.EndpointsWordlist) { + var ret []string + return ret + } + return o.EndpointsWordlist +} + +// GetEndpointsWordlistOk returns a tuple with the EndpointsWordlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetEndpointsWordlistOk() ([]string, bool) { + if o == nil || IsNil(o.EndpointsWordlist) { + return nil, false + } + return o.EndpointsWordlist, true +} + +// HasEndpointsWordlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) HasEndpointsWordlist() bool { + if o != nil && !IsNil(o.EndpointsWordlist) { + return true + } + + return false +} + +// SetEndpointsWordlist gets a reference to the given []string and assigns it to the EndpointsWordlist field. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) SetEndpointsWordlist(v []string) { + o.EndpointsWordlist = v +} + +// GetGraphqlEndpointsWordlist returns the GraphqlEndpointsWordlist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetGraphqlEndpointsWordlist() []string { + if o == nil || IsNil(o.GraphqlEndpointsWordlist) { + var ret []string + return ret + } + return o.GraphqlEndpointsWordlist +} + +// GetGraphqlEndpointsWordlistOk returns a tuple with the GraphqlEndpointsWordlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) GetGraphqlEndpointsWordlistOk() ([]string, bool) { + if o == nil || IsNil(o.GraphqlEndpointsWordlist) { + return nil, false + } + return o.GraphqlEndpointsWordlist, true +} + +// HasGraphqlEndpointsWordlist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) HasGraphqlEndpointsWordlist() bool { + if o != nil && !IsNil(o.GraphqlEndpointsWordlist) { + return true + } + + return false +} + +// SetGraphqlEndpointsWordlist gets a reference to the given []string and assigns it to the GraphqlEndpointsWordlist field. +func (o *GetProfile200ResponseConfigurationServiceDiscovery) SetGraphqlEndpointsWordlist(v []string) { + o.GraphqlEndpointsWordlist = v +} + +func (o GetProfile200ResponseConfigurationServiceDiscovery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationServiceDiscovery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Blocklist) { + toSerialize["blocklist"] = o.Blocklist + } + if !IsNil(o.BaseUrlsDelimiters) { + toSerialize["base_urls_delimiters"] = o.BaseUrlsDelimiters + } + if !IsNil(o.BaseUrlsWordlist) { + toSerialize["base_urls_wordlist"] = o.BaseUrlsWordlist + } + if !IsNil(o.EndpointsWordlist) { + toSerialize["endpoints_wordlist"] = o.EndpointsWordlist + } + if !IsNil(o.GraphqlEndpointsWordlist) { + toSerialize["graphql_endpoints_wordlist"] = o.GraphqlEndpointsWordlist + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationServiceDiscovery) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationServiceDiscovery := _GetProfile200ResponseConfigurationServiceDiscovery{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationServiceDiscovery) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationServiceDiscovery(varGetProfile200ResponseConfigurationServiceDiscovery) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "blocklist") + delete(additionalProperties, "base_urls_delimiters") + delete(additionalProperties, "base_urls_wordlist") + delete(additionalProperties, "endpoints_wordlist") + delete(additionalProperties, "graphql_endpoints_wordlist") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationServiceDiscovery struct { + value *GetProfile200ResponseConfigurationServiceDiscovery + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationServiceDiscovery) Get() *GetProfile200ResponseConfigurationServiceDiscovery { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationServiceDiscovery) Set(val *GetProfile200ResponseConfigurationServiceDiscovery) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationServiceDiscovery) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationServiceDiscovery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationServiceDiscovery(val *GetProfile200ResponseConfigurationServiceDiscovery) *NullableGetProfile200ResponseConfigurationServiceDiscovery { + return &NullableGetProfile200ResponseConfigurationServiceDiscovery{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationServiceDiscovery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationServiceDiscovery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_subdomain_enumeration.go b/pkg/api/v3/model_get_profile_200_response_configuration_subdomain_enumeration.go new file mode 100644 index 00000000..52914ee6 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_subdomain_enumeration.go @@ -0,0 +1,153 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" +) + +// checks if the GetProfile200ResponseConfigurationSubdomainEnumeration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetProfile200ResponseConfigurationSubdomainEnumeration{} + +// GetProfile200ResponseConfigurationSubdomainEnumeration struct for GetProfile200ResponseConfigurationSubdomainEnumeration +type GetProfile200ResponseConfigurationSubdomainEnumeration struct { + Blocklist []GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner `json:"blocklist,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetProfile200ResponseConfigurationSubdomainEnumeration GetProfile200ResponseConfigurationSubdomainEnumeration + +// NewGetProfile200ResponseConfigurationSubdomainEnumeration instantiates a new GetProfile200ResponseConfigurationSubdomainEnumeration 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 NewGetProfile200ResponseConfigurationSubdomainEnumeration() *GetProfile200ResponseConfigurationSubdomainEnumeration { + this := GetProfile200ResponseConfigurationSubdomainEnumeration{} + return &this +} + +// NewGetProfile200ResponseConfigurationSubdomainEnumerationWithDefaults instantiates a new GetProfile200ResponseConfigurationSubdomainEnumeration 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 NewGetProfile200ResponseConfigurationSubdomainEnumerationWithDefaults() *GetProfile200ResponseConfigurationSubdomainEnumeration { + this := GetProfile200ResponseConfigurationSubdomainEnumeration{} + return &this +} + +// GetBlocklist returns the Blocklist field value if set, zero value otherwise. +func (o *GetProfile200ResponseConfigurationSubdomainEnumeration) GetBlocklist() []GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner { + if o == nil || IsNil(o.Blocklist) { + var ret []GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner + return ret + } + return o.Blocklist +} + +// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetProfile200ResponseConfigurationSubdomainEnumeration) GetBlocklistOk() ([]GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner, bool) { + if o == nil || IsNil(o.Blocklist) { + return nil, false + } + return o.Blocklist, true +} + +// HasBlocklist returns a boolean if a field has been set. +func (o *GetProfile200ResponseConfigurationSubdomainEnumeration) HasBlocklist() bool { + if o != nil && !IsNil(o.Blocklist) { + return true + } + + return false +} + +// SetBlocklist gets a reference to the given []GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner and assigns it to the Blocklist field. +func (o *GetProfile200ResponseConfigurationSubdomainEnumeration) SetBlocklist(v []GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) { + o.Blocklist = v +} + +func (o GetProfile200ResponseConfigurationSubdomainEnumeration) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetProfile200ResponseConfigurationSubdomainEnumeration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Blocklist) { + toSerialize["blocklist"] = o.Blocklist + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetProfile200ResponseConfigurationSubdomainEnumeration) UnmarshalJSON(data []byte) (err error) { + varGetProfile200ResponseConfigurationSubdomainEnumeration := _GetProfile200ResponseConfigurationSubdomainEnumeration{} + + err = json.Unmarshal(data, &varGetProfile200ResponseConfigurationSubdomainEnumeration) + + if err != nil { + return err + } + + *o = GetProfile200ResponseConfigurationSubdomainEnumeration(varGetProfile200ResponseConfigurationSubdomainEnumeration) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "blocklist") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetProfile200ResponseConfigurationSubdomainEnumeration struct { + value *GetProfile200ResponseConfigurationSubdomainEnumeration + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSubdomainEnumeration) Get() *GetProfile200ResponseConfigurationSubdomainEnumeration { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSubdomainEnumeration) Set(val *GetProfile200ResponseConfigurationSubdomainEnumeration) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSubdomainEnumeration) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSubdomainEnumeration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSubdomainEnumeration(val *GetProfile200ResponseConfigurationSubdomainEnumeration) *NullableGetProfile200ResponseConfigurationSubdomainEnumeration { + return &NullableGetProfile200ResponseConfigurationSubdomainEnumeration{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSubdomainEnumeration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSubdomainEnumeration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_get_profile_200_response_configuration_subdomain_enumeration_blocklist_inner.go b/pkg/api/v3/model_get_profile_200_response_configuration_subdomain_enumeration_blocklist_inner.go new file mode 100644 index 00000000..8a2a7758 --- /dev/null +++ b/pkg/api/v3/model_get_profile_200_response_configuration_subdomain_enumeration_blocklist_inner.go @@ -0,0 +1,103 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner struct for GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner +type GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner struct { + GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf *GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf + err = json.Unmarshal(data, &dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + if err == nil { + jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf, _ := json.Marshal(dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + if string(jsonGetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) == "{}" { // empty struct + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } else { + return nil // data stored in dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf, return on the first match + } + } else { + dst.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf = nil + } + + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) MarshalJSON() ([]byte, error) { + if src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf != nil { + return json.Marshal(&src.GetProfile200ResponseConfigurationScopeAllowlistInnerOneOf) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner struct { + value *GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner + isSet bool +} + +func (v NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) Get() *GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner { + return v.value +} + +func (v *NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) Set(val *GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner(val *GetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) *NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner { + return &NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner{value: val, isSet: true} +} + +func (v NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetProfile200ResponseConfigurationSubdomainEnumerationBlocklistInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_workflow_detailed.go b/pkg/api/v3/model_get_workflow_200_response.go similarity index 63% rename from pkg/api/v3/model_workflow_detailed.go rename to pkg/api/v3/model_get_workflow_200_response.go index ce0e6964..5054e6e2 100644 --- a/pkg/api/v3/model_workflow_detailed.go +++ b/pkg/api/v3/model_get_workflow_200_response.go @@ -15,31 +15,31 @@ import ( "fmt" ) -// checks if the WorkflowDetailed type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WorkflowDetailed{} +// checks if the GetWorkflow200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetWorkflow200Response{} -// WorkflowDetailed Detailed information about a workflow -type WorkflowDetailed struct { +// GetWorkflow200Response struct for GetWorkflow200Response +type GetWorkflow200Response struct { // The workflow ID. Id *string `json:"id,omitempty"` // The name of the workflow. Name *string `json:"name,omitempty"` Trigger ENUMPROPERTIESTRIGGER `json:"trigger"` // The throttle in milliseconds for the workflow. - ThrottleMs *float32 `json:"throttleMs,omitempty"` - Filters []WorkflowDetailedFiltersInner `json:"filters"` - Actions []WorkflowDetailedActionsInner `json:"actions"` + ThrottleMs *float32 `json:"throttleMs,omitempty"` + Filters []GetWorkflow200ResponseFiltersInner `json:"filters"` + Actions []GetWorkflow200ResponseActionsInner `json:"actions"` AdditionalProperties map[string]interface{} } -type _WorkflowDetailed WorkflowDetailed +type _GetWorkflow200Response GetWorkflow200Response -// NewWorkflowDetailed instantiates a new WorkflowDetailed object +// NewGetWorkflow200Response instantiates a new GetWorkflow200Response 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 NewWorkflowDetailed(trigger ENUMPROPERTIESTRIGGER, filters []WorkflowDetailedFiltersInner, actions []WorkflowDetailedActionsInner) *WorkflowDetailed { - this := WorkflowDetailed{} +func NewGetWorkflow200Response(trigger ENUMPROPERTIESTRIGGER, filters []GetWorkflow200ResponseFiltersInner, actions []GetWorkflow200ResponseActionsInner) *GetWorkflow200Response { + this := GetWorkflow200Response{} var id string = "00000000-0000-0000-0000-000000000000" this.Id = &id var name string = "Workflow Name" @@ -50,11 +50,11 @@ func NewWorkflowDetailed(trigger ENUMPROPERTIESTRIGGER, filters []WorkflowDetail return &this } -// NewWorkflowDetailedWithDefaults instantiates a new WorkflowDetailed object +// NewGetWorkflow200ResponseWithDefaults instantiates a new GetWorkflow200Response 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 NewWorkflowDetailedWithDefaults() *WorkflowDetailed { - this := WorkflowDetailed{} +func NewGetWorkflow200ResponseWithDefaults() *GetWorkflow200Response { + this := GetWorkflow200Response{} var id string = "00000000-0000-0000-0000-000000000000" this.Id = &id var name string = "Workflow Name" @@ -63,7 +63,7 @@ func NewWorkflowDetailedWithDefaults() *WorkflowDetailed { } // GetId returns the Id field value if set, zero value otherwise. -func (o *WorkflowDetailed) GetId() string { +func (o *GetWorkflow200Response) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -73,7 +73,7 @@ func (o *WorkflowDetailed) GetId() string { // 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 *WorkflowDetailed) GetIdOk() (*string, bool) { +func (o *GetWorkflow200Response) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -81,7 +81,7 @@ func (o *WorkflowDetailed) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *WorkflowDetailed) HasId() bool { +func (o *GetWorkflow200Response) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -90,12 +90,12 @@ func (o *WorkflowDetailed) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *WorkflowDetailed) SetId(v string) { +func (o *GetWorkflow200Response) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *WorkflowDetailed) GetName() string { +func (o *GetWorkflow200Response) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -105,7 +105,7 @@ func (o *WorkflowDetailed) GetName() string { // 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 *WorkflowDetailed) GetNameOk() (*string, bool) { +func (o *GetWorkflow200Response) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -113,7 +113,7 @@ func (o *WorkflowDetailed) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *WorkflowDetailed) HasName() bool { +func (o *GetWorkflow200Response) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -122,12 +122,12 @@ func (o *WorkflowDetailed) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *WorkflowDetailed) SetName(v string) { +func (o *GetWorkflow200Response) SetName(v string) { o.Name = &v } // GetTrigger returns the Trigger field value -func (o *WorkflowDetailed) GetTrigger() ENUMPROPERTIESTRIGGER { +func (o *GetWorkflow200Response) GetTrigger() ENUMPROPERTIESTRIGGER { if o == nil { var ret ENUMPROPERTIESTRIGGER return ret @@ -138,7 +138,7 @@ func (o *WorkflowDetailed) GetTrigger() ENUMPROPERTIESTRIGGER { // GetTriggerOk returns a tuple with the Trigger field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailed) GetTriggerOk() (*ENUMPROPERTIESTRIGGER, bool) { +func (o *GetWorkflow200Response) GetTriggerOk() (*ENUMPROPERTIESTRIGGER, bool) { if o == nil { return nil, false } @@ -146,12 +146,12 @@ func (o *WorkflowDetailed) GetTriggerOk() (*ENUMPROPERTIESTRIGGER, bool) { } // SetTrigger sets field value -func (o *WorkflowDetailed) SetTrigger(v ENUMPROPERTIESTRIGGER) { +func (o *GetWorkflow200Response) SetTrigger(v ENUMPROPERTIESTRIGGER) { o.Trigger = v } // GetThrottleMs returns the ThrottleMs field value if set, zero value otherwise. -func (o *WorkflowDetailed) GetThrottleMs() float32 { +func (o *GetWorkflow200Response) GetThrottleMs() float32 { if o == nil || IsNil(o.ThrottleMs) { var ret float32 return ret @@ -161,7 +161,7 @@ func (o *WorkflowDetailed) GetThrottleMs() float32 { // GetThrottleMsOk returns a tuple with the ThrottleMs field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WorkflowDetailed) GetThrottleMsOk() (*float32, bool) { +func (o *GetWorkflow200Response) GetThrottleMsOk() (*float32, bool) { if o == nil || IsNil(o.ThrottleMs) { return nil, false } @@ -169,7 +169,7 @@ func (o *WorkflowDetailed) GetThrottleMsOk() (*float32, bool) { } // HasThrottleMs returns a boolean if a field has been set. -func (o *WorkflowDetailed) HasThrottleMs() bool { +func (o *GetWorkflow200Response) HasThrottleMs() bool { if o != nil && !IsNil(o.ThrottleMs) { return true } @@ -178,14 +178,14 @@ func (o *WorkflowDetailed) HasThrottleMs() bool { } // SetThrottleMs gets a reference to the given float32 and assigns it to the ThrottleMs field. -func (o *WorkflowDetailed) SetThrottleMs(v float32) { +func (o *GetWorkflow200Response) SetThrottleMs(v float32) { o.ThrottleMs = &v } // GetFilters returns the Filters field value -func (o *WorkflowDetailed) GetFilters() []WorkflowDetailedFiltersInner { +func (o *GetWorkflow200Response) GetFilters() []GetWorkflow200ResponseFiltersInner { if o == nil { - var ret []WorkflowDetailedFiltersInner + var ret []GetWorkflow200ResponseFiltersInner return ret } @@ -194,7 +194,7 @@ func (o *WorkflowDetailed) GetFilters() []WorkflowDetailedFiltersInner { // GetFiltersOk returns a tuple with the Filters field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailed) GetFiltersOk() ([]WorkflowDetailedFiltersInner, bool) { +func (o *GetWorkflow200Response) GetFiltersOk() ([]GetWorkflow200ResponseFiltersInner, bool) { if o == nil { return nil, false } @@ -202,14 +202,14 @@ func (o *WorkflowDetailed) GetFiltersOk() ([]WorkflowDetailedFiltersInner, bool) } // SetFilters sets field value -func (o *WorkflowDetailed) SetFilters(v []WorkflowDetailedFiltersInner) { +func (o *GetWorkflow200Response) SetFilters(v []GetWorkflow200ResponseFiltersInner) { o.Filters = v } // GetActions returns the Actions field value -func (o *WorkflowDetailed) GetActions() []WorkflowDetailedActionsInner { +func (o *GetWorkflow200Response) GetActions() []GetWorkflow200ResponseActionsInner { if o == nil { - var ret []WorkflowDetailedActionsInner + var ret []GetWorkflow200ResponseActionsInner return ret } @@ -218,7 +218,7 @@ func (o *WorkflowDetailed) GetActions() []WorkflowDetailedActionsInner { // GetActionsOk returns a tuple with the Actions field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailed) GetActionsOk() ([]WorkflowDetailedActionsInner, bool) { +func (o *GetWorkflow200Response) GetActionsOk() ([]GetWorkflow200ResponseActionsInner, bool) { if o == nil { return nil, false } @@ -226,11 +226,11 @@ func (o *WorkflowDetailed) GetActionsOk() ([]WorkflowDetailedActionsInner, bool) } // SetActions sets field value -func (o *WorkflowDetailed) SetActions(v []WorkflowDetailedActionsInner) { +func (o *GetWorkflow200Response) SetActions(v []GetWorkflow200ResponseActionsInner) { o.Actions = v } -func (o WorkflowDetailed) MarshalJSON() ([]byte, error) { +func (o GetWorkflow200Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -238,7 +238,7 @@ func (o WorkflowDetailed) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o WorkflowDetailed) ToMap() (map[string]interface{}, error) { +func (o GetWorkflow200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Id) { toSerialize["id"] = o.Id @@ -260,7 +260,7 @@ func (o WorkflowDetailed) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowDetailed) UnmarshalJSON(data []byte) (err error) { +func (o *GetWorkflow200Response) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -284,15 +284,15 @@ func (o *WorkflowDetailed) UnmarshalJSON(data []byte) (err error) { } } - varWorkflowDetailed := _WorkflowDetailed{} + varGetWorkflow200Response := _GetWorkflow200Response{} - err = json.Unmarshal(data, &varWorkflowDetailed) + err = json.Unmarshal(data, &varGetWorkflow200Response) if err != nil { return err } - *o = WorkflowDetailed(varWorkflowDetailed) + *o = GetWorkflow200Response(varGetWorkflow200Response) additionalProperties := make(map[string]interface{}) @@ -309,38 +309,38 @@ func (o *WorkflowDetailed) UnmarshalJSON(data []byte) (err error) { return err } -type NullableWorkflowDetailed struct { - value *WorkflowDetailed +type NullableGetWorkflow200Response struct { + value *GetWorkflow200Response isSet bool } -func (v NullableWorkflowDetailed) Get() *WorkflowDetailed { +func (v NullableGetWorkflow200Response) Get() *GetWorkflow200Response { return v.value } -func (v *NullableWorkflowDetailed) Set(val *WorkflowDetailed) { +func (v *NullableGetWorkflow200Response) Set(val *GetWorkflow200Response) { v.value = val v.isSet = true } -func (v NullableWorkflowDetailed) IsSet() bool { +func (v NullableGetWorkflow200Response) IsSet() bool { return v.isSet } -func (v *NullableWorkflowDetailed) Unset() { +func (v *NullableGetWorkflow200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableWorkflowDetailed(val *WorkflowDetailed) *NullableWorkflowDetailed { - return &NullableWorkflowDetailed{value: val, isSet: true} +func NewNullableGetWorkflow200Response(val *GetWorkflow200Response) *NullableGetWorkflow200Response { + return &NullableGetWorkflow200Response{value: val, isSet: true} } -func (v NullableWorkflowDetailed) MarshalJSON() ([]byte, error) { +func (v NullableGetWorkflow200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableWorkflowDetailed) UnmarshalJSON(src []byte) error { +func (v *NullableGetWorkflow200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_get_workflow_200_response_actions_inner.go b/pkg/api/v3/model_get_workflow_200_response_actions_inner.go new file mode 100644 index 00000000..54bb7c88 --- /dev/null +++ b/pkg/api/v3/model_get_workflow_200_response_actions_inner.go @@ -0,0 +1,307 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetWorkflow200ResponseActionsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetWorkflow200ResponseActionsInner{} + +// GetWorkflow200ResponseActionsInner struct for GetWorkflow200ResponseActionsInner +type GetWorkflow200ResponseActionsInner struct { + Id string `json:"id"` + Type ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE `json:"type"` + Parameters interface{} `json:"parameters,omitempty"` + InternalAction *ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION `json:"internalAction,omitempty"` + Integration *GetWorkflow200ResponseActionsInnerIntegration `json:"integration,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetWorkflow200ResponseActionsInner GetWorkflow200ResponseActionsInner + +// NewGetWorkflow200ResponseActionsInner instantiates a new GetWorkflow200ResponseActionsInner 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 NewGetWorkflow200ResponseActionsInner(id string, type_ ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE) *GetWorkflow200ResponseActionsInner { + this := GetWorkflow200ResponseActionsInner{} + this.Id = id + this.Type = type_ + return &this +} + +// NewGetWorkflow200ResponseActionsInnerWithDefaults instantiates a new GetWorkflow200ResponseActionsInner 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 NewGetWorkflow200ResponseActionsInnerWithDefaults() *GetWorkflow200ResponseActionsInner { + this := GetWorkflow200ResponseActionsInner{} + return &this +} + +// GetId returns the Id field value +func (o *GetWorkflow200ResponseActionsInner) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetWorkflow200ResponseActionsInner) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetWorkflow200ResponseActionsInner) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *GetWorkflow200ResponseActionsInner) GetType() ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE { + if o == nil { + var ret ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *GetWorkflow200ResponseActionsInner) GetTypeOk() (*ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *GetWorkflow200ResponseActionsInner) SetType(v ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE) { + o.Type = v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetWorkflow200ResponseActionsInner) GetParameters() interface{} { + if o == nil { + var ret interface{} + 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. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetWorkflow200ResponseActionsInner) GetParametersOk() (*interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return &o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *GetWorkflow200ResponseActionsInner) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field. +func (o *GetWorkflow200ResponseActionsInner) SetParameters(v interface{}) { + o.Parameters = v +} + +// GetInternalAction returns the InternalAction field value if set, zero value otherwise. +func (o *GetWorkflow200ResponseActionsInner) GetInternalAction() ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION { + if o == nil || IsNil(o.InternalAction) { + var ret ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION + return ret + } + return *o.InternalAction +} + +// GetInternalActionOk returns a tuple with the InternalAction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetWorkflow200ResponseActionsInner) GetInternalActionOk() (*ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION, bool) { + if o == nil || IsNil(o.InternalAction) { + return nil, false + } + return o.InternalAction, true +} + +// HasInternalAction returns a boolean if a field has been set. +func (o *GetWorkflow200ResponseActionsInner) HasInternalAction() bool { + if o != nil && !IsNil(o.InternalAction) { + return true + } + + return false +} + +// SetInternalAction gets a reference to the given ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION and assigns it to the InternalAction field. +func (o *GetWorkflow200ResponseActionsInner) SetInternalAction(v ENUMPROPERTIESACTIONSITEMSPROPERTIESINTERNALACTION) { + o.InternalAction = &v +} + +// GetIntegration returns the Integration field value if set, zero value otherwise. +func (o *GetWorkflow200ResponseActionsInner) GetIntegration() GetWorkflow200ResponseActionsInnerIntegration { + if o == nil || IsNil(o.Integration) { + var ret GetWorkflow200ResponseActionsInnerIntegration + return ret + } + return *o.Integration +} + +// GetIntegrationOk returns a tuple with the Integration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetWorkflow200ResponseActionsInner) GetIntegrationOk() (*GetWorkflow200ResponseActionsInnerIntegration, bool) { + if o == nil || IsNil(o.Integration) { + return nil, false + } + return o.Integration, true +} + +// HasIntegration returns a boolean if a field has been set. +func (o *GetWorkflow200ResponseActionsInner) HasIntegration() bool { + if o != nil && !IsNil(o.Integration) { + return true + } + + return false +} + +// SetIntegration gets a reference to the given GetWorkflow200ResponseActionsInnerIntegration and assigns it to the Integration field. +func (o *GetWorkflow200ResponseActionsInner) SetIntegration(v GetWorkflow200ResponseActionsInnerIntegration) { + o.Integration = &v +} + +func (o GetWorkflow200ResponseActionsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetWorkflow200ResponseActionsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + if o.Parameters != nil { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.InternalAction) { + toSerialize["internalAction"] = o.InternalAction + } + if !IsNil(o.Integration) { + toSerialize["integration"] = o.Integration + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetWorkflow200ResponseActionsInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetWorkflow200ResponseActionsInner := _GetWorkflow200ResponseActionsInner{} + + err = json.Unmarshal(data, &varGetWorkflow200ResponseActionsInner) + + if err != nil { + return err + } + + *o = GetWorkflow200ResponseActionsInner(varGetWorkflow200ResponseActionsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "type") + delete(additionalProperties, "parameters") + delete(additionalProperties, "internalAction") + delete(additionalProperties, "integration") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetWorkflow200ResponseActionsInner struct { + value *GetWorkflow200ResponseActionsInner + isSet bool +} + +func (v NullableGetWorkflow200ResponseActionsInner) Get() *GetWorkflow200ResponseActionsInner { + return v.value +} + +func (v *NullableGetWorkflow200ResponseActionsInner) Set(val *GetWorkflow200ResponseActionsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetWorkflow200ResponseActionsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetWorkflow200ResponseActionsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetWorkflow200ResponseActionsInner(val *GetWorkflow200ResponseActionsInner) *NullableGetWorkflow200ResponseActionsInner { + return &NullableGetWorkflow200ResponseActionsInner{value: val, isSet: true} +} + +func (v NullableGetWorkflow200ResponseActionsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetWorkflow200ResponseActionsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_workflow_detailed_actions_inner_integration.go b/pkg/api/v3/model_get_workflow_200_response_actions_inner_integration.go similarity index 51% rename from pkg/api/v3/model_workflow_detailed_actions_inner_integration.go rename to pkg/api/v3/model_get_workflow_200_response_actions_inner_integration.go index e9dbacf4..9c9ed3a3 100644 --- a/pkg/api/v3/model_workflow_detailed_actions_inner_integration.go +++ b/pkg/api/v3/model_get_workflow_200_response_actions_inner_integration.go @@ -15,41 +15,41 @@ import ( "fmt" ) -// checks if the WorkflowDetailedActionsInnerIntegration type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WorkflowDetailedActionsInnerIntegration{} +// checks if the GetWorkflow200ResponseActionsInnerIntegration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetWorkflow200ResponseActionsInnerIntegration{} -// WorkflowDetailedActionsInnerIntegration struct for WorkflowDetailedActionsInnerIntegration -type WorkflowDetailedActionsInnerIntegration struct { +// GetWorkflow200ResponseActionsInnerIntegration struct for GetWorkflow200ResponseActionsInnerIntegration +type GetWorkflow200ResponseActionsInnerIntegration struct { Id string `json:"id"` Name string `json:"name"` Kind ENUMPROPERTIESDATAITEMSPROPERTIESKIND `json:"kind"` AdditionalProperties map[string]interface{} } -type _WorkflowDetailedActionsInnerIntegration WorkflowDetailedActionsInnerIntegration +type _GetWorkflow200ResponseActionsInnerIntegration GetWorkflow200ResponseActionsInnerIntegration -// NewWorkflowDetailedActionsInnerIntegration instantiates a new WorkflowDetailedActionsInnerIntegration object +// NewGetWorkflow200ResponseActionsInnerIntegration instantiates a new GetWorkflow200ResponseActionsInnerIntegration 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 NewWorkflowDetailedActionsInnerIntegration(id string, name string, kind ENUMPROPERTIESDATAITEMSPROPERTIESKIND) *WorkflowDetailedActionsInnerIntegration { - this := WorkflowDetailedActionsInnerIntegration{} +func NewGetWorkflow200ResponseActionsInnerIntegration(id string, name string, kind ENUMPROPERTIESDATAITEMSPROPERTIESKIND) *GetWorkflow200ResponseActionsInnerIntegration { + this := GetWorkflow200ResponseActionsInnerIntegration{} this.Id = id this.Name = name this.Kind = kind return &this } -// NewWorkflowDetailedActionsInnerIntegrationWithDefaults instantiates a new WorkflowDetailedActionsInnerIntegration object +// NewGetWorkflow200ResponseActionsInnerIntegrationWithDefaults instantiates a new GetWorkflow200ResponseActionsInnerIntegration 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 NewWorkflowDetailedActionsInnerIntegrationWithDefaults() *WorkflowDetailedActionsInnerIntegration { - this := WorkflowDetailedActionsInnerIntegration{} +func NewGetWorkflow200ResponseActionsInnerIntegrationWithDefaults() *GetWorkflow200ResponseActionsInnerIntegration { + this := GetWorkflow200ResponseActionsInnerIntegration{} return &this } // GetId returns the Id field value -func (o *WorkflowDetailedActionsInnerIntegration) GetId() string { +func (o *GetWorkflow200ResponseActionsInnerIntegration) GetId() string { if o == nil { var ret string return ret @@ -60,7 +60,7 @@ func (o *WorkflowDetailedActionsInnerIntegration) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailedActionsInnerIntegration) GetIdOk() (*string, bool) { +func (o *GetWorkflow200ResponseActionsInnerIntegration) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -68,12 +68,12 @@ func (o *WorkflowDetailedActionsInnerIntegration) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *WorkflowDetailedActionsInnerIntegration) SetId(v string) { +func (o *GetWorkflow200ResponseActionsInnerIntegration) SetId(v string) { o.Id = v } // GetName returns the Name field value -func (o *WorkflowDetailedActionsInnerIntegration) GetName() string { +func (o *GetWorkflow200ResponseActionsInnerIntegration) GetName() string { if o == nil { var ret string return ret @@ -84,7 +84,7 @@ func (o *WorkflowDetailedActionsInnerIntegration) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailedActionsInnerIntegration) GetNameOk() (*string, bool) { +func (o *GetWorkflow200ResponseActionsInnerIntegration) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -92,12 +92,12 @@ func (o *WorkflowDetailedActionsInnerIntegration) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *WorkflowDetailedActionsInnerIntegration) SetName(v string) { +func (o *GetWorkflow200ResponseActionsInnerIntegration) SetName(v string) { o.Name = v } // GetKind returns the Kind field value -func (o *WorkflowDetailedActionsInnerIntegration) GetKind() ENUMPROPERTIESDATAITEMSPROPERTIESKIND { +func (o *GetWorkflow200ResponseActionsInnerIntegration) GetKind() ENUMPROPERTIESDATAITEMSPROPERTIESKIND { if o == nil { var ret ENUMPROPERTIESDATAITEMSPROPERTIESKIND return ret @@ -108,7 +108,7 @@ func (o *WorkflowDetailedActionsInnerIntegration) GetKind() ENUMPROPERTIESDATAIT // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailedActionsInnerIntegration) GetKindOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESKIND, bool) { +func (o *GetWorkflow200ResponseActionsInnerIntegration) GetKindOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESKIND, bool) { if o == nil { return nil, false } @@ -116,11 +116,11 @@ func (o *WorkflowDetailedActionsInnerIntegration) GetKindOk() (*ENUMPROPERTIESDA } // SetKind sets field value -func (o *WorkflowDetailedActionsInnerIntegration) SetKind(v ENUMPROPERTIESDATAITEMSPROPERTIESKIND) { +func (o *GetWorkflow200ResponseActionsInnerIntegration) SetKind(v ENUMPROPERTIESDATAITEMSPROPERTIESKIND) { o.Kind = v } -func (o WorkflowDetailedActionsInnerIntegration) MarshalJSON() ([]byte, error) { +func (o GetWorkflow200ResponseActionsInnerIntegration) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -128,7 +128,7 @@ func (o WorkflowDetailedActionsInnerIntegration) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o WorkflowDetailedActionsInnerIntegration) ToMap() (map[string]interface{}, error) { +func (o GetWorkflow200ResponseActionsInnerIntegration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["name"] = o.Name @@ -141,7 +141,7 @@ func (o WorkflowDetailedActionsInnerIntegration) ToMap() (map[string]interface{} return toSerialize, nil } -func (o *WorkflowDetailedActionsInnerIntegration) UnmarshalJSON(data []byte) (err error) { +func (o *GetWorkflow200ResponseActionsInnerIntegration) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -165,15 +165,15 @@ func (o *WorkflowDetailedActionsInnerIntegration) UnmarshalJSON(data []byte) (er } } - varWorkflowDetailedActionsInnerIntegration := _WorkflowDetailedActionsInnerIntegration{} + varGetWorkflow200ResponseActionsInnerIntegration := _GetWorkflow200ResponseActionsInnerIntegration{} - err = json.Unmarshal(data, &varWorkflowDetailedActionsInnerIntegration) + err = json.Unmarshal(data, &varGetWorkflow200ResponseActionsInnerIntegration) if err != nil { return err } - *o = WorkflowDetailedActionsInnerIntegration(varWorkflowDetailedActionsInnerIntegration) + *o = GetWorkflow200ResponseActionsInnerIntegration(varGetWorkflow200ResponseActionsInnerIntegration) additionalProperties := make(map[string]interface{}) @@ -187,38 +187,38 @@ func (o *WorkflowDetailedActionsInnerIntegration) UnmarshalJSON(data []byte) (er return err } -type NullableWorkflowDetailedActionsInnerIntegration struct { - value *WorkflowDetailedActionsInnerIntegration +type NullableGetWorkflow200ResponseActionsInnerIntegration struct { + value *GetWorkflow200ResponseActionsInnerIntegration isSet bool } -func (v NullableWorkflowDetailedActionsInnerIntegration) Get() *WorkflowDetailedActionsInnerIntegration { +func (v NullableGetWorkflow200ResponseActionsInnerIntegration) Get() *GetWorkflow200ResponseActionsInnerIntegration { return v.value } -func (v *NullableWorkflowDetailedActionsInnerIntegration) Set(val *WorkflowDetailedActionsInnerIntegration) { +func (v *NullableGetWorkflow200ResponseActionsInnerIntegration) Set(val *GetWorkflow200ResponseActionsInnerIntegration) { v.value = val v.isSet = true } -func (v NullableWorkflowDetailedActionsInnerIntegration) IsSet() bool { +func (v NullableGetWorkflow200ResponseActionsInnerIntegration) IsSet() bool { return v.isSet } -func (v *NullableWorkflowDetailedActionsInnerIntegration) Unset() { +func (v *NullableGetWorkflow200ResponseActionsInnerIntegration) Unset() { v.value = nil v.isSet = false } -func NewNullableWorkflowDetailedActionsInnerIntegration(val *WorkflowDetailedActionsInnerIntegration) *NullableWorkflowDetailedActionsInnerIntegration { - return &NullableWorkflowDetailedActionsInnerIntegration{value: val, isSet: true} +func NewNullableGetWorkflow200ResponseActionsInnerIntegration(val *GetWorkflow200ResponseActionsInnerIntegration) *NullableGetWorkflow200ResponseActionsInnerIntegration { + return &NullableGetWorkflow200ResponseActionsInnerIntegration{value: val, isSet: true} } -func (v NullableWorkflowDetailedActionsInnerIntegration) MarshalJSON() ([]byte, error) { +func (v NullableGetWorkflow200ResponseActionsInnerIntegration) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableWorkflowDetailedActionsInnerIntegration) UnmarshalJSON(src []byte) error { +func (v *NullableGetWorkflow200ResponseActionsInnerIntegration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_workflow_detailed_filters_inner.go b/pkg/api/v3/model_get_workflow_200_response_filters_inner.go similarity index 57% rename from pkg/api/v3/model_workflow_detailed_filters_inner.go rename to pkg/api/v3/model_get_workflow_200_response_filters_inner.go index b6fa7165..a1f8b994 100644 --- a/pkg/api/v3/model_workflow_detailed_filters_inner.go +++ b/pkg/api/v3/model_get_workflow_200_response_filters_inner.go @@ -15,41 +15,41 @@ import ( "fmt" ) -// checks if the WorkflowDetailedFiltersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WorkflowDetailedFiltersInner{} +// checks if the GetWorkflow200ResponseFiltersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetWorkflow200ResponseFiltersInner{} -// WorkflowDetailedFiltersInner struct for WorkflowDetailedFiltersInner -type WorkflowDetailedFiltersInner struct { +// GetWorkflow200ResponseFiltersInner struct for GetWorkflow200ResponseFiltersInner +type GetWorkflow200ResponseFiltersInner struct { Id string `json:"id"` Type ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE `json:"type"` Filter interface{} `json:"filter,omitempty"` - View *WorkflowDetailedFiltersInnerView `json:"view,omitempty"` + View *GetWorkflow200ResponseFiltersInnerView `json:"view,omitempty"` AdditionalProperties map[string]interface{} } -type _WorkflowDetailedFiltersInner WorkflowDetailedFiltersInner +type _GetWorkflow200ResponseFiltersInner GetWorkflow200ResponseFiltersInner -// NewWorkflowDetailedFiltersInner instantiates a new WorkflowDetailedFiltersInner object +// NewGetWorkflow200ResponseFiltersInner instantiates a new GetWorkflow200ResponseFiltersInner 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 NewWorkflowDetailedFiltersInner(id string, type_ ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE) *WorkflowDetailedFiltersInner { - this := WorkflowDetailedFiltersInner{} +func NewGetWorkflow200ResponseFiltersInner(id string, type_ ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE) *GetWorkflow200ResponseFiltersInner { + this := GetWorkflow200ResponseFiltersInner{} this.Id = id this.Type = type_ return &this } -// NewWorkflowDetailedFiltersInnerWithDefaults instantiates a new WorkflowDetailedFiltersInner object +// NewGetWorkflow200ResponseFiltersInnerWithDefaults instantiates a new GetWorkflow200ResponseFiltersInner 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 NewWorkflowDetailedFiltersInnerWithDefaults() *WorkflowDetailedFiltersInner { - this := WorkflowDetailedFiltersInner{} +func NewGetWorkflow200ResponseFiltersInnerWithDefaults() *GetWorkflow200ResponseFiltersInner { + this := GetWorkflow200ResponseFiltersInner{} return &this } // GetId returns the Id field value -func (o *WorkflowDetailedFiltersInner) GetId() string { +func (o *GetWorkflow200ResponseFiltersInner) GetId() string { if o == nil { var ret string return ret @@ -60,7 +60,7 @@ func (o *WorkflowDetailedFiltersInner) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailedFiltersInner) GetIdOk() (*string, bool) { +func (o *GetWorkflow200ResponseFiltersInner) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -68,12 +68,12 @@ func (o *WorkflowDetailedFiltersInner) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *WorkflowDetailedFiltersInner) SetId(v string) { +func (o *GetWorkflow200ResponseFiltersInner) SetId(v string) { o.Id = v } // GetType returns the Type field value -func (o *WorkflowDetailedFiltersInner) GetType() ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE { +func (o *GetWorkflow200ResponseFiltersInner) GetType() ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE { if o == nil { var ret ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE return ret @@ -84,7 +84,7 @@ func (o *WorkflowDetailedFiltersInner) GetType() ENUMPROPERTIESFILTERSITEMSPROPE // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailedFiltersInner) GetTypeOk() (*ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE, bool) { +func (o *GetWorkflow200ResponseFiltersInner) GetTypeOk() (*ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE, bool) { if o == nil { return nil, false } @@ -92,12 +92,12 @@ func (o *WorkflowDetailedFiltersInner) GetTypeOk() (*ENUMPROPERTIESFILTERSITEMSP } // SetType sets field value -func (o *WorkflowDetailedFiltersInner) SetType(v ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE) { +func (o *GetWorkflow200ResponseFiltersInner) SetType(v ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE) { o.Type = v } // GetFilter returns the Filter field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WorkflowDetailedFiltersInner) GetFilter() interface{} { +func (o *GetWorkflow200ResponseFiltersInner) GetFilter() interface{} { if o == nil { var ret interface{} return ret @@ -108,7 +108,7 @@ func (o *WorkflowDetailedFiltersInner) GetFilter() interface{} { // GetFilterOk returns a tuple with the Filter field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WorkflowDetailedFiltersInner) GetFilterOk() (*interface{}, bool) { +func (o *GetWorkflow200ResponseFiltersInner) GetFilterOk() (*interface{}, bool) { if o == nil || IsNil(o.Filter) { return nil, false } @@ -116,7 +116,7 @@ func (o *WorkflowDetailedFiltersInner) GetFilterOk() (*interface{}, bool) { } // HasFilter returns a boolean if a field has been set. -func (o *WorkflowDetailedFiltersInner) HasFilter() bool { +func (o *GetWorkflow200ResponseFiltersInner) HasFilter() bool { if o != nil && !IsNil(o.Filter) { return true } @@ -125,14 +125,14 @@ func (o *WorkflowDetailedFiltersInner) HasFilter() bool { } // SetFilter gets a reference to the given interface{} and assigns it to the Filter field. -func (o *WorkflowDetailedFiltersInner) SetFilter(v interface{}) { +func (o *GetWorkflow200ResponseFiltersInner) SetFilter(v interface{}) { o.Filter = v } // GetView returns the View field value if set, zero value otherwise. -func (o *WorkflowDetailedFiltersInner) GetView() WorkflowDetailedFiltersInnerView { +func (o *GetWorkflow200ResponseFiltersInner) GetView() GetWorkflow200ResponseFiltersInnerView { if o == nil || IsNil(o.View) { - var ret WorkflowDetailedFiltersInnerView + var ret GetWorkflow200ResponseFiltersInnerView return ret } return *o.View @@ -140,7 +140,7 @@ func (o *WorkflowDetailedFiltersInner) GetView() WorkflowDetailedFiltersInnerVie // GetViewOk returns a tuple with the View field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WorkflowDetailedFiltersInner) GetViewOk() (*WorkflowDetailedFiltersInnerView, bool) { +func (o *GetWorkflow200ResponseFiltersInner) GetViewOk() (*GetWorkflow200ResponseFiltersInnerView, bool) { if o == nil || IsNil(o.View) { return nil, false } @@ -148,7 +148,7 @@ func (o *WorkflowDetailedFiltersInner) GetViewOk() (*WorkflowDetailedFiltersInne } // HasView returns a boolean if a field has been set. -func (o *WorkflowDetailedFiltersInner) HasView() bool { +func (o *GetWorkflow200ResponseFiltersInner) HasView() bool { if o != nil && !IsNil(o.View) { return true } @@ -156,12 +156,12 @@ func (o *WorkflowDetailedFiltersInner) HasView() bool { return false } -// SetView gets a reference to the given WorkflowDetailedFiltersInnerView and assigns it to the View field. -func (o *WorkflowDetailedFiltersInner) SetView(v WorkflowDetailedFiltersInnerView) { +// SetView gets a reference to the given GetWorkflow200ResponseFiltersInnerView and assigns it to the View field. +func (o *GetWorkflow200ResponseFiltersInner) SetView(v GetWorkflow200ResponseFiltersInnerView) { o.View = &v } -func (o WorkflowDetailedFiltersInner) MarshalJSON() ([]byte, error) { +func (o GetWorkflow200ResponseFiltersInner) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -169,7 +169,7 @@ func (o WorkflowDetailedFiltersInner) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o WorkflowDetailedFiltersInner) ToMap() (map[string]interface{}, error) { +func (o GetWorkflow200ResponseFiltersInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["type"] = o.Type @@ -187,7 +187,7 @@ func (o WorkflowDetailedFiltersInner) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WorkflowDetailedFiltersInner) UnmarshalJSON(data []byte) (err error) { +func (o *GetWorkflow200ResponseFiltersInner) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -210,15 +210,15 @@ func (o *WorkflowDetailedFiltersInner) UnmarshalJSON(data []byte) (err error) { } } - varWorkflowDetailedFiltersInner := _WorkflowDetailedFiltersInner{} + varGetWorkflow200ResponseFiltersInner := _GetWorkflow200ResponseFiltersInner{} - err = json.Unmarshal(data, &varWorkflowDetailedFiltersInner) + err = json.Unmarshal(data, &varGetWorkflow200ResponseFiltersInner) if err != nil { return err } - *o = WorkflowDetailedFiltersInner(varWorkflowDetailedFiltersInner) + *o = GetWorkflow200ResponseFiltersInner(varGetWorkflow200ResponseFiltersInner) additionalProperties := make(map[string]interface{}) @@ -233,38 +233,38 @@ func (o *WorkflowDetailedFiltersInner) UnmarshalJSON(data []byte) (err error) { return err } -type NullableWorkflowDetailedFiltersInner struct { - value *WorkflowDetailedFiltersInner +type NullableGetWorkflow200ResponseFiltersInner struct { + value *GetWorkflow200ResponseFiltersInner isSet bool } -func (v NullableWorkflowDetailedFiltersInner) Get() *WorkflowDetailedFiltersInner { +func (v NullableGetWorkflow200ResponseFiltersInner) Get() *GetWorkflow200ResponseFiltersInner { return v.value } -func (v *NullableWorkflowDetailedFiltersInner) Set(val *WorkflowDetailedFiltersInner) { +func (v *NullableGetWorkflow200ResponseFiltersInner) Set(val *GetWorkflow200ResponseFiltersInner) { v.value = val v.isSet = true } -func (v NullableWorkflowDetailedFiltersInner) IsSet() bool { +func (v NullableGetWorkflow200ResponseFiltersInner) IsSet() bool { return v.isSet } -func (v *NullableWorkflowDetailedFiltersInner) Unset() { +func (v *NullableGetWorkflow200ResponseFiltersInner) Unset() { v.value = nil v.isSet = false } -func NewNullableWorkflowDetailedFiltersInner(val *WorkflowDetailedFiltersInner) *NullableWorkflowDetailedFiltersInner { - return &NullableWorkflowDetailedFiltersInner{value: val, isSet: true} +func NewNullableGetWorkflow200ResponseFiltersInner(val *GetWorkflow200ResponseFiltersInner) *NullableGetWorkflow200ResponseFiltersInner { + return &NullableGetWorkflow200ResponseFiltersInner{value: val, isSet: true} } -func (v NullableWorkflowDetailedFiltersInner) MarshalJSON() ([]byte, error) { +func (v NullableGetWorkflow200ResponseFiltersInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableWorkflowDetailedFiltersInner) UnmarshalJSON(src []byte) error { +func (v *NullableGetWorkflow200ResponseFiltersInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_workflow_detailed_filters_inner_view.go b/pkg/api/v3/model_get_workflow_200_response_filters_inner_view.go similarity index 57% rename from pkg/api/v3/model_workflow_detailed_filters_inner_view.go rename to pkg/api/v3/model_get_workflow_200_response_filters_inner_view.go index 841dccc0..2df8c0b6 100644 --- a/pkg/api/v3/model_workflow_detailed_filters_inner_view.go +++ b/pkg/api/v3/model_get_workflow_200_response_filters_inner_view.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the WorkflowDetailedFiltersInnerView type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WorkflowDetailedFiltersInnerView{} +// checks if the GetWorkflow200ResponseFiltersInnerView type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetWorkflow200ResponseFiltersInnerView{} -// WorkflowDetailedFiltersInnerView struct for WorkflowDetailedFiltersInnerView -type WorkflowDetailedFiltersInnerView struct { +// GetWorkflow200ResponseFiltersInnerView struct for GetWorkflow200ResponseFiltersInnerView +type GetWorkflow200ResponseFiltersInnerView struct { Id string `json:"id"` Name string `json:"name"` Target ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE `json:"target"` @@ -27,30 +27,30 @@ type WorkflowDetailedFiltersInnerView struct { AdditionalProperties map[string]interface{} } -type _WorkflowDetailedFiltersInnerView WorkflowDetailedFiltersInnerView +type _GetWorkflow200ResponseFiltersInnerView GetWorkflow200ResponseFiltersInnerView -// NewWorkflowDetailedFiltersInnerView instantiates a new WorkflowDetailedFiltersInnerView object +// NewGetWorkflow200ResponseFiltersInnerView instantiates a new GetWorkflow200ResponseFiltersInnerView 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 NewWorkflowDetailedFiltersInnerView(id string, name string, target ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE) *WorkflowDetailedFiltersInnerView { - this := WorkflowDetailedFiltersInnerView{} +func NewGetWorkflow200ResponseFiltersInnerView(id string, name string, target ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE) *GetWorkflow200ResponseFiltersInnerView { + this := GetWorkflow200ResponseFiltersInnerView{} this.Id = id this.Name = name this.Target = target return &this } -// NewWorkflowDetailedFiltersInnerViewWithDefaults instantiates a new WorkflowDetailedFiltersInnerView object +// NewGetWorkflow200ResponseFiltersInnerViewWithDefaults instantiates a new GetWorkflow200ResponseFiltersInnerView 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 NewWorkflowDetailedFiltersInnerViewWithDefaults() *WorkflowDetailedFiltersInnerView { - this := WorkflowDetailedFiltersInnerView{} +func NewGetWorkflow200ResponseFiltersInnerViewWithDefaults() *GetWorkflow200ResponseFiltersInnerView { + this := GetWorkflow200ResponseFiltersInnerView{} return &this } // GetId returns the Id field value -func (o *WorkflowDetailedFiltersInnerView) GetId() string { +func (o *GetWorkflow200ResponseFiltersInnerView) GetId() string { if o == nil { var ret string return ret @@ -61,7 +61,7 @@ func (o *WorkflowDetailedFiltersInnerView) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailedFiltersInnerView) GetIdOk() (*string, bool) { +func (o *GetWorkflow200ResponseFiltersInnerView) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -69,12 +69,12 @@ func (o *WorkflowDetailedFiltersInnerView) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *WorkflowDetailedFiltersInnerView) SetId(v string) { +func (o *GetWorkflow200ResponseFiltersInnerView) SetId(v string) { o.Id = v } // GetName returns the Name field value -func (o *WorkflowDetailedFiltersInnerView) GetName() string { +func (o *GetWorkflow200ResponseFiltersInnerView) GetName() string { if o == nil { var ret string return ret @@ -85,7 +85,7 @@ func (o *WorkflowDetailedFiltersInnerView) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailedFiltersInnerView) GetNameOk() (*string, bool) { +func (o *GetWorkflow200ResponseFiltersInnerView) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -93,12 +93,12 @@ func (o *WorkflowDetailedFiltersInnerView) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *WorkflowDetailedFiltersInnerView) SetName(v string) { +func (o *GetWorkflow200ResponseFiltersInnerView) SetName(v string) { o.Name = v } // GetTarget returns the Target field value -func (o *WorkflowDetailedFiltersInnerView) GetTarget() ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE { +func (o *GetWorkflow200ResponseFiltersInnerView) GetTarget() ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE { if o == nil { var ret ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE return ret @@ -109,7 +109,7 @@ func (o *WorkflowDetailedFiltersInnerView) GetTarget() ENUMPROPERTIESFILTERSITEM // GetTargetOk returns a tuple with the Target field value // and a boolean to check if the value has been set. -func (o *WorkflowDetailedFiltersInnerView) GetTargetOk() (*ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE, bool) { +func (o *GetWorkflow200ResponseFiltersInnerView) GetTargetOk() (*ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE, bool) { if o == nil { return nil, false } @@ -117,12 +117,12 @@ func (o *WorkflowDetailedFiltersInnerView) GetTargetOk() (*ENUMPROPERTIESFILTERS } // SetTarget sets field value -func (o *WorkflowDetailedFiltersInnerView) SetTarget(v ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE) { +func (o *GetWorkflow200ResponseFiltersInnerView) SetTarget(v ENUMPROPERTIESFILTERSITEMSPROPERTIESTYPE) { o.Target = v } // GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WorkflowDetailedFiltersInnerView) GetData() interface{} { +func (o *GetWorkflow200ResponseFiltersInnerView) GetData() interface{} { if o == nil { var ret interface{} return ret @@ -133,7 +133,7 @@ func (o *WorkflowDetailedFiltersInnerView) GetData() interface{} { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WorkflowDetailedFiltersInnerView) GetDataOk() (*interface{}, bool) { +func (o *GetWorkflow200ResponseFiltersInnerView) GetDataOk() (*interface{}, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -141,7 +141,7 @@ func (o *WorkflowDetailedFiltersInnerView) GetDataOk() (*interface{}, bool) { } // HasData returns a boolean if a field has been set. -func (o *WorkflowDetailedFiltersInnerView) HasData() bool { +func (o *GetWorkflow200ResponseFiltersInnerView) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -150,11 +150,11 @@ func (o *WorkflowDetailedFiltersInnerView) HasData() bool { } // SetData gets a reference to the given interface{} and assigns it to the Data field. -func (o *WorkflowDetailedFiltersInnerView) SetData(v interface{}) { +func (o *GetWorkflow200ResponseFiltersInnerView) SetData(v interface{}) { o.Data = v } -func (o WorkflowDetailedFiltersInnerView) MarshalJSON() ([]byte, error) { +func (o GetWorkflow200ResponseFiltersInnerView) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -162,7 +162,7 @@ func (o WorkflowDetailedFiltersInnerView) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o WorkflowDetailedFiltersInnerView) ToMap() (map[string]interface{}, error) { +func (o GetWorkflow200ResponseFiltersInnerView) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["name"] = o.Name @@ -178,7 +178,7 @@ func (o WorkflowDetailedFiltersInnerView) ToMap() (map[string]interface{}, error return toSerialize, nil } -func (o *WorkflowDetailedFiltersInnerView) UnmarshalJSON(data []byte) (err error) { +func (o *GetWorkflow200ResponseFiltersInnerView) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -202,15 +202,15 @@ func (o *WorkflowDetailedFiltersInnerView) UnmarshalJSON(data []byte) (err error } } - varWorkflowDetailedFiltersInnerView := _WorkflowDetailedFiltersInnerView{} + varGetWorkflow200ResponseFiltersInnerView := _GetWorkflow200ResponseFiltersInnerView{} - err = json.Unmarshal(data, &varWorkflowDetailedFiltersInnerView) + err = json.Unmarshal(data, &varGetWorkflow200ResponseFiltersInnerView) if err != nil { return err } - *o = WorkflowDetailedFiltersInnerView(varWorkflowDetailedFiltersInnerView) + *o = GetWorkflow200ResponseFiltersInnerView(varGetWorkflow200ResponseFiltersInnerView) additionalProperties := make(map[string]interface{}) @@ -225,38 +225,38 @@ func (o *WorkflowDetailedFiltersInnerView) UnmarshalJSON(data []byte) (err error return err } -type NullableWorkflowDetailedFiltersInnerView struct { - value *WorkflowDetailedFiltersInnerView +type NullableGetWorkflow200ResponseFiltersInnerView struct { + value *GetWorkflow200ResponseFiltersInnerView isSet bool } -func (v NullableWorkflowDetailedFiltersInnerView) Get() *WorkflowDetailedFiltersInnerView { +func (v NullableGetWorkflow200ResponseFiltersInnerView) Get() *GetWorkflow200ResponseFiltersInnerView { return v.value } -func (v *NullableWorkflowDetailedFiltersInnerView) Set(val *WorkflowDetailedFiltersInnerView) { +func (v *NullableGetWorkflow200ResponseFiltersInnerView) Set(val *GetWorkflow200ResponseFiltersInnerView) { v.value = val v.isSet = true } -func (v NullableWorkflowDetailedFiltersInnerView) IsSet() bool { +func (v NullableGetWorkflow200ResponseFiltersInnerView) IsSet() bool { return v.isSet } -func (v *NullableWorkflowDetailedFiltersInnerView) Unset() { +func (v *NullableGetWorkflow200ResponseFiltersInnerView) Unset() { v.value = nil v.isSet = false } -func NewNullableWorkflowDetailedFiltersInnerView(val *WorkflowDetailedFiltersInnerView) *NullableWorkflowDetailedFiltersInnerView { - return &NullableWorkflowDetailedFiltersInnerView{value: val, isSet: true} +func NewNullableGetWorkflow200ResponseFiltersInnerView(val *GetWorkflow200ResponseFiltersInnerView) *NullableGetWorkflow200ResponseFiltersInnerView { + return &NullableGetWorkflow200ResponseFiltersInnerView{value: val, isSet: true} } -func (v NullableWorkflowDetailedFiltersInnerView) MarshalJSON() ([]byte, error) { +func (v NullableGetWorkflow200ResponseFiltersInnerView) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableWorkflowDetailedFiltersInnerView) UnmarshalJSON(src []byte) error { +func (v *NullableGetWorkflow200ResponseFiltersInnerView) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_graph_detailed.go b/pkg/api/v3/model_graph_detailed.go index 73dbca1f..b3fd242b 100644 --- a/pkg/api/v3/model_graph_detailed.go +++ b/pkg/api/v3/model_graph_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the GraphDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &GraphDetailed{} -// GraphDetailed Detailed information about a graph +// GraphDetailed The graph of the attachment type GraphDetailed struct { // The id of the graph Id string `json:"id"` diff --git a/pkg/api/v3/model_graphql_resolver_detailed.go b/pkg/api/v3/model_graphql_resolver_detailed.go index ed5518a2..b44aaca2 100644 --- a/pkg/api/v3/model_graphql_resolver_detailed.go +++ b/pkg/api/v3/model_graphql_resolver_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the GraphqlResolverDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &GraphqlResolverDetailed{} -// GraphqlResolverDetailed Detailed information about a graphql resolver +// GraphqlResolverDetailed The graphql resolver of the target type GraphqlResolverDetailed struct { // Whether the graphql resolver is blacklisted Blacklisted bool `json:"blacklisted"` diff --git a/pkg/api/v3/model_issue_detailed.go b/pkg/api/v3/model_issue_detailed.go index e52eba16..b57e903d 100644 --- a/pkg/api/v3/model_issue_detailed.go +++ b/pkg/api/v3/model_issue_detailed.go @@ -29,28 +29,29 @@ type IssueDetailed struct { Category ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY `json:"category"` Severity ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY `json:"severity"` Status ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS `json:"status"` - // The context of the issue - Context string `json:"context"` + // AI-generated contextual overview for the issue + Context *string `json:"context,omitempty"` // Array of risk types associated with the issue Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks"` // Unique identifier for the alert AlertUid string `json:"alertUid"` // When the issue was first created - CreatedAt string `json:"createdAt"` - Asset AssetDetailed `json:"asset"` + CreatedAt string `json:"createdAt"` + Asset AssetDetailed2 `json:"asset"` // ID of the last scan where this issue was seen LastSeenScanId *string `json:"lastSeenScanId,omitempty"` // ID of the first scan where this issue was seen FirstSeenScanId *string `json:"firstSeenScanId,omitempty"` // ID of the custom rule if this is a custom issue CustomRuleId *string `json:"customRuleId,omitempty"` - // AI-generated remediation for the issue - AiRemediation *string `json:"aiRemediation,omitempty"` // Framework used for AI remediation AiRemediationFramework string `json:"aiRemediationFramework"` - // URL to the associated Jira ticket if exists - TicketUrl *string `json:"ticketUrl,omitempty"` - Links IssueSummarizedLinks `json:"links"` + // AI-generated remediation for the issue + Remediation *string `json:"remediation,omitempty"` + Cvss *GetIssue200ResponseCvss `json:"cvss,omitempty"` + // Compliances associated with the issue + Compliances []GetIssue200ResponseCompliancesInner `json:"compliances,omitempty"` + Links IssueSummarizedLinks `json:"links"` AdditionalProperties map[string]interface{} } @@ -60,7 +61,7 @@ type _IssueDetailed IssueDetailed // 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 NewIssueDetailed(id string, name string, fullName string, category ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY, severity ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY, status ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS, context string, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, alertUid string, createdAt string, asset AssetDetailed, aiRemediationFramework string, links IssueSummarizedLinks) *IssueDetailed { +func NewIssueDetailed(id string, name string, fullName string, category ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY, severity ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY, status ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, alertUid string, createdAt string, asset AssetDetailed2, aiRemediationFramework string, links IssueSummarizedLinks) *IssueDetailed { this := IssueDetailed{} this.Id = id this.Name = name @@ -68,7 +69,6 @@ func NewIssueDetailed(id string, name string, fullName string, category ENUMPROP this.Category = category this.Severity = severity this.Status = status - this.Context = context this.Risks = risks this.AlertUid = alertUid this.CreatedAt = createdAt @@ -230,28 +230,36 @@ func (o *IssueDetailed) SetStatus(v ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS) { o.Status = v } -// GetContext returns the Context field value +// GetContext returns the Context field value if set, zero value otherwise. func (o *IssueDetailed) GetContext() string { - if o == nil { + if o == nil || IsNil(o.Context) { var ret string return ret } - - return o.Context + return *o.Context } -// GetContextOk returns a tuple with the Context field value +// GetContextOk returns a tuple with the Context field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IssueDetailed) GetContextOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.Context) { return nil, false } - return &o.Context, true + return o.Context, true } -// SetContext sets field value +// HasContext returns a boolean if a field has been set. +func (o *IssueDetailed) HasContext() bool { + if o != nil && !IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given string and assigns it to the Context field. func (o *IssueDetailed) SetContext(v string) { - o.Context = v + o.Context = &v } // GetRisks returns the Risks field value @@ -327,9 +335,9 @@ func (o *IssueDetailed) SetCreatedAt(v string) { } // GetAsset returns the Asset field value -func (o *IssueDetailed) GetAsset() AssetDetailed { +func (o *IssueDetailed) GetAsset() AssetDetailed2 { if o == nil { - var ret AssetDetailed + var ret AssetDetailed2 return ret } @@ -338,7 +346,7 @@ func (o *IssueDetailed) GetAsset() AssetDetailed { // GetAssetOk returns a tuple with the Asset field value // and a boolean to check if the value has been set. -func (o *IssueDetailed) GetAssetOk() (*AssetDetailed, bool) { +func (o *IssueDetailed) GetAssetOk() (*AssetDetailed2, bool) { if o == nil { return nil, false } @@ -346,7 +354,7 @@ func (o *IssueDetailed) GetAssetOk() (*AssetDetailed, bool) { } // SetAsset sets field value -func (o *IssueDetailed) SetAsset(v AssetDetailed) { +func (o *IssueDetailed) SetAsset(v AssetDetailed2) { o.Asset = v } @@ -446,92 +454,124 @@ func (o *IssueDetailed) SetCustomRuleId(v string) { o.CustomRuleId = &v } -// GetAiRemediation returns the AiRemediation field value if set, zero value otherwise. -func (o *IssueDetailed) GetAiRemediation() string { - if o == nil || IsNil(o.AiRemediation) { +// GetAiRemediationFramework returns the AiRemediationFramework field value +func (o *IssueDetailed) GetAiRemediationFramework() string { + if o == nil { var ret string return ret } - return *o.AiRemediation + + return o.AiRemediationFramework } -// GetAiRemediationOk returns a tuple with the AiRemediation field value if set, nil otherwise +// GetAiRemediationFrameworkOk returns a tuple with the AiRemediationFramework field value // and a boolean to check if the value has been set. -func (o *IssueDetailed) GetAiRemediationOk() (*string, bool) { - if o == nil || IsNil(o.AiRemediation) { +func (o *IssueDetailed) GetAiRemediationFrameworkOk() (*string, bool) { + if o == nil { return nil, false } - return o.AiRemediation, true + return &o.AiRemediationFramework, true +} + +// SetAiRemediationFramework sets field value +func (o *IssueDetailed) SetAiRemediationFramework(v string) { + o.AiRemediationFramework = v +} + +// GetRemediation returns the Remediation field value if set, zero value otherwise. +func (o *IssueDetailed) GetRemediation() string { + if o == nil || IsNil(o.Remediation) { + var ret string + return ret + } + return *o.Remediation } -// HasAiRemediation returns a boolean if a field has been set. -func (o *IssueDetailed) HasAiRemediation() bool { - if o != nil && !IsNil(o.AiRemediation) { +// GetRemediationOk returns a tuple with the Remediation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IssueDetailed) GetRemediationOk() (*string, bool) { + if o == nil || IsNil(o.Remediation) { + return nil, false + } + return o.Remediation, true +} + +// HasRemediation returns a boolean if a field has been set. +func (o *IssueDetailed) HasRemediation() bool { + if o != nil && !IsNil(o.Remediation) { return true } return false } -// SetAiRemediation gets a reference to the given string and assigns it to the AiRemediation field. -func (o *IssueDetailed) SetAiRemediation(v string) { - o.AiRemediation = &v +// SetRemediation gets a reference to the given string and assigns it to the Remediation field. +func (o *IssueDetailed) SetRemediation(v string) { + o.Remediation = &v } -// GetAiRemediationFramework returns the AiRemediationFramework field value -func (o *IssueDetailed) GetAiRemediationFramework() string { - if o == nil { - var ret string +// GetCvss returns the Cvss field value if set, zero value otherwise. +func (o *IssueDetailed) GetCvss() GetIssue200ResponseCvss { + if o == nil || IsNil(o.Cvss) { + var ret GetIssue200ResponseCvss return ret } - - return o.AiRemediationFramework + return *o.Cvss } -// GetAiRemediationFrameworkOk returns a tuple with the AiRemediationFramework field value +// GetCvssOk returns a tuple with the Cvss field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IssueDetailed) GetAiRemediationFrameworkOk() (*string, bool) { - if o == nil { +func (o *IssueDetailed) GetCvssOk() (*GetIssue200ResponseCvss, bool) { + if o == nil || IsNil(o.Cvss) { return nil, false } - return &o.AiRemediationFramework, true + return o.Cvss, true } -// SetAiRemediationFramework sets field value -func (o *IssueDetailed) SetAiRemediationFramework(v string) { - o.AiRemediationFramework = v +// HasCvss returns a boolean if a field has been set. +func (o *IssueDetailed) HasCvss() bool { + if o != nil && !IsNil(o.Cvss) { + return true + } + + return false } -// GetTicketUrl returns the TicketUrl field value if set, zero value otherwise. -func (o *IssueDetailed) GetTicketUrl() string { - if o == nil || IsNil(o.TicketUrl) { - var ret string +// SetCvss gets a reference to the given GetIssue200ResponseCvss and assigns it to the Cvss field. +func (o *IssueDetailed) SetCvss(v GetIssue200ResponseCvss) { + o.Cvss = &v +} + +// GetCompliances returns the Compliances field value if set, zero value otherwise. +func (o *IssueDetailed) GetCompliances() []GetIssue200ResponseCompliancesInner { + if o == nil || IsNil(o.Compliances) { + var ret []GetIssue200ResponseCompliancesInner return ret } - return *o.TicketUrl + return o.Compliances } -// GetTicketUrlOk returns a tuple with the TicketUrl field value if set, nil otherwise +// GetCompliancesOk returns a tuple with the Compliances field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IssueDetailed) GetTicketUrlOk() (*string, bool) { - if o == nil || IsNil(o.TicketUrl) { +func (o *IssueDetailed) GetCompliancesOk() ([]GetIssue200ResponseCompliancesInner, bool) { + if o == nil || IsNil(o.Compliances) { return nil, false } - return o.TicketUrl, true + return o.Compliances, true } -// HasTicketUrl returns a boolean if a field has been set. -func (o *IssueDetailed) HasTicketUrl() bool { - if o != nil && !IsNil(o.TicketUrl) { +// HasCompliances returns a boolean if a field has been set. +func (o *IssueDetailed) HasCompliances() bool { + if o != nil && !IsNil(o.Compliances) { return true } return false } -// SetTicketUrl gets a reference to the given string and assigns it to the TicketUrl field. -func (o *IssueDetailed) SetTicketUrl(v string) { - o.TicketUrl = &v +// SetCompliances gets a reference to the given []GetIssue200ResponseCompliancesInner and assigns it to the Compliances field. +func (o *IssueDetailed) SetCompliances(v []GetIssue200ResponseCompliancesInner) { + o.Compliances = v } // GetLinks returns the Links field value @@ -574,7 +614,9 @@ func (o IssueDetailed) ToMap() (map[string]interface{}, error) { toSerialize["category"] = o.Category toSerialize["severity"] = o.Severity toSerialize["status"] = o.Status - toSerialize["context"] = o.Context + if !IsNil(o.Context) { + toSerialize["context"] = o.Context + } toSerialize["risks"] = o.Risks toSerialize["alertUid"] = o.AlertUid toSerialize["createdAt"] = o.CreatedAt @@ -588,12 +630,15 @@ func (o IssueDetailed) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomRuleId) { toSerialize["customRuleId"] = o.CustomRuleId } - if !IsNil(o.AiRemediation) { - toSerialize["aiRemediation"] = o.AiRemediation - } toSerialize["aiRemediationFramework"] = o.AiRemediationFramework - if !IsNil(o.TicketUrl) { - toSerialize["ticketUrl"] = o.TicketUrl + if !IsNil(o.Remediation) { + toSerialize["remediation"] = o.Remediation + } + if !IsNil(o.Cvss) { + toSerialize["cvss"] = o.Cvss + } + if !IsNil(o.Compliances) { + toSerialize["compliances"] = o.Compliances } toSerialize["links"] = o.Links @@ -615,7 +660,6 @@ func (o *IssueDetailed) UnmarshalJSON(data []byte) (err error) { "category", "severity", "status", - "context", "risks", "alertUid", "createdAt", @@ -665,9 +709,10 @@ func (o *IssueDetailed) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "lastSeenScanId") delete(additionalProperties, "firstSeenScanId") delete(additionalProperties, "customRuleId") - delete(additionalProperties, "aiRemediation") delete(additionalProperties, "aiRemediationFramework") - delete(additionalProperties, "ticketUrl") + delete(additionalProperties, "remediation") + delete(additionalProperties, "cvss") + delete(additionalProperties, "compliances") delete(additionalProperties, "links") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_issue_summarized.go b/pkg/api/v3/model_issue_summarized.go index 4f6543f5..661545cc 100644 --- a/pkg/api/v3/model_issue_summarized.go +++ b/pkg/api/v3/model_issue_summarized.go @@ -36,16 +36,14 @@ type IssueSummarized struct { // Unique identifier for the alert AlertUid string `json:"alertUid"` // When the issue was first created - CreatedAt string `json:"createdAt"` - Asset AssetSummarized `json:"asset"` + CreatedAt string `json:"createdAt"` + Asset AssetSummarized1 `json:"asset"` // ID of the last scan where this issue was seen LastSeenScanId *string `json:"lastSeenScanId,omitempty"` // ID of the first scan where this issue was seen FirstSeenScanId *string `json:"firstSeenScanId,omitempty"` // ID of the custom rule if this is a custom issue - CustomRuleId *string `json:"customRuleId,omitempty"` - // URL to the associated Jira ticket if exists - TicketUrl *string `json:"ticketUrl,omitempty"` + CustomRuleId *string `json:"customRuleId,omitempty"` Links IssueSummarizedLinks `json:"links"` AdditionalProperties map[string]interface{} } @@ -56,7 +54,7 @@ type _IssueSummarized IssueSummarized // 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 NewIssueSummarized(id string, name string, fullName string, category ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY, severity ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY, status ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS, context string, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, alertUid string, createdAt string, asset AssetSummarized, links IssueSummarizedLinks) *IssueSummarized { +func NewIssueSummarized(id string, name string, fullName string, category ENUMPROPERTIESDATAITEMSPROPERTIESCATEGORY, severity ENUMPROPERTIESDATAITEMSPROPERTIESSEVERITY, status ENUMPROPERTIESDATAITEMSPROPERTIESSTATUS, context string, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, alertUid string, createdAt string, asset AssetSummarized1, links IssueSummarizedLinks) *IssueSummarized { this := IssueSummarized{} this.Id = id this.Name = name @@ -322,9 +320,9 @@ func (o *IssueSummarized) SetCreatedAt(v string) { } // GetAsset returns the Asset field value -func (o *IssueSummarized) GetAsset() AssetSummarized { +func (o *IssueSummarized) GetAsset() AssetSummarized1 { if o == nil { - var ret AssetSummarized + var ret AssetSummarized1 return ret } @@ -333,7 +331,7 @@ func (o *IssueSummarized) GetAsset() AssetSummarized { // GetAssetOk returns a tuple with the Asset field value // and a boolean to check if the value has been set. -func (o *IssueSummarized) GetAssetOk() (*AssetSummarized, bool) { +func (o *IssueSummarized) GetAssetOk() (*AssetSummarized1, bool) { if o == nil { return nil, false } @@ -341,7 +339,7 @@ func (o *IssueSummarized) GetAssetOk() (*AssetSummarized, bool) { } // SetAsset sets field value -func (o *IssueSummarized) SetAsset(v AssetSummarized) { +func (o *IssueSummarized) SetAsset(v AssetSummarized1) { o.Asset = v } @@ -441,38 +439,6 @@ func (o *IssueSummarized) SetCustomRuleId(v string) { o.CustomRuleId = &v } -// GetTicketUrl returns the TicketUrl field value if set, zero value otherwise. -func (o *IssueSummarized) GetTicketUrl() string { - if o == nil || IsNil(o.TicketUrl) { - var ret string - return ret - } - return *o.TicketUrl -} - -// GetTicketUrlOk returns a tuple with the TicketUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IssueSummarized) GetTicketUrlOk() (*string, bool) { - if o == nil || IsNil(o.TicketUrl) { - return nil, false - } - return o.TicketUrl, true -} - -// HasTicketUrl returns a boolean if a field has been set. -func (o *IssueSummarized) HasTicketUrl() bool { - if o != nil && !IsNil(o.TicketUrl) { - return true - } - - return false -} - -// SetTicketUrl gets a reference to the given string and assigns it to the TicketUrl field. -func (o *IssueSummarized) SetTicketUrl(v string) { - o.TicketUrl = &v -} - // GetLinks returns the Links field value func (o *IssueSummarized) GetLinks() IssueSummarizedLinks { if o == nil { @@ -527,9 +493,6 @@ func (o IssueSummarized) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomRuleId) { toSerialize["customRuleId"] = o.CustomRuleId } - if !IsNil(o.TicketUrl) { - toSerialize["ticketUrl"] = o.TicketUrl - } toSerialize["links"] = o.Links for key, value := range o.AdditionalProperties { @@ -599,7 +562,6 @@ func (o *IssueSummarized) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "lastSeenScanId") delete(additionalProperties, "firstSeenScanId") delete(additionalProperties, "customRuleId") - delete(additionalProperties, "ticketUrl") delete(additionalProperties, "links") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_list_scans_200_response.go b/pkg/api/v3/model_list_scans_200_response.go index 292b38c0..86b9d837 100644 --- a/pkg/api/v3/model_list_scans_200_response.go +++ b/pkg/api/v3/model_list_scans_200_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &ListScans200Response{} type ListScans200Response struct { NextCursor *string `json:"nextCursor,omitempty"` TotalCount *int `json:"totalCount,omitempty"` - Data []ScanSummarized1 `json:"data"` + Data []ScanSummarized2 `json:"data"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _ListScans200Response ListScans200Response // 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 NewListScans200Response(data []ScanSummarized1) *ListScans200Response { +func NewListScans200Response(data []ScanSummarized2) *ListScans200Response { this := ListScans200Response{} var totalCount int = 100 this.TotalCount = &totalCount @@ -115,9 +115,9 @@ func (o *ListScans200Response) SetTotalCount(v int) { } // GetData returns the Data field value -func (o *ListScans200Response) GetData() []ScanSummarized1 { +func (o *ListScans200Response) GetData() []ScanSummarized2 { if o == nil { - var ret []ScanSummarized1 + var ret []ScanSummarized2 return ret } @@ -126,7 +126,7 @@ func (o *ListScans200Response) GetData() []ScanSummarized1 { // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. -func (o *ListScans200Response) GetDataOk() ([]ScanSummarized1, bool) { +func (o *ListScans200Response) GetDataOk() ([]ScanSummarized2, bool) { if o == nil { return nil, false } @@ -134,7 +134,7 @@ func (o *ListScans200Response) GetDataOk() ([]ScanSummarized1, bool) { } // SetData sets field value -func (o *ListScans200Response) SetData(v []ScanSummarized1) { +func (o *ListScans200Response) SetData(v []ScanSummarized2) { o.Data = v } diff --git a/pkg/api/v3/model_location_detailed.go b/pkg/api/v3/model_location_detailed.go index 73de5f5b..3fdfef1c 100644 --- a/pkg/api/v3/model_location_detailed.go +++ b/pkg/api/v3/model_location_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the LocationDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &LocationDetailed{} -// LocationDetailed Detailed information about a location +// LocationDetailed The location of the integration type LocationDetailed struct { // The location ID. Id *string `json:"id,omitempty"` diff --git a/pkg/api/v3/model_location_summarized_1.go b/pkg/api/v3/model_location_summarized_1.go index 02db7130..777d7755 100644 --- a/pkg/api/v3/model_location_summarized_1.go +++ b/pkg/api/v3/model_location_summarized_1.go @@ -18,7 +18,7 @@ import ( // checks if the LocationSummarized1 type satisfies the MappedNullable interface at compile time var _ MappedNullable = &LocationSummarized1{} -// LocationSummarized1 Summarized information about a location +// LocationSummarized1 The location of the integration type LocationSummarized1 struct { // The location ID. Id string `json:"id"` diff --git a/pkg/api/v3/model_port_detailed.go b/pkg/api/v3/model_port_detailed.go index ece55246..ae37a46a 100644 --- a/pkg/api/v3/model_port_detailed.go +++ b/pkg/api/v3/model_port_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the PortDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &PortDetailed{} -// PortDetailed Detailed information about a port +// PortDetailed The port of the target type PortDetailed struct { // The id of the port Id string `json:"id"` diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner.go deleted file mode 100644 index dd94ef81..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner.go +++ /dev/null @@ -1,662 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" - "gopkg.in/validator.v2" -) - -// ProfileDetailedConfigurationAuthenticationPresetsInner - struct for ProfileDetailedConfigurationAuthenticationPresetsInner -type ProfileDetailedConfigurationAuthenticationPresetsInner struct { - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfAsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfAsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8: v, - } -} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9AsProfileDetailedConfigurationAuthenticationPresetsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 wrapped in ProfileDetailedConfigurationAuthenticationPresetsInner -func ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9AsProfileDetailedConfigurationAuthenticationPresetsInner(v *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) ProfileDetailedConfigurationAuthenticationPresetsInner { - return ProfileDetailedConfigurationAuthenticationPresetsInner{ - ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ProfileDetailedConfigurationAuthenticationPresetsInner) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) - if string(jsonProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9); err != nil { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 = nil - dst.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(ProfileDetailedConfigurationAuthenticationPresetsInner)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(ProfileDetailedConfigurationAuthenticationPresetsInner)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationAuthenticationPresetsInner) MarshalJSON() ([]byte, error) { - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) - } - - if src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ProfileDetailedConfigurationAuthenticationPresetsInner) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 != nil { - return obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 - } - - // all schemas are nil - return nil -} - -// Get the actual instance value -func (obj ProfileDetailedConfigurationAuthenticationPresetsInner) GetActualInstanceValue() interface{} { - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 - } - - if obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 - } - - // all schemas are nil - return nil -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInner(val *ProfileDetailedConfigurationAuthenticationPresetsInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of.go deleted file mode 100644 index 948ae114..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of.go +++ /dev/null @@ -1,298 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf struct { - Type ENUMHTTP `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner `json:"users"` - Request ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest `json:"request"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions,omitempty"` - Injections []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf(type_ ENUMHTTP, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner, request ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf{} - this.Type = type_ - this.Users = users - this.Request = request - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetType() ENUMHTTP { - if o == nil { - var ret ENUMHTTP - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetTypeOk() (*ENUMHTTP, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) SetType(v ENUMHTTP) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) { - o.Users = v -} - -// GetRequest returns the Request field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetRequest() ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest - return ret - } - - return o.Request -} - -// GetRequestOk returns a tuple with the Request field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetRequestOk() (*ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest, bool) { - if o == nil { - return nil, false - } - return &o.Request, true -} - -// SetRequest sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) SetRequest(v ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) { - o.Request = v -} - -// GetExtractions returns the Extractions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - if o == nil || IsNil(o.Extractions) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - return ret - } - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { - if o == nil || IsNil(o.Extractions) { - return nil, false - } - return o.Extractions, true -} - -// HasExtractions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) HasExtractions() bool { - if o != nil && !IsNil(o.Extractions) { - return true - } - - return false -} - -// SetExtractions gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner and assigns it to the Extractions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { - o.Extractions = v -} - -// GetInjections returns the Injections field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetInjections() []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - if o == nil || IsNil(o.Injections) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - return ret - } - return o.Injections -} - -// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) GetInjectionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { - if o == nil || IsNil(o.Injections) { - return nil, false - } - return o.Injections, true -} - -// HasInjections returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) HasInjections() bool { - if o != nil && !IsNil(o.Injections) { - return true - } - - return false -} - -// SetInjections gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner and assigns it to the Injections field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) SetInjections(v []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { - o.Injections = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["request"] = o.Request - if !IsNil(o.Extractions) { - toSerialize["extractions"] = o.Extractions - } - if !IsNil(o.Injections) { - toSerialize["injections"] = o.Injections - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "request", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "request") - delete(additionalProperties, "extractions") - delete(additionalProperties, "injections") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_1.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_1.go deleted file mode 100644 index 4fe2ebd8..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_1.go +++ /dev/null @@ -1,282 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 struct { - Type ENUMOAUTHROPC `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner `json:"users"` - Url string `json:"url"` - ClientId string `json:"client_id"` - ClientSecret string `json:"client_secret"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1(type_ ENUMOAUTHROPC, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner, url string, clientId string, clientSecret string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1{} - this.Type = type_ - this.Users = users - this.Url = url - this.ClientId = clientId - this.ClientSecret = clientSecret - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetType() ENUMOAUTHROPC { - if o == nil { - var ret ENUMOAUTHROPC - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetTypeOk() (*ENUMOAUTHROPC, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) SetType(v ENUMOAUTHROPC) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) { - o.Users = v -} - -// GetUrl returns the Url field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) SetUrl(v string) { - o.Url = v -} - -// GetClientId returns the ClientId field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetClientId() string { - if o == nil { - var ret string - return ret - } - - return o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetClientIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientId, true -} - -// SetClientId sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) SetClientId(v string) { - o.ClientId = v -} - -// GetClientSecret returns the ClientSecret field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetClientSecret() string { - if o == nil { - var ret string - return ret - } - - return o.ClientSecret -} - -// GetClientSecretOk returns a tuple with the ClientSecret field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) GetClientSecretOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientSecret, true -} - -// SetClientSecret sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) SetClientSecret(v string) { - o.ClientSecret = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["url"] = o.Url - toSerialize["client_id"] = o.ClientId - toSerialize["client_secret"] = o.ClientSecret - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "url", - "client_id", - "client_secret", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "url") - delete(additionalProperties, "client_id") - delete(additionalProperties, "client_secret") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10.go deleted file mode 100644 index a9554e30..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10.go +++ /dev/null @@ -1,261 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 struct { - Type ENUMCURLSEQUENCE `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner `json:"users"` - Requests []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner `json:"requests"` - Injections []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10(type_ ENUMCURLSEQUENCE, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner, requests []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10{} - this.Type = type_ - this.Users = users - this.Requests = requests - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) GetType() ENUMCURLSEQUENCE { - if o == nil { - var ret ENUMCURLSEQUENCE - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) GetTypeOk() (*ENUMCURLSEQUENCE, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) SetType(v ENUMCURLSEQUENCE) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) { - o.Users = v -} - -// GetRequests returns the Requests field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) GetRequests() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner - return ret - } - - return o.Requests -} - -// GetRequestsOk returns a tuple with the Requests field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) GetRequestsOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner, bool) { - if o == nil { - return nil, false - } - return o.Requests, true -} - -// SetRequests sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) SetRequests(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) { - o.Requests = v -} - -// GetInjections returns the Injections field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) GetInjections() []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - if o == nil || IsNil(o.Injections) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - return ret - } - return o.Injections -} - -// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) GetInjectionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { - if o == nil || IsNil(o.Injections) { - return nil, false - } - return o.Injections, true -} - -// HasInjections returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) HasInjections() bool { - if o != nil && !IsNil(o.Injections) { - return true - } - - return false -} - -// SetInjections gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner and assigns it to the Injections field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) SetInjections(v []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { - o.Injections = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["requests"] = o.Requests - if !IsNil(o.Injections) { - toSerialize["injections"] = o.Injections - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "requests", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "requests") - delete(additionalProperties, "injections") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10_requests_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10_requests_inner.go deleted file mode 100644 index c127cceb..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10_requests_inner.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner struct { - Curl string `json:"curl"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner(curl string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{} - this.Curl = curl - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{} - return &this -} - -// GetCurl returns the Curl field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) GetCurl() string { - if o == nil { - var ret string - return ret - } - - return o.Curl -} - -// GetCurlOk returns a tuple with the Curl field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) GetCurlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Curl, true -} - -// SetCurl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) SetCurl(v string) { - o.Curl = v -} - -// GetExtractions returns the Extractions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - if o == nil || IsNil(o.Extractions) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - return ret - } - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { - if o == nil || IsNil(o.Extractions) { - return nil, false - } - return o.Extractions, true -} - -// HasExtractions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) HasExtractions() bool { - if o != nil && !IsNil(o.Extractions) { - return true - } - - return false -} - -// SetExtractions gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner and assigns it to the Extractions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { - o.Extractions = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["curl"] = o.Curl - if !IsNil(o.Extractions) { - toSerialize["extractions"] = o.Extractions - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "curl", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "curl") - delete(additionalProperties, "extractions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10RequestsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10_users_inner.go deleted file mode 100644 index ecd0e18d..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_10_users_inner.go +++ /dev/null @@ -1,425 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Variables map[string]string `json:"variables,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner(username string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner{} - this.Username = username - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetVariables returns the Variables field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetVariables() map[string]string { - if o == nil || IsNil(o.Variables) { - var ret map[string]string - return ret - } - return o.Variables -} - -// GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) GetVariablesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Variables) { - return map[string]string{}, false - } - return o.Variables, true -} - -// HasVariables returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) HasVariables() bool { - if o != nil && !IsNil(o.Variables) { - return true - } - - return false -} - -// SetVariables gets a reference to the given map[string]string and assigns it to the Variables field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) SetVariables(v map[string]string) { - o.Variables = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - if !IsNil(o.Variables) { - toSerialize["variables"] = o.Variables - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "variables") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf10UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11.go deleted file mode 100644 index cd1e4459..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11.go +++ /dev/null @@ -1,457 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 struct { - Type ENUMBROWSERAGENT `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner `json:"users"` - LoginUrl string `json:"login_url"` - StealthMode *bool `json:"stealth_mode,omitempty"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner `json:"extractions,omitempty"` - Injections NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections `json:"injections,omitempty"` - AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` - LoggedInDetectorText *string `json:"logged_in_detector_text,omitempty"` - LoggedInDetectorTimeout *float32 `json:"logged_in_detector_timeout,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11(type_ ENUMBROWSERAGENT, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner, loginUrl string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11{} - this.Type = type_ - this.Users = users - this.LoginUrl = loginUrl - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetType() ENUMBROWSERAGENT { - if o == nil { - var ret ENUMBROWSERAGENT - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetTypeOk() (*ENUMBROWSERAGENT, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetType(v ENUMBROWSERAGENT) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) { - o.Users = v -} - -// GetLoginUrl returns the LoginUrl field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetLoginUrl() string { - if o == nil { - var ret string - return ret - } - - return o.LoginUrl -} - -// GetLoginUrlOk returns a tuple with the LoginUrl field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetLoginUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LoginUrl, true -} - -// SetLoginUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetLoginUrl(v string) { - o.LoginUrl = v -} - -// GetStealthMode returns the StealthMode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetStealthMode() bool { - if o == nil || IsNil(o.StealthMode) { - var ret bool - return ret - } - return *o.StealthMode -} - -// GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetStealthModeOk() (*bool, bool) { - if o == nil || IsNil(o.StealthMode) { - return nil, false - } - return o.StealthMode, true -} - -// HasStealthMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) HasStealthMode() bool { - if o != nil && !IsNil(o.StealthMode) { - return true - } - - return false -} - -// SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetStealthMode(v bool) { - o.StealthMode = &v -} - -// GetExtractions returns the Extractions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { - if o == nil || IsNil(o.Extractions) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner - return ret - } - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, bool) { - if o == nil || IsNil(o.Extractions) { - return nil, false - } - return o.Extractions, true -} - -// HasExtractions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) HasExtractions() bool { - if o != nil && !IsNil(o.Extractions) { - return true - } - - return false -} - -// SetExtractions gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner and assigns it to the Extractions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) { - o.Extractions = v -} - -// GetInjections returns the Injections field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetInjections() ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections { - if o == nil || IsNil(o.Injections.Get()) { - var ret ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections - return ret - } - return *o.Injections.Get() -} - -// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetInjectionsOk() (*ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections, bool) { - if o == nil { - return nil, false - } - return o.Injections.Get(), o.Injections.IsSet() -} - -// HasInjections returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) HasInjections() bool { - if o != nil && o.Injections.IsSet() { - return true - } - - return false -} - -// SetInjections gets a reference to the given NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections and assigns it to the Injections field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetInjections(v ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) { - o.Injections.Set(&v) -} - -// SetInjectionsNil sets the value for Injections to be an explicit nil -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetInjectionsNil() { - o.Injections.Set(nil) -} - -// UnsetInjections ensures that no value is present for Injections, not even an explicit nil -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) UnsetInjections() { - o.Injections.Unset() -} - -// GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetAutoExtractionUrls() []string { - if o == nil || IsNil(o.AutoExtractionUrls) { - var ret []string - return ret - } - return o.AutoExtractionUrls -} - -// GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetAutoExtractionUrlsOk() ([]string, bool) { - if o == nil || IsNil(o.AutoExtractionUrls) { - return nil, false - } - return o.AutoExtractionUrls, true -} - -// HasAutoExtractionUrls returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) HasAutoExtractionUrls() bool { - if o != nil && !IsNil(o.AutoExtractionUrls) { - return true - } - - return false -} - -// SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetAutoExtractionUrls(v []string) { - o.AutoExtractionUrls = v -} - -// GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetLoggedInDetectorText() string { - if o == nil || IsNil(o.LoggedInDetectorText) { - var ret string - return ret - } - return *o.LoggedInDetectorText -} - -// GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetLoggedInDetectorTextOk() (*string, bool) { - if o == nil || IsNil(o.LoggedInDetectorText) { - return nil, false - } - return o.LoggedInDetectorText, true -} - -// HasLoggedInDetectorText returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) HasLoggedInDetectorText() bool { - if o != nil && !IsNil(o.LoggedInDetectorText) { - return true - } - - return false -} - -// SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetLoggedInDetectorText(v string) { - o.LoggedInDetectorText = &v -} - -// GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetLoggedInDetectorTimeout() float32 { - if o == nil || IsNil(o.LoggedInDetectorTimeout) { - var ret float32 - return ret - } - return *o.LoggedInDetectorTimeout -} - -// GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) GetLoggedInDetectorTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.LoggedInDetectorTimeout) { - return nil, false - } - return o.LoggedInDetectorTimeout, true -} - -// HasLoggedInDetectorTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) HasLoggedInDetectorTimeout() bool { - if o != nil && !IsNil(o.LoggedInDetectorTimeout) { - return true - } - - return false -} - -// SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) SetLoggedInDetectorTimeout(v float32) { - o.LoggedInDetectorTimeout = &v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["login_url"] = o.LoginUrl - if !IsNil(o.StealthMode) { - toSerialize["stealth_mode"] = o.StealthMode - } - if !IsNil(o.Extractions) { - toSerialize["extractions"] = o.Extractions - } - if o.Injections.IsSet() { - toSerialize["injections"] = o.Injections.Get() - } - if !IsNil(o.AutoExtractionUrls) { - toSerialize["auto_extraction_urls"] = o.AutoExtractionUrls - } - if !IsNil(o.LoggedInDetectorText) { - toSerialize["logged_in_detector_text"] = o.LoggedInDetectorText - } - if !IsNil(o.LoggedInDetectorTimeout) { - toSerialize["logged_in_detector_timeout"] = o.LoggedInDetectorTimeout - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "login_url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "login_url") - delete(additionalProperties, "stealth_mode") - delete(additionalProperties, "extractions") - delete(additionalProperties, "injections") - delete(additionalProperties, "auto_extraction_urls") - delete(additionalProperties, "logged_in_detector_text") - delete(additionalProperties, "logged_in_detector_timeout") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_injections.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_injections.go deleted file mode 100644 index c21eaf76..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_injections.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections struct { - ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner *[]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 *[]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) UnmarshalJSON(data []byte) error { - var err error - // this object is nullable so check if the payload is null or empty string - if string(data) == "" || string(data) == "{}" { - return nil - } - - // try to unmarshal JSON data into ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - err = json.Unmarshal(data, &dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) - if err == nil { - jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, _ := json.Marshal(dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) - if string(jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) == "{}" { // empty struct - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner = nil - } else { - return nil // data stored in dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, return on the first match - } - } else { - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner = nil - } - - // try to unmarshal JSON data into ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 - err = json.Unmarshal(data, &dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) - if err == nil { - jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1, _ := json.Marshal(dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) - if string(jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) == "{}" { // empty struct - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 = nil - } else { - return nil // data stored in dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1, return on the first match - } - } else { - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) MarshalJSON() ([]byte, error) { - if src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner != nil { - return json.Marshal(&src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) - } - - if src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 != nil { - return json.Marshal(&src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) - } - - return nil, nil // no data in anyOf schemas -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_users_inner.go deleted file mode 100644 index cb98c336..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_users_inner.go +++ /dev/null @@ -1,528 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Password string `json:"password"` - AdditionalFields []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner `json:"additional_fields,omitempty"` - PreLoginActions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"pre_login_actions,omitempty"` - PostLoginActions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"post_login_actions,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner(username string, password string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner{} - this.Username = username - this.Password = password - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetPassword returns the Password field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPassword() string { - if o == nil { - var ret string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Password, true -} - -// SetPassword sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetPassword(v string) { - o.Password = v -} - -// GetAdditionalFields returns the AdditionalFields field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetAdditionalFields() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { - if o == nil || IsNil(o.AdditionalFields) { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner - return ret - } - return o.AdditionalFields -} - -// GetAdditionalFieldsOk returns a tuple with the AdditionalFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetAdditionalFieldsOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner, bool) { - if o == nil || IsNil(o.AdditionalFields) { - return nil, false - } - return o.AdditionalFields, true -} - -// HasAdditionalFields returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasAdditionalFields() bool { - if o != nil && !IsNil(o.AdditionalFields) { - return true - } - - return false -} - -// SetAdditionalFields gets a reference to the given []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner and assigns it to the AdditionalFields field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetAdditionalFields(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) { - o.AdditionalFields = v -} - -// GetPreLoginActions returns the PreLoginActions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPreLoginActions() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - if o == nil || IsNil(o.PreLoginActions) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - return ret - } - return o.PreLoginActions -} - -// GetPreLoginActionsOk returns a tuple with the PreLoginActions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPreLoginActionsOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { - if o == nil || IsNil(o.PreLoginActions) { - return nil, false - } - return o.PreLoginActions, true -} - -// HasPreLoginActions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasPreLoginActions() bool { - if o != nil && !IsNil(o.PreLoginActions) { - return true - } - - return false -} - -// SetPreLoginActions gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PreLoginActions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetPreLoginActions(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - o.PreLoginActions = v -} - -// GetPostLoginActions returns the PostLoginActions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPostLoginActions() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - if o == nil || IsNil(o.PostLoginActions) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - return ret - } - return o.PostLoginActions -} - -// GetPostLoginActionsOk returns a tuple with the PostLoginActions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) GetPostLoginActionsOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { - if o == nil || IsNil(o.PostLoginActions) { - return nil, false - } - return o.PostLoginActions, true -} - -// HasPostLoginActions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) HasPostLoginActions() bool { - if o != nil && !IsNil(o.PostLoginActions) { - return true - } - - return false -} - -// SetPostLoginActions gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PostLoginActions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) SetPostLoginActions(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - o.PostLoginActions = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["password"] = o.Password - if !IsNil(o.AdditionalFields) { - toSerialize["additional_fields"] = o.AdditionalFields - } - if !IsNil(o.PreLoginActions) { - toSerialize["pre_login_actions"] = o.PreLoginActions - } - if !IsNil(o.PostLoginActions) { - toSerialize["post_login_actions"] = o.PostLoginActions - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "password", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "password") - delete(additionalProperties, "additional_fields") - delete(additionalProperties, "pre_login_actions") - delete(additionalProperties, "post_login_actions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_users_inner_additional_fields_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_users_inner_additional_fields_inner.go deleted file mode 100644 index e0561b61..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_11_users_inner_additional_fields_inner.go +++ /dev/null @@ -1,269 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner struct { - Locator string `json:"locator"` - Value string `json:"value"` - OneByOne *bool `json:"one_by_one,omitempty"` - AutoSubmit *bool `json:"auto_submit,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner(locator string, value string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{} - this.Locator = locator - this.Value = value - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{} - return &this -} - -// GetLocator returns the Locator field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetLocator() string { - if o == nil { - var ret string - return ret - } - - return o.Locator -} - -// GetLocatorOk returns a tuple with the Locator field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetLocatorOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Locator, true -} - -// SetLocator sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) SetLocator(v string) { - o.Locator = v -} - -// GetValue returns the Value field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) SetValue(v string) { - o.Value = v -} - -// GetOneByOne returns the OneByOne field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetOneByOne() bool { - if o == nil || IsNil(o.OneByOne) { - var ret bool - return ret - } - return *o.OneByOne -} - -// GetOneByOneOk returns a tuple with the OneByOne field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetOneByOneOk() (*bool, bool) { - if o == nil || IsNil(o.OneByOne) { - return nil, false - } - return o.OneByOne, true -} - -// HasOneByOne returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) HasOneByOne() bool { - if o != nil && !IsNil(o.OneByOne) { - return true - } - - return false -} - -// SetOneByOne gets a reference to the given bool and assigns it to the OneByOne field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) SetOneByOne(v bool) { - o.OneByOne = &v -} - -// GetAutoSubmit returns the AutoSubmit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetAutoSubmit() bool { - if o == nil || IsNil(o.AutoSubmit) { - var ret bool - return ret - } - return *o.AutoSubmit -} - -// GetAutoSubmitOk returns a tuple with the AutoSubmit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) GetAutoSubmitOk() (*bool, bool) { - if o == nil || IsNil(o.AutoSubmit) { - return nil, false - } - return o.AutoSubmit, true -} - -// HasAutoSubmit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) HasAutoSubmit() bool { - if o != nil && !IsNil(o.AutoSubmit) { - return true - } - - return false -} - -// SetAutoSubmit gets a reference to the given bool and assigns it to the AutoSubmit field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) SetAutoSubmit(v bool) { - o.AutoSubmit = &v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["locator"] = o.Locator - toSerialize["value"] = o.Value - if !IsNil(o.OneByOne) { - toSerialize["one_by_one"] = o.OneByOne - } - if !IsNil(o.AutoSubmit) { - toSerialize["auto_submit"] = o.AutoSubmit - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "locator", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "locator") - delete(additionalProperties, "value") - delete(additionalProperties, "one_by_one") - delete(additionalProperties, "auto_submit") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11UsersInnerAdditionalFieldsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_12.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_12.go deleted file mode 100644 index 50ba70cb..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_12.go +++ /dev/null @@ -1,457 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 struct { - Type ENUMBROWSERACTIONS `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner `json:"users"` - LoginUrl string `json:"login_url"` - StealthMode *bool `json:"stealth_mode,omitempty"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner `json:"extractions,omitempty"` - Injections NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections `json:"injections,omitempty"` - AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` - LoggedInDetectorText *string `json:"logged_in_detector_text,omitempty"` - LoggedInDetectorTimeout *float32 `json:"logged_in_detector_timeout,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12(type_ ENUMBROWSERACTIONS, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner, loginUrl string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12{} - this.Type = type_ - this.Users = users - this.LoginUrl = loginUrl - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetType() ENUMBROWSERACTIONS { - if o == nil { - var ret ENUMBROWSERACTIONS - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetTypeOk() (*ENUMBROWSERACTIONS, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetType(v ENUMBROWSERACTIONS) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) { - o.Users = v -} - -// GetLoginUrl returns the LoginUrl field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetLoginUrl() string { - if o == nil { - var ret string - return ret - } - - return o.LoginUrl -} - -// GetLoginUrlOk returns a tuple with the LoginUrl field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetLoginUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LoginUrl, true -} - -// SetLoginUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetLoginUrl(v string) { - o.LoginUrl = v -} - -// GetStealthMode returns the StealthMode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetStealthMode() bool { - if o == nil || IsNil(o.StealthMode) { - var ret bool - return ret - } - return *o.StealthMode -} - -// GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetStealthModeOk() (*bool, bool) { - if o == nil || IsNil(o.StealthMode) { - return nil, false - } - return o.StealthMode, true -} - -// HasStealthMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) HasStealthMode() bool { - if o != nil && !IsNil(o.StealthMode) { - return true - } - - return false -} - -// SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetStealthMode(v bool) { - o.StealthMode = &v -} - -// GetExtractions returns the Extractions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { - if o == nil || IsNil(o.Extractions) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner - return ret - } - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, bool) { - if o == nil || IsNil(o.Extractions) { - return nil, false - } - return o.Extractions, true -} - -// HasExtractions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) HasExtractions() bool { - if o != nil && !IsNil(o.Extractions) { - return true - } - - return false -} - -// SetExtractions gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner and assigns it to the Extractions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) { - o.Extractions = v -} - -// GetInjections returns the Injections field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetInjections() ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections { - if o == nil || IsNil(o.Injections.Get()) { - var ret ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections - return ret - } - return *o.Injections.Get() -} - -// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetInjectionsOk() (*ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections, bool) { - if o == nil { - return nil, false - } - return o.Injections.Get(), o.Injections.IsSet() -} - -// HasInjections returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) HasInjections() bool { - if o != nil && o.Injections.IsSet() { - return true - } - - return false -} - -// SetInjections gets a reference to the given NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections and assigns it to the Injections field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetInjections(v ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) { - o.Injections.Set(&v) -} - -// SetInjectionsNil sets the value for Injections to be an explicit nil -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetInjectionsNil() { - o.Injections.Set(nil) -} - -// UnsetInjections ensures that no value is present for Injections, not even an explicit nil -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) UnsetInjections() { - o.Injections.Unset() -} - -// GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetAutoExtractionUrls() []string { - if o == nil || IsNil(o.AutoExtractionUrls) { - var ret []string - return ret - } - return o.AutoExtractionUrls -} - -// GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetAutoExtractionUrlsOk() ([]string, bool) { - if o == nil || IsNil(o.AutoExtractionUrls) { - return nil, false - } - return o.AutoExtractionUrls, true -} - -// HasAutoExtractionUrls returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) HasAutoExtractionUrls() bool { - if o != nil && !IsNil(o.AutoExtractionUrls) { - return true - } - - return false -} - -// SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetAutoExtractionUrls(v []string) { - o.AutoExtractionUrls = v -} - -// GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetLoggedInDetectorText() string { - if o == nil || IsNil(o.LoggedInDetectorText) { - var ret string - return ret - } - return *o.LoggedInDetectorText -} - -// GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetLoggedInDetectorTextOk() (*string, bool) { - if o == nil || IsNil(o.LoggedInDetectorText) { - return nil, false - } - return o.LoggedInDetectorText, true -} - -// HasLoggedInDetectorText returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) HasLoggedInDetectorText() bool { - if o != nil && !IsNil(o.LoggedInDetectorText) { - return true - } - - return false -} - -// SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetLoggedInDetectorText(v string) { - o.LoggedInDetectorText = &v -} - -// GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetLoggedInDetectorTimeout() float32 { - if o == nil || IsNil(o.LoggedInDetectorTimeout) { - var ret float32 - return ret - } - return *o.LoggedInDetectorTimeout -} - -// GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) GetLoggedInDetectorTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.LoggedInDetectorTimeout) { - return nil, false - } - return o.LoggedInDetectorTimeout, true -} - -// HasLoggedInDetectorTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) HasLoggedInDetectorTimeout() bool { - if o != nil && !IsNil(o.LoggedInDetectorTimeout) { - return true - } - - return false -} - -// SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) SetLoggedInDetectorTimeout(v float32) { - o.LoggedInDetectorTimeout = &v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["login_url"] = o.LoginUrl - if !IsNil(o.StealthMode) { - toSerialize["stealth_mode"] = o.StealthMode - } - if !IsNil(o.Extractions) { - toSerialize["extractions"] = o.Extractions - } - if o.Injections.IsSet() { - toSerialize["injections"] = o.Injections.Get() - } - if !IsNil(o.AutoExtractionUrls) { - toSerialize["auto_extraction_urls"] = o.AutoExtractionUrls - } - if !IsNil(o.LoggedInDetectorText) { - toSerialize["logged_in_detector_text"] = o.LoggedInDetectorText - } - if !IsNil(o.LoggedInDetectorTimeout) { - toSerialize["logged_in_detector_timeout"] = o.LoggedInDetectorTimeout - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "login_url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "login_url") - delete(additionalProperties, "stealth_mode") - delete(additionalProperties, "extractions") - delete(additionalProperties, "injections") - delete(additionalProperties, "auto_extraction_urls") - delete(additionalProperties, "logged_in_detector_text") - delete(additionalProperties, "logged_in_detector_timeout") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_12_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_12_users_inner.go deleted file mode 100644 index 7435a1c2..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_12_users_inner.go +++ /dev/null @@ -1,417 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Actions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"actions"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner(username string, actions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner{} - this.Username = username - this.Actions = actions - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetActions returns the Actions field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetActions() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - return ret - } - - return o.Actions -} - -// GetActionsOk returns a tuple with the Actions field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) GetActionsOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { - if o == nil { - return nil, false - } - return o.Actions, true -} - -// SetActions sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) SetActions(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - o.Actions = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["actions"] = o.Actions - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "actions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "actions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf12UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_13.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_13.go deleted file mode 100644 index 30f9d135..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_13.go +++ /dev/null @@ -1,494 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 struct { - Type ENUMBROWSERUSE `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner `json:"users"` - LoginUrl string `json:"login_url"` - StealthMode *bool `json:"stealth_mode,omitempty"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner `json:"extractions,omitempty"` - Injections NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections `json:"injections,omitempty"` - AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` - LoggedInDetectorText *string `json:"logged_in_detector_text,omitempty"` - LoggedInDetectorTimeout *float32 `json:"logged_in_detector_timeout,omitempty"` - AutoSignup *bool `json:"auto_signup,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13(type_ ENUMBROWSERUSE, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner, loginUrl string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13{} - this.Type = type_ - this.Users = users - this.LoginUrl = loginUrl - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetType() ENUMBROWSERUSE { - if o == nil { - var ret ENUMBROWSERUSE - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetTypeOk() (*ENUMBROWSERUSE, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetType(v ENUMBROWSERUSE) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) { - o.Users = v -} - -// GetLoginUrl returns the LoginUrl field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetLoginUrl() string { - if o == nil { - var ret string - return ret - } - - return o.LoginUrl -} - -// GetLoginUrlOk returns a tuple with the LoginUrl field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetLoginUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LoginUrl, true -} - -// SetLoginUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetLoginUrl(v string) { - o.LoginUrl = v -} - -// GetStealthMode returns the StealthMode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetStealthMode() bool { - if o == nil || IsNil(o.StealthMode) { - var ret bool - return ret - } - return *o.StealthMode -} - -// GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetStealthModeOk() (*bool, bool) { - if o == nil || IsNil(o.StealthMode) { - return nil, false - } - return o.StealthMode, true -} - -// HasStealthMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) HasStealthMode() bool { - if o != nil && !IsNil(o.StealthMode) { - return true - } - - return false -} - -// SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetStealthMode(v bool) { - o.StealthMode = &v -} - -// GetExtractions returns the Extractions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { - if o == nil || IsNil(o.Extractions) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner - return ret - } - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, bool) { - if o == nil || IsNil(o.Extractions) { - return nil, false - } - return o.Extractions, true -} - -// HasExtractions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) HasExtractions() bool { - if o != nil && !IsNil(o.Extractions) { - return true - } - - return false -} - -// SetExtractions gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner and assigns it to the Extractions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) { - o.Extractions = v -} - -// GetInjections returns the Injections field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetInjections() ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections { - if o == nil || IsNil(o.Injections.Get()) { - var ret ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections - return ret - } - return *o.Injections.Get() -} - -// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetInjectionsOk() (*ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections, bool) { - if o == nil { - return nil, false - } - return o.Injections.Get(), o.Injections.IsSet() -} - -// HasInjections returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) HasInjections() bool { - if o != nil && o.Injections.IsSet() { - return true - } - - return false -} - -// SetInjections gets a reference to the given NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections and assigns it to the Injections field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetInjections(v ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf11Injections) { - o.Injections.Set(&v) -} - -// SetInjectionsNil sets the value for Injections to be an explicit nil -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetInjectionsNil() { - o.Injections.Set(nil) -} - -// UnsetInjections ensures that no value is present for Injections, not even an explicit nil -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) UnsetInjections() { - o.Injections.Unset() -} - -// GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetAutoExtractionUrls() []string { - if o == nil || IsNil(o.AutoExtractionUrls) { - var ret []string - return ret - } - return o.AutoExtractionUrls -} - -// GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetAutoExtractionUrlsOk() ([]string, bool) { - if o == nil || IsNil(o.AutoExtractionUrls) { - return nil, false - } - return o.AutoExtractionUrls, true -} - -// HasAutoExtractionUrls returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) HasAutoExtractionUrls() bool { - if o != nil && !IsNil(o.AutoExtractionUrls) { - return true - } - - return false -} - -// SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetAutoExtractionUrls(v []string) { - o.AutoExtractionUrls = v -} - -// GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetLoggedInDetectorText() string { - if o == nil || IsNil(o.LoggedInDetectorText) { - var ret string - return ret - } - return *o.LoggedInDetectorText -} - -// GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetLoggedInDetectorTextOk() (*string, bool) { - if o == nil || IsNil(o.LoggedInDetectorText) { - return nil, false - } - return o.LoggedInDetectorText, true -} - -// HasLoggedInDetectorText returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) HasLoggedInDetectorText() bool { - if o != nil && !IsNil(o.LoggedInDetectorText) { - return true - } - - return false -} - -// SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetLoggedInDetectorText(v string) { - o.LoggedInDetectorText = &v -} - -// GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetLoggedInDetectorTimeout() float32 { - if o == nil || IsNil(o.LoggedInDetectorTimeout) { - var ret float32 - return ret - } - return *o.LoggedInDetectorTimeout -} - -// GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetLoggedInDetectorTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.LoggedInDetectorTimeout) { - return nil, false - } - return o.LoggedInDetectorTimeout, true -} - -// HasLoggedInDetectorTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) HasLoggedInDetectorTimeout() bool { - if o != nil && !IsNil(o.LoggedInDetectorTimeout) { - return true - } - - return false -} - -// SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetLoggedInDetectorTimeout(v float32) { - o.LoggedInDetectorTimeout = &v -} - -// GetAutoSignup returns the AutoSignup field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetAutoSignup() bool { - if o == nil || IsNil(o.AutoSignup) { - var ret bool - return ret - } - return *o.AutoSignup -} - -// GetAutoSignupOk returns a tuple with the AutoSignup field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) GetAutoSignupOk() (*bool, bool) { - if o == nil || IsNil(o.AutoSignup) { - return nil, false - } - return o.AutoSignup, true -} - -// HasAutoSignup returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) HasAutoSignup() bool { - if o != nil && !IsNil(o.AutoSignup) { - return true - } - - return false -} - -// SetAutoSignup gets a reference to the given bool and assigns it to the AutoSignup field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) SetAutoSignup(v bool) { - o.AutoSignup = &v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["login_url"] = o.LoginUrl - if !IsNil(o.StealthMode) { - toSerialize["stealth_mode"] = o.StealthMode - } - if !IsNil(o.Extractions) { - toSerialize["extractions"] = o.Extractions - } - if o.Injections.IsSet() { - toSerialize["injections"] = o.Injections.Get() - } - if !IsNil(o.AutoExtractionUrls) { - toSerialize["auto_extraction_urls"] = o.AutoExtractionUrls - } - if !IsNil(o.LoggedInDetectorText) { - toSerialize["logged_in_detector_text"] = o.LoggedInDetectorText - } - if !IsNil(o.LoggedInDetectorTimeout) { - toSerialize["logged_in_detector_timeout"] = o.LoggedInDetectorTimeout - } - if !IsNil(o.AutoSignup) { - toSerialize["auto_signup"] = o.AutoSignup - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "login_url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "login_url") - delete(additionalProperties, "stealth_mode") - delete(additionalProperties, "extractions") - delete(additionalProperties, "injections") - delete(additionalProperties, "auto_extraction_urls") - delete(additionalProperties, "logged_in_detector_text") - delete(additionalProperties, "logged_in_detector_timeout") - delete(additionalProperties, "auto_signup") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_13_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_13_users_inner.go deleted file mode 100644 index 68b3dfd7..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_13_users_inner.go +++ /dev/null @@ -1,454 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Password string `json:"password"` - ExtraInstructions *string `json:"extra_instructions,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner(username string, password string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner{} - this.Username = username - this.Password = password - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetPassword returns the Password field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetPassword() string { - if o == nil { - var ret string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Password, true -} - -// SetPassword sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetPassword(v string) { - o.Password = v -} - -// GetExtraInstructions returns the ExtraInstructions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetExtraInstructions() string { - if o == nil || IsNil(o.ExtraInstructions) { - var ret string - return ret - } - return *o.ExtraInstructions -} - -// GetExtraInstructionsOk returns a tuple with the ExtraInstructions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) GetExtraInstructionsOk() (*string, bool) { - if o == nil || IsNil(o.ExtraInstructions) { - return nil, false - } - return o.ExtraInstructions, true -} - -// HasExtraInstructions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) HasExtraInstructions() bool { - if o != nil && !IsNil(o.ExtraInstructions) { - return true - } - - return false -} - -// SetExtraInstructions gets a reference to the given string and assigns it to the ExtraInstructions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) SetExtraInstructions(v string) { - o.ExtraInstructions = &v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["password"] = o.Password - if !IsNil(o.ExtraInstructions) { - toSerialize["extra_instructions"] = o.ExtraInstructions - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "password", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "password") - delete(additionalProperties, "extra_instructions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf13UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_14.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_14.go deleted file mode 100644 index 4e52d912..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_14.go +++ /dev/null @@ -1,298 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 struct { - Type ENUMCUSTOMBPCE `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner `json:"users"` - Environment ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT `json:"environment"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions,omitempty"` - Injections []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14(type_ ENUMCUSTOMBPCE, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner, environment ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14{} - this.Type = type_ - this.Users = users - this.Environment = environment - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetType() ENUMCUSTOMBPCE { - if o == nil { - var ret ENUMCUSTOMBPCE - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetTypeOk() (*ENUMCUSTOMBPCE, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) SetType(v ENUMCUSTOMBPCE) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) { - o.Users = v -} - -// GetEnvironment returns the Environment field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetEnvironment() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT - return ret - } - - return o.Environment -} - -// GetEnvironmentOk returns a tuple with the Environment field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetEnvironmentOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT, bool) { - if o == nil { - return nil, false - } - return &o.Environment, true -} - -// SetEnvironment sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) SetEnvironment(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) { - o.Environment = v -} - -// GetExtractions returns the Extractions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - if o == nil || IsNil(o.Extractions) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - return ret - } - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { - if o == nil || IsNil(o.Extractions) { - return nil, false - } - return o.Extractions, true -} - -// HasExtractions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) HasExtractions() bool { - if o != nil && !IsNil(o.Extractions) { - return true - } - - return false -} - -// SetExtractions gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner and assigns it to the Extractions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { - o.Extractions = v -} - -// GetInjections returns the Injections field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetInjections() []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - if o == nil || IsNil(o.Injections) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - return ret - } - return o.Injections -} - -// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) GetInjectionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { - if o == nil || IsNil(o.Injections) { - return nil, false - } - return o.Injections, true -} - -// HasInjections returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) HasInjections() bool { - if o != nil && !IsNil(o.Injections) { - return true - } - - return false -} - -// SetInjections gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner and assigns it to the Injections field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) SetInjections(v []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { - o.Injections = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["environment"] = o.Environment - if !IsNil(o.Extractions) { - toSerialize["extractions"] = o.Extractions - } - if !IsNil(o.Injections) { - toSerialize["injections"] = o.Injections - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "environment", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "environment") - delete(additionalProperties, "extractions") - delete(additionalProperties, "injections") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_14_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_14_users_inner.go deleted file mode 100644 index 01430b56..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_14_users_inner.go +++ /dev/null @@ -1,446 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Password string `json:"password"` - Otp string `json:"otp"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner(username string, password string, otp string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner{} - this.Username = username - this.Password = password - this.Otp = otp - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetPassword returns the Password field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetPassword() string { - if o == nil { - var ret string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Password, true -} - -// SetPassword sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetPassword(v string) { - o.Password = v -} - -// GetOtp returns the Otp field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetOtp() string { - if o == nil { - var ret string - return ret - } - - return o.Otp -} - -// GetOtpOk returns a tuple with the Otp field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) GetOtpOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Otp, true -} - -// SetOtp sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) SetOtp(v string) { - o.Otp = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["password"] = o.Password - toSerialize["otp"] = o.Otp - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "password", - "otp", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "password") - delete(additionalProperties, "otp") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf14UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_1_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_1_users_inner.go deleted file mode 100644 index e99e9c95..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_1_users_inner.go +++ /dev/null @@ -1,454 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Password string `json:"password"` - Scopes []string `json:"scopes,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner(username string, password string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner{} - this.Username = username - this.Password = password - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetPassword returns the Password field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetPassword() string { - if o == nil { - var ret string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Password, true -} - -// SetPassword sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetPassword(v string) { - o.Password = v -} - -// GetScopes returns the Scopes field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetScopes() []string { - if o == nil || IsNil(o.Scopes) { - var ret []string - return ret - } - return o.Scopes -} - -// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) GetScopesOk() ([]string, bool) { - if o == nil || IsNil(o.Scopes) { - return nil, false - } - return o.Scopes, true -} - -// HasScopes returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) HasScopes() bool { - if o != nil && !IsNil(o.Scopes) { - return true - } - - return false -} - -// SetScopes gets a reference to the given []string and assigns it to the Scopes field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) SetScopes(v []string) { - o.Scopes = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["password"] = o.Password - if !IsNil(o.Scopes) { - toSerialize["scopes"] = o.Scopes - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "password", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "password") - delete(additionalProperties, "scopes") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_2.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_2.go deleted file mode 100644 index 4ae19a43..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_2.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 struct { - Type ENUMOAUTHCLIENTCREDENTIALS `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner `json:"users"` - Url string `json:"url"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2(type_ ENUMOAUTHCLIENTCREDENTIALS, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner, url string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2{} - this.Type = type_ - this.Users = users - this.Url = url - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) GetType() ENUMOAUTHCLIENTCREDENTIALS { - if o == nil { - var ret ENUMOAUTHCLIENTCREDENTIALS - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) GetTypeOk() (*ENUMOAUTHCLIENTCREDENTIALS, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) SetType(v ENUMOAUTHCLIENTCREDENTIALS) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) { - o.Users = v -} - -// GetUrl returns the Url field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) SetUrl(v string) { - o.Url = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["url"] = o.Url - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "url") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_2_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_2_users_inner.go deleted file mode 100644 index dc87a8c8..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_2_users_inner.go +++ /dev/null @@ -1,557 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - ClientId string `json:"client_id"` - ClientSecret string `json:"client_secret"` - Scopes []string `json:"scopes,omitempty"` - Audience *string `json:"audience,omitempty"` - BasicStyle *bool `json:"basic_style,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner(username string, clientId string, clientSecret string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner{} - this.Username = username - this.ClientId = clientId - this.ClientSecret = clientSecret - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetClientId returns the ClientId field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetClientId() string { - if o == nil { - var ret string - return ret - } - - return o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetClientIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientId, true -} - -// SetClientId sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetClientId(v string) { - o.ClientId = v -} - -// GetClientSecret returns the ClientSecret field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetClientSecret() string { - if o == nil { - var ret string - return ret - } - - return o.ClientSecret -} - -// GetClientSecretOk returns a tuple with the ClientSecret field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetClientSecretOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientSecret, true -} - -// SetClientSecret sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetClientSecret(v string) { - o.ClientSecret = v -} - -// GetScopes returns the Scopes field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetScopes() []string { - if o == nil || IsNil(o.Scopes) { - var ret []string - return ret - } - return o.Scopes -} - -// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetScopesOk() ([]string, bool) { - if o == nil || IsNil(o.Scopes) { - return nil, false - } - return o.Scopes, true -} - -// HasScopes returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasScopes() bool { - if o != nil && !IsNil(o.Scopes) { - return true - } - - return false -} - -// SetScopes gets a reference to the given []string and assigns it to the Scopes field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetScopes(v []string) { - o.Scopes = v -} - -// GetAudience returns the Audience field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetAudience() string { - if o == nil || IsNil(o.Audience) { - var ret string - return ret - } - return *o.Audience -} - -// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetAudienceOk() (*string, bool) { - if o == nil || IsNil(o.Audience) { - return nil, false - } - return o.Audience, true -} - -// HasAudience returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasAudience() bool { - if o != nil && !IsNil(o.Audience) { - return true - } - - return false -} - -// SetAudience gets a reference to the given string and assigns it to the Audience field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetAudience(v string) { - o.Audience = &v -} - -// GetBasicStyle returns the BasicStyle field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetBasicStyle() bool { - if o == nil || IsNil(o.BasicStyle) { - var ret bool - return ret - } - return *o.BasicStyle -} - -// GetBasicStyleOk returns a tuple with the BasicStyle field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) GetBasicStyleOk() (*bool, bool) { - if o == nil || IsNil(o.BasicStyle) { - return nil, false - } - return o.BasicStyle, true -} - -// HasBasicStyle returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) HasBasicStyle() bool { - if o != nil && !IsNil(o.BasicStyle) { - return true - } - - return false -} - -// SetBasicStyle gets a reference to the given bool and assigns it to the BasicStyle field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) SetBasicStyle(v bool) { - o.BasicStyle = &v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["client_id"] = o.ClientId - toSerialize["client_secret"] = o.ClientSecret - if !IsNil(o.Scopes) { - toSerialize["scopes"] = o.Scopes - } - if !IsNil(o.Audience) { - toSerialize["audience"] = o.Audience - } - if !IsNil(o.BasicStyle) { - toSerialize["basic_style"] = o.BasicStyle - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "client_id", - "client_secret", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "client_id") - delete(additionalProperties, "client_secret") - delete(additionalProperties, "scopes") - delete(additionalProperties, "audience") - delete(additionalProperties, "basic_style") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf2UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_3_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_3_users_inner.go deleted file mode 100644 index db709ef9..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_3_users_inner.go +++ /dev/null @@ -1,528 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Password string `json:"password"` - Scopes []string `json:"scopes,omitempty"` - PreLoginActions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"pre_login_actions,omitempty"` - PostLoginActions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"post_login_actions,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner(username string, password string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner{} - this.Username = username - this.Password = password - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetPassword returns the Password field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPassword() string { - if o == nil { - var ret string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Password, true -} - -// SetPassword sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetPassword(v string) { - o.Password = v -} - -// GetScopes returns the Scopes field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetScopes() []string { - if o == nil || IsNil(o.Scopes) { - var ret []string - return ret - } - return o.Scopes -} - -// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetScopesOk() ([]string, bool) { - if o == nil || IsNil(o.Scopes) { - return nil, false - } - return o.Scopes, true -} - -// HasScopes returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasScopes() bool { - if o != nil && !IsNil(o.Scopes) { - return true - } - - return false -} - -// SetScopes gets a reference to the given []string and assigns it to the Scopes field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetScopes(v []string) { - o.Scopes = v -} - -// GetPreLoginActions returns the PreLoginActions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPreLoginActions() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - if o == nil || IsNil(o.PreLoginActions) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - return ret - } - return o.PreLoginActions -} - -// GetPreLoginActionsOk returns a tuple with the PreLoginActions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPreLoginActionsOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { - if o == nil || IsNil(o.PreLoginActions) { - return nil, false - } - return o.PreLoginActions, true -} - -// HasPreLoginActions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasPreLoginActions() bool { - if o != nil && !IsNil(o.PreLoginActions) { - return true - } - - return false -} - -// SetPreLoginActions gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PreLoginActions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetPreLoginActions(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - o.PreLoginActions = v -} - -// GetPostLoginActions returns the PostLoginActions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPostLoginActions() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - if o == nil || IsNil(o.PostLoginActions) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - return ret - } - return o.PostLoginActions -} - -// GetPostLoginActionsOk returns a tuple with the PostLoginActions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) GetPostLoginActionsOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { - if o == nil || IsNil(o.PostLoginActions) { - return nil, false - } - return o.PostLoginActions, true -} - -// HasPostLoginActions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) HasPostLoginActions() bool { - if o != nil && !IsNil(o.PostLoginActions) { - return true - } - - return false -} - -// SetPostLoginActions gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PostLoginActions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) SetPostLoginActions(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - o.PostLoginActions = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["password"] = o.Password - if !IsNil(o.Scopes) { - toSerialize["scopes"] = o.Scopes - } - if !IsNil(o.PreLoginActions) { - toSerialize["pre_login_actions"] = o.PreLoginActions - } - if !IsNil(o.PostLoginActions) { - toSerialize["post_login_actions"] = o.PostLoginActions - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "password", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "password") - delete(additionalProperties, "scopes") - delete(additionalProperties, "pre_login_actions") - delete(additionalProperties, "post_login_actions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf3UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_4.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_4.go deleted file mode 100644 index b9ea0ccc..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_4.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 struct { - Type ENUMBASIC `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner `json:"users"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4(type_ ENUMBASIC, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4{} - this.Type = type_ - this.Users = users - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) GetType() ENUMBASIC { - if o == nil { - var ret ENUMBASIC - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) GetTypeOk() (*ENUMBASIC, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) SetType(v ENUMBASIC) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) { - o.Users = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_4_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_4_users_inner.go deleted file mode 100644 index 562df904..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_4_users_inner.go +++ /dev/null @@ -1,417 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Password string `json:"password"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner(username string, password string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner{} - this.Username = username - this.Password = password - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetPassword returns the Password field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetPassword() string { - if o == nil { - var ret string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Password, true -} - -// SetPassword sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) SetPassword(v string) { - o.Password = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["password"] = o.Password - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "password", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "password") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_5.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_5.go deleted file mode 100644 index dad6be30..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_5.go +++ /dev/null @@ -1,327 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 struct { - Type ENUMGRAPHQL `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner `json:"users"` - Url string `json:"url"` - Query string `json:"query"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions,omitempty"` - Injections []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5(type_ ENUMGRAPHQL, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner, url string, query string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5{} - this.Type = type_ - this.Users = users - this.Url = url - this.Query = query - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetType() ENUMGRAPHQL { - if o == nil { - var ret ENUMGRAPHQL - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetTypeOk() (*ENUMGRAPHQL, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) SetType(v ENUMGRAPHQL) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) { - o.Users = v -} - -// GetUrl returns the Url field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) SetUrl(v string) { - o.Url = v -} - -// GetQuery returns the Query field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetQuery() string { - if o == nil { - var ret string - return ret - } - - return o.Query -} - -// GetQueryOk returns a tuple with the Query field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetQueryOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Query, true -} - -// SetQuery sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) SetQuery(v string) { - o.Query = v -} - -// GetExtractions returns the Extractions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - if o == nil || IsNil(o.Extractions) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - return ret - } - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { - if o == nil || IsNil(o.Extractions) { - return nil, false - } - return o.Extractions, true -} - -// HasExtractions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) HasExtractions() bool { - if o != nil && !IsNil(o.Extractions) { - return true - } - - return false -} - -// SetExtractions gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner and assigns it to the Extractions field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { - o.Extractions = v -} - -// GetInjections returns the Injections field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetInjections() []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - if o == nil || IsNil(o.Injections) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - return ret - } - return o.Injections -} - -// GetInjectionsOk returns a tuple with the Injections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) GetInjectionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { - if o == nil || IsNil(o.Injections) { - return nil, false - } - return o.Injections, true -} - -// HasInjections returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) HasInjections() bool { - if o != nil && !IsNil(o.Injections) { - return true - } - - return false -} - -// SetInjections gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner and assigns it to the Injections field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) SetInjections(v []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { - o.Injections = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["url"] = o.Url - toSerialize["query"] = o.Query - if !IsNil(o.Extractions) { - toSerialize["extractions"] = o.Extractions - } - if !IsNil(o.Injections) { - toSerialize["injections"] = o.Injections - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "url", - "query", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "url") - delete(additionalProperties, "query") - delete(additionalProperties, "extractions") - delete(additionalProperties, "injections") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_5_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_5_users_inner.go deleted file mode 100644 index a991c526..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_5_users_inner.go +++ /dev/null @@ -1,417 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Variables map[string]string `json:"variables"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner(username string, variables map[string]string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner{} - this.Username = username - this.Variables = variables - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetVariables returns the Variables field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetVariables() map[string]string { - if o == nil { - var ret map[string]string - return ret - } - - return o.Variables -} - -// GetVariablesOk returns a tuple with the Variables field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) GetVariablesOk() (map[string]string, bool) { - if o == nil { - return map[string]string{}, false - } - return o.Variables, true -} - -// SetVariables sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) SetVariables(v map[string]string) { - o.Variables = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["variables"] = o.Variables - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "variables", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "variables") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf5UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_6.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_6.go deleted file mode 100644 index f1af86af..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_6.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 struct { - Type ENUMDIGEST `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner `json:"users"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6(type_ ENUMDIGEST, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6{} - this.Type = type_ - this.Users = users - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) GetType() ENUMDIGEST { - if o == nil { - var ret ENUMDIGEST - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) GetTypeOk() (*ENUMDIGEST, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) SetType(v ENUMDIGEST) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf4UsersInner) { - o.Users = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf6) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_7.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_7.go deleted file mode 100644 index b4bcb5a9..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_7.go +++ /dev/null @@ -1,282 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 struct { - Type ENUMCOGNITOUSERPASS `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner `json:"users"` - Region ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION `json:"region"` - ClientId string `json:"client_id"` - ClientSecret string `json:"client_secret"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7(type_ ENUMCOGNITOUSERPASS, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner, region ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION, clientId string, clientSecret string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7{} - this.Type = type_ - this.Users = users - this.Region = region - this.ClientId = clientId - this.ClientSecret = clientSecret - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetType() ENUMCOGNITOUSERPASS { - if o == nil { - var ret ENUMCOGNITOUSERPASS - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetTypeOk() (*ENUMCOGNITOUSERPASS, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) SetType(v ENUMCOGNITOUSERPASS) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf1UsersInner) { - o.Users = v -} - -// GetRegion returns the Region field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetRegion() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION - return ret - } - - return o.Region -} - -// GetRegionOk returns a tuple with the Region field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetRegionOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION, bool) { - if o == nil { - return nil, false - } - return &o.Region, true -} - -// SetRegion sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) SetRegion(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPRESETSITEMS7PROPERTIESREGION) { - o.Region = v -} - -// GetClientId returns the ClientId field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetClientId() string { - if o == nil { - var ret string - return ret - } - - return o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetClientIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientId, true -} - -// SetClientId sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) SetClientId(v string) { - o.ClientId = v -} - -// GetClientSecret returns the ClientSecret field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetClientSecret() string { - if o == nil { - var ret string - return ret - } - - return o.ClientSecret -} - -// GetClientSecretOk returns a tuple with the ClientSecret field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) GetClientSecretOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClientSecret, true -} - -// SetClientSecret sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) SetClientSecret(v string) { - o.ClientSecret = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["region"] = o.Region - toSerialize["client_id"] = o.ClientId - toSerialize["client_secret"] = o.ClientSecret - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "region", - "client_id", - "client_secret", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "region") - delete(additionalProperties, "client_id") - delete(additionalProperties, "client_secret") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf7) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_8.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_8.go deleted file mode 100644 index 9c57ceee..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_8.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 struct { - Type ENUMHEADERS `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner `json:"users"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8(type_ ENUMHEADERS, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8{} - this.Type = type_ - this.Users = users - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) GetType() ENUMHEADERS { - if o == nil { - var ret ENUMHEADERS - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) GetTypeOk() (*ENUMHEADERS, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) SetType(v ENUMHEADERS) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) { - o.Users = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_8_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_8_users_inner.go deleted file mode 100644 index 3c7765df..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_8_users_inner.go +++ /dev/null @@ -1,380 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner(username string, headers map[string]string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner{} - this.Username = username - this.Headers = headers - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetHeaders() map[string]string { - if o == nil { - var ret map[string]string - return ret - } - - return o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil { - return map[string]string{}, false - } - return o.Headers, true -} - -// SetHeaders sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) SetDigest(v string) { - o.Digest = &v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - toSerialize["headers"] = o.Headers - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "headers", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf8UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_9.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_9.go deleted file mode 100644 index 35d096af..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_9.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 struct { - Type ENUMCURL `json:"type"` - Users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner `json:"users"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions"` - Injections []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner `json:"injections"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9(type_ ENUMCURL, users []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner, extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, injections []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9{} - this.Type = type_ - this.Users = users - this.Extractions = extractions - this.Injections = injections - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9WithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9{} - return &this -} - -// GetType returns the Type field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) GetType() ENUMCURL { - if o == nil { - var ret ENUMCURL - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) GetTypeOk() (*ENUMCURL, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) SetType(v ENUMCURL) { - o.Type = v -} - -// GetUsers returns the Users field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) GetUsers() []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner - return ret - } - - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) GetUsersOk() ([]ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner, bool) { - if o == nil { - return nil, false - } - return o.Users, true -} - -// SetUsers sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) SetUsers(v []ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) { - o.Users = v -} - -// GetExtractions returns the Extractions field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - return ret - } - - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { - if o == nil { - return nil, false - } - return o.Extractions, true -} - -// SetExtractions sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { - o.Extractions = v -} - -// GetInjections returns the Injections field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) GetInjections() []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - return ret - } - - return o.Injections -} - -// GetInjectionsOk returns a tuple with the Injections field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) GetInjectionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, bool) { - if o == nil { - return nil, false - } - return o.Injections, true -} - -// SetInjections sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) SetInjections(v []ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { - o.Injections = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["users"] = o.Users - toSerialize["extractions"] = o.Extractions - toSerialize["injections"] = o.Injections - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "users", - "extractions", - "injections", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "users") - delete(additionalProperties, "extractions") - delete(additionalProperties, "injections") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9 { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_9_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_9_users_inner.go deleted file mode 100644 index 15de347a..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_9_users_inner.go +++ /dev/null @@ -1,417 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Curl string `json:"curl"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner(username string, curl string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner{} - this.Username = username - this.Curl = curl - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetCurl returns the Curl field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetCurl() string { - if o == nil { - var ret string - return ret - } - - return o.Curl -} - -// GetCurlOk returns a tuple with the Curl field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) GetCurlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Curl, true -} - -// SetCurl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) SetCurl(v string) { - o.Curl = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - toSerialize["curl"] = o.Curl - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - "curl", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "curl") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOf9UsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_request.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_request.go deleted file mode 100644 index cbbc5ff8..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_request.go +++ /dev/null @@ -1,344 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest struct { - Url string `json:"url"` - Method ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"method"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"query_parameters,omitempty"` - Body interface{} `json:"body,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest(url string, method ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest{} - this.Url = url - this.Method = method - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequestWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequestWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest{} - return &this -} - -// GetUrl returns the Url field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) SetUrl(v string) { - o.Url = v -} - -// GetMethod returns the Method field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD - return ret - } - - return o.Method -} - -// GetMethodOk returns a tuple with the Method field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { - if o == nil { - return nil, false - } - return &o.Method, true -} - -// SetMethod sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { - o.Method = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetBody() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Body -} - -// GetBodyOk returns a tuple with the Body field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) GetBodyOk() (*interface{}, bool) { - if o == nil || IsNil(o.Body) { - return nil, false - } - return &o.Body, true -} - -// HasBody returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) HasBody() bool { - if o != nil && !IsNil(o.Body) { - return true - } - - return false -} - -// SetBody gets a reference to the given interface{} and assigns it to the Body field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) SetBody(v interface{}) { - o.Body = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["url"] = o.Url - toSerialize["method"] = o.Method - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if o.Body != nil { - toSerialize["body"] = o.Body - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "url", - "method", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "url") - delete(additionalProperties, "method") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "body") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_users_inner.go deleted file mode 100644 index 0287e6b0..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_presets_inner_one_of_users_inner.go +++ /dev/null @@ -1,463 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner{} - -// ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner struct for ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner -type ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner struct { - Username string `json:"username"` - Headers map[string]string `json:"headers,omitempty"` - Cookies map[string]string `json:"cookies,omitempty"` - QueryParameters map[string]string `json:"queryParameters,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - Basic *string `json:"basic,omitempty"` - Digest *string `json:"digest,omitempty"` - Password *string `json:"password,omitempty"` - Body interface{} `json:"body,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner(username string) *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner{} - this.Username = username - return &this -} - -// NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner 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 NewProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner { - this := ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner{} - return &this -} - -// GetUsername returns the Username field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetUsername() string { - if o == nil { - var ret string - return ret - } - - return o.Username -} - -// GetUsernameOk returns a tuple with the Username field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetUsernameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Username, true -} - -// SetUsername sets field value -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetUsername(v string) { - o.Username = v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetHeaders() map[string]string { - if o == nil || IsNil(o.Headers) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetHeadersOk() (map[string]string, bool) { - if o == nil || IsNil(o.Headers) { - return map[string]string{}, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetHeaders(v map[string]string) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetCookies() map[string]string { - if o == nil || IsNil(o.Cookies) { - var ret map[string]string - 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 *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetCookiesOk() (map[string]string, bool) { - if o == nil || IsNil(o.Cookies) { - return map[string]string{}, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given map[string]string and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetCookies(v map[string]string) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetQueryParameters() map[string]string { - if o == nil || IsNil(o.QueryParameters) { - var ret map[string]string - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetQueryParametersOk() (map[string]string, bool) { - if o == nil || IsNil(o.QueryParameters) { - return map[string]string{}, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given map[string]string and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetQueryParameters(v map[string]string) { - o.QueryParameters = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetBasic(v string) { - o.Basic = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetDigest(v string) { - o.Digest = &v -} - -// GetPassword returns the Password field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetPassword() string { - if o == nil || IsNil(o.Password) { - var ret string - return ret - } - return *o.Password -} - -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetPasswordOk() (*string, bool) { - if o == nil || IsNil(o.Password) { - return nil, false - } - return o.Password, true -} - -// HasPassword returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasPassword() bool { - if o != nil && !IsNil(o.Password) { - return true - } - - return false -} - -// SetPassword gets a reference to the given string and assigns it to the Password field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetPassword(v string) { - o.Password = &v -} - -// GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetBody() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Body -} - -// GetBodyOk returns a tuple with the Body field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) GetBodyOk() (*interface{}, bool) { - if o == nil || IsNil(o.Body) { - return nil, false - } - return &o.Body, true -} - -// HasBody returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) HasBody() bool { - if o != nil && !IsNil(o.Body) { - return true - } - - return false -} - -// SetBody gets a reference to the given interface{} and assigns it to the Body field. -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) SetBody(v interface{}) { - o.Body = v -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["username"] = o.Username - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["queryParameters"] = o.QueryParameters - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - if !IsNil(o.Password) { - toSerialize["password"] = o.Password - } - if o.Body != nil { - toSerialize["body"] = o.Body - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "username", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner := _ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner(varProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "queryParameters") - delete(additionalProperties, "main_user") - delete(additionalProperties, "basic") - delete(additionalProperties, "digest") - delete(additionalProperties, "password") - delete(additionalProperties, "body") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner struct { - value *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) Get() *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) Set(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner(val *ProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner { - return &NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationPresetsInnerOneOfUsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner.go deleted file mode 100644 index 4761bced..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInner{} - -// ProfileDetailedConfigurationAuthenticationProceduresInner struct for ProfileDetailedConfigurationAuthenticationProceduresInner -type ProfileDetailedConfigurationAuthenticationProceduresInner struct { - Name string `json:"name"` - Operations []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner `json:"operations"` - Injections ProfileDetailedConfigurationAuthenticationProceduresInnerInjections `json:"injections"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInner ProfileDetailedConfigurationAuthenticationProceduresInner - -// NewProfileDetailedConfigurationAuthenticationProceduresInner instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInner(name string, operations []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner, injections ProfileDetailedConfigurationAuthenticationProceduresInnerInjections) *ProfileDetailedConfigurationAuthenticationProceduresInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInner{} - this.Name = name - this.Operations = operations - this.Injections = injections - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInner{} - return &this -} - -// GetName returns the Name field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) 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 *ProfileDetailedConfigurationAuthenticationProceduresInner) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) SetName(v string) { - o.Name = v -} - -// GetOperations returns the Operations field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) GetOperations() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner - return ret - } - - return o.Operations -} - -// GetOperationsOk returns a tuple with the Operations field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) GetOperationsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner, bool) { - if o == nil { - return nil, false - } - return o.Operations, true -} - -// SetOperations sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) SetOperations(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) { - o.Operations = v -} - -// GetInjections returns the Injections field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) GetInjections() ProfileDetailedConfigurationAuthenticationProceduresInnerInjections { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerInjections - return ret - } - - return o.Injections -} - -// GetInjectionsOk returns a tuple with the Injections field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) GetInjectionsOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerInjections, bool) { - if o == nil { - return nil, false - } - return &o.Injections, true -} - -// SetInjections sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) SetInjections(v ProfileDetailedConfigurationAuthenticationProceduresInnerInjections) { - o.Injections = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - toSerialize["operations"] = o.Operations - toSerialize["injections"] = o.Injections - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - "operations", - "injections", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInner := _ProfileDetailedConfigurationAuthenticationProceduresInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInner(varProfileDetailedConfigurationAuthenticationProceduresInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "operations") - delete(additionalProperties, "injections") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInner struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInner) Get() *ProfileDetailedConfigurationAuthenticationProceduresInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInner) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInner(val *ProfileDetailedConfigurationAuthenticationProceduresInner) *NullableProfileDetailedConfigurationAuthenticationProceduresInner { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections.go deleted file mode 100644 index 94fc6d83..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections.go +++ /dev/null @@ -1,103 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ProfileDetailedConfigurationAuthenticationProceduresInnerInjections struct for ProfileDetailedConfigurationAuthenticationProceduresInnerInjections -type ProfileDetailedConfigurationAuthenticationProceduresInnerInjections struct { - ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner *[]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 *[]ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *ProfileDetailedConfigurationAuthenticationProceduresInnerInjections) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - err = json.Unmarshal(data, &dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) - if err == nil { - jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, _ := json.Marshal(dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) - if string(jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) == "{}" { // empty struct - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner = nil - } else { - return nil // data stored in dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner, return on the first match - } - } else { - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner = nil - } - - // try to unmarshal JSON data into ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 - err = json.Unmarshal(data, &dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) - if err == nil { - jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1, _ := json.Marshal(dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) - if string(jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) == "{}" { // empty struct - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 = nil - } else { - return nil // data stored in dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1, return on the first match - } - } else { - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(ProfileDetailedConfigurationAuthenticationProceduresInnerInjections)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationAuthenticationProceduresInnerInjections) MarshalJSON() ([]byte, error) { - if src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner != nil { - return json.Marshal(&src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) - } - - if src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 != nil { - return json.Marshal(&src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) - } - - return nil, nil // no data in anyOf schemas -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerInjections - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerInjections { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerInjections) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections(val *ProfileDetailedConfigurationAuthenticationProceduresInnerInjections) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjections) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections_any_of_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections_any_of_inner.go deleted file mode 100644 index 4b407659..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections_any_of_inner.go +++ /dev/null @@ -1,261 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner struct for ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner -type ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner struct { - Location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION `json:"location"` - Key string `json:"key"` - Prefix *string `json:"prefix,omitempty"` - Variable string `json:"variable"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner(location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION, key string, variable string) *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{} - this.Location = location - this.Key = key - this.Variable = variable - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{} - return &this -} - -// GetLocation returns the Location field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetLocation() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION - return ret - } - - return o.Location -} - -// GetLocationOk returns a tuple with the Location field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetLocationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION, bool) { - if o == nil { - return nil, false - } - return &o.Location, true -} - -// SetLocation sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) SetLocation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION) { - o.Location = v -} - -// GetKey returns the Key field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetKey() string { - if o == nil { - var ret string - return ret - } - - return o.Key -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Key, true -} - -// SetKey sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) SetKey(v string) { - o.Key = v -} - -// GetPrefix returns the Prefix field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetPrefix() string { - if o == nil || IsNil(o.Prefix) { - var ret string - return ret - } - return *o.Prefix -} - -// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetPrefixOk() (*string, bool) { - if o == nil || IsNil(o.Prefix) { - return nil, false - } - return o.Prefix, true -} - -// HasPrefix returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) HasPrefix() bool { - if o != nil && !IsNil(o.Prefix) { - return true - } - - return false -} - -// SetPrefix gets a reference to the given string and assigns it to the Prefix field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) SetPrefix(v string) { - o.Prefix = &v -} - -// GetVariable returns the Variable field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetVariable() string { - if o == nil { - var ret string - return ret - } - - return o.Variable -} - -// GetVariableOk returns a tuple with the Variable field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) GetVariableOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Variable, true -} - -// SetVariable sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) SetVariable(v string) { - o.Variable = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["location"] = o.Location - toSerialize["key"] = o.Key - if !IsNil(o.Prefix) { - toSerialize["prefix"] = o.Prefix - } - toSerialize["variable"] = o.Variable - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "location", - "key", - "variable", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner := _ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner(varProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "location") - delete(additionalProperties, "key") - delete(additionalProperties, "prefix") - delete(additionalProperties, "variable") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner(val *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections_any_of_inner_1.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections_any_of_inner_1.go deleted file mode 100644 index f0ecde93..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_injections_any_of_inner_1.go +++ /dev/null @@ -1,253 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 struct for ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 -type ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 struct { - Location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION `json:"location"` - Origin string `json:"origin"` - Key string `json:"key"` - Variable string `json:"variable"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1(location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION, origin string, key string, variable string) *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{} - this.Location = location - this.Origin = origin - this.Key = key - this.Variable = variable - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1WithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{} - return &this -} - -// GetLocation returns the Location field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetLocation() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION - return ret - } - - return o.Location -} - -// GetLocationOk returns a tuple with the Location field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetLocationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION, bool) { - if o == nil { - return nil, false - } - return &o.Location, true -} - -// SetLocation sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) SetLocation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION) { - o.Location = v -} - -// GetOrigin returns the Origin field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetOrigin() string { - if o == nil { - var ret string - return ret - } - - return o.Origin -} - -// GetOriginOk returns a tuple with the Origin field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetOriginOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Origin, true -} - -// SetOrigin sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) SetOrigin(v string) { - o.Origin = v -} - -// GetKey returns the Key field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetKey() string { - if o == nil { - var ret string - return ret - } - - return o.Key -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Key, true -} - -// SetKey sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) SetKey(v string) { - o.Key = v -} - -// GetVariable returns the Variable field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetVariable() string { - if o == nil { - var ret string - return ret - } - - return o.Variable -} - -// GetVariableOk returns a tuple with the Variable field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) GetVariableOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Variable, true -} - -// SetVariable sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) SetVariable(v string) { - o.Variable = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["location"] = o.Location - toSerialize["origin"] = o.Origin - toSerialize["key"] = o.Key - toSerialize["variable"] = o.Variable - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "location", - "origin", - "key", - "variable", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 := _ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1(varProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "location") - delete(additionalProperties, "origin") - delete(additionalProperties, "key") - delete(additionalProperties, "variable") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1(val *ProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1 { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerInjectionsAnyOfInner1) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner.go deleted file mode 100644 index 606136e1..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner.go +++ /dev/null @@ -1,320 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" - "gopkg.in/validator.v2" -) - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner - struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner struct { - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 -} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfAsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf wrapped in ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner -func ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfAsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner(v *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - return ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner{ - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf: v, - } -} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 wrapped in ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner -func ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner(v *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - return ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner{ - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1: v, - } -} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 wrapped in ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner -func ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner(v *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - return ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner{ - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2: v, - } -} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 wrapped in ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner -func ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner(v *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - return ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner{ - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3: v, - } -} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 wrapped in ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner -func ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner(v *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - return ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner{ - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4: v, - } -} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 wrapped in ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner -func ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5AsProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner(v *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - return ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner{ - ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) - if string(jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf); err != nil { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) - if string(jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1); err != nil { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) - if string(jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2); err != nil { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) - if string(jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3); err != nil { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) - if string(jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4); err != nil { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) - if string(jsonProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5); err != nil { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf = nil - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 = nil - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 = nil - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 = nil - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 = nil - dst.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) MarshalJSON() ([]byte, error) { - if src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) - } - - if src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) - } - - if src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) - } - - if src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) - } - - if src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) - } - - if src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf != nil { - return obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 != nil { - return obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 != nil { - return obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 != nil { - return obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 != nil { - return obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 != nil { - return obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 - } - - // all schemas are nil - return nil -} - -// Get the actual instance value -func (obj ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) GetActualInstanceValue() interface{} { - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf != nil { - return *obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 - } - - // all schemas are nil - return nil -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of.go deleted file mode 100644 index d9e3bb4e..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf struct { - Tech ENUMHTTP `json:"tech"` - Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters `json:"parameters"` - Extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner `json:"extractions"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf(tech ENUMHTTP, parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters, extractions []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{} - this.Tech = tech - this.Parameters = parameters - this.Extractions = extractions - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{} - return &this -} - -// GetTech returns the Tech field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetTech() ENUMHTTP { - if o == nil { - var ret ENUMHTTP - return ret - } - - return o.Tech -} - -// GetTechOk returns a tuple with the Tech field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetTechOk() (*ENUMHTTP, bool) { - if o == nil { - return nil, false - } - return &o.Tech, true -} - -// SetTech sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) SetTech(v ENUMHTTP) { - o.Tech = v -} - -// GetParameters returns the Parameters field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetParameters() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters - return ret - } - - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetParametersOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters, bool) { - if o == nil { - return nil, false - } - return &o.Parameters, true -} - -// SetParameters sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) SetParameters(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) { - o.Parameters = v -} - -// GetExtractions returns the Extractions field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetExtractions() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - return ret - } - - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) GetExtractionsOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, bool) { - if o == nil { - return nil, false - } - return o.Extractions, true -} - -// SetExtractions sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) SetExtractions(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { - o.Extractions = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["tech"] = o.Tech - toSerialize["parameters"] = o.Parameters - toSerialize["extractions"] = o.Extractions - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "tech", - "parameters", - "extractions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "tech") - delete(additionalProperties, "parameters") - delete(additionalProperties, "extractions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1.go deleted file mode 100644 index 1a53ac63..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 struct { - Tech ENUMOAUTHAUTHZCODEBROWSER `json:"tech"` - Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters `json:"parameters"` - Extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1(tech ENUMOAUTHAUTHZCODEBROWSER, parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters, extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{} - this.Tech = tech - this.Parameters = parameters - this.Extractions = extractions - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1WithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{} - return &this -} - -// GetTech returns the Tech field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetTech() ENUMOAUTHAUTHZCODEBROWSER { - if o == nil { - var ret ENUMOAUTHAUTHZCODEBROWSER - return ret - } - - return o.Tech -} - -// GetTechOk returns a tuple with the Tech field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetTechOk() (*ENUMOAUTHAUTHZCODEBROWSER, bool) { - if o == nil { - return nil, false - } - return &o.Tech, true -} - -// SetTech sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) SetTech(v ENUMOAUTHAUTHZCODEBROWSER) { - o.Tech = v -} - -// GetParameters returns the Parameters field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetParameters() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters - return ret - } - - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetParametersOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters, bool) { - if o == nil { - return nil, false - } - return &o.Parameters, true -} - -// SetParameters sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) SetParameters(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Parameters) { - o.Parameters = v -} - -// GetExtractions returns the Extractions field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetExtractions() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions - return ret - } - - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) GetExtractionsOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { - if o == nil { - return nil, false - } - return &o.Extractions, true -} - -// SetExtractions sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) SetExtractions(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { - o.Extractions = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["tech"] = o.Tech - toSerialize["parameters"] = o.Parameters - toSerialize["extractions"] = o.Extractions - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "tech", - "parameters", - "extractions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "tech") - delete(additionalProperties, "parameters") - delete(additionalProperties, "extractions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1 { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions.go deleted file mode 100644 index 6166d9a0..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions.go +++ /dev/null @@ -1,103 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions struct { - ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner *[]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner - ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner *[]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner - err = json.Unmarshal(data, &dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) - if err == nil { - jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, _ := json.Marshal(dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) - if string(jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) == "{}" { // empty struct - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner = nil - } else { - return nil // data stored in dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner, return on the first match - } - } else { - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner = nil - } - - // try to unmarshal JSON data into ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - err = json.Unmarshal(data, &dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) - if err == nil { - jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, _ := json.Marshal(dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) - if string(jsonArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) == "{}" { // empty struct - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner = nil - } else { - return nil // data stored in dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner, return on the first match - } - } else { - dst.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) MarshalJSON() ([]byte, error) { - if src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner != nil { - return json.Marshal(&src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) - } - - if src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner != nil { - return json.Marshal(&src.ArrayOfProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) - } - - return nil, nil // no data in anyOf schemas -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions_any_of_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions_any_of_inner.go deleted file mode 100644 index bfbd0c5b..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_1_extractions_any_of_inner.go +++ /dev/null @@ -1,327 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner struct { - Location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION `json:"location"` - Origin string `json:"origin"` - Key string `json:"key"` - Name string `json:"name"` - Regex *string `json:"regex,omitempty"` - Jq *string `json:"jq,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner(location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION, origin string, key string, name string) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{} - this.Location = location - this.Origin = origin - this.Key = key - this.Name = name - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{} - return &this -} - -// GetLocation returns the Location field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetLocation() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION - return ret - } - - return o.Location -} - -// GetLocationOk returns a tuple with the Location field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetLocationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION, bool) { - if o == nil { - return nil, false - } - return &o.Location, true -} - -// SetLocation sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetLocation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS1PROPERTIESEXTRACTIONS1ITEMSPROPERTIESLOCATION) { - o.Location = v -} - -// GetOrigin returns the Origin field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetOrigin() string { - if o == nil { - var ret string - return ret - } - - return o.Origin -} - -// GetOriginOk returns a tuple with the Origin field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetOriginOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Origin, true -} - -// SetOrigin sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetOrigin(v string) { - o.Origin = v -} - -// GetKey returns the Key field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetKey() string { - if o == nil { - var ret string - return ret - } - - return o.Key -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Key, true -} - -// SetKey sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetKey(v string) { - o.Key = v -} - -// GetName returns the Name field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) 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 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetName(v string) { - o.Name = v -} - -// GetRegex returns the Regex field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetRegex() string { - if o == nil || IsNil(o.Regex) { - var ret string - return ret - } - return *o.Regex -} - -// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetRegexOk() (*string, bool) { - if o == nil || IsNil(o.Regex) { - return nil, false - } - return o.Regex, true -} - -// HasRegex returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) HasRegex() bool { - if o != nil && !IsNil(o.Regex) { - return true - } - - return false -} - -// SetRegex gets a reference to the given string and assigns it to the Regex field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetRegex(v string) { - o.Regex = &v -} - -// GetJq returns the Jq field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetJq() string { - if o == nil || IsNil(o.Jq) { - var ret string - return ret - } - return *o.Jq -} - -// GetJqOk returns a tuple with the Jq field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) GetJqOk() (*string, bool) { - if o == nil || IsNil(o.Jq) { - return nil, false - } - return o.Jq, true -} - -// HasJq returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) HasJq() bool { - if o != nil && !IsNil(o.Jq) { - return true - } - - return false -} - -// SetJq gets a reference to the given string and assigns it to the Jq field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) SetJq(v string) { - o.Jq = &v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["location"] = o.Location - toSerialize["origin"] = o.Origin - toSerialize["key"] = o.Key - toSerialize["name"] = o.Name - if !IsNil(o.Regex) { - toSerialize["regex"] = o.Regex - } - if !IsNil(o.Jq) { - toSerialize["jq"] = o.Jq - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "location", - "origin", - "key", - "name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "location") - delete(additionalProperties, "origin") - delete(additionalProperties, "key") - delete(additionalProperties, "name") - delete(additionalProperties, "regex") - delete(additionalProperties, "jq") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1ExtractionsAnyOfInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_2.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_2.go deleted file mode 100644 index 94aba848..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_2.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 struct { - Tech ENUMBROWSERAGENT `json:"tech"` - Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters `json:"parameters"` - Extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2(tech ENUMBROWSERAGENT, parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters, extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{} - this.Tech = tech - this.Parameters = parameters - this.Extractions = extractions - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2WithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{} - return &this -} - -// GetTech returns the Tech field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetTech() ENUMBROWSERAGENT { - if o == nil { - var ret ENUMBROWSERAGENT - return ret - } - - return o.Tech -} - -// GetTechOk returns a tuple with the Tech field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetTechOk() (*ENUMBROWSERAGENT, bool) { - if o == nil { - return nil, false - } - return &o.Tech, true -} - -// SetTech sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) SetTech(v ENUMBROWSERAGENT) { - o.Tech = v -} - -// GetParameters returns the Parameters field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetParameters() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters - return ret - } - - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetParametersOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters, bool) { - if o == nil { - return nil, false - } - return &o.Parameters, true -} - -// SetParameters sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) SetParameters(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) { - o.Parameters = v -} - -// GetExtractions returns the Extractions field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetExtractions() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions - return ret - } - - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) GetExtractionsOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { - if o == nil { - return nil, false - } - return &o.Extractions, true -} - -// SetExtractions sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) SetExtractions(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { - o.Extractions = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["tech"] = o.Tech - toSerialize["parameters"] = o.Parameters - toSerialize["extractions"] = o.Extractions - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "tech", - "parameters", - "extractions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "tech") - delete(additionalProperties, "parameters") - delete(additionalProperties, "extractions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2 { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_3.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_3.go deleted file mode 100644 index 1389db7d..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_3.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 struct { - Tech ENUMBROWSERACTIONS `json:"tech"` - Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters `json:"parameters"` - Extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3(tech ENUMBROWSERACTIONS, parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters, extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{} - this.Tech = tech - this.Parameters = parameters - this.Extractions = extractions - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3WithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{} - return &this -} - -// GetTech returns the Tech field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetTech() ENUMBROWSERACTIONS { - if o == nil { - var ret ENUMBROWSERACTIONS - return ret - } - - return o.Tech -} - -// GetTechOk returns a tuple with the Tech field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetTechOk() (*ENUMBROWSERACTIONS, bool) { - if o == nil { - return nil, false - } - return &o.Tech, true -} - -// SetTech sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) SetTech(v ENUMBROWSERACTIONS) { - o.Tech = v -} - -// GetParameters returns the Parameters field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetParameters() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters - return ret - } - - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetParametersOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters, bool) { - if o == nil { - return nil, false - } - return &o.Parameters, true -} - -// SetParameters sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) SetParameters(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf2Parameters) { - o.Parameters = v -} - -// GetExtractions returns the Extractions field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetExtractions() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions - return ret - } - - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) GetExtractionsOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { - if o == nil { - return nil, false - } - return &o.Extractions, true -} - -// SetExtractions sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) SetExtractions(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { - o.Extractions = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["tech"] = o.Tech - toSerialize["parameters"] = o.Parameters - toSerialize["extractions"] = o.Extractions - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "tech", - "parameters", - "extractions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "tech") - delete(additionalProperties, "parameters") - delete(additionalProperties, "extractions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3 { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf3) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_4.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_4.go deleted file mode 100644 index 836ff267..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_4.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 struct { - Tech ENUMBROWSERUSE `json:"tech"` - Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters `json:"parameters"` - Extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4(tech ENUMBROWSERUSE, parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters, extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{} - this.Tech = tech - this.Parameters = parameters - this.Extractions = extractions - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4WithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{} - return &this -} - -// GetTech returns the Tech field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetTech() ENUMBROWSERUSE { - if o == nil { - var ret ENUMBROWSERUSE - return ret - } - - return o.Tech -} - -// GetTechOk returns a tuple with the Tech field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetTechOk() (*ENUMBROWSERUSE, bool) { - if o == nil { - return nil, false - } - return &o.Tech, true -} - -// SetTech sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) SetTech(v ENUMBROWSERUSE) { - o.Tech = v -} - -// GetParameters returns the Parameters field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetParameters() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters - return ret - } - - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetParametersOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters, bool) { - if o == nil { - return nil, false - } - return &o.Parameters, true -} - -// SetParameters sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) SetParameters(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) { - o.Parameters = v -} - -// GetExtractions returns the Extractions field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetExtractions() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions - return ret - } - - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) GetExtractionsOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { - if o == nil { - return nil, false - } - return &o.Extractions, true -} - -// SetExtractions sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) SetExtractions(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { - o.Extractions = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["tech"] = o.Tech - toSerialize["parameters"] = o.Parameters - toSerialize["extractions"] = o.Extractions - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "tech", - "parameters", - "extractions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "tech") - delete(additionalProperties, "parameters") - delete(additionalProperties, "extractions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4 { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_4_parameters.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_4_parameters.go deleted file mode 100644 index a291cde1..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_4_parameters.go +++ /dev/null @@ -1,425 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters struct { - ProxyOverride *string `json:"proxy_override,omitempty"` - LoginUrl string `json:"login_url"` - AutoExtractionUrls []string `json:"auto_extraction_urls,omitempty"` - LoggedInDetectorText *string `json:"logged_in_detector_text,omitempty"` - LoggedInDetectorTimeout *float32 `json:"logged_in_detector_timeout,omitempty"` - StealthMode *bool `json:"stealth_mode,omitempty"` - ExtraInstructions *string `json:"extra_instructions,omitempty"` - AutoSignup *bool `json:"auto_signup,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters(loginUrl string) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{} - this.LoginUrl = loginUrl - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4ParametersWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4ParametersWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{} - return &this -} - -// GetProxyOverride returns the ProxyOverride field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetProxyOverride() string { - if o == nil || IsNil(o.ProxyOverride) { - var ret string - return ret - } - return *o.ProxyOverride -} - -// GetProxyOverrideOk returns a tuple with the ProxyOverride field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetProxyOverrideOk() (*string, bool) { - if o == nil || IsNil(o.ProxyOverride) { - return nil, false - } - return o.ProxyOverride, true -} - -// HasProxyOverride returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) HasProxyOverride() bool { - if o != nil && !IsNil(o.ProxyOverride) { - return true - } - - return false -} - -// SetProxyOverride gets a reference to the given string and assigns it to the ProxyOverride field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetProxyOverride(v string) { - o.ProxyOverride = &v -} - -// GetLoginUrl returns the LoginUrl field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetLoginUrl() string { - if o == nil { - var ret string - return ret - } - - return o.LoginUrl -} - -// GetLoginUrlOk returns a tuple with the LoginUrl field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetLoginUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LoginUrl, true -} - -// SetLoginUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetLoginUrl(v string) { - o.LoginUrl = v -} - -// GetAutoExtractionUrls returns the AutoExtractionUrls field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetAutoExtractionUrls() []string { - if o == nil || IsNil(o.AutoExtractionUrls) { - var ret []string - return ret - } - return o.AutoExtractionUrls -} - -// GetAutoExtractionUrlsOk returns a tuple with the AutoExtractionUrls field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetAutoExtractionUrlsOk() ([]string, bool) { - if o == nil || IsNil(o.AutoExtractionUrls) { - return nil, false - } - return o.AutoExtractionUrls, true -} - -// HasAutoExtractionUrls returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) HasAutoExtractionUrls() bool { - if o != nil && !IsNil(o.AutoExtractionUrls) { - return true - } - - return false -} - -// SetAutoExtractionUrls gets a reference to the given []string and assigns it to the AutoExtractionUrls field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetAutoExtractionUrls(v []string) { - o.AutoExtractionUrls = v -} - -// GetLoggedInDetectorText returns the LoggedInDetectorText field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetLoggedInDetectorText() string { - if o == nil || IsNil(o.LoggedInDetectorText) { - var ret string - return ret - } - return *o.LoggedInDetectorText -} - -// GetLoggedInDetectorTextOk returns a tuple with the LoggedInDetectorText field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetLoggedInDetectorTextOk() (*string, bool) { - if o == nil || IsNil(o.LoggedInDetectorText) { - return nil, false - } - return o.LoggedInDetectorText, true -} - -// HasLoggedInDetectorText returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) HasLoggedInDetectorText() bool { - if o != nil && !IsNil(o.LoggedInDetectorText) { - return true - } - - return false -} - -// SetLoggedInDetectorText gets a reference to the given string and assigns it to the LoggedInDetectorText field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetLoggedInDetectorText(v string) { - o.LoggedInDetectorText = &v -} - -// GetLoggedInDetectorTimeout returns the LoggedInDetectorTimeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetLoggedInDetectorTimeout() float32 { - if o == nil || IsNil(o.LoggedInDetectorTimeout) { - var ret float32 - return ret - } - return *o.LoggedInDetectorTimeout -} - -// GetLoggedInDetectorTimeoutOk returns a tuple with the LoggedInDetectorTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetLoggedInDetectorTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.LoggedInDetectorTimeout) { - return nil, false - } - return o.LoggedInDetectorTimeout, true -} - -// HasLoggedInDetectorTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) HasLoggedInDetectorTimeout() bool { - if o != nil && !IsNil(o.LoggedInDetectorTimeout) { - return true - } - - return false -} - -// SetLoggedInDetectorTimeout gets a reference to the given float32 and assigns it to the LoggedInDetectorTimeout field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetLoggedInDetectorTimeout(v float32) { - o.LoggedInDetectorTimeout = &v -} - -// GetStealthMode returns the StealthMode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetStealthMode() bool { - if o == nil || IsNil(o.StealthMode) { - var ret bool - return ret - } - return *o.StealthMode -} - -// GetStealthModeOk returns a tuple with the StealthMode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetStealthModeOk() (*bool, bool) { - if o == nil || IsNil(o.StealthMode) { - return nil, false - } - return o.StealthMode, true -} - -// HasStealthMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) HasStealthMode() bool { - if o != nil && !IsNil(o.StealthMode) { - return true - } - - return false -} - -// SetStealthMode gets a reference to the given bool and assigns it to the StealthMode field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetStealthMode(v bool) { - o.StealthMode = &v -} - -// GetExtraInstructions returns the ExtraInstructions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetExtraInstructions() string { - if o == nil || IsNil(o.ExtraInstructions) { - var ret string - return ret - } - return *o.ExtraInstructions -} - -// GetExtraInstructionsOk returns a tuple with the ExtraInstructions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetExtraInstructionsOk() (*string, bool) { - if o == nil || IsNil(o.ExtraInstructions) { - return nil, false - } - return o.ExtraInstructions, true -} - -// HasExtraInstructions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) HasExtraInstructions() bool { - if o != nil && !IsNil(o.ExtraInstructions) { - return true - } - - return false -} - -// SetExtraInstructions gets a reference to the given string and assigns it to the ExtraInstructions field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetExtraInstructions(v string) { - o.ExtraInstructions = &v -} - -// GetAutoSignup returns the AutoSignup field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetAutoSignup() bool { - if o == nil || IsNil(o.AutoSignup) { - var ret bool - return ret - } - return *o.AutoSignup -} - -// GetAutoSignupOk returns a tuple with the AutoSignup field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) GetAutoSignupOk() (*bool, bool) { - if o == nil || IsNil(o.AutoSignup) { - return nil, false - } - return o.AutoSignup, true -} - -// HasAutoSignup returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) HasAutoSignup() bool { - if o != nil && !IsNil(o.AutoSignup) { - return true - } - - return false -} - -// SetAutoSignup gets a reference to the given bool and assigns it to the AutoSignup field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) SetAutoSignup(v bool) { - o.AutoSignup = &v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProxyOverride) { - toSerialize["proxy_override"] = o.ProxyOverride - } - toSerialize["login_url"] = o.LoginUrl - if !IsNil(o.AutoExtractionUrls) { - toSerialize["auto_extraction_urls"] = o.AutoExtractionUrls - } - if !IsNil(o.LoggedInDetectorText) { - toSerialize["logged_in_detector_text"] = o.LoggedInDetectorText - } - if !IsNil(o.LoggedInDetectorTimeout) { - toSerialize["logged_in_detector_timeout"] = o.LoggedInDetectorTimeout - } - if !IsNil(o.StealthMode) { - toSerialize["stealth_mode"] = o.StealthMode - } - if !IsNil(o.ExtraInstructions) { - toSerialize["extra_instructions"] = o.ExtraInstructions - } - if !IsNil(o.AutoSignup) { - toSerialize["auto_signup"] = o.AutoSignup - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "login_url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "proxy_override") - delete(additionalProperties, "login_url") - delete(additionalProperties, "auto_extraction_urls") - delete(additionalProperties, "logged_in_detector_text") - delete(additionalProperties, "logged_in_detector_timeout") - delete(additionalProperties, "stealth_mode") - delete(additionalProperties, "extra_instructions") - delete(additionalProperties, "auto_signup") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf4Parameters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_5.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_5.go deleted file mode 100644 index a36bbb15..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_5.go +++ /dev/null @@ -1,224 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 struct { - Tech ENUMCUSTOMBPCE `json:"tech"` - Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters `json:"parameters"` - Extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions `json:"extractions"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5(tech ENUMCUSTOMBPCE, parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters, extractions ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5{} - this.Tech = tech - this.Parameters = parameters - this.Extractions = extractions - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5WithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5{} - return &this -} - -// GetTech returns the Tech field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) GetTech() ENUMCUSTOMBPCE { - if o == nil { - var ret ENUMCUSTOMBPCE - return ret - } - - return o.Tech -} - -// GetTechOk returns a tuple with the Tech field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) GetTechOk() (*ENUMCUSTOMBPCE, bool) { - if o == nil { - return nil, false - } - return &o.Tech, true -} - -// SetTech sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) SetTech(v ENUMCUSTOMBPCE) { - o.Tech = v -} - -// GetParameters returns the Parameters field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) GetParameters() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters - return ret - } - - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) GetParametersOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters, bool) { - if o == nil { - return nil, false - } - return &o.Parameters, true -} - -// SetParameters sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) SetParameters(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) { - o.Parameters = v -} - -// GetExtractions returns the Extractions field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) GetExtractions() ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions { - if o == nil { - var ret ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions - return ret - } - - return o.Extractions -} - -// GetExtractionsOk returns a tuple with the Extractions field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) GetExtractionsOk() (*ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions, bool) { - if o == nil { - return nil, false - } - return &o.Extractions, true -} - -// SetExtractions sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) SetExtractions(v ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf1Extractions) { - o.Extractions = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["tech"] = o.Tech - toSerialize["parameters"] = o.Parameters - toSerialize["extractions"] = o.Extractions - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "tech", - "parameters", - "extractions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "tech") - delete(additionalProperties, "parameters") - delete(additionalProperties, "extractions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5 { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_5_parameters.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_5_parameters.go deleted file mode 100644 index 6c4c50da..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_5_parameters.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters struct { - ProxyOverride *string `json:"proxy_override,omitempty"` - Environment ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT `json:"environment"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters(environment ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters{} - this.Environment = environment - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5ParametersWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5ParametersWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters{} - return &this -} - -// GetProxyOverride returns the ProxyOverride field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) GetProxyOverride() string { - if o == nil || IsNil(o.ProxyOverride) { - var ret string - return ret - } - return *o.ProxyOverride -} - -// GetProxyOverrideOk returns a tuple with the ProxyOverride field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) GetProxyOverrideOk() (*string, bool) { - if o == nil || IsNil(o.ProxyOverride) { - return nil, false - } - return o.ProxyOverride, true -} - -// HasProxyOverride returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) HasProxyOverride() bool { - if o != nil && !IsNil(o.ProxyOverride) { - return true - } - - return false -} - -// SetProxyOverride gets a reference to the given string and assigns it to the ProxyOverride field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) SetProxyOverride(v string) { - o.ProxyOverride = &v -} - -// GetEnvironment returns the Environment field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) GetEnvironment() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT - return ret - } - - return o.Environment -} - -// GetEnvironmentOk returns a tuple with the Environment field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) GetEnvironmentOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT, bool) { - if o == nil { - return nil, false - } - return &o.Environment, true -} - -// SetEnvironment sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) SetEnvironment(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS5PROPERTIESPARAMETERSPROPERTIESENVIRONMENT) { - o.Environment = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProxyOverride) { - toSerialize["proxy_override"] = o.ProxyOverride - } - toSerialize["environment"] = o.Environment - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "environment", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "proxy_override") - delete(additionalProperties, "environment") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOf5Parameters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_extractions_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_extractions_inner.go deleted file mode 100644 index 5c6c9863..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_extractions_inner.go +++ /dev/null @@ -1,261 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner struct { - Location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION `json:"location"` - Key string `json:"key"` - Regex *string `json:"regex,omitempty"` - Name string `json:"name"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner(location ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION, key string, name string) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{} - this.Location = location - this.Key = key - this.Name = name - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{} - return &this -} - -// GetLocation returns the Location field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetLocation() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION - return ret - } - - return o.Location -} - -// GetLocationOk returns a tuple with the Location field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetLocationOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION, bool) { - if o == nil { - return nil, false - } - return &o.Location, true -} - -// SetLocation sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) SetLocation(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESEXTRACTIONSITEMSPROPERTIESLOCATION) { - o.Location = v -} - -// GetKey returns the Key field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetKey() string { - if o == nil { - var ret string - return ret - } - - return o.Key -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Key, true -} - -// SetKey sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) SetKey(v string) { - o.Key = v -} - -// GetRegex returns the Regex field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetRegex() string { - if o == nil || IsNil(o.Regex) { - var ret string - return ret - } - return *o.Regex -} - -// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetRegexOk() (*string, bool) { - if o == nil || IsNil(o.Regex) { - return nil, false - } - return o.Regex, true -} - -// HasRegex returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) HasRegex() bool { - if o != nil && !IsNil(o.Regex) { - return true - } - - return false -} - -// SetRegex gets a reference to the given string and assigns it to the Regex field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) SetRegex(v string) { - o.Regex = &v -} - -// GetName returns the Name field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) 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 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) SetName(v string) { - o.Name = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["location"] = o.Location - toSerialize["key"] = o.Key - if !IsNil(o.Regex) { - toSerialize["regex"] = o.Regex - } - toSerialize["name"] = o.Name - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "location", - "key", - "name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "location") - delete(additionalProperties, "key") - delete(additionalProperties, "regex") - delete(additionalProperties, "name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfExtractionsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters.go deleted file mode 100644 index a78d1d7e..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters.go +++ /dev/null @@ -1,468 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters struct { - ProxyOverride *string `json:"proxy_override,omitempty"` - Url string `json:"url"` - Method ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD `json:"method"` - Headers []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner `json:"headers"` - Cookies []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner `json:"cookies"` - QueryParameters []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner `json:"queryParameters"` - Body interface{} `json:"body,omitempty"` - Timeout *float32 `json:"timeout,omitempty"` - Insecure *bool `json:"insecure,omitempty"` - FollowRedirects *float32 `json:"follow_redirects,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters(url string, method ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, headers []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, cookies []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner, queryParameters []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{} - this.Url = url - this.Method = method - this.Headers = headers - this.Cookies = cookies - this.QueryParameters = queryParameters - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{} - return &this -} - -// GetProxyOverride returns the ProxyOverride field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetProxyOverride() string { - if o == nil || IsNil(o.ProxyOverride) { - var ret string - return ret - } - return *o.ProxyOverride -} - -// GetProxyOverrideOk returns a tuple with the ProxyOverride field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetProxyOverrideOk() (*string, bool) { - if o == nil || IsNil(o.ProxyOverride) { - return nil, false - } - return o.ProxyOverride, true -} - -// HasProxyOverride returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasProxyOverride() bool { - if o != nil && !IsNil(o.ProxyOverride) { - return true - } - - return false -} - -// SetProxyOverride gets a reference to the given string and assigns it to the ProxyOverride field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetProxyOverride(v string) { - o.ProxyOverride = &v -} - -// GetUrl returns the Url field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetUrl(v string) { - o.Url = v -} - -// GetMethod returns the Method field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetMethod() ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD { - if o == nil { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD - return ret - } - - return o.Method -} - -// GetMethodOk returns a tuple with the Method field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetMethodOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD, bool) { - if o == nil { - return nil, false - } - return &o.Method, true -} - -// SetMethod sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetMethod(v ENUMPROPERTIESCONFIGURATIONPROPERTIESSCOPEPROPERTIESALLOWLISTITEMS3PROPERTIESMETHOD) { - o.Method = v -} - -// GetHeaders returns the Headers field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetHeaders() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner - return ret - } - - return o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetHeadersOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, bool) { - if o == nil { - return nil, false - } - return o.Headers, true -} - -// SetHeaders sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetHeaders(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { - o.Headers = v -} - -// GetCookies returns the Cookies field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetCookies() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner - return ret - } - - return o.Cookies -} - -// GetCookiesOk returns a tuple with the Cookies field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetCookiesOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner, bool) { - if o == nil { - return nil, false - } - return o.Cookies, true -} - -// SetCookies sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetCookies(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetQueryParameters() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { - if o == nil { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner - return ret - } - - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetQueryParametersOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, bool) { - if o == nil { - return nil, false - } - return o.QueryParameters, true -} - -// SetQueryParameters sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetQueryParameters(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { - o.QueryParameters = v -} - -// GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetBody() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Body -} - -// GetBodyOk returns a tuple with the Body field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetBodyOk() (*interface{}, bool) { - if o == nil || IsNil(o.Body) { - return nil, false - } - return &o.Body, true -} - -// HasBody returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasBody() bool { - if o != nil && !IsNil(o.Body) { - return true - } - - return false -} - -// SetBody gets a reference to the given interface{} and assigns it to the Body field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetBody(v interface{}) { - o.Body = v -} - -// GetTimeout returns the Timeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetTimeout() float32 { - if o == nil || IsNil(o.Timeout) { - var ret float32 - return ret - } - return *o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.Timeout) { - return nil, false - } - return o.Timeout, true -} - -// HasTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasTimeout() bool { - if o != nil && !IsNil(o.Timeout) { - return true - } - - return false -} - -// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetTimeout(v float32) { - o.Timeout = &v -} - -// GetInsecure returns the Insecure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetInsecure() bool { - if o == nil || IsNil(o.Insecure) { - var ret bool - return ret - } - return *o.Insecure -} - -// GetInsecureOk returns a tuple with the Insecure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetInsecureOk() (*bool, bool) { - if o == nil || IsNil(o.Insecure) { - return nil, false - } - return o.Insecure, true -} - -// HasInsecure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasInsecure() bool { - if o != nil && !IsNil(o.Insecure) { - return true - } - - return false -} - -// SetInsecure gets a reference to the given bool and assigns it to the Insecure field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetInsecure(v bool) { - o.Insecure = &v -} - -// GetFollowRedirects returns the FollowRedirects field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetFollowRedirects() float32 { - if o == nil || IsNil(o.FollowRedirects) { - var ret float32 - return ret - } - return *o.FollowRedirects -} - -// GetFollowRedirectsOk returns a tuple with the FollowRedirects field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) GetFollowRedirectsOk() (*float32, bool) { - if o == nil || IsNil(o.FollowRedirects) { - return nil, false - } - return o.FollowRedirects, true -} - -// HasFollowRedirects returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) HasFollowRedirects() bool { - if o != nil && !IsNil(o.FollowRedirects) { - return true - } - - return false -} - -// SetFollowRedirects gets a reference to the given float32 and assigns it to the FollowRedirects field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) SetFollowRedirects(v float32) { - o.FollowRedirects = &v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProxyOverride) { - toSerialize["proxy_override"] = o.ProxyOverride - } - toSerialize["url"] = o.Url - toSerialize["method"] = o.Method - toSerialize["headers"] = o.Headers - toSerialize["cookies"] = o.Cookies - toSerialize["queryParameters"] = o.QueryParameters - if o.Body != nil { - toSerialize["body"] = o.Body - } - if !IsNil(o.Timeout) { - toSerialize["timeout"] = o.Timeout - } - if !IsNil(o.Insecure) { - toSerialize["insecure"] = o.Insecure - } - if !IsNil(o.FollowRedirects) { - toSerialize["follow_redirects"] = o.FollowRedirects - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "url", - "method", - "headers", - "cookies", - "queryParameters", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "proxy_override") - delete(additionalProperties, "url") - delete(additionalProperties, "method") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "queryParameters") - delete(additionalProperties, "body") - delete(additionalProperties, "timeout") - delete(additionalProperties, "insecure") - delete(additionalProperties, "follow_redirects") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParameters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_cookies_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_cookies_inner.go deleted file mode 100644 index aafd51f9..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_cookies_inner.go +++ /dev/null @@ -1,380 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner struct { - Name string `json:"name"` - Domain *string `json:"domain,omitempty"` - Path *string `json:"path,omitempty"` - HttpOnly *bool `json:"http_only,omitempty"` - Secure *bool `json:"secure,omitempty"` - SameSite *ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE `json:"same_site,omitempty"` - Values []string `json:"values"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner(name string, values []string) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{} - this.Name = name - this.Values = values - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{} - return &this -} - -// GetName returns the Name field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) 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 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetName(v string) { - o.Name = v -} - -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetDomain() string { - if o == nil || IsNil(o.Domain) { - 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 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { - return nil, false - } - return o.Domain, true -} - -// HasDomain returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { - return true - } - - return false -} - -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetDomain(v string) { - o.Domain = &v -} - -// GetPath returns the Path field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetPath() string { - if o == nil || IsNil(o.Path) { - 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 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetPathOk() (*string, bool) { - if o == nil || IsNil(o.Path) { - return nil, false - } - return o.Path, true -} - -// HasPath returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasPath() bool { - if o != nil && !IsNil(o.Path) { - return true - } - - return false -} - -// SetPath gets a reference to the given string and assigns it to the Path field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetPath(v string) { - o.Path = &v -} - -// GetHttpOnly returns the HttpOnly field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetHttpOnly() bool { - if o == nil || IsNil(o.HttpOnly) { - 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 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetHttpOnlyOk() (*bool, bool) { - if o == nil || IsNil(o.HttpOnly) { - return nil, false - } - return o.HttpOnly, true -} - -// HasHttpOnly returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasHttpOnly() bool { - if o != nil && !IsNil(o.HttpOnly) { - return true - } - - return false -} - -// SetHttpOnly gets a reference to the given bool and assigns it to the HttpOnly field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetHttpOnly(v bool) { - o.HttpOnly = &v -} - -// GetSecure returns the Secure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetSecure() bool { - if o == nil || IsNil(o.Secure) { - 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 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetSecureOk() (*bool, bool) { - if o == nil || IsNil(o.Secure) { - return nil, false - } - return o.Secure, true -} - -// HasSecure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasSecure() bool { - if o != nil && !IsNil(o.Secure) { - return true - } - - return false -} - -// SetSecure gets a reference to the given bool and assigns it to the Secure field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetSecure(v bool) { - o.Secure = &v -} - -// GetSameSite returns the SameSite field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetSameSite() ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE { - if o == nil || IsNil(o.SameSite) { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE - return ret - } - return *o.SameSite -} - -// GetSameSiteOk returns a tuple with the SameSite field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetSameSiteOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE, bool) { - if o == nil || IsNil(o.SameSite) { - return nil, false - } - return o.SameSite, true -} - -// HasSameSite returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) HasSameSite() bool { - if o != nil && !IsNil(o.SameSite) { - return true - } - - return false -} - -// SetSameSite gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE and assigns it to the SameSite field. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetSameSite(v ENUMPROPERTIESCONFIGURATIONPROPERTIESAUTHENTICATIONPROPERTIESPROCEDURESITEMSPROPERTIESOPERATIONSITEMS0PROPERTIESPARAMETERSPROPERTIESCOOKIESITEMSPROPERTIESSAMESITE) { - o.SameSite = &v -} - -// GetValues returns the Values field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetValues() []string { - if o == nil { - var ret []string - return ret - } - - return o.Values -} - -// GetValuesOk returns a tuple with the Values field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) GetValuesOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.Values, true -} - -// SetValues sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) SetValues(v []string) { - o.Values = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain - } - if !IsNil(o.Path) { - toSerialize["path"] = o.Path - } - if !IsNil(o.HttpOnly) { - toSerialize["http_only"] = o.HttpOnly - } - if !IsNil(o.Secure) { - toSerialize["secure"] = o.Secure - } - if !IsNil(o.SameSite) { - toSerialize["same_site"] = o.SameSite - } - toSerialize["values"] = o.Values - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - "values", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "domain") - delete(additionalProperties, "path") - delete(additionalProperties, "http_only") - delete(additionalProperties, "secure") - delete(additionalProperties, "same_site") - delete(additionalProperties, "values") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_headers_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_headers_inner.go deleted file mode 100644 index bb2b7279..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_procedures_inner_operations_inner_one_of_parameters_headers_inner.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{} - -// ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner struct for ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner -type ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner struct { - Name string `json:"name"` - Values []string `json:"values"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner(name string, values []string) *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{} - this.Name = name - this.Values = values - return &this -} - -// NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner 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 NewProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { - this := ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{} - return &this -} - -// GetName returns the Name field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) 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 *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) SetName(v string) { - o.Name = v -} - -// GetValues returns the Values field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) GetValues() []string { - if o == nil { - var ret []string - return ret - } - - return o.Values -} - -// GetValuesOk returns a tuple with the Values field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) GetValuesOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.Values, true -} - -// SetValues sets field value -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) SetValues(v []string) { - o.Values = v -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - toSerialize["values"] = o.Values - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - "values", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner := _ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner(varProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "values") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner struct { - value *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) Get() *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) Set(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner(val *ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { - return &NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner.go deleted file mode 100644 index 677bf5c4..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner.go +++ /dev/null @@ -1,351 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInner{} - -// ProfileDetailedConfigurationAuthenticationUsersInner struct for ProfileDetailedConfigurationAuthenticationUsersInner -type ProfileDetailedConfigurationAuthenticationUsersInner struct { - Name string `json:"name"` - Credentials *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials `json:"credentials,omitempty"` - Procedure *string `json:"procedure,omitempty"` - Variables []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner `json:"variables,omitempty"` - Refresh *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh `json:"refresh,omitempty"` - MainUser *bool `json:"main_user,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInner ProfileDetailedConfigurationAuthenticationUsersInner - -// NewProfileDetailedConfigurationAuthenticationUsersInner instantiates a new ProfileDetailedConfigurationAuthenticationUsersInner 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 NewProfileDetailedConfigurationAuthenticationUsersInner(name string) *ProfileDetailedConfigurationAuthenticationUsersInner { - this := ProfileDetailedConfigurationAuthenticationUsersInner{} - this.Name = name - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInner 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 NewProfileDetailedConfigurationAuthenticationUsersInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInner { - this := ProfileDetailedConfigurationAuthenticationUsersInner{} - return &this -} - -// GetName returns the Name field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) 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 *ProfileDetailedConfigurationAuthenticationUsersInner) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) SetName(v string) { - o.Name = v -} - -// GetCredentials returns the Credentials field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetCredentials() ProfileDetailedConfigurationAuthenticationUsersInnerCredentials { - if o == nil || IsNil(o.Credentials) { - var ret ProfileDetailedConfigurationAuthenticationUsersInnerCredentials - return ret - } - return *o.Credentials -} - -// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetCredentialsOk() (*ProfileDetailedConfigurationAuthenticationUsersInnerCredentials, bool) { - if o == nil || IsNil(o.Credentials) { - return nil, false - } - return o.Credentials, true -} - -// HasCredentials returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) HasCredentials() bool { - if o != nil && !IsNil(o.Credentials) { - return true - } - - return false -} - -// SetCredentials gets a reference to the given ProfileDetailedConfigurationAuthenticationUsersInnerCredentials and assigns it to the Credentials field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) SetCredentials(v ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) { - o.Credentials = &v -} - -// GetProcedure returns the Procedure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetProcedure() string { - if o == nil || IsNil(o.Procedure) { - var ret string - return ret - } - return *o.Procedure -} - -// GetProcedureOk returns a tuple with the Procedure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetProcedureOk() (*string, bool) { - if o == nil || IsNil(o.Procedure) { - return nil, false - } - return o.Procedure, true -} - -// HasProcedure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) HasProcedure() bool { - if o != nil && !IsNil(o.Procedure) { - return true - } - - return false -} - -// SetProcedure gets a reference to the given string and assigns it to the Procedure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) SetProcedure(v string) { - o.Procedure = &v -} - -// GetVariables returns the Variables field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetVariables() []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner { - if o == nil || IsNil(o.Variables) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner - return ret - } - return o.Variables -} - -// GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetVariablesOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner, bool) { - if o == nil || IsNil(o.Variables) { - return nil, false - } - return o.Variables, true -} - -// HasVariables returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) HasVariables() bool { - if o != nil && !IsNil(o.Variables) { - return true - } - - return false -} - -// SetVariables gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner and assigns it to the Variables field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) SetVariables(v []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) { - o.Variables = v -} - -// GetRefresh returns the Refresh field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetRefresh() ProfileDetailedConfigurationAuthenticationUsersInnerRefresh { - if o == nil || IsNil(o.Refresh) { - var ret ProfileDetailedConfigurationAuthenticationUsersInnerRefresh - return ret - } - return *o.Refresh -} - -// GetRefreshOk returns a tuple with the Refresh field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetRefreshOk() (*ProfileDetailedConfigurationAuthenticationUsersInnerRefresh, bool) { - if o == nil || IsNil(o.Refresh) { - return nil, false - } - return o.Refresh, true -} - -// HasRefresh returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) HasRefresh() bool { - if o != nil && !IsNil(o.Refresh) { - return true - } - - return false -} - -// SetRefresh gets a reference to the given ProfileDetailedConfigurationAuthenticationUsersInnerRefresh and assigns it to the Refresh field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) SetRefresh(v ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) { - o.Refresh = &v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetMainUser() bool { - if o == nil || IsNil(o.MainUser) { - var ret bool - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) GetMainUserOk() (*bool, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given bool and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) SetMainUser(v bool) { - o.MainUser = &v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - if !IsNil(o.Credentials) { - toSerialize["credentials"] = o.Credentials - } - if !IsNil(o.Procedure) { - toSerialize["procedure"] = o.Procedure - } - if !IsNil(o.Variables) { - toSerialize["variables"] = o.Variables - } - if !IsNil(o.Refresh) { - toSerialize["refresh"] = o.Refresh - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInner := _ProfileDetailedConfigurationAuthenticationUsersInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInner(varProfileDetailedConfigurationAuthenticationUsersInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "credentials") - delete(additionalProperties, "procedure") - delete(additionalProperties, "variables") - delete(additionalProperties, "refresh") - delete(additionalProperties, "main_user") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInner struct { - value *ProfileDetailedConfigurationAuthenticationUsersInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInner) Get() *ProfileDetailedConfigurationAuthenticationUsersInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInner) Set(val *ProfileDetailedConfigurationAuthenticationUsersInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInner(val *ProfileDetailedConfigurationAuthenticationUsersInner) *NullableProfileDetailedConfigurationAuthenticationUsersInner { - return &NullableProfileDetailedConfigurationAuthenticationUsersInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials.go deleted file mode 100644 index 5eced903..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials.go +++ /dev/null @@ -1,635 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentials type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentials{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentials struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentials -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentials struct { - Username *string `json:"username,omitempty"` - Password *string `json:"password,omitempty"` - Headers []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner `json:"headers,omitempty"` - Cookies []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner `json:"cookies,omitempty"` - QueryParameters []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner `json:"query_parameters,omitempty"` - Body interface{} `json:"body,omitempty"` - LocalStorage map[string]map[string]string `json:"local_storage,omitempty"` - SessionStorage map[string]map[string]string `json:"session_storage,omitempty"` - Actions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"actions,omitempty"` - PreLoginActions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"pre_login_actions,omitempty"` - PostLoginActions []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner `json:"post_login_actions,omitempty"` - ExtraInstructions *string `json:"extra_instructions,omitempty"` - Digest *string `json:"digest,omitempty"` - Basic *string `json:"basic,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentials ProfileDetailedConfigurationAuthenticationUsersInnerCredentials - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentials instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentials 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentials() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentials{} - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentials 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsWithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentials{} - return &this -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetUsername() string { - if o == nil || IsNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetUsernameOk() (*string, bool) { - if o == nil || IsNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasUsername() bool { - if o != nil && !IsNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetUsername(v string) { - o.Username = &v -} - -// GetPassword returns the Password field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetPassword() string { - if o == nil || IsNil(o.Password) { - var ret string - return ret - } - return *o.Password -} - -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetPasswordOk() (*string, bool) { - if o == nil || IsNil(o.Password) { - return nil, false - } - return o.Password, true -} - -// HasPassword returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasPassword() bool { - if o != nil && !IsNil(o.Password) { - return true - } - - return false -} - -// SetPassword gets a reference to the given string and assigns it to the Password field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetPassword(v string) { - o.Password = &v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetHeaders() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { - if o == nil || IsNil(o.Headers) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner - 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 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetHeadersOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, bool) { - if o == nil || IsNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetHeaders(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { - o.Headers = v -} - -// GetCookies returns the Cookies field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetCookies() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner { - if o == nil || IsNil(o.Cookies) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner - 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 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetCookiesOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner, bool) { - if o == nil || IsNil(o.Cookies) { - return nil, false - } - return o.Cookies, true -} - -// HasCookies returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasCookies() bool { - if o != nil && !IsNil(o.Cookies) { - return true - } - - return false -} - -// SetCookies gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner and assigns it to the Cookies field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetCookies(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersCookiesInner) { - o.Cookies = v -} - -// GetQueryParameters returns the QueryParameters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetQueryParameters() []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner { - if o == nil || IsNil(o.QueryParameters) { - var ret []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner - return ret - } - return o.QueryParameters -} - -// GetQueryParametersOk returns a tuple with the QueryParameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetQueryParametersOk() ([]ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner, bool) { - if o == nil || IsNil(o.QueryParameters) { - return nil, false - } - return o.QueryParameters, true -} - -// HasQueryParameters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasQueryParameters() bool { - if o != nil && !IsNil(o.QueryParameters) { - return true - } - - return false -} - -// SetQueryParameters gets a reference to the given []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner and assigns it to the QueryParameters field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetQueryParameters(v []ProfileDetailedConfigurationAuthenticationProceduresInnerOperationsInnerOneOfParametersHeadersInner) { - o.QueryParameters = v -} - -// GetBody returns the Body field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetBody() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Body -} - -// GetBodyOk returns a tuple with the Body field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetBodyOk() (*interface{}, bool) { - if o == nil || IsNil(o.Body) { - return nil, false - } - return &o.Body, true -} - -// HasBody returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasBody() bool { - if o != nil && !IsNil(o.Body) { - return true - } - - return false -} - -// SetBody gets a reference to the given interface{} and assigns it to the Body field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetBody(v interface{}) { - o.Body = v -} - -// GetLocalStorage returns the LocalStorage field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetLocalStorage() map[string]map[string]string { - if o == nil || IsNil(o.LocalStorage) { - var ret map[string]map[string]string - return ret - } - return o.LocalStorage -} - -// GetLocalStorageOk returns a tuple with the LocalStorage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetLocalStorageOk() (map[string]map[string]string, bool) { - if o == nil || IsNil(o.LocalStorage) { - return map[string]map[string]string{}, false - } - return o.LocalStorage, true -} - -// HasLocalStorage returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasLocalStorage() bool { - if o != nil && !IsNil(o.LocalStorage) { - return true - } - - return false -} - -// SetLocalStorage gets a reference to the given map[string]map[string]string and assigns it to the LocalStorage field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetLocalStorage(v map[string]map[string]string) { - o.LocalStorage = v -} - -// GetSessionStorage returns the SessionStorage field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetSessionStorage() map[string]map[string]string { - if o == nil || IsNil(o.SessionStorage) { - var ret map[string]map[string]string - return ret - } - return o.SessionStorage -} - -// GetSessionStorageOk returns a tuple with the SessionStorage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetSessionStorageOk() (map[string]map[string]string, bool) { - if o == nil || IsNil(o.SessionStorage) { - return map[string]map[string]string{}, false - } - return o.SessionStorage, true -} - -// HasSessionStorage returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasSessionStorage() bool { - if o != nil && !IsNil(o.SessionStorage) { - return true - } - - return false -} - -// SetSessionStorage gets a reference to the given map[string]map[string]string and assigns it to the SessionStorage field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetSessionStorage(v map[string]map[string]string) { - o.SessionStorage = v -} - -// GetActions returns the Actions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetActions() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - if o == nil || IsNil(o.Actions) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - return ret - } - return o.Actions -} - -// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetActionsOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { - if o == nil || IsNil(o.Actions) { - return nil, false - } - return o.Actions, true -} - -// HasActions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasActions() bool { - if o != nil && !IsNil(o.Actions) { - return true - } - - return false -} - -// SetActions gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the Actions field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetActions(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - o.Actions = v -} - -// GetPreLoginActions returns the PreLoginActions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetPreLoginActions() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - if o == nil || IsNil(o.PreLoginActions) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - return ret - } - return o.PreLoginActions -} - -// GetPreLoginActionsOk returns a tuple with the PreLoginActions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetPreLoginActionsOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { - if o == nil || IsNil(o.PreLoginActions) { - return nil, false - } - return o.PreLoginActions, true -} - -// HasPreLoginActions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasPreLoginActions() bool { - if o != nil && !IsNil(o.PreLoginActions) { - return true - } - - return false -} - -// SetPreLoginActions gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PreLoginActions field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetPreLoginActions(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - o.PreLoginActions = v -} - -// GetPostLoginActions returns the PostLoginActions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetPostLoginActions() []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - if o == nil || IsNil(o.PostLoginActions) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - return ret - } - return o.PostLoginActions -} - -// GetPostLoginActionsOk returns a tuple with the PostLoginActions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetPostLoginActionsOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner, bool) { - if o == nil || IsNil(o.PostLoginActions) { - return nil, false - } - return o.PostLoginActions, true -} - -// HasPostLoginActions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasPostLoginActions() bool { - if o != nil && !IsNil(o.PostLoginActions) { - return true - } - - return false -} - -// SetPostLoginActions gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner and assigns it to the PostLoginActions field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetPostLoginActions(v []ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - o.PostLoginActions = v -} - -// GetExtraInstructions returns the ExtraInstructions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetExtraInstructions() string { - if o == nil || IsNil(o.ExtraInstructions) { - var ret string - return ret - } - return *o.ExtraInstructions -} - -// GetExtraInstructionsOk returns a tuple with the ExtraInstructions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetExtraInstructionsOk() (*string, bool) { - if o == nil || IsNil(o.ExtraInstructions) { - return nil, false - } - return o.ExtraInstructions, true -} - -// HasExtraInstructions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasExtraInstructions() bool { - if o != nil && !IsNil(o.ExtraInstructions) { - return true - } - - return false -} - -// SetExtraInstructions gets a reference to the given string and assigns it to the ExtraInstructions field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetExtraInstructions(v string) { - o.ExtraInstructions = &v -} - -// GetDigest returns the Digest field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetDigest() string { - if o == nil || IsNil(o.Digest) { - var ret string - return ret - } - return *o.Digest -} - -// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetDigestOk() (*string, bool) { - if o == nil || IsNil(o.Digest) { - return nil, false - } - return o.Digest, true -} - -// HasDigest returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasDigest() bool { - if o != nil && !IsNil(o.Digest) { - return true - } - - return false -} - -// SetDigest gets a reference to the given string and assigns it to the Digest field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetDigest(v string) { - o.Digest = &v -} - -// GetBasic returns the Basic field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetBasic() string { - if o == nil || IsNil(o.Basic) { - var ret string - return ret - } - return *o.Basic -} - -// GetBasicOk returns a tuple with the Basic field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) GetBasicOk() (*string, bool) { - if o == nil || IsNil(o.Basic) { - return nil, false - } - return o.Basic, true -} - -// HasBasic returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) HasBasic() bool { - if o != nil && !IsNil(o.Basic) { - return true - } - - return false -} - -// SetBasic gets a reference to the given string and assigns it to the Basic field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) SetBasic(v string) { - o.Basic = &v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Username) { - toSerialize["username"] = o.Username - } - if !IsNil(o.Password) { - toSerialize["password"] = o.Password - } - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.Cookies) { - toSerialize["cookies"] = o.Cookies - } - if !IsNil(o.QueryParameters) { - toSerialize["query_parameters"] = o.QueryParameters - } - if o.Body != nil { - toSerialize["body"] = o.Body - } - if !IsNil(o.LocalStorage) { - toSerialize["local_storage"] = o.LocalStorage - } - if !IsNil(o.SessionStorage) { - toSerialize["session_storage"] = o.SessionStorage - } - if !IsNil(o.Actions) { - toSerialize["actions"] = o.Actions - } - if !IsNil(o.PreLoginActions) { - toSerialize["pre_login_actions"] = o.PreLoginActions - } - if !IsNil(o.PostLoginActions) { - toSerialize["post_login_actions"] = o.PostLoginActions - } - if !IsNil(o.ExtraInstructions) { - toSerialize["extra_instructions"] = o.ExtraInstructions - } - if !IsNil(o.Digest) { - toSerialize["digest"] = o.Digest - } - if !IsNil(o.Basic) { - toSerialize["basic"] = o.Basic - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationAuthenticationUsersInnerCredentials := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentials{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentials) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentials(varProfileDetailedConfigurationAuthenticationUsersInnerCredentials) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "username") - delete(additionalProperties, "password") - delete(additionalProperties, "headers") - delete(additionalProperties, "cookies") - delete(additionalProperties, "query_parameters") - delete(additionalProperties, "body") - delete(additionalProperties, "local_storage") - delete(additionalProperties, "session_storage") - delete(additionalProperties, "actions") - delete(additionalProperties, "pre_login_actions") - delete(additionalProperties, "post_login_actions") - delete(additionalProperties, "extra_instructions") - delete(additionalProperties, "digest") - delete(additionalProperties, "basic") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentials) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner.go deleted file mode 100644 index 235ede5f..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner.go +++ /dev/null @@ -1,510 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" - "gopkg.in/validator.v2" -) - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner struct { - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOfAsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOfAsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8: v, - } -} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner is a convenience function that returns ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 wrapped in ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner -func ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9AsProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(v *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{ - ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) - if err == nil { - jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9, _ := json.Marshal(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) - if string(jsonProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) == "{}" { // empty struct - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9); err != nil { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 = nil - dst.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) MarshalJSON() ([]byte, error) { - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) - } - - if src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 != nil { - return obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 - } - - // all schemas are nil - return nil -} - -// Get the actual instance value -func (obj ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) GetActualInstanceValue() interface{} { - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 - } - - if obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 != nil { - return *obj.ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 - } - - // all schemas are nil - return nil -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of.go deleted file mode 100644 index 3c1519ac..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of.go +++ /dev/null @@ -1,306 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf struct { - Action ENUMCLICK `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - Locator string `json:"locator"` - Timeout *float32 `json:"timeout,omitempty"` - SelectFirstIfMultiple *bool `json:"select_first_if_multiple,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf(action ENUMCLICK, locator string) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{} - this.Action = action - this.Locator = locator - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOfWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOfWithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetAction() ENUMCLICK { - if o == nil { - var ret ENUMCLICK - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetActionOk() (*ENUMCLICK, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetAction(v ENUMCLICK) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetLocator returns the Locator field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetLocator() string { - if o == nil { - var ret string - return ret - } - - return o.Locator -} - -// GetLocatorOk returns a tuple with the Locator field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetLocatorOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Locator, true -} - -// SetLocator sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetLocator(v string) { - o.Locator = v -} - -// GetTimeout returns the Timeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetTimeout() float32 { - if o == nil || IsNil(o.Timeout) { - var ret float32 - return ret - } - return *o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.Timeout) { - return nil, false - } - return o.Timeout, true -} - -// HasTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) HasTimeout() bool { - if o != nil && !IsNil(o.Timeout) { - return true - } - - return false -} - -// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetTimeout(v float32) { - o.Timeout = &v -} - -// GetSelectFirstIfMultiple returns the SelectFirstIfMultiple field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetSelectFirstIfMultiple() bool { - if o == nil || IsNil(o.SelectFirstIfMultiple) { - var ret bool - return ret - } - return *o.SelectFirstIfMultiple -} - -// GetSelectFirstIfMultipleOk returns a tuple with the SelectFirstIfMultiple field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) GetSelectFirstIfMultipleOk() (*bool, bool) { - if o == nil || IsNil(o.SelectFirstIfMultiple) { - return nil, false - } - return o.SelectFirstIfMultiple, true -} - -// HasSelectFirstIfMultiple returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) HasSelectFirstIfMultiple() bool { - if o != nil && !IsNil(o.SelectFirstIfMultiple) { - return true - } - - return false -} - -// SetSelectFirstIfMultiple gets a reference to the given bool and assigns it to the SelectFirstIfMultiple field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) SetSelectFirstIfMultiple(v bool) { - o.SelectFirstIfMultiple = &v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["locator"] = o.Locator - if !IsNil(o.Timeout) { - toSerialize["timeout"] = o.Timeout - } - if !IsNil(o.SelectFirstIfMultiple) { - toSerialize["select_first_if_multiple"] = o.SelectFirstIfMultiple - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "locator", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "locator") - delete(additionalProperties, "timeout") - delete(additionalProperties, "select_first_if_multiple") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_10.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_10.go deleted file mode 100644 index 8f5f5fd3..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_10.go +++ /dev/null @@ -1,269 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 struct { - Action ENUMSOLVECAPTCHA `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - Locator string `json:"locator"` - AutoSubmit *bool `json:"auto_submit,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10(action ENUMSOLVECAPTCHA, locator string) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{} - this.Action = action - this.Locator = locator - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAction() ENUMSOLVECAPTCHA { - if o == nil { - var ret ENUMSOLVECAPTCHA - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetActionOk() (*ENUMSOLVECAPTCHA, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) SetAction(v ENUMSOLVECAPTCHA) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetLocator returns the Locator field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetLocator() string { - if o == nil { - var ret string - return ret - } - - return o.Locator -} - -// GetLocatorOk returns a tuple with the Locator field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetLocatorOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Locator, true -} - -// SetLocator sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) SetLocator(v string) { - o.Locator = v -} - -// GetAutoSubmit returns the AutoSubmit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAutoSubmit() bool { - if o == nil || IsNil(o.AutoSubmit) { - var ret bool - return ret - } - return *o.AutoSubmit -} - -// GetAutoSubmitOk returns a tuple with the AutoSubmit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) GetAutoSubmitOk() (*bool, bool) { - if o == nil || IsNil(o.AutoSubmit) { - return nil, false - } - return o.AutoSubmit, true -} - -// HasAutoSubmit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) HasAutoSubmit() bool { - if o != nil && !IsNil(o.AutoSubmit) { - return true - } - - return false -} - -// SetAutoSubmit gets a reference to the given bool and assigns it to the AutoSubmit field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) SetAutoSubmit(v bool) { - o.AutoSubmit = &v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["locator"] = o.Locator - if !IsNil(o.AutoSubmit) { - toSerialize["auto_submit"] = o.AutoSubmit - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "locator", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "locator") - delete(additionalProperties, "auto_submit") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf10) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_2.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_2.go deleted file mode 100644 index 37421cb5..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_2.go +++ /dev/null @@ -1,298 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 struct { - Action ENUMFILLTOTP `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - Locator string `json:"locator"` - Secret string `json:"secret"` - AutoSubmit *bool `json:"auto_submit,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2(action ENUMFILLTOTP, locator string, secret string) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{} - this.Action = action - this.Locator = locator - this.Secret = secret - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAction() ENUMFILLTOTP { - if o == nil { - var ret ENUMFILLTOTP - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetActionOk() (*ENUMFILLTOTP, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetAction(v ENUMFILLTOTP) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetLocator returns the Locator field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetLocator() string { - if o == nil { - var ret string - return ret - } - - return o.Locator -} - -// GetLocatorOk returns a tuple with the Locator field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetLocatorOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Locator, true -} - -// SetLocator sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetLocator(v string) { - o.Locator = v -} - -// GetSecret returns the Secret field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetSecret() string { - if o == nil { - var ret string - return ret - } - - return o.Secret -} - -// GetSecretOk returns a tuple with the Secret field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetSecretOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Secret, true -} - -// SetSecret sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetSecret(v string) { - o.Secret = v -} - -// GetAutoSubmit returns the AutoSubmit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAutoSubmit() bool { - if o == nil || IsNil(o.AutoSubmit) { - var ret bool - return ret - } - return *o.AutoSubmit -} - -// GetAutoSubmitOk returns a tuple with the AutoSubmit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) GetAutoSubmitOk() (*bool, bool) { - if o == nil || IsNil(o.AutoSubmit) { - return nil, false - } - return o.AutoSubmit, true -} - -// HasAutoSubmit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) HasAutoSubmit() bool { - if o != nil && !IsNil(o.AutoSubmit) { - return true - } - - return false -} - -// SetAutoSubmit gets a reference to the given bool and assigns it to the AutoSubmit field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) SetAutoSubmit(v bool) { - o.AutoSubmit = &v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["locator"] = o.Locator - toSerialize["secret"] = o.Secret - if !IsNil(o.AutoSubmit) { - toSerialize["auto_submit"] = o.AutoSubmit - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "locator", - "secret", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "locator") - delete(additionalProperties, "secret") - delete(additionalProperties, "auto_submit") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf2) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_3.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_3.go deleted file mode 100644 index 94246d6a..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_3.go +++ /dev/null @@ -1,306 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 struct { - Action ENUMGOTO `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - NewPage *bool `json:"new_page,omitempty"` - Url string `json:"url"` - Timeout *float32 `json:"timeout,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3(action ENUMGOTO, url string) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{} - this.Action = action - this.Url = url - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetAction() ENUMGOTO { - if o == nil { - var ret ENUMGOTO - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetActionOk() (*ENUMGOTO, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetAction(v ENUMGOTO) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetNewPage returns the NewPage field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetNewPage() bool { - if o == nil || IsNil(o.NewPage) { - var ret bool - return ret - } - return *o.NewPage -} - -// GetNewPageOk returns a tuple with the NewPage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetNewPageOk() (*bool, bool) { - if o == nil || IsNil(o.NewPage) { - return nil, false - } - return o.NewPage, true -} - -// HasNewPage returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) HasNewPage() bool { - if o != nil && !IsNil(o.NewPage) { - return true - } - - return false -} - -// SetNewPage gets a reference to the given bool and assigns it to the NewPage field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetNewPage(v bool) { - o.NewPage = &v -} - -// GetUrl returns the Url field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetUrl(v string) { - o.Url = v -} - -// GetTimeout returns the Timeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetTimeout() float32 { - if o == nil || IsNil(o.Timeout) { - var ret float32 - return ret - } - return *o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) GetTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.Timeout) { - return nil, false - } - return o.Timeout, true -} - -// HasTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) HasTimeout() bool { - if o != nil && !IsNil(o.Timeout) { - return true - } - - return false -} - -// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) SetTimeout(v float32) { - o.Timeout = &v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - if !IsNil(o.NewPage) { - toSerialize["new_page"] = o.NewPage - } - toSerialize["url"] = o.Url - if !IsNil(o.Timeout) { - toSerialize["timeout"] = o.Timeout - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "new_page") - delete(additionalProperties, "url") - delete(additionalProperties, "timeout") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf3) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_4.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_4.go deleted file mode 100644 index 21190c06..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_4.go +++ /dev/null @@ -1,306 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 struct { - Action ENUMCHECK `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - Locator string `json:"locator"` - Timeout *float32 `json:"timeout,omitempty"` - SelectFirstIfMultiple *bool `json:"select_first_if_multiple,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4(action ENUMCHECK, locator string) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{} - this.Action = action - this.Locator = locator - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetAction() ENUMCHECK { - if o == nil { - var ret ENUMCHECK - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetActionOk() (*ENUMCHECK, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetAction(v ENUMCHECK) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetLocator returns the Locator field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetLocator() string { - if o == nil { - var ret string - return ret - } - - return o.Locator -} - -// GetLocatorOk returns a tuple with the Locator field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetLocatorOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Locator, true -} - -// SetLocator sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetLocator(v string) { - o.Locator = v -} - -// GetTimeout returns the Timeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetTimeout() float32 { - if o == nil || IsNil(o.Timeout) { - var ret float32 - return ret - } - return *o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.Timeout) { - return nil, false - } - return o.Timeout, true -} - -// HasTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) HasTimeout() bool { - if o != nil && !IsNil(o.Timeout) { - return true - } - - return false -} - -// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetTimeout(v float32) { - o.Timeout = &v -} - -// GetSelectFirstIfMultiple returns the SelectFirstIfMultiple field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetSelectFirstIfMultiple() bool { - if o == nil || IsNil(o.SelectFirstIfMultiple) { - var ret bool - return ret - } - return *o.SelectFirstIfMultiple -} - -// GetSelectFirstIfMultipleOk returns a tuple with the SelectFirstIfMultiple field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) GetSelectFirstIfMultipleOk() (*bool, bool) { - if o == nil || IsNil(o.SelectFirstIfMultiple) { - return nil, false - } - return o.SelectFirstIfMultiple, true -} - -// HasSelectFirstIfMultiple returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) HasSelectFirstIfMultiple() bool { - if o != nil && !IsNil(o.SelectFirstIfMultiple) { - return true - } - - return false -} - -// SetSelectFirstIfMultiple gets a reference to the given bool and assigns it to the SelectFirstIfMultiple field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) SetSelectFirstIfMultiple(v bool) { - o.SelectFirstIfMultiple = &v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["locator"] = o.Locator - if !IsNil(o.Timeout) { - toSerialize["timeout"] = o.Timeout - } - if !IsNil(o.SelectFirstIfMultiple) { - toSerialize["select_first_if_multiple"] = o.SelectFirstIfMultiple - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "locator", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "locator") - delete(additionalProperties, "timeout") - delete(additionalProperties, "select_first_if_multiple") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf4) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_5.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_5.go deleted file mode 100644 index 4aba544c..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_5.go +++ /dev/null @@ -1,335 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 struct { - Action ENUMSELECT `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - Locator string `json:"locator"` - Value string `json:"value"` - Timeout *float32 `json:"timeout,omitempty"` - SelectFirstIfMultiple *bool `json:"select_first_if_multiple,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5(action ENUMSELECT, locator string, value string) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{} - this.Action = action - this.Locator = locator - this.Value = value - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetAction() ENUMSELECT { - if o == nil { - var ret ENUMSELECT - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetActionOk() (*ENUMSELECT, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetAction(v ENUMSELECT) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetLocator returns the Locator field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetLocator() string { - if o == nil { - var ret string - return ret - } - - return o.Locator -} - -// GetLocatorOk returns a tuple with the Locator field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetLocatorOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Locator, true -} - -// SetLocator sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetLocator(v string) { - o.Locator = v -} - -// GetValue returns the Value field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetValue(v string) { - o.Value = v -} - -// GetTimeout returns the Timeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetTimeout() float32 { - if o == nil || IsNil(o.Timeout) { - var ret float32 - return ret - } - return *o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetTimeoutOk() (*float32, bool) { - if o == nil || IsNil(o.Timeout) { - return nil, false - } - return o.Timeout, true -} - -// HasTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) HasTimeout() bool { - if o != nil && !IsNil(o.Timeout) { - return true - } - - return false -} - -// SetTimeout gets a reference to the given float32 and assigns it to the Timeout field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetTimeout(v float32) { - o.Timeout = &v -} - -// GetSelectFirstIfMultiple returns the SelectFirstIfMultiple field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetSelectFirstIfMultiple() bool { - if o == nil || IsNil(o.SelectFirstIfMultiple) { - var ret bool - return ret - } - return *o.SelectFirstIfMultiple -} - -// GetSelectFirstIfMultipleOk returns a tuple with the SelectFirstIfMultiple field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) GetSelectFirstIfMultipleOk() (*bool, bool) { - if o == nil || IsNil(o.SelectFirstIfMultiple) { - return nil, false - } - return o.SelectFirstIfMultiple, true -} - -// HasSelectFirstIfMultiple returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) HasSelectFirstIfMultiple() bool { - if o != nil && !IsNil(o.SelectFirstIfMultiple) { - return true - } - - return false -} - -// SetSelectFirstIfMultiple gets a reference to the given bool and assigns it to the SelectFirstIfMultiple field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) SetSelectFirstIfMultiple(v bool) { - o.SelectFirstIfMultiple = &v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["locator"] = o.Locator - toSerialize["value"] = o.Value - if !IsNil(o.Timeout) { - toSerialize["timeout"] = o.Timeout - } - if !IsNil(o.SelectFirstIfMultiple) { - toSerialize["select_first_if_multiple"] = o.SelectFirstIfMultiple - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "locator", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "locator") - delete(additionalProperties, "value") - delete(additionalProperties, "timeout") - delete(additionalProperties, "select_first_if_multiple") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf5) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_6.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_6.go deleted file mode 100644 index d04895d1..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_6.go +++ /dev/null @@ -1,261 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 struct { - Action ENUMWAITELEMENT `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - Locator string `json:"locator"` - Timeout float32 `json:"timeout"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6(action ENUMWAITELEMENT, locator string, timeout float32) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{} - this.Action = action - this.Locator = locator - this.Timeout = timeout - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetAction() ENUMWAITELEMENT { - if o == nil { - var ret ENUMWAITELEMENT - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetActionOk() (*ENUMWAITELEMENT, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) SetAction(v ENUMWAITELEMENT) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetLocator returns the Locator field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetLocator() string { - if o == nil { - var ret string - return ret - } - - return o.Locator -} - -// GetLocatorOk returns a tuple with the Locator field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetLocatorOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Locator, true -} - -// SetLocator sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) SetLocator(v string) { - o.Locator = v -} - -// GetTimeout returns the Timeout field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetTimeout() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) GetTimeoutOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.Timeout, true -} - -// SetTimeout sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) SetTimeout(v float32) { - o.Timeout = v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["locator"] = o.Locator - toSerialize["timeout"] = o.Timeout - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "locator", - "timeout", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "locator") - delete(additionalProperties, "timeout") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf6) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_7.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_7.go deleted file mode 100644 index 34b17c83..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_7.go +++ /dev/null @@ -1,261 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 struct { - Action ENUMWAITTEXT `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - Value string `json:"value"` - Timeout float32 `json:"timeout"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7(action ENUMWAITTEXT, value string, timeout float32) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{} - this.Action = action - this.Value = value - this.Timeout = timeout - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetAction() ENUMWAITTEXT { - if o == nil { - var ret ENUMWAITTEXT - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetActionOk() (*ENUMWAITTEXT, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) SetAction(v ENUMWAITTEXT) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetValue returns the Value field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) SetValue(v string) { - o.Value = v -} - -// GetTimeout returns the Timeout field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetTimeout() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) GetTimeoutOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.Timeout, true -} - -// SetTimeout sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) SetTimeout(v float32) { - o.Timeout = v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["value"] = o.Value - toSerialize["timeout"] = o.Timeout - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "value", - "timeout", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "value") - delete(additionalProperties, "timeout") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf7) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_8.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_8.go deleted file mode 100644 index 9540c42c..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_8.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 struct { - Action ENUMFOCUSPAGE `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - UrlPattern string `json:"url_pattern"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8(action ENUMFOCUSPAGE, urlPattern string) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{} - this.Action = action - this.UrlPattern = urlPattern - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetAction() ENUMFOCUSPAGE { - if o == nil { - var ret ENUMFOCUSPAGE - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetActionOk() (*ENUMFOCUSPAGE, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) SetAction(v ENUMFOCUSPAGE) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetUrlPattern returns the UrlPattern field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetUrlPattern() string { - if o == nil { - var ret string - return ret - } - - return o.UrlPattern -} - -// GetUrlPatternOk returns a tuple with the UrlPattern field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) GetUrlPatternOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UrlPattern, true -} - -// SetUrlPattern sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) SetUrlPattern(v string) { - o.UrlPattern = v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["url_pattern"] = o.UrlPattern - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "url_pattern", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "url_pattern") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf8) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_9.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_9.go deleted file mode 100644 index 4322d1c1..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_credentials_actions_inner_one_of_9.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 struct for ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 -type ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 struct { - Action ENUMSLEEP `json:"action"` - AllowFailure *bool `json:"allow_failure,omitempty"` - Seconds float32 `json:"seconds"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9(action ENUMSLEEP, seconds float32) *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{} - this.Action = action - this.Seconds = seconds - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9WithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 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 NewProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9WithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 { - this := ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{} - return &this -} - -// GetAction returns the Action field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetAction() ENUMSLEEP { - if o == nil { - var ret ENUMSLEEP - return ret - } - - return o.Action -} - -// GetActionOk returns a tuple with the Action field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetActionOk() (*ENUMSLEEP, bool) { - if o == nil { - return nil, false - } - return &o.Action, true -} - -// SetAction sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) SetAction(v ENUMSLEEP) { - o.Action = v -} - -// GetAllowFailure returns the AllowFailure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetAllowFailure() bool { - if o == nil || IsNil(o.AllowFailure) { - var ret bool - return ret - } - return *o.AllowFailure -} - -// GetAllowFailureOk returns a tuple with the AllowFailure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetAllowFailureOk() (*bool, bool) { - if o == nil || IsNil(o.AllowFailure) { - return nil, false - } - return o.AllowFailure, true -} - -// HasAllowFailure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) HasAllowFailure() bool { - if o != nil && !IsNil(o.AllowFailure) { - return true - } - - return false -} - -// SetAllowFailure gets a reference to the given bool and assigns it to the AllowFailure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) SetAllowFailure(v bool) { - o.AllowFailure = &v -} - -// GetSeconds returns the Seconds field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetSeconds() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.Seconds -} - -// GetSecondsOk returns a tuple with the Seconds field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) GetSecondsOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.Seconds, true -} - -// SetSeconds sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) SetSeconds(v float32) { - o.Seconds = v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["action"] = o.Action - if !IsNil(o.AllowFailure) { - toSerialize["allow_failure"] = o.AllowFailure - } - toSerialize["seconds"] = o.Seconds - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "action", - "seconds", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 := _ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9(varProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "action") - delete(additionalProperties, "allow_failure") - delete(additionalProperties, "seconds") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9(val *ProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9 { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerCredentialsActionsInnerOneOf9) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_refresh.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_refresh.go deleted file mode 100644 index 743849d4..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_refresh.go +++ /dev/null @@ -1,314 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerRefresh type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerRefresh{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerRefresh struct for ProfileDetailedConfigurationAuthenticationUsersInnerRefresh -type ProfileDetailedConfigurationAuthenticationUsersInnerRefresh struct { - Procedure *string `json:"procedure,omitempty"` - SessionSeconds *float32 `json:"sessionSeconds,omitempty"` - Keep bool `json:"keep"` - Credentials *ProfileDetailedConfigurationAuthenticationUsersInnerCredentials `json:"credentials,omitempty"` - Variables []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner `json:"variables,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerRefresh ProfileDetailedConfigurationAuthenticationUsersInnerRefresh - -// NewProfileDetailedConfigurationAuthenticationUsersInnerRefresh instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerRefresh 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 NewProfileDetailedConfigurationAuthenticationUsersInnerRefresh(keep bool) *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh { - this := ProfileDetailedConfigurationAuthenticationUsersInnerRefresh{} - this.Keep = keep - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerRefreshWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerRefresh 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 NewProfileDetailedConfigurationAuthenticationUsersInnerRefreshWithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh { - this := ProfileDetailedConfigurationAuthenticationUsersInnerRefresh{} - return &this -} - -// GetProcedure returns the Procedure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetProcedure() string { - if o == nil || IsNil(o.Procedure) { - var ret string - return ret - } - return *o.Procedure -} - -// GetProcedureOk returns a tuple with the Procedure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetProcedureOk() (*string, bool) { - if o == nil || IsNil(o.Procedure) { - return nil, false - } - return o.Procedure, true -} - -// HasProcedure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) HasProcedure() bool { - if o != nil && !IsNil(o.Procedure) { - return true - } - - return false -} - -// SetProcedure gets a reference to the given string and assigns it to the Procedure field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) SetProcedure(v string) { - o.Procedure = &v -} - -// GetSessionSeconds returns the SessionSeconds field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetSessionSeconds() float32 { - if o == nil || IsNil(o.SessionSeconds) { - var ret float32 - return ret - } - return *o.SessionSeconds -} - -// GetSessionSecondsOk returns a tuple with the SessionSeconds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetSessionSecondsOk() (*float32, bool) { - if o == nil || IsNil(o.SessionSeconds) { - return nil, false - } - return o.SessionSeconds, true -} - -// HasSessionSeconds returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) HasSessionSeconds() bool { - if o != nil && !IsNil(o.SessionSeconds) { - return true - } - - return false -} - -// SetSessionSeconds gets a reference to the given float32 and assigns it to the SessionSeconds field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) SetSessionSeconds(v float32) { - o.SessionSeconds = &v -} - -// GetKeep returns the Keep field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetKeep() bool { - if o == nil { - var ret bool - return ret - } - - return o.Keep -} - -// GetKeepOk returns a tuple with the Keep field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetKeepOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Keep, true -} - -// SetKeep sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) SetKeep(v bool) { - o.Keep = v -} - -// GetCredentials returns the Credentials field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetCredentials() ProfileDetailedConfigurationAuthenticationUsersInnerCredentials { - if o == nil || IsNil(o.Credentials) { - var ret ProfileDetailedConfigurationAuthenticationUsersInnerCredentials - return ret - } - return *o.Credentials -} - -// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetCredentialsOk() (*ProfileDetailedConfigurationAuthenticationUsersInnerCredentials, bool) { - if o == nil || IsNil(o.Credentials) { - return nil, false - } - return o.Credentials, true -} - -// HasCredentials returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) HasCredentials() bool { - if o != nil && !IsNil(o.Credentials) { - return true - } - - return false -} - -// SetCredentials gets a reference to the given ProfileDetailedConfigurationAuthenticationUsersInnerCredentials and assigns it to the Credentials field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) SetCredentials(v ProfileDetailedConfigurationAuthenticationUsersInnerCredentials) { - o.Credentials = &v -} - -// GetVariables returns the Variables field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetVariables() []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner { - if o == nil || IsNil(o.Variables) { - var ret []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner - return ret - } - return o.Variables -} - -// GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) GetVariablesOk() ([]ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner, bool) { - if o == nil || IsNil(o.Variables) { - return nil, false - } - return o.Variables, true -} - -// HasVariables returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) HasVariables() bool { - if o != nil && !IsNil(o.Variables) { - return true - } - - return false -} - -// SetVariables gets a reference to the given []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner and assigns it to the Variables field. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) SetVariables(v []ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) { - o.Variables = v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Procedure) { - toSerialize["procedure"] = o.Procedure - } - if !IsNil(o.SessionSeconds) { - toSerialize["sessionSeconds"] = o.SessionSeconds - } - toSerialize["keep"] = o.Keep - if !IsNil(o.Credentials) { - toSerialize["credentials"] = o.Credentials - } - if !IsNil(o.Variables) { - toSerialize["variables"] = o.Variables - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "keep", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerRefresh := _ProfileDetailedConfigurationAuthenticationUsersInnerRefresh{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerRefresh) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerRefresh(varProfileDetailedConfigurationAuthenticationUsersInnerRefresh) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "procedure") - delete(additionalProperties, "sessionSeconds") - delete(additionalProperties, "keep") - delete(additionalProperties, "credentials") - delete(additionalProperties, "variables") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh(val *ProfileDetailedConfigurationAuthenticationUsersInnerRefresh) *NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerRefresh) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_variables_inner.go b/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_variables_inner.go deleted file mode 100644 index 9196cd3a..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_authentication_users_inner_variables_inner.go +++ /dev/null @@ -1,195 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner{} - -// ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner struct for ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner -type ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner struct { - Name string `json:"name"` - Value string `json:"value"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner - -// NewProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner 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 NewProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner(name string, value string) *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner { - this := ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner{} - this.Name = name - this.Value = value - return &this -} - -// NewProfileDetailedConfigurationAuthenticationUsersInnerVariablesInnerWithDefaults instantiates a new ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner 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 NewProfileDetailedConfigurationAuthenticationUsersInnerVariablesInnerWithDefaults() *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner { - this := ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner{} - return &this -} - -// GetName returns the Name field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) 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 *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) SetName(v string) { - o.Name = v -} - -// GetValue returns the Value field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) SetValue(v string) { - o.Value = v -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - toSerialize["value"] = o.Value - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - "value", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner := _ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner(varProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "value") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner struct { - value *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) Get() *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) Set(val *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner(val *ProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) *NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner { - return &NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationAuthenticationUsersInnerVariablesInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_experimental.go b/pkg/api/v3/model_profile_detailed_configuration_experimental.go deleted file mode 100644 index 18409555..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_experimental.go +++ /dev/null @@ -1,301 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationExperimental type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationExperimental{} - -// ProfileDetailedConfigurationExperimental struct for ProfileDetailedConfigurationExperimental -type ProfileDetailedConfigurationExperimental struct { - AgenticPentesting *bool `json:"agentic_pentesting,omitempty"` - BlstExplorationOnly *bool `json:"blst_exploration_only,omitempty"` - AgenticIdor *bool `json:"agentic_idor,omitempty"` - AgenticXss *ProfileDetailedConfigurationExperimentalAgenticXss `json:"agentic_xss,omitempty"` - BlstExplorationNext *bool `json:"blst_exploration_next,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationExperimental ProfileDetailedConfigurationExperimental - -// NewProfileDetailedConfigurationExperimental instantiates a new ProfileDetailedConfigurationExperimental 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 NewProfileDetailedConfigurationExperimental() *ProfileDetailedConfigurationExperimental { - this := ProfileDetailedConfigurationExperimental{} - return &this -} - -// NewProfileDetailedConfigurationExperimentalWithDefaults instantiates a new ProfileDetailedConfigurationExperimental 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 NewProfileDetailedConfigurationExperimentalWithDefaults() *ProfileDetailedConfigurationExperimental { - this := ProfileDetailedConfigurationExperimental{} - return &this -} - -// GetAgenticPentesting returns the AgenticPentesting field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationExperimental) GetAgenticPentesting() bool { - if o == nil || IsNil(o.AgenticPentesting) { - var ret bool - return ret - } - return *o.AgenticPentesting -} - -// GetAgenticPentestingOk returns a tuple with the AgenticPentesting field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationExperimental) GetAgenticPentestingOk() (*bool, bool) { - if o == nil || IsNil(o.AgenticPentesting) { - return nil, false - } - return o.AgenticPentesting, true -} - -// HasAgenticPentesting returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationExperimental) HasAgenticPentesting() bool { - if o != nil && !IsNil(o.AgenticPentesting) { - return true - } - - return false -} - -// SetAgenticPentesting gets a reference to the given bool and assigns it to the AgenticPentesting field. -func (o *ProfileDetailedConfigurationExperimental) SetAgenticPentesting(v bool) { - o.AgenticPentesting = &v -} - -// GetBlstExplorationOnly returns the BlstExplorationOnly field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationExperimental) GetBlstExplorationOnly() bool { - if o == nil || IsNil(o.BlstExplorationOnly) { - var ret bool - return ret - } - return *o.BlstExplorationOnly -} - -// GetBlstExplorationOnlyOk returns a tuple with the BlstExplorationOnly field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationExperimental) GetBlstExplorationOnlyOk() (*bool, bool) { - if o == nil || IsNil(o.BlstExplorationOnly) { - return nil, false - } - return o.BlstExplorationOnly, true -} - -// HasBlstExplorationOnly returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationExperimental) HasBlstExplorationOnly() bool { - if o != nil && !IsNil(o.BlstExplorationOnly) { - return true - } - - return false -} - -// SetBlstExplorationOnly gets a reference to the given bool and assigns it to the BlstExplorationOnly field. -func (o *ProfileDetailedConfigurationExperimental) SetBlstExplorationOnly(v bool) { - o.BlstExplorationOnly = &v -} - -// GetAgenticIdor returns the AgenticIdor field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationExperimental) GetAgenticIdor() bool { - if o == nil || IsNil(o.AgenticIdor) { - var ret bool - return ret - } - return *o.AgenticIdor -} - -// GetAgenticIdorOk returns a tuple with the AgenticIdor field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationExperimental) GetAgenticIdorOk() (*bool, bool) { - if o == nil || IsNil(o.AgenticIdor) { - return nil, false - } - return o.AgenticIdor, true -} - -// HasAgenticIdor returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationExperimental) HasAgenticIdor() bool { - if o != nil && !IsNil(o.AgenticIdor) { - return true - } - - return false -} - -// SetAgenticIdor gets a reference to the given bool and assigns it to the AgenticIdor field. -func (o *ProfileDetailedConfigurationExperimental) SetAgenticIdor(v bool) { - o.AgenticIdor = &v -} - -// GetAgenticXss returns the AgenticXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationExperimental) GetAgenticXss() ProfileDetailedConfigurationExperimentalAgenticXss { - if o == nil || IsNil(o.AgenticXss) { - var ret ProfileDetailedConfigurationExperimentalAgenticXss - return ret - } - return *o.AgenticXss -} - -// GetAgenticXssOk returns a tuple with the AgenticXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationExperimental) GetAgenticXssOk() (*ProfileDetailedConfigurationExperimentalAgenticXss, bool) { - if o == nil || IsNil(o.AgenticXss) { - return nil, false - } - return o.AgenticXss, true -} - -// HasAgenticXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationExperimental) HasAgenticXss() bool { - if o != nil && !IsNil(o.AgenticXss) { - return true - } - - return false -} - -// SetAgenticXss gets a reference to the given ProfileDetailedConfigurationExperimentalAgenticXss and assigns it to the AgenticXss field. -func (o *ProfileDetailedConfigurationExperimental) SetAgenticXss(v ProfileDetailedConfigurationExperimentalAgenticXss) { - o.AgenticXss = &v -} - -// GetBlstExplorationNext returns the BlstExplorationNext field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationExperimental) GetBlstExplorationNext() bool { - if o == nil || IsNil(o.BlstExplorationNext) { - var ret bool - return ret - } - return *o.BlstExplorationNext -} - -// GetBlstExplorationNextOk returns a tuple with the BlstExplorationNext field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationExperimental) GetBlstExplorationNextOk() (*bool, bool) { - if o == nil || IsNil(o.BlstExplorationNext) { - return nil, false - } - return o.BlstExplorationNext, true -} - -// HasBlstExplorationNext returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationExperimental) HasBlstExplorationNext() bool { - if o != nil && !IsNil(o.BlstExplorationNext) { - return true - } - - return false -} - -// SetBlstExplorationNext gets a reference to the given bool and assigns it to the BlstExplorationNext field. -func (o *ProfileDetailedConfigurationExperimental) SetBlstExplorationNext(v bool) { - o.BlstExplorationNext = &v -} - -func (o ProfileDetailedConfigurationExperimental) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationExperimental) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AgenticPentesting) { - toSerialize["agentic_pentesting"] = o.AgenticPentesting - } - if !IsNil(o.BlstExplorationOnly) { - toSerialize["blst_exploration_only"] = o.BlstExplorationOnly - } - if !IsNil(o.AgenticIdor) { - toSerialize["agentic_idor"] = o.AgenticIdor - } - if !IsNil(o.AgenticXss) { - toSerialize["agentic_xss"] = o.AgenticXss - } - if !IsNil(o.BlstExplorationNext) { - toSerialize["blst_exploration_next"] = o.BlstExplorationNext - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationExperimental) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationExperimental := _ProfileDetailedConfigurationExperimental{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationExperimental) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationExperimental(varProfileDetailedConfigurationExperimental) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "agentic_pentesting") - delete(additionalProperties, "blst_exploration_only") - delete(additionalProperties, "agentic_idor") - delete(additionalProperties, "agentic_xss") - delete(additionalProperties, "blst_exploration_next") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationExperimental struct { - value *ProfileDetailedConfigurationExperimental - isSet bool -} - -func (v NullableProfileDetailedConfigurationExperimental) Get() *ProfileDetailedConfigurationExperimental { - return v.value -} - -func (v *NullableProfileDetailedConfigurationExperimental) Set(val *ProfileDetailedConfigurationExperimental) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationExperimental) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationExperimental) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationExperimental(val *ProfileDetailedConfigurationExperimental) *NullableProfileDetailedConfigurationExperimental { - return &NullableProfileDetailedConfigurationExperimental{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationExperimental) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationExperimental) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_experimental_agentic_xss.go b/pkg/api/v3/model_profile_detailed_configuration_experimental_agentic_xss.go deleted file mode 100644 index ca7d4b05..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_experimental_agentic_xss.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationExperimentalAgenticXss type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationExperimentalAgenticXss{} - -// ProfileDetailedConfigurationExperimentalAgenticXss struct for ProfileDetailedConfigurationExperimentalAgenticXss -type ProfileDetailedConfigurationExperimentalAgenticXss struct { - Enabled *bool `json:"enabled,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationExperimentalAgenticXss ProfileDetailedConfigurationExperimentalAgenticXss - -// NewProfileDetailedConfigurationExperimentalAgenticXss instantiates a new ProfileDetailedConfigurationExperimentalAgenticXss 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 NewProfileDetailedConfigurationExperimentalAgenticXss() *ProfileDetailedConfigurationExperimentalAgenticXss { - this := ProfileDetailedConfigurationExperimentalAgenticXss{} - return &this -} - -// NewProfileDetailedConfigurationExperimentalAgenticXssWithDefaults instantiates a new ProfileDetailedConfigurationExperimentalAgenticXss 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 NewProfileDetailedConfigurationExperimentalAgenticXssWithDefaults() *ProfileDetailedConfigurationExperimentalAgenticXss { - this := ProfileDetailedConfigurationExperimentalAgenticXss{} - return &this -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationExperimentalAgenticXss) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool - return ret - } - return *o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationExperimentalAgenticXss) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { - return nil, false - } - return o.Enabled, true -} - -// HasEnabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationExperimentalAgenticXss) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { - return true - } - - return false -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *ProfileDetailedConfigurationExperimentalAgenticXss) SetEnabled(v bool) { - o.Enabled = &v -} - -func (o ProfileDetailedConfigurationExperimentalAgenticXss) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationExperimentalAgenticXss) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Enabled) { - toSerialize["enabled"] = o.Enabled - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationExperimentalAgenticXss) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationExperimentalAgenticXss := _ProfileDetailedConfigurationExperimentalAgenticXss{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationExperimentalAgenticXss) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationExperimentalAgenticXss(varProfileDetailedConfigurationExperimentalAgenticXss) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "enabled") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationExperimentalAgenticXss struct { - value *ProfileDetailedConfigurationExperimentalAgenticXss - isSet bool -} - -func (v NullableProfileDetailedConfigurationExperimentalAgenticXss) Get() *ProfileDetailedConfigurationExperimentalAgenticXss { - return v.value -} - -func (v *NullableProfileDetailedConfigurationExperimentalAgenticXss) Set(val *ProfileDetailedConfigurationExperimentalAgenticXss) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationExperimentalAgenticXss) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationExperimentalAgenticXss) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationExperimentalAgenticXss(val *ProfileDetailedConfigurationExperimentalAgenticXss) *NullableProfileDetailedConfigurationExperimentalAgenticXss { - return &NullableProfileDetailedConfigurationExperimentalAgenticXss{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationExperimentalAgenticXss) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationExperimentalAgenticXss) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_agentic_crawling.go b/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_agentic_crawling.go deleted file mode 100644 index 31de3022..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_agentic_crawling.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationFrontendDastAgenticCrawling type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationFrontendDastAgenticCrawling{} - -// ProfileDetailedConfigurationFrontendDastAgenticCrawling struct for ProfileDetailedConfigurationFrontendDastAgenticCrawling -type ProfileDetailedConfigurationFrontendDastAgenticCrawling struct { - Enabled *bool `json:"enabled,omitempty"` - Instructions *string `json:"instructions,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationFrontendDastAgenticCrawling ProfileDetailedConfigurationFrontendDastAgenticCrawling - -// NewProfileDetailedConfigurationFrontendDastAgenticCrawling instantiates a new ProfileDetailedConfigurationFrontendDastAgenticCrawling 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 NewProfileDetailedConfigurationFrontendDastAgenticCrawling() *ProfileDetailedConfigurationFrontendDastAgenticCrawling { - this := ProfileDetailedConfigurationFrontendDastAgenticCrawling{} - return &this -} - -// NewProfileDetailedConfigurationFrontendDastAgenticCrawlingWithDefaults instantiates a new ProfileDetailedConfigurationFrontendDastAgenticCrawling 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 NewProfileDetailedConfigurationFrontendDastAgenticCrawlingWithDefaults() *ProfileDetailedConfigurationFrontendDastAgenticCrawling { - this := ProfileDetailedConfigurationFrontendDastAgenticCrawling{} - return &this -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool - return ret - } - return *o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { - return nil, false - } - return o.Enabled, true -} - -// HasEnabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { - return true - } - - return false -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) SetEnabled(v bool) { - o.Enabled = &v -} - -// GetInstructions returns the Instructions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) GetInstructions() string { - if o == nil || IsNil(o.Instructions) { - var ret string - return ret - } - return *o.Instructions -} - -// GetInstructionsOk returns a tuple with the Instructions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) GetInstructionsOk() (*string, bool) { - if o == nil || IsNil(o.Instructions) { - return nil, false - } - return o.Instructions, true -} - -// HasInstructions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) HasInstructions() bool { - if o != nil && !IsNil(o.Instructions) { - return true - } - - return false -} - -// SetInstructions gets a reference to the given string and assigns it to the Instructions field. -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) SetInstructions(v string) { - o.Instructions = &v -} - -func (o ProfileDetailedConfigurationFrontendDastAgenticCrawling) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationFrontendDastAgenticCrawling) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Enabled) { - toSerialize["enabled"] = o.Enabled - } - if !IsNil(o.Instructions) { - toSerialize["instructions"] = o.Instructions - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationFrontendDastAgenticCrawling) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationFrontendDastAgenticCrawling := _ProfileDetailedConfigurationFrontendDastAgenticCrawling{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationFrontendDastAgenticCrawling) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationFrontendDastAgenticCrawling(varProfileDetailedConfigurationFrontendDastAgenticCrawling) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "enabled") - delete(additionalProperties, "instructions") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationFrontendDastAgenticCrawling struct { - value *ProfileDetailedConfigurationFrontendDastAgenticCrawling - isSet bool -} - -func (v NullableProfileDetailedConfigurationFrontendDastAgenticCrawling) Get() *ProfileDetailedConfigurationFrontendDastAgenticCrawling { - return v.value -} - -func (v *NullableProfileDetailedConfigurationFrontendDastAgenticCrawling) Set(val *ProfileDetailedConfigurationFrontendDastAgenticCrawling) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationFrontendDastAgenticCrawling) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationFrontendDastAgenticCrawling) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationFrontendDastAgenticCrawling(val *ProfileDetailedConfigurationFrontendDastAgenticCrawling) *NullableProfileDetailedConfigurationFrontendDastAgenticCrawling { - return &NullableProfileDetailedConfigurationFrontendDastAgenticCrawling{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationFrontendDastAgenticCrawling) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationFrontendDastAgenticCrawling) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope.go b/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope.go deleted file mode 100644 index 542dfd35..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationFrontendDastScope type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationFrontendDastScope{} - -// ProfileDetailedConfigurationFrontendDastScope struct for ProfileDetailedConfigurationFrontendDastScope -type ProfileDetailedConfigurationFrontendDastScope struct { - ApiTesting *ProfileDetailedConfigurationFrontendDastScopeApiTesting `json:"api_testing,omitempty"` - Crawling *ProfileDetailedConfigurationFrontendDastScopeCrawling `json:"crawling,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationFrontendDastScope ProfileDetailedConfigurationFrontendDastScope - -// NewProfileDetailedConfigurationFrontendDastScope instantiates a new ProfileDetailedConfigurationFrontendDastScope 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 NewProfileDetailedConfigurationFrontendDastScope() *ProfileDetailedConfigurationFrontendDastScope { - this := ProfileDetailedConfigurationFrontendDastScope{} - return &this -} - -// NewProfileDetailedConfigurationFrontendDastScopeWithDefaults instantiates a new ProfileDetailedConfigurationFrontendDastScope 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 NewProfileDetailedConfigurationFrontendDastScopeWithDefaults() *ProfileDetailedConfigurationFrontendDastScope { - this := ProfileDetailedConfigurationFrontendDastScope{} - return &this -} - -// GetApiTesting returns the ApiTesting field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastScope) GetApiTesting() ProfileDetailedConfigurationFrontendDastScopeApiTesting { - if o == nil || IsNil(o.ApiTesting) { - var ret ProfileDetailedConfigurationFrontendDastScopeApiTesting - return ret - } - return *o.ApiTesting -} - -// GetApiTestingOk returns a tuple with the ApiTesting field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastScope) GetApiTestingOk() (*ProfileDetailedConfigurationFrontendDastScopeApiTesting, bool) { - if o == nil || IsNil(o.ApiTesting) { - return nil, false - } - return o.ApiTesting, true -} - -// HasApiTesting returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastScope) HasApiTesting() bool { - if o != nil && !IsNil(o.ApiTesting) { - return true - } - - return false -} - -// SetApiTesting gets a reference to the given ProfileDetailedConfigurationFrontendDastScopeApiTesting and assigns it to the ApiTesting field. -func (o *ProfileDetailedConfigurationFrontendDastScope) SetApiTesting(v ProfileDetailedConfigurationFrontendDastScopeApiTesting) { - o.ApiTesting = &v -} - -// GetCrawling returns the Crawling field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastScope) GetCrawling() ProfileDetailedConfigurationFrontendDastScopeCrawling { - if o == nil || IsNil(o.Crawling) { - var ret ProfileDetailedConfigurationFrontendDastScopeCrawling - return ret - } - return *o.Crawling -} - -// GetCrawlingOk returns a tuple with the Crawling field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastScope) GetCrawlingOk() (*ProfileDetailedConfigurationFrontendDastScopeCrawling, bool) { - if o == nil || IsNil(o.Crawling) { - return nil, false - } - return o.Crawling, true -} - -// HasCrawling returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastScope) HasCrawling() bool { - if o != nil && !IsNil(o.Crawling) { - return true - } - - return false -} - -// SetCrawling gets a reference to the given ProfileDetailedConfigurationFrontendDastScopeCrawling and assigns it to the Crawling field. -func (o *ProfileDetailedConfigurationFrontendDastScope) SetCrawling(v ProfileDetailedConfigurationFrontendDastScopeCrawling) { - o.Crawling = &v -} - -func (o ProfileDetailedConfigurationFrontendDastScope) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationFrontendDastScope) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ApiTesting) { - toSerialize["api_testing"] = o.ApiTesting - } - if !IsNil(o.Crawling) { - toSerialize["crawling"] = o.Crawling - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationFrontendDastScope) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationFrontendDastScope := _ProfileDetailedConfigurationFrontendDastScope{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationFrontendDastScope) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationFrontendDastScope(varProfileDetailedConfigurationFrontendDastScope) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "api_testing") - delete(additionalProperties, "crawling") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationFrontendDastScope struct { - value *ProfileDetailedConfigurationFrontendDastScope - isSet bool -} - -func (v NullableProfileDetailedConfigurationFrontendDastScope) Get() *ProfileDetailedConfigurationFrontendDastScope { - return v.value -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScope) Set(val *ProfileDetailedConfigurationFrontendDastScope) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationFrontendDastScope) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScope) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationFrontendDastScope(val *ProfileDetailedConfigurationFrontendDastScope) *NullableProfileDetailedConfigurationFrontendDastScope { - return &NullableProfileDetailedConfigurationFrontendDastScope{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationFrontendDastScope) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScope) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_api_testing.go b/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_api_testing.go deleted file mode 100644 index bfae6341..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_api_testing.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationFrontendDastScopeApiTesting type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationFrontendDastScopeApiTesting{} - -// ProfileDetailedConfigurationFrontendDastScopeApiTesting struct for ProfileDetailedConfigurationFrontendDastScopeApiTesting -type ProfileDetailedConfigurationFrontendDastScopeApiTesting struct { - ExtendGlobalScope *bool `json:"extend_global_scope,omitempty"` - Allowlist []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner `json:"allowlist,omitempty"` - Blocklist []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner `json:"blocklist,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationFrontendDastScopeApiTesting ProfileDetailedConfigurationFrontendDastScopeApiTesting - -// NewProfileDetailedConfigurationFrontendDastScopeApiTesting instantiates a new ProfileDetailedConfigurationFrontendDastScopeApiTesting 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 NewProfileDetailedConfigurationFrontendDastScopeApiTesting() *ProfileDetailedConfigurationFrontendDastScopeApiTesting { - this := ProfileDetailedConfigurationFrontendDastScopeApiTesting{} - return &this -} - -// NewProfileDetailedConfigurationFrontendDastScopeApiTestingWithDefaults instantiates a new ProfileDetailedConfigurationFrontendDastScopeApiTesting 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 NewProfileDetailedConfigurationFrontendDastScopeApiTestingWithDefaults() *ProfileDetailedConfigurationFrontendDastScopeApiTesting { - this := ProfileDetailedConfigurationFrontendDastScopeApiTesting{} - return &this -} - -// GetExtendGlobalScope returns the ExtendGlobalScope field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) GetExtendGlobalScope() bool { - if o == nil || IsNil(o.ExtendGlobalScope) { - var ret bool - return ret - } - return *o.ExtendGlobalScope -} - -// GetExtendGlobalScopeOk returns a tuple with the ExtendGlobalScope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) GetExtendGlobalScopeOk() (*bool, bool) { - if o == nil || IsNil(o.ExtendGlobalScope) { - return nil, false - } - return o.ExtendGlobalScope, true -} - -// HasExtendGlobalScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) HasExtendGlobalScope() bool { - if o != nil && !IsNil(o.ExtendGlobalScope) { - return true - } - - return false -} - -// SetExtendGlobalScope gets a reference to the given bool and assigns it to the ExtendGlobalScope field. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) SetExtendGlobalScope(v bool) { - o.ExtendGlobalScope = &v -} - -// GetAllowlist returns the Allowlist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) GetAllowlist() []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - if o == nil || IsNil(o.Allowlist) { - var ret []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner - return ret - } - return o.Allowlist -} - -// GetAllowlistOk returns a tuple with the Allowlist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) GetAllowlistOk() ([]ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner, bool) { - if o == nil || IsNil(o.Allowlist) { - return nil, false - } - return o.Allowlist, true -} - -// HasAllowlist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) HasAllowlist() bool { - if o != nil && !IsNil(o.Allowlist) { - return true - } - - return false -} - -// SetAllowlist gets a reference to the given []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner and assigns it to the Allowlist field. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) SetAllowlist(v []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) { - o.Allowlist = v -} - -// GetBlocklist returns the Blocklist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) GetBlocklist() []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - if o == nil || IsNil(o.Blocklist) { - var ret []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner - return ret - } - return o.Blocklist -} - -// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) GetBlocklistOk() ([]ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner, bool) { - if o == nil || IsNil(o.Blocklist) { - return nil, false - } - return o.Blocklist, true -} - -// HasBlocklist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) HasBlocklist() bool { - if o != nil && !IsNil(o.Blocklist) { - return true - } - - return false -} - -// SetBlocklist gets a reference to the given []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner and assigns it to the Blocklist field. -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) SetBlocklist(v []ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) { - o.Blocklist = v -} - -func (o ProfileDetailedConfigurationFrontendDastScopeApiTesting) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationFrontendDastScopeApiTesting) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ExtendGlobalScope) { - toSerialize["extend_global_scope"] = o.ExtendGlobalScope - } - if !IsNil(o.Allowlist) { - toSerialize["allowlist"] = o.Allowlist - } - if !IsNil(o.Blocklist) { - toSerialize["blocklist"] = o.Blocklist - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationFrontendDastScopeApiTesting) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationFrontendDastScopeApiTesting := _ProfileDetailedConfigurationFrontendDastScopeApiTesting{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationFrontendDastScopeApiTesting) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationFrontendDastScopeApiTesting(varProfileDetailedConfigurationFrontendDastScopeApiTesting) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "extend_global_scope") - delete(additionalProperties, "allowlist") - delete(additionalProperties, "blocklist") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationFrontendDastScopeApiTesting struct { - value *ProfileDetailedConfigurationFrontendDastScopeApiTesting - isSet bool -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeApiTesting) Get() *ProfileDetailedConfigurationFrontendDastScopeApiTesting { - return v.value -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeApiTesting) Set(val *ProfileDetailedConfigurationFrontendDastScopeApiTesting) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeApiTesting) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeApiTesting) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationFrontendDastScopeApiTesting(val *ProfileDetailedConfigurationFrontendDastScopeApiTesting) *NullableProfileDetailedConfigurationFrontendDastScopeApiTesting { - return &NullableProfileDetailedConfigurationFrontendDastScopeApiTesting{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeApiTesting) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeApiTesting) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_api_testing_allowlist_inner.go b/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_api_testing_allowlist_inner.go deleted file mode 100644 index 13b59912..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_api_testing_allowlist_inner.go +++ /dev/null @@ -1,282 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" - "gopkg.in/validator.v2" -) - -// ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner - struct for ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner -type ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner struct { - ProfileDetailedConfigurationScopeAllowlistInnerOneOf *ProfileDetailedConfigurationScopeAllowlistInnerOneOf - ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOfAsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf wrapped in ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOfAsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf1AsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 wrapped in ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf1AsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf1: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf3AsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 wrapped in ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf3AsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf3: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf4AsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 wrapped in ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf4AsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf4: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf5AsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 wrapped in ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf5AsProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf5: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf1, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf1) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf3, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf3) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf4, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf4) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf5, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf5) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) MarshalJSON() ([]byte, error) { - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 - } - - // all schemas are nil - return nil -} - -// Get the actual instance value -func (obj ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) GetActualInstanceValue() interface{} { - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 - } - - // all schemas are nil - return nil -} - -type NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner struct { - value *ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) Get() *ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) Set(val *ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner(val *ProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) *NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner { - return &NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeApiTestingAllowlistInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_crawling.go b/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_crawling.go deleted file mode 100644 index 86c48005..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_crawling.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationFrontendDastScopeCrawling type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationFrontendDastScopeCrawling{} - -// ProfileDetailedConfigurationFrontendDastScopeCrawling struct for ProfileDetailedConfigurationFrontendDastScopeCrawling -type ProfileDetailedConfigurationFrontendDastScopeCrawling struct { - ExtendGlobalScope *bool `json:"extend_global_scope,omitempty"` - Allowlist []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner `json:"allowlist,omitempty"` - Blocklist []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner `json:"blocklist,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationFrontendDastScopeCrawling ProfileDetailedConfigurationFrontendDastScopeCrawling - -// NewProfileDetailedConfigurationFrontendDastScopeCrawling instantiates a new ProfileDetailedConfigurationFrontendDastScopeCrawling 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 NewProfileDetailedConfigurationFrontendDastScopeCrawling() *ProfileDetailedConfigurationFrontendDastScopeCrawling { - this := ProfileDetailedConfigurationFrontendDastScopeCrawling{} - return &this -} - -// NewProfileDetailedConfigurationFrontendDastScopeCrawlingWithDefaults instantiates a new ProfileDetailedConfigurationFrontendDastScopeCrawling 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 NewProfileDetailedConfigurationFrontendDastScopeCrawlingWithDefaults() *ProfileDetailedConfigurationFrontendDastScopeCrawling { - this := ProfileDetailedConfigurationFrontendDastScopeCrawling{} - return &this -} - -// GetExtendGlobalScope returns the ExtendGlobalScope field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) GetExtendGlobalScope() bool { - if o == nil || IsNil(o.ExtendGlobalScope) { - var ret bool - return ret - } - return *o.ExtendGlobalScope -} - -// GetExtendGlobalScopeOk returns a tuple with the ExtendGlobalScope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) GetExtendGlobalScopeOk() (*bool, bool) { - if o == nil || IsNil(o.ExtendGlobalScope) { - return nil, false - } - return o.ExtendGlobalScope, true -} - -// HasExtendGlobalScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) HasExtendGlobalScope() bool { - if o != nil && !IsNil(o.ExtendGlobalScope) { - return true - } - - return false -} - -// SetExtendGlobalScope gets a reference to the given bool and assigns it to the ExtendGlobalScope field. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) SetExtendGlobalScope(v bool) { - o.ExtendGlobalScope = &v -} - -// GetAllowlist returns the Allowlist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) GetAllowlist() []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner { - if o == nil || IsNil(o.Allowlist) { - var ret []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner - return ret - } - return o.Allowlist -} - -// GetAllowlistOk returns a tuple with the Allowlist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) GetAllowlistOk() ([]ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner, bool) { - if o == nil || IsNil(o.Allowlist) { - return nil, false - } - return o.Allowlist, true -} - -// HasAllowlist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) HasAllowlist() bool { - if o != nil && !IsNil(o.Allowlist) { - return true - } - - return false -} - -// SetAllowlist gets a reference to the given []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner and assigns it to the Allowlist field. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) SetAllowlist(v []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) { - o.Allowlist = v -} - -// GetBlocklist returns the Blocklist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) GetBlocklist() []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner { - if o == nil || IsNil(o.Blocklist) { - var ret []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner - return ret - } - return o.Blocklist -} - -// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) GetBlocklistOk() ([]ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner, bool) { - if o == nil || IsNil(o.Blocklist) { - return nil, false - } - return o.Blocklist, true -} - -// HasBlocklist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) HasBlocklist() bool { - if o != nil && !IsNil(o.Blocklist) { - return true - } - - return false -} - -// SetBlocklist gets a reference to the given []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner and assigns it to the Blocklist field. -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) SetBlocklist(v []ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) { - o.Blocklist = v -} - -func (o ProfileDetailedConfigurationFrontendDastScopeCrawling) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationFrontendDastScopeCrawling) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ExtendGlobalScope) { - toSerialize["extend_global_scope"] = o.ExtendGlobalScope - } - if !IsNil(o.Allowlist) { - toSerialize["allowlist"] = o.Allowlist - } - if !IsNil(o.Blocklist) { - toSerialize["blocklist"] = o.Blocklist - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationFrontendDastScopeCrawling) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationFrontendDastScopeCrawling := _ProfileDetailedConfigurationFrontendDastScopeCrawling{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationFrontendDastScopeCrawling) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationFrontendDastScopeCrawling(varProfileDetailedConfigurationFrontendDastScopeCrawling) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "extend_global_scope") - delete(additionalProperties, "allowlist") - delete(additionalProperties, "blocklist") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationFrontendDastScopeCrawling struct { - value *ProfileDetailedConfigurationFrontendDastScopeCrawling - isSet bool -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeCrawling) Get() *ProfileDetailedConfigurationFrontendDastScopeCrawling { - return v.value -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeCrawling) Set(val *ProfileDetailedConfigurationFrontendDastScopeCrawling) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeCrawling) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeCrawling) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationFrontendDastScopeCrawling(val *ProfileDetailedConfigurationFrontendDastScopeCrawling) *NullableProfileDetailedConfigurationFrontendDastScopeCrawling { - return &NullableProfileDetailedConfigurationFrontendDastScopeCrawling{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeCrawling) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeCrawling) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_crawling_allowlist_inner.go b/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_crawling_allowlist_inner.go deleted file mode 100644 index 32b5f942..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_scope_crawling_allowlist_inner.go +++ /dev/null @@ -1,244 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" - "gopkg.in/validator.v2" -) - -// ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner - struct for ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner -type ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner struct { - ProfileDetailedConfigurationScopeAllowlistInnerOneOf *ProfileDetailedConfigurationScopeAllowlistInnerOneOf - ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOfAsProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf wrapped in ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOfAsProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf1AsProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 wrapped in ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf1AsProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf1: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf2AsProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 wrapped in ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf2AsProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf2: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf6AsProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 wrapped in ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf6AsProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner { - return ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf6: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf1, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf1) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf2, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf2) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf6, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf6) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) MarshalJSON() ([]byte, error) { - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 - } - - // all schemas are nil - return nil -} - -// Get the actual instance value -func (obj ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) GetActualInstanceValue() interface{} { - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 - } - - // all schemas are nil - return nil -} - -type NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner struct { - value *ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) Get() *ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) Set(val *ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner(val *ProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) *NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner { - return &NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationFrontendDastScopeCrawlingAllowlistInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_static_crawling.go b/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_static_crawling.go deleted file mode 100644 index 27afc042..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_frontend_dast_static_crawling.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationFrontendDastStaticCrawling type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationFrontendDastStaticCrawling{} - -// ProfileDetailedConfigurationFrontendDastStaticCrawling struct for ProfileDetailedConfigurationFrontendDastStaticCrawling -type ProfileDetailedConfigurationFrontendDastStaticCrawling struct { - Enabled *bool `json:"enabled,omitempty"` - TimeLimitSeconds *float32 `json:"time_limit_seconds,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationFrontendDastStaticCrawling ProfileDetailedConfigurationFrontendDastStaticCrawling - -// NewProfileDetailedConfigurationFrontendDastStaticCrawling instantiates a new ProfileDetailedConfigurationFrontendDastStaticCrawling 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 NewProfileDetailedConfigurationFrontendDastStaticCrawling() *ProfileDetailedConfigurationFrontendDastStaticCrawling { - this := ProfileDetailedConfigurationFrontendDastStaticCrawling{} - return &this -} - -// NewProfileDetailedConfigurationFrontendDastStaticCrawlingWithDefaults instantiates a new ProfileDetailedConfigurationFrontendDastStaticCrawling 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 NewProfileDetailedConfigurationFrontendDastStaticCrawlingWithDefaults() *ProfileDetailedConfigurationFrontendDastStaticCrawling { - this := ProfileDetailedConfigurationFrontendDastStaticCrawling{} - return &this -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool - return ret - } - return *o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { - return nil, false - } - return o.Enabled, true -} - -// HasEnabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { - return true - } - - return false -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) SetEnabled(v bool) { - o.Enabled = &v -} - -// GetTimeLimitSeconds returns the TimeLimitSeconds field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) GetTimeLimitSeconds() float32 { - if o == nil || IsNil(o.TimeLimitSeconds) { - var ret float32 - return ret - } - return *o.TimeLimitSeconds -} - -// GetTimeLimitSecondsOk returns a tuple with the TimeLimitSeconds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) GetTimeLimitSecondsOk() (*float32, bool) { - if o == nil || IsNil(o.TimeLimitSeconds) { - return nil, false - } - return o.TimeLimitSeconds, true -} - -// HasTimeLimitSeconds returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) HasTimeLimitSeconds() bool { - if o != nil && !IsNil(o.TimeLimitSeconds) { - return true - } - - return false -} - -// SetTimeLimitSeconds gets a reference to the given float32 and assigns it to the TimeLimitSeconds field. -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) SetTimeLimitSeconds(v float32) { - o.TimeLimitSeconds = &v -} - -func (o ProfileDetailedConfigurationFrontendDastStaticCrawling) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationFrontendDastStaticCrawling) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Enabled) { - toSerialize["enabled"] = o.Enabled - } - if !IsNil(o.TimeLimitSeconds) { - toSerialize["time_limit_seconds"] = o.TimeLimitSeconds - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationFrontendDastStaticCrawling) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationFrontendDastStaticCrawling := _ProfileDetailedConfigurationFrontendDastStaticCrawling{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationFrontendDastStaticCrawling) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationFrontendDastStaticCrawling(varProfileDetailedConfigurationFrontendDastStaticCrawling) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "enabled") - delete(additionalProperties, "time_limit_seconds") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationFrontendDastStaticCrawling struct { - value *ProfileDetailedConfigurationFrontendDastStaticCrawling - isSet bool -} - -func (v NullableProfileDetailedConfigurationFrontendDastStaticCrawling) Get() *ProfileDetailedConfigurationFrontendDastStaticCrawling { - return v.value -} - -func (v *NullableProfileDetailedConfigurationFrontendDastStaticCrawling) Set(val *ProfileDetailedConfigurationFrontendDastStaticCrawling) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationFrontendDastStaticCrawling) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationFrontendDastStaticCrawling) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationFrontendDastStaticCrawling(val *ProfileDetailedConfigurationFrontendDastStaticCrawling) *NullableProfileDetailedConfigurationFrontendDastStaticCrawling { - return &NullableProfileDetailedConfigurationFrontendDastStaticCrawling{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationFrontendDastStaticCrawling) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationFrontendDastStaticCrawling) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_graphql_api_dast.go b/pkg/api/v3/model_profile_detailed_configuration_graphql_api_dast.go deleted file mode 100644 index 63da0bbc..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_graphql_api_dast.go +++ /dev/null @@ -1,560 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationGraphqlApiDast type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationGraphqlApiDast{} - -// ProfileDetailedConfigurationGraphqlApiDast struct for ProfileDetailedConfigurationGraphqlApiDast -type ProfileDetailedConfigurationGraphqlApiDast struct { - SchemaS3Key *string `json:"schema_s3_key,omitempty"` - AdditionalSchemaS3Keys []string `json:"additional_schema_s3_keys,omitempty"` - Url *string `json:"url,omitempty"` - LocationId *string `json:"location_id,omitempty"` - Profile *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE `json:"profile,omitempty"` - Mode *ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE `json:"mode,omitempty"` - MaxDuration *float32 `json:"max_duration,omitempty"` - MaxGeneratedDepth *float32 `json:"max_generated_depth,omitempty"` - NoOperationName *bool `json:"no_operation_name,omitempty"` - Hotstart []string `json:"hotstart,omitempty"` - HotstartOnly *bool `json:"hotstart_only,omitempty"` - Scope *ProfileDetailedConfigurationGraphqlApiDastScope `json:"scope,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationGraphqlApiDast ProfileDetailedConfigurationGraphqlApiDast - -// NewProfileDetailedConfigurationGraphqlApiDast instantiates a new ProfileDetailedConfigurationGraphqlApiDast 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 NewProfileDetailedConfigurationGraphqlApiDast() *ProfileDetailedConfigurationGraphqlApiDast { - this := ProfileDetailedConfigurationGraphqlApiDast{} - return &this -} - -// NewProfileDetailedConfigurationGraphqlApiDastWithDefaults instantiates a new ProfileDetailedConfigurationGraphqlApiDast 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 NewProfileDetailedConfigurationGraphqlApiDastWithDefaults() *ProfileDetailedConfigurationGraphqlApiDast { - this := ProfileDetailedConfigurationGraphqlApiDast{} - return &this -} - -// GetSchemaS3Key returns the SchemaS3Key field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetSchemaS3Key() string { - if o == nil || IsNil(o.SchemaS3Key) { - var ret string - return ret - } - return *o.SchemaS3Key -} - -// GetSchemaS3KeyOk returns a tuple with the SchemaS3Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetSchemaS3KeyOk() (*string, bool) { - if o == nil || IsNil(o.SchemaS3Key) { - return nil, false - } - return o.SchemaS3Key, true -} - -// HasSchemaS3Key returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasSchemaS3Key() bool { - if o != nil && !IsNil(o.SchemaS3Key) { - return true - } - - return false -} - -// SetSchemaS3Key gets a reference to the given string and assigns it to the SchemaS3Key field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetSchemaS3Key(v string) { - o.SchemaS3Key = &v -} - -// GetAdditionalSchemaS3Keys returns the AdditionalSchemaS3Keys field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetAdditionalSchemaS3Keys() []string { - if o == nil || IsNil(o.AdditionalSchemaS3Keys) { - var ret []string - return ret - } - return o.AdditionalSchemaS3Keys -} - -// GetAdditionalSchemaS3KeysOk returns a tuple with the AdditionalSchemaS3Keys field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetAdditionalSchemaS3KeysOk() ([]string, bool) { - if o == nil || IsNil(o.AdditionalSchemaS3Keys) { - return nil, false - } - return o.AdditionalSchemaS3Keys, true -} - -// HasAdditionalSchemaS3Keys returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasAdditionalSchemaS3Keys() bool { - if o != nil && !IsNil(o.AdditionalSchemaS3Keys) { - return true - } - - return false -} - -// SetAdditionalSchemaS3Keys gets a reference to the given []string and assigns it to the AdditionalSchemaS3Keys field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetAdditionalSchemaS3Keys(v []string) { - o.AdditionalSchemaS3Keys = v -} - -// GetUrl returns the Url field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetUrl() string { - if o == nil || IsNil(o.Url) { - var ret string - return ret - } - return *o.Url -} - -// GetUrlOk returns a tuple with the Url field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetUrlOk() (*string, bool) { - if o == nil || IsNil(o.Url) { - return nil, false - } - return o.Url, true -} - -// HasUrl returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasUrl() bool { - if o != nil && !IsNil(o.Url) { - return true - } - - return false -} - -// SetUrl gets a reference to the given string and assigns it to the Url field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetUrl(v string) { - o.Url = &v -} - -// GetLocationId returns the LocationId field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetLocationId() string { - if o == nil || IsNil(o.LocationId) { - var ret string - return ret - } - return *o.LocationId -} - -// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetLocationIdOk() (*string, bool) { - if o == nil || IsNil(o.LocationId) { - return nil, false - } - return o.LocationId, true -} - -// HasLocationId returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasLocationId() bool { - if o != nil && !IsNil(o.LocationId) { - return true - } - - return false -} - -// SetLocationId gets a reference to the given string and assigns it to the LocationId field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetLocationId(v string) { - o.LocationId = &v -} - -// GetProfile returns the Profile field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetProfile() ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE { - if o == nil || IsNil(o.Profile) { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE - return ret - } - return *o.Profile -} - -// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetProfileOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE, bool) { - if o == nil || IsNil(o.Profile) { - return nil, false - } - return o.Profile, true -} - -// HasProfile returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasProfile() bool { - if o != nil && !IsNil(o.Profile) { - return true - } - - return false -} - -// SetProfile gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE and assigns it to the Profile field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetProfile(v ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE) { - o.Profile = &v -} - -// GetMode returns the Mode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetMode() ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE { - if o == nil || IsNil(o.Mode) { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE - return ret - } - return *o.Mode -} - -// GetModeOk returns a tuple with the Mode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetModeOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE, bool) { - if o == nil || IsNil(o.Mode) { - return nil, false - } - return o.Mode, true -} - -// HasMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasMode() bool { - if o != nil && !IsNil(o.Mode) { - return true - } - - return false -} - -// SetMode gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE and assigns it to the Mode field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetMode(v ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE) { - o.Mode = &v -} - -// GetMaxDuration returns the MaxDuration field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetMaxDuration() float32 { - if o == nil || IsNil(o.MaxDuration) { - var ret float32 - return ret - } - return *o.MaxDuration -} - -// GetMaxDurationOk returns a tuple with the MaxDuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetMaxDurationOk() (*float32, bool) { - if o == nil || IsNil(o.MaxDuration) { - return nil, false - } - return o.MaxDuration, true -} - -// HasMaxDuration returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasMaxDuration() bool { - if o != nil && !IsNil(o.MaxDuration) { - return true - } - - return false -} - -// SetMaxDuration gets a reference to the given float32 and assigns it to the MaxDuration field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetMaxDuration(v float32) { - o.MaxDuration = &v -} - -// GetMaxGeneratedDepth returns the MaxGeneratedDepth field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetMaxGeneratedDepth() float32 { - if o == nil || IsNil(o.MaxGeneratedDepth) { - var ret float32 - return ret - } - return *o.MaxGeneratedDepth -} - -// GetMaxGeneratedDepthOk returns a tuple with the MaxGeneratedDepth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetMaxGeneratedDepthOk() (*float32, bool) { - if o == nil || IsNil(o.MaxGeneratedDepth) { - return nil, false - } - return o.MaxGeneratedDepth, true -} - -// HasMaxGeneratedDepth returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasMaxGeneratedDepth() bool { - if o != nil && !IsNil(o.MaxGeneratedDepth) { - return true - } - - return false -} - -// SetMaxGeneratedDepth gets a reference to the given float32 and assigns it to the MaxGeneratedDepth field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetMaxGeneratedDepth(v float32) { - o.MaxGeneratedDepth = &v -} - -// GetNoOperationName returns the NoOperationName field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetNoOperationName() bool { - if o == nil || IsNil(o.NoOperationName) { - var ret bool - return ret - } - return *o.NoOperationName -} - -// GetNoOperationNameOk returns a tuple with the NoOperationName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetNoOperationNameOk() (*bool, bool) { - if o == nil || IsNil(o.NoOperationName) { - return nil, false - } - return o.NoOperationName, true -} - -// HasNoOperationName returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasNoOperationName() bool { - if o != nil && !IsNil(o.NoOperationName) { - return true - } - - return false -} - -// SetNoOperationName gets a reference to the given bool and assigns it to the NoOperationName field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetNoOperationName(v bool) { - o.NoOperationName = &v -} - -// GetHotstart returns the Hotstart field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetHotstart() []string { - if o == nil || IsNil(o.Hotstart) { - var ret []string - return ret - } - return o.Hotstart -} - -// GetHotstartOk returns a tuple with the Hotstart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetHotstartOk() ([]string, bool) { - if o == nil || IsNil(o.Hotstart) { - return nil, false - } - return o.Hotstart, true -} - -// HasHotstart returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasHotstart() bool { - if o != nil && !IsNil(o.Hotstart) { - return true - } - - return false -} - -// SetHotstart gets a reference to the given []string and assigns it to the Hotstart field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetHotstart(v []string) { - o.Hotstart = v -} - -// GetHotstartOnly returns the HotstartOnly field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetHotstartOnly() bool { - if o == nil || IsNil(o.HotstartOnly) { - var ret bool - return ret - } - return *o.HotstartOnly -} - -// GetHotstartOnlyOk returns a tuple with the HotstartOnly field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetHotstartOnlyOk() (*bool, bool) { - if o == nil || IsNil(o.HotstartOnly) { - return nil, false - } - return o.HotstartOnly, true -} - -// HasHotstartOnly returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasHotstartOnly() bool { - if o != nil && !IsNil(o.HotstartOnly) { - return true - } - - return false -} - -// SetHotstartOnly gets a reference to the given bool and assigns it to the HotstartOnly field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetHotstartOnly(v bool) { - o.HotstartOnly = &v -} - -// GetScope returns the Scope field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetScope() ProfileDetailedConfigurationGraphqlApiDastScope { - if o == nil || IsNil(o.Scope) { - var ret ProfileDetailedConfigurationGraphqlApiDastScope - return ret - } - return *o.Scope -} - -// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) GetScopeOk() (*ProfileDetailedConfigurationGraphqlApiDastScope, bool) { - if o == nil || IsNil(o.Scope) { - return nil, false - } - return o.Scope, true -} - -// HasScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDast) HasScope() bool { - if o != nil && !IsNil(o.Scope) { - return true - } - - return false -} - -// SetScope gets a reference to the given ProfileDetailedConfigurationGraphqlApiDastScope and assigns it to the Scope field. -func (o *ProfileDetailedConfigurationGraphqlApiDast) SetScope(v ProfileDetailedConfigurationGraphqlApiDastScope) { - o.Scope = &v -} - -func (o ProfileDetailedConfigurationGraphqlApiDast) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationGraphqlApiDast) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.SchemaS3Key) { - toSerialize["schema_s3_key"] = o.SchemaS3Key - } - if !IsNil(o.AdditionalSchemaS3Keys) { - toSerialize["additional_schema_s3_keys"] = o.AdditionalSchemaS3Keys - } - if !IsNil(o.Url) { - toSerialize["url"] = o.Url - } - if !IsNil(o.LocationId) { - toSerialize["location_id"] = o.LocationId - } - if !IsNil(o.Profile) { - toSerialize["profile"] = o.Profile - } - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode - } - if !IsNil(o.MaxDuration) { - toSerialize["max_duration"] = o.MaxDuration - } - if !IsNil(o.MaxGeneratedDepth) { - toSerialize["max_generated_depth"] = o.MaxGeneratedDepth - } - if !IsNil(o.NoOperationName) { - toSerialize["no_operation_name"] = o.NoOperationName - } - if !IsNil(o.Hotstart) { - toSerialize["hotstart"] = o.Hotstart - } - if !IsNil(o.HotstartOnly) { - toSerialize["hotstart_only"] = o.HotstartOnly - } - if !IsNil(o.Scope) { - toSerialize["scope"] = o.Scope - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationGraphqlApiDast) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationGraphqlApiDast := _ProfileDetailedConfigurationGraphqlApiDast{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationGraphqlApiDast) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationGraphqlApiDast(varProfileDetailedConfigurationGraphqlApiDast) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "schema_s3_key") - delete(additionalProperties, "additional_schema_s3_keys") - delete(additionalProperties, "url") - delete(additionalProperties, "location_id") - delete(additionalProperties, "profile") - delete(additionalProperties, "mode") - delete(additionalProperties, "max_duration") - delete(additionalProperties, "max_generated_depth") - delete(additionalProperties, "no_operation_name") - delete(additionalProperties, "hotstart") - delete(additionalProperties, "hotstart_only") - delete(additionalProperties, "scope") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationGraphqlApiDast struct { - value *ProfileDetailedConfigurationGraphqlApiDast - isSet bool -} - -func (v NullableProfileDetailedConfigurationGraphqlApiDast) Get() *ProfileDetailedConfigurationGraphqlApiDast { - return v.value -} - -func (v *NullableProfileDetailedConfigurationGraphqlApiDast) Set(val *ProfileDetailedConfigurationGraphqlApiDast) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationGraphqlApiDast) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationGraphqlApiDast) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationGraphqlApiDast(val *ProfileDetailedConfigurationGraphqlApiDast) *NullableProfileDetailedConfigurationGraphqlApiDast { - return &NullableProfileDetailedConfigurationGraphqlApiDast{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationGraphqlApiDast) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationGraphqlApiDast) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_graphql_api_dast_scope.go b/pkg/api/v3/model_profile_detailed_configuration_graphql_api_dast_scope.go deleted file mode 100644 index c0f90385..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_graphql_api_dast_scope.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationGraphqlApiDastScope type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationGraphqlApiDastScope{} - -// ProfileDetailedConfigurationGraphqlApiDastScope struct for ProfileDetailedConfigurationGraphqlApiDastScope -type ProfileDetailedConfigurationGraphqlApiDastScope struct { - ExtendGlobalScope *bool `json:"extend_global_scope,omitempty"` - Allowlist []ProfileDetailedConfigurationScopeAllowlistInner `json:"allowlist,omitempty"` - Blocklist []ProfileDetailedConfigurationScopeAllowlistInner `json:"blocklist,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationGraphqlApiDastScope ProfileDetailedConfigurationGraphqlApiDastScope - -// NewProfileDetailedConfigurationGraphqlApiDastScope instantiates a new ProfileDetailedConfigurationGraphqlApiDastScope 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 NewProfileDetailedConfigurationGraphqlApiDastScope() *ProfileDetailedConfigurationGraphqlApiDastScope { - this := ProfileDetailedConfigurationGraphqlApiDastScope{} - return &this -} - -// NewProfileDetailedConfigurationGraphqlApiDastScopeWithDefaults instantiates a new ProfileDetailedConfigurationGraphqlApiDastScope 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 NewProfileDetailedConfigurationGraphqlApiDastScopeWithDefaults() *ProfileDetailedConfigurationGraphqlApiDastScope { - this := ProfileDetailedConfigurationGraphqlApiDastScope{} - return &this -} - -// GetExtendGlobalScope returns the ExtendGlobalScope field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) GetExtendGlobalScope() bool { - if o == nil || IsNil(o.ExtendGlobalScope) { - var ret bool - return ret - } - return *o.ExtendGlobalScope -} - -// GetExtendGlobalScopeOk returns a tuple with the ExtendGlobalScope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) GetExtendGlobalScopeOk() (*bool, bool) { - if o == nil || IsNil(o.ExtendGlobalScope) { - return nil, false - } - return o.ExtendGlobalScope, true -} - -// HasExtendGlobalScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) HasExtendGlobalScope() bool { - if o != nil && !IsNil(o.ExtendGlobalScope) { - return true - } - - return false -} - -// SetExtendGlobalScope gets a reference to the given bool and assigns it to the ExtendGlobalScope field. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) SetExtendGlobalScope(v bool) { - o.ExtendGlobalScope = &v -} - -// GetAllowlist returns the Allowlist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) GetAllowlist() []ProfileDetailedConfigurationScopeAllowlistInner { - if o == nil || IsNil(o.Allowlist) { - var ret []ProfileDetailedConfigurationScopeAllowlistInner - return ret - } - return o.Allowlist -} - -// GetAllowlistOk returns a tuple with the Allowlist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) GetAllowlistOk() ([]ProfileDetailedConfigurationScopeAllowlistInner, bool) { - if o == nil || IsNil(o.Allowlist) { - return nil, false - } - return o.Allowlist, true -} - -// HasAllowlist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) HasAllowlist() bool { - if o != nil && !IsNil(o.Allowlist) { - return true - } - - return false -} - -// SetAllowlist gets a reference to the given []ProfileDetailedConfigurationScopeAllowlistInner and assigns it to the Allowlist field. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) SetAllowlist(v []ProfileDetailedConfigurationScopeAllowlistInner) { - o.Allowlist = v -} - -// GetBlocklist returns the Blocklist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) GetBlocklist() []ProfileDetailedConfigurationScopeAllowlistInner { - if o == nil || IsNil(o.Blocklist) { - var ret []ProfileDetailedConfigurationScopeAllowlistInner - return ret - } - return o.Blocklist -} - -// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) GetBlocklistOk() ([]ProfileDetailedConfigurationScopeAllowlistInner, bool) { - if o == nil || IsNil(o.Blocklist) { - return nil, false - } - return o.Blocklist, true -} - -// HasBlocklist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) HasBlocklist() bool { - if o != nil && !IsNil(o.Blocklist) { - return true - } - - return false -} - -// SetBlocklist gets a reference to the given []ProfileDetailedConfigurationScopeAllowlistInner and assigns it to the Blocklist field. -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) SetBlocklist(v []ProfileDetailedConfigurationScopeAllowlistInner) { - o.Blocklist = v -} - -func (o ProfileDetailedConfigurationGraphqlApiDastScope) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationGraphqlApiDastScope) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ExtendGlobalScope) { - toSerialize["extend_global_scope"] = o.ExtendGlobalScope - } - if !IsNil(o.Allowlist) { - toSerialize["allowlist"] = o.Allowlist - } - if !IsNil(o.Blocklist) { - toSerialize["blocklist"] = o.Blocklist - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationGraphqlApiDastScope) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationGraphqlApiDastScope := _ProfileDetailedConfigurationGraphqlApiDastScope{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationGraphqlApiDastScope) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationGraphqlApiDastScope(varProfileDetailedConfigurationGraphqlApiDastScope) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "extend_global_scope") - delete(additionalProperties, "allowlist") - delete(additionalProperties, "blocklist") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationGraphqlApiDastScope struct { - value *ProfileDetailedConfigurationGraphqlApiDastScope - isSet bool -} - -func (v NullableProfileDetailedConfigurationGraphqlApiDastScope) Get() *ProfileDetailedConfigurationGraphqlApiDastScope { - return v.value -} - -func (v *NullableProfileDetailedConfigurationGraphqlApiDastScope) Set(val *ProfileDetailedConfigurationGraphqlApiDastScope) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationGraphqlApiDastScope) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationGraphqlApiDastScope) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationGraphqlApiDastScope(val *ProfileDetailedConfigurationGraphqlApiDastScope) *NullableProfileDetailedConfigurationGraphqlApiDastScope { - return &NullableProfileDetailedConfigurationGraphqlApiDastScope{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationGraphqlApiDastScope) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationGraphqlApiDastScope) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_inference.go b/pkg/api/v3/model_profile_detailed_configuration_inference.go deleted file mode 100644 index adf1614f..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_inference.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationInference type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationInference{} - -// ProfileDetailedConfigurationInference struct for ProfileDetailedConfigurationInference -type ProfileDetailedConfigurationInference struct { - Scalars map[string]ProfileDetailedConfigurationInferenceScalarsValue `json:"scalars,omitempty"` - NullIsUnauthenticated *bool `json:"null_is_unauthenticated,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationInference ProfileDetailedConfigurationInference - -// NewProfileDetailedConfigurationInference instantiates a new ProfileDetailedConfigurationInference 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 NewProfileDetailedConfigurationInference() *ProfileDetailedConfigurationInference { - this := ProfileDetailedConfigurationInference{} - return &this -} - -// NewProfileDetailedConfigurationInferenceWithDefaults instantiates a new ProfileDetailedConfigurationInference 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 NewProfileDetailedConfigurationInferenceWithDefaults() *ProfileDetailedConfigurationInference { - this := ProfileDetailedConfigurationInference{} - return &this -} - -// GetScalars returns the Scalars field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInference) GetScalars() map[string]ProfileDetailedConfigurationInferenceScalarsValue { - if o == nil || IsNil(o.Scalars) { - var ret map[string]ProfileDetailedConfigurationInferenceScalarsValue - return ret - } - return o.Scalars -} - -// GetScalarsOk returns a tuple with the Scalars field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInference) GetScalarsOk() (map[string]ProfileDetailedConfigurationInferenceScalarsValue, bool) { - if o == nil || IsNil(o.Scalars) { - return map[string]ProfileDetailedConfigurationInferenceScalarsValue{}, false - } - return o.Scalars, true -} - -// HasScalars returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInference) HasScalars() bool { - if o != nil && !IsNil(o.Scalars) { - return true - } - - return false -} - -// SetScalars gets a reference to the given map[string]ProfileDetailedConfigurationInferenceScalarsValue and assigns it to the Scalars field. -func (o *ProfileDetailedConfigurationInference) SetScalars(v map[string]ProfileDetailedConfigurationInferenceScalarsValue) { - o.Scalars = v -} - -// GetNullIsUnauthenticated returns the NullIsUnauthenticated field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationInference) GetNullIsUnauthenticated() bool { - if o == nil || IsNil(o.NullIsUnauthenticated) { - var ret bool - return ret - } - return *o.NullIsUnauthenticated -} - -// GetNullIsUnauthenticatedOk returns a tuple with the NullIsUnauthenticated field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationInference) GetNullIsUnauthenticatedOk() (*bool, bool) { - if o == nil || IsNil(o.NullIsUnauthenticated) { - return nil, false - } - return o.NullIsUnauthenticated, true -} - -// HasNullIsUnauthenticated returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationInference) HasNullIsUnauthenticated() bool { - if o != nil && !IsNil(o.NullIsUnauthenticated) { - return true - } - - return false -} - -// SetNullIsUnauthenticated gets a reference to the given bool and assigns it to the NullIsUnauthenticated field. -func (o *ProfileDetailedConfigurationInference) SetNullIsUnauthenticated(v bool) { - o.NullIsUnauthenticated = &v -} - -func (o ProfileDetailedConfigurationInference) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationInference) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Scalars) { - toSerialize["scalars"] = o.Scalars - } - if !IsNil(o.NullIsUnauthenticated) { - toSerialize["null_is_unauthenticated"] = o.NullIsUnauthenticated - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationInference) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationInference := _ProfileDetailedConfigurationInference{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationInference) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationInference(varProfileDetailedConfigurationInference) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "scalars") - delete(additionalProperties, "null_is_unauthenticated") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationInference struct { - value *ProfileDetailedConfigurationInference - isSet bool -} - -func (v NullableProfileDetailedConfigurationInference) Get() *ProfileDetailedConfigurationInference { - return v.value -} - -func (v *NullableProfileDetailedConfigurationInference) Set(val *ProfileDetailedConfigurationInference) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationInference) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationInference) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationInference(val *ProfileDetailedConfigurationInference) *NullableProfileDetailedConfigurationInference { - return &NullableProfileDetailedConfigurationInference{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationInference) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationInference) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_port_scanning.go b/pkg/api/v3/model_profile_detailed_configuration_port_scanning.go deleted file mode 100644 index 19c3f68d..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_port_scanning.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationPortScanning type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationPortScanning{} - -// ProfileDetailedConfigurationPortScanning struct for ProfileDetailedConfigurationPortScanning -type ProfileDetailedConfigurationPortScanning struct { - Ports []float32 `json:"ports,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationPortScanning ProfileDetailedConfigurationPortScanning - -// NewProfileDetailedConfigurationPortScanning instantiates a new ProfileDetailedConfigurationPortScanning 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 NewProfileDetailedConfigurationPortScanning() *ProfileDetailedConfigurationPortScanning { - this := ProfileDetailedConfigurationPortScanning{} - return &this -} - -// NewProfileDetailedConfigurationPortScanningWithDefaults instantiates a new ProfileDetailedConfigurationPortScanning 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 NewProfileDetailedConfigurationPortScanningWithDefaults() *ProfileDetailedConfigurationPortScanning { - this := ProfileDetailedConfigurationPortScanning{} - return &this -} - -// GetPorts returns the Ports field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationPortScanning) GetPorts() []float32 { - if o == nil || IsNil(o.Ports) { - var ret []float32 - return ret - } - return o.Ports -} - -// GetPortsOk returns a tuple with the Ports field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationPortScanning) GetPortsOk() ([]float32, bool) { - if o == nil || IsNil(o.Ports) { - return nil, false - } - return o.Ports, true -} - -// HasPorts returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationPortScanning) HasPorts() bool { - if o != nil && !IsNil(o.Ports) { - return true - } - - return false -} - -// SetPorts gets a reference to the given []float32 and assigns it to the Ports field. -func (o *ProfileDetailedConfigurationPortScanning) SetPorts(v []float32) { - o.Ports = v -} - -func (o ProfileDetailedConfigurationPortScanning) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationPortScanning) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Ports) { - toSerialize["ports"] = o.Ports - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationPortScanning) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationPortScanning := _ProfileDetailedConfigurationPortScanning{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationPortScanning) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationPortScanning(varProfileDetailedConfigurationPortScanning) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "ports") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationPortScanning struct { - value *ProfileDetailedConfigurationPortScanning - isSet bool -} - -func (v NullableProfileDetailedConfigurationPortScanning) Get() *ProfileDetailedConfigurationPortScanning { - return v.value -} - -func (v *NullableProfileDetailedConfigurationPortScanning) Set(val *ProfileDetailedConfigurationPortScanning) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationPortScanning) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationPortScanning) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationPortScanning(val *ProfileDetailedConfigurationPortScanning) *NullableProfileDetailedConfigurationPortScanning { - return &NullableProfileDetailedConfigurationPortScanning{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationPortScanning) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationPortScanning) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_rest_api_dast.go b/pkg/api/v3/model_profile_detailed_configuration_rest_api_dast.go deleted file mode 100644 index e2f52ea2..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_rest_api_dast.go +++ /dev/null @@ -1,449 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationRestApiDast type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationRestApiDast{} - -// ProfileDetailedConfigurationRestApiDast struct for ProfileDetailedConfigurationRestApiDast -type ProfileDetailedConfigurationRestApiDast struct { - SchemaS3Key *string `json:"schema_s3_key,omitempty"` - LocationId *string `json:"location_id,omitempty"` - Profile *ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE `json:"profile,omitempty"` - Mode *ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE `json:"mode,omitempty"` - MaxDuration *float32 `json:"max_duration,omitempty"` - Hotstart []string `json:"hotstart,omitempty"` - HotstartOnly *bool `json:"hotstart_only,omitempty"` - Scope *ProfileDetailedConfigurationGraphqlApiDastScope `json:"scope,omitempty"` - AdditionalSchemaS3Keys []string `json:"additional_schema_s3_keys,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationRestApiDast ProfileDetailedConfigurationRestApiDast - -// NewProfileDetailedConfigurationRestApiDast instantiates a new ProfileDetailedConfigurationRestApiDast 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 NewProfileDetailedConfigurationRestApiDast() *ProfileDetailedConfigurationRestApiDast { - this := ProfileDetailedConfigurationRestApiDast{} - return &this -} - -// NewProfileDetailedConfigurationRestApiDastWithDefaults instantiates a new ProfileDetailedConfigurationRestApiDast 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 NewProfileDetailedConfigurationRestApiDastWithDefaults() *ProfileDetailedConfigurationRestApiDast { - this := ProfileDetailedConfigurationRestApiDast{} - return &this -} - -// GetSchemaS3Key returns the SchemaS3Key field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetSchemaS3Key() string { - if o == nil || IsNil(o.SchemaS3Key) { - var ret string - return ret - } - return *o.SchemaS3Key -} - -// GetSchemaS3KeyOk returns a tuple with the SchemaS3Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetSchemaS3KeyOk() (*string, bool) { - if o == nil || IsNil(o.SchemaS3Key) { - return nil, false - } - return o.SchemaS3Key, true -} - -// HasSchemaS3Key returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasSchemaS3Key() bool { - if o != nil && !IsNil(o.SchemaS3Key) { - return true - } - - return false -} - -// SetSchemaS3Key gets a reference to the given string and assigns it to the SchemaS3Key field. -func (o *ProfileDetailedConfigurationRestApiDast) SetSchemaS3Key(v string) { - o.SchemaS3Key = &v -} - -// GetLocationId returns the LocationId field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetLocationId() string { - if o == nil || IsNil(o.LocationId) { - var ret string - return ret - } - return *o.LocationId -} - -// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetLocationIdOk() (*string, bool) { - if o == nil || IsNil(o.LocationId) { - return nil, false - } - return o.LocationId, true -} - -// HasLocationId returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasLocationId() bool { - if o != nil && !IsNil(o.LocationId) { - return true - } - - return false -} - -// SetLocationId gets a reference to the given string and assigns it to the LocationId field. -func (o *ProfileDetailedConfigurationRestApiDast) SetLocationId(v string) { - o.LocationId = &v -} - -// GetProfile returns the Profile field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetProfile() ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE { - if o == nil || IsNil(o.Profile) { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE - return ret - } - return *o.Profile -} - -// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetProfileOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE, bool) { - if o == nil || IsNil(o.Profile) { - return nil, false - } - return o.Profile, true -} - -// HasProfile returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasProfile() bool { - if o != nil && !IsNil(o.Profile) { - return true - } - - return false -} - -// SetProfile gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE and assigns it to the Profile field. -func (o *ProfileDetailedConfigurationRestApiDast) SetProfile(v ENUMPROPERTIESCONFIGURATIONPROPERTIESGRAPHQLAPIDASTPROPERTIESPROFILE) { - o.Profile = &v -} - -// GetMode returns the Mode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetMode() ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE { - if o == nil || IsNil(o.Mode) { - var ret ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE - return ret - } - return *o.Mode -} - -// GetModeOk returns a tuple with the Mode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetModeOk() (*ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE, bool) { - if o == nil || IsNil(o.Mode) { - return nil, false - } - return o.Mode, true -} - -// HasMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasMode() bool { - if o != nil && !IsNil(o.Mode) { - return true - } - - return false -} - -// SetMode gets a reference to the given ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE and assigns it to the Mode field. -func (o *ProfileDetailedConfigurationRestApiDast) SetMode(v ENUMPROPERTIESCONFIGURATIONPROPERTIESFRONTENDDASTPROPERTIESMODE) { - o.Mode = &v -} - -// GetMaxDuration returns the MaxDuration field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetMaxDuration() float32 { - if o == nil || IsNil(o.MaxDuration) { - var ret float32 - return ret - } - return *o.MaxDuration -} - -// GetMaxDurationOk returns a tuple with the MaxDuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetMaxDurationOk() (*float32, bool) { - if o == nil || IsNil(o.MaxDuration) { - return nil, false - } - return o.MaxDuration, true -} - -// HasMaxDuration returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasMaxDuration() bool { - if o != nil && !IsNil(o.MaxDuration) { - return true - } - - return false -} - -// SetMaxDuration gets a reference to the given float32 and assigns it to the MaxDuration field. -func (o *ProfileDetailedConfigurationRestApiDast) SetMaxDuration(v float32) { - o.MaxDuration = &v -} - -// GetHotstart returns the Hotstart field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetHotstart() []string { - if o == nil || IsNil(o.Hotstart) { - var ret []string - return ret - } - return o.Hotstart -} - -// GetHotstartOk returns a tuple with the Hotstart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetHotstartOk() ([]string, bool) { - if o == nil || IsNil(o.Hotstart) { - return nil, false - } - return o.Hotstart, true -} - -// HasHotstart returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasHotstart() bool { - if o != nil && !IsNil(o.Hotstart) { - return true - } - - return false -} - -// SetHotstart gets a reference to the given []string and assigns it to the Hotstart field. -func (o *ProfileDetailedConfigurationRestApiDast) SetHotstart(v []string) { - o.Hotstart = v -} - -// GetHotstartOnly returns the HotstartOnly field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetHotstartOnly() bool { - if o == nil || IsNil(o.HotstartOnly) { - var ret bool - return ret - } - return *o.HotstartOnly -} - -// GetHotstartOnlyOk returns a tuple with the HotstartOnly field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetHotstartOnlyOk() (*bool, bool) { - if o == nil || IsNil(o.HotstartOnly) { - return nil, false - } - return o.HotstartOnly, true -} - -// HasHotstartOnly returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasHotstartOnly() bool { - if o != nil && !IsNil(o.HotstartOnly) { - return true - } - - return false -} - -// SetHotstartOnly gets a reference to the given bool and assigns it to the HotstartOnly field. -func (o *ProfileDetailedConfigurationRestApiDast) SetHotstartOnly(v bool) { - o.HotstartOnly = &v -} - -// GetScope returns the Scope field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetScope() ProfileDetailedConfigurationGraphqlApiDastScope { - if o == nil || IsNil(o.Scope) { - var ret ProfileDetailedConfigurationGraphqlApiDastScope - return ret - } - return *o.Scope -} - -// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetScopeOk() (*ProfileDetailedConfigurationGraphqlApiDastScope, bool) { - if o == nil || IsNil(o.Scope) { - return nil, false - } - return o.Scope, true -} - -// HasScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasScope() bool { - if o != nil && !IsNil(o.Scope) { - return true - } - - return false -} - -// SetScope gets a reference to the given ProfileDetailedConfigurationGraphqlApiDastScope and assigns it to the Scope field. -func (o *ProfileDetailedConfigurationRestApiDast) SetScope(v ProfileDetailedConfigurationGraphqlApiDastScope) { - o.Scope = &v -} - -// GetAdditionalSchemaS3Keys returns the AdditionalSchemaS3Keys field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationRestApiDast) GetAdditionalSchemaS3Keys() []string { - if o == nil || IsNil(o.AdditionalSchemaS3Keys) { - var ret []string - return ret - } - return o.AdditionalSchemaS3Keys -} - -// GetAdditionalSchemaS3KeysOk returns a tuple with the AdditionalSchemaS3Keys field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationRestApiDast) GetAdditionalSchemaS3KeysOk() ([]string, bool) { - if o == nil || IsNil(o.AdditionalSchemaS3Keys) { - return nil, false - } - return o.AdditionalSchemaS3Keys, true -} - -// HasAdditionalSchemaS3Keys returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationRestApiDast) HasAdditionalSchemaS3Keys() bool { - if o != nil && !IsNil(o.AdditionalSchemaS3Keys) { - return true - } - - return false -} - -// SetAdditionalSchemaS3Keys gets a reference to the given []string and assigns it to the AdditionalSchemaS3Keys field. -func (o *ProfileDetailedConfigurationRestApiDast) SetAdditionalSchemaS3Keys(v []string) { - o.AdditionalSchemaS3Keys = v -} - -func (o ProfileDetailedConfigurationRestApiDast) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationRestApiDast) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.SchemaS3Key) { - toSerialize["schema_s3_key"] = o.SchemaS3Key - } - if !IsNil(o.LocationId) { - toSerialize["location_id"] = o.LocationId - } - if !IsNil(o.Profile) { - toSerialize["profile"] = o.Profile - } - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode - } - if !IsNil(o.MaxDuration) { - toSerialize["max_duration"] = o.MaxDuration - } - if !IsNil(o.Hotstart) { - toSerialize["hotstart"] = o.Hotstart - } - if !IsNil(o.HotstartOnly) { - toSerialize["hotstart_only"] = o.HotstartOnly - } - if !IsNil(o.Scope) { - toSerialize["scope"] = o.Scope - } - if !IsNil(o.AdditionalSchemaS3Keys) { - toSerialize["additional_schema_s3_keys"] = o.AdditionalSchemaS3Keys - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationRestApiDast) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationRestApiDast := _ProfileDetailedConfigurationRestApiDast{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationRestApiDast) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationRestApiDast(varProfileDetailedConfigurationRestApiDast) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "schema_s3_key") - delete(additionalProperties, "location_id") - delete(additionalProperties, "profile") - delete(additionalProperties, "mode") - delete(additionalProperties, "max_duration") - delete(additionalProperties, "hotstart") - delete(additionalProperties, "hotstart_only") - delete(additionalProperties, "scope") - delete(additionalProperties, "additional_schema_s3_keys") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationRestApiDast struct { - value *ProfileDetailedConfigurationRestApiDast - isSet bool -} - -func (v NullableProfileDetailedConfigurationRestApiDast) Get() *ProfileDetailedConfigurationRestApiDast { - return v.value -} - -func (v *NullableProfileDetailedConfigurationRestApiDast) Set(val *ProfileDetailedConfigurationRestApiDast) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationRestApiDast) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationRestApiDast) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationRestApiDast(val *ProfileDetailedConfigurationRestApiDast) *NullableProfileDetailedConfigurationRestApiDast { - return &NullableProfileDetailedConfigurationRestApiDast{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationRestApiDast) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationRestApiDast) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope.go b/pkg/api/v3/model_profile_detailed_configuration_scope.go deleted file mode 100644 index f48d8723..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_scope.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationScope type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationScope{} - -// ProfileDetailedConfigurationScope struct for ProfileDetailedConfigurationScope -type ProfileDetailedConfigurationScope struct { - UseDefaults *bool `json:"use_defaults,omitempty"` - Allowlist []ProfileDetailedConfigurationScopeAllowlistInner `json:"allowlist,omitempty"` - Blocklist []ProfileDetailedConfigurationScopeAllowlistInner `json:"blocklist,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationScope ProfileDetailedConfigurationScope - -// NewProfileDetailedConfigurationScope instantiates a new ProfileDetailedConfigurationScope 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 NewProfileDetailedConfigurationScope() *ProfileDetailedConfigurationScope { - this := ProfileDetailedConfigurationScope{} - return &this -} - -// NewProfileDetailedConfigurationScopeWithDefaults instantiates a new ProfileDetailedConfigurationScope 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 NewProfileDetailedConfigurationScopeWithDefaults() *ProfileDetailedConfigurationScope { - this := ProfileDetailedConfigurationScope{} - return &this -} - -// GetUseDefaults returns the UseDefaults field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScope) GetUseDefaults() bool { - if o == nil || IsNil(o.UseDefaults) { - var ret bool - return ret - } - return *o.UseDefaults -} - -// GetUseDefaultsOk returns a tuple with the UseDefaults field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScope) GetUseDefaultsOk() (*bool, bool) { - if o == nil || IsNil(o.UseDefaults) { - return nil, false - } - return o.UseDefaults, true -} - -// HasUseDefaults returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScope) HasUseDefaults() bool { - if o != nil && !IsNil(o.UseDefaults) { - return true - } - - return false -} - -// SetUseDefaults gets a reference to the given bool and assigns it to the UseDefaults field. -func (o *ProfileDetailedConfigurationScope) SetUseDefaults(v bool) { - o.UseDefaults = &v -} - -// GetAllowlist returns the Allowlist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScope) GetAllowlist() []ProfileDetailedConfigurationScopeAllowlistInner { - if o == nil || IsNil(o.Allowlist) { - var ret []ProfileDetailedConfigurationScopeAllowlistInner - return ret - } - return o.Allowlist -} - -// GetAllowlistOk returns a tuple with the Allowlist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScope) GetAllowlistOk() ([]ProfileDetailedConfigurationScopeAllowlistInner, bool) { - if o == nil || IsNil(o.Allowlist) { - return nil, false - } - return o.Allowlist, true -} - -// HasAllowlist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScope) HasAllowlist() bool { - if o != nil && !IsNil(o.Allowlist) { - return true - } - - return false -} - -// SetAllowlist gets a reference to the given []ProfileDetailedConfigurationScopeAllowlistInner and assigns it to the Allowlist field. -func (o *ProfileDetailedConfigurationScope) SetAllowlist(v []ProfileDetailedConfigurationScopeAllowlistInner) { - o.Allowlist = v -} - -// GetBlocklist returns the Blocklist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationScope) GetBlocklist() []ProfileDetailedConfigurationScopeAllowlistInner { - if o == nil || IsNil(o.Blocklist) { - var ret []ProfileDetailedConfigurationScopeAllowlistInner - return ret - } - return o.Blocklist -} - -// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationScope) GetBlocklistOk() ([]ProfileDetailedConfigurationScopeAllowlistInner, bool) { - if o == nil || IsNil(o.Blocklist) { - return nil, false - } - return o.Blocklist, true -} - -// HasBlocklist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationScope) HasBlocklist() bool { - if o != nil && !IsNil(o.Blocklist) { - return true - } - - return false -} - -// SetBlocklist gets a reference to the given []ProfileDetailedConfigurationScopeAllowlistInner and assigns it to the Blocklist field. -func (o *ProfileDetailedConfigurationScope) SetBlocklist(v []ProfileDetailedConfigurationScopeAllowlistInner) { - o.Blocklist = v -} - -func (o ProfileDetailedConfigurationScope) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationScope) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.UseDefaults) { - toSerialize["use_defaults"] = o.UseDefaults - } - if !IsNil(o.Allowlist) { - toSerialize["allowlist"] = o.Allowlist - } - if !IsNil(o.Blocklist) { - toSerialize["blocklist"] = o.Blocklist - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationScope) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationScope := _ProfileDetailedConfigurationScope{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationScope) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationScope(varProfileDetailedConfigurationScope) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "use_defaults") - delete(additionalProperties, "allowlist") - delete(additionalProperties, "blocklist") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationScope struct { - value *ProfileDetailedConfigurationScope - isSet bool -} - -func (v NullableProfileDetailedConfigurationScope) Get() *ProfileDetailedConfigurationScope { - return v.value -} - -func (v *NullableProfileDetailedConfigurationScope) Set(val *ProfileDetailedConfigurationScope) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationScope) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationScope) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationScope(val *ProfileDetailedConfigurationScope) *NullableProfileDetailedConfigurationScope { - return &NullableProfileDetailedConfigurationScope{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationScope) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationScope) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner.go b/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner.go deleted file mode 100644 index e54f5bed..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_scope_allowlist_inner.go +++ /dev/null @@ -1,358 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" - "gopkg.in/validator.v2" -) - -// ProfileDetailedConfigurationScopeAllowlistInner - struct for ProfileDetailedConfigurationScopeAllowlistInner -type ProfileDetailedConfigurationScopeAllowlistInner struct { - ProfileDetailedConfigurationScopeAllowlistInnerOneOf *ProfileDetailedConfigurationScopeAllowlistInnerOneOf - ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 - ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOfAsProfileDetailedConfigurationScopeAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf wrapped in ProfileDetailedConfigurationScopeAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOfAsProfileDetailedConfigurationScopeAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf) ProfileDetailedConfigurationScopeAllowlistInner { - return ProfileDetailedConfigurationScopeAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf1AsProfileDetailedConfigurationScopeAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 wrapped in ProfileDetailedConfigurationScopeAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf1AsProfileDetailedConfigurationScopeAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) ProfileDetailedConfigurationScopeAllowlistInner { - return ProfileDetailedConfigurationScopeAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf1: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf2AsProfileDetailedConfigurationScopeAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 wrapped in ProfileDetailedConfigurationScopeAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf2AsProfileDetailedConfigurationScopeAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) ProfileDetailedConfigurationScopeAllowlistInner { - return ProfileDetailedConfigurationScopeAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf2: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf3AsProfileDetailedConfigurationScopeAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 wrapped in ProfileDetailedConfigurationScopeAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf3AsProfileDetailedConfigurationScopeAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) ProfileDetailedConfigurationScopeAllowlistInner { - return ProfileDetailedConfigurationScopeAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf3: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf4AsProfileDetailedConfigurationScopeAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 wrapped in ProfileDetailedConfigurationScopeAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf4AsProfileDetailedConfigurationScopeAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) ProfileDetailedConfigurationScopeAllowlistInner { - return ProfileDetailedConfigurationScopeAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf4: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf5AsProfileDetailedConfigurationScopeAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 wrapped in ProfileDetailedConfigurationScopeAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf5AsProfileDetailedConfigurationScopeAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) ProfileDetailedConfigurationScopeAllowlistInner { - return ProfileDetailedConfigurationScopeAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf5: v, - } -} - -// ProfileDetailedConfigurationScopeAllowlistInnerOneOf6AsProfileDetailedConfigurationScopeAllowlistInner is a convenience function that returns ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 wrapped in ProfileDetailedConfigurationScopeAllowlistInner -func ProfileDetailedConfigurationScopeAllowlistInnerOneOf6AsProfileDetailedConfigurationScopeAllowlistInner(v *ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) ProfileDetailedConfigurationScopeAllowlistInner { - return ProfileDetailedConfigurationScopeAllowlistInner{ - ProfileDetailedConfigurationScopeAllowlistInnerOneOf6: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ProfileDetailedConfigurationScopeAllowlistInner) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf1, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf1) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf2, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf2) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf3, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf3) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf4, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf4) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf5, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf5) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 = nil - } - - // try to unmarshal data into ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 - err = newStrictDecoder(data).Decode(&dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) - if err == nil { - jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf6, _ := json.Marshal(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) - if string(jsonProfileDetailedConfigurationScopeAllowlistInnerOneOf6) == "{}" { // empty struct - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 = nil - } else { - if err = validator.Validate(dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6); err != nil { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 = nil - } else { - match++ - } - } - } else { - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 = nil - dst.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 = nil - - return fmt.Errorf("data matches more than one schema in oneOf(ProfileDetailedConfigurationScopeAllowlistInner)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(ProfileDetailedConfigurationScopeAllowlistInner)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ProfileDetailedConfigurationScopeAllowlistInner) MarshalJSON() ([]byte, error) { - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5) - } - - if src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 != nil { - return json.Marshal(&src.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ProfileDetailedConfigurationScopeAllowlistInner) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 != nil { - return obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 - } - - // all schemas are nil - return nil -} - -// Get the actual instance value -func (obj ProfileDetailedConfigurationScopeAllowlistInner) GetActualInstanceValue() interface{} { - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf1 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf2 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf3 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf4 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf5 - } - - if obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 != nil { - return *obj.ProfileDetailedConfigurationScopeAllowlistInnerOneOf6 - } - - // all schemas are nil - return nil -} - -type NullableProfileDetailedConfigurationScopeAllowlistInner struct { - value *ProfileDetailedConfigurationScopeAllowlistInner - isSet bool -} - -func (v NullableProfileDetailedConfigurationScopeAllowlistInner) Get() *ProfileDetailedConfigurationScopeAllowlistInner { - return v.value -} - -func (v *NullableProfileDetailedConfigurationScopeAllowlistInner) Set(val *ProfileDetailedConfigurationScopeAllowlistInner) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationScopeAllowlistInner) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationScopeAllowlistInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationScopeAllowlistInner(val *ProfileDetailedConfigurationScopeAllowlistInner) *NullableProfileDetailedConfigurationScopeAllowlistInner { - return &NullableProfileDetailedConfigurationScopeAllowlistInner{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationScopeAllowlistInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationScopeAllowlistInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests.go deleted file mode 100644 index 0b7053e5..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests.go +++ /dev/null @@ -1,11216 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTests type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTests{} - -// ProfileDetailedConfigurationSecurityTests struct for ProfileDetailedConfigurationSecurityTests -type ProfileDetailedConfigurationSecurityTests struct { - HighNumberOfCustomScalars *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_custom_scalars,omitempty"` - HighNumberOfPci *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_pci,omitempty"` - HighNumberOfPii *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_pii,omitempty"` - HighNumberOfPhi *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_phi,omitempty"` - HighNumberOfSecrets *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars `json:"high_number_of_secrets,omitempty"` - AdminerDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"adminer_default_login,omitempty"` - ApiAgenticPentesting *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting `json:"api_agentic_pentesting,omitempty"` - AirflowConfigExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"airflow_config_exposure,omitempty"` - AirflowDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"airflow_default_login,omitempty"` - AirflowV3DefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"airflow_v3_default_login,omitempty"` - AlibabaCanalLeak *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"alibaba_canal_leak,omitempty"` - AnsibleConfigExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ansible_config_exposure,omitempty"` - ApacheApolloDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_apollo_default_login,omitempty"` - ApacheDruidLog4j *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_druid_log4j,omitempty"` - ApacheFlinkUnauthRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_flink_unauth_rce,omitempty"` - ApacheHertzbeatDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_hertzbeat_default_login,omitempty"` - ApacheNifiRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_nifi_rce,omitempty"` - ApacheOfbizLog4jRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_ofbiz_log4j_rce,omitempty"` - ApacheSolrFileRead *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_solr_file_read,omitempty"` - ApacheSolrLog4jRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_solr_log4j_rce,omitempty"` - ApacheSolrRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apache_solr_rce,omitempty"` - ApisixDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"apisix_default_login,omitempty"` - AppspecExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"appspec_exposure,omitempty"` - AppveyorConfigExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"appveyor_config_exposure,omitempty"` - ArbitraryTokenScope *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"arbitrary_token_scope,omitempty"` - ArcadePhpSqli *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"arcade_php_sqli,omitempty"` - AuthBypass *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"auth_bypass,omitempty"` - AwsAccessToken *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"aws_access_token,omitempty"` - AwsConfigExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"aws_config_exposure,omitempty"` - AwsDockerConfigExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"aws_docker_config_exposure,omitempty"` - AwstatsConfigExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"awstats_config_exposure,omitempty"` - AwstatsExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"awstats_exposure,omitempty"` - AzureTenantIdExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"azure_tenant_id_exposure,omitempty"` - BsphpInfo *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"bsphp_info,omitempty"` - Bola *ProfileDetailedConfigurationSecurityTestsBola `json:"bola,omitempty"` - CharacterLimit *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"character_limit,omitempty"` - CloudstackDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"cloudstack_default_login,omitempty"` - CodimdUnauthFileUpload *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"codimd_unauth_file_upload,omitempty"` - Command *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"command,omitempty"` - ConfigJsonExposureFuzz *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"config_json_exposure_fuzz,omitempty"` - ConsoleError *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"console_error,omitempty"` - ContentSecurityPolicy *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"content_security_policy,omitempty"` - Cors *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"cors,omitempty"` - CrashingPage *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"crashing_page,omitempty"` - Crlf *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"crlf,omitempty"` - DbgateUnauthRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dbgate_unauth_rce,omitempty"` - CsrfGetBased *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"csrf_get_based,omitempty"` - Cve202144228 *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"cve_2021_44228,omitempty"` - Cve202425723 *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"cve_2024_25723,omitempty"` - Cve202432651 *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"cve_2024_32651,omitempty"` - Cve202440711 *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"cve_2024_40711,omitempty"` - CsrfPostBased *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"csrf_post_based,omitempty"` - DebugMode *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"debug_mode,omitempty"` - DjangoSecretKey *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"django_secret_key,omitempty"` - DirectoryListing *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"directory_listing,omitempty"` - DolphinschedulerDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dolphinscheduler_default_login,omitempty"` - DorisDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"doris_default_login,omitempty"` - DirectoryTraversal *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"directory_traversal,omitempty"` - Dkim *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dkim,omitempty"` - Dmarc *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dmarc,omitempty"` - Loopback *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"loopback,omitempty"` - PermisiveSpf *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"permisive_spf,omitempty"` - DnsrecordTxtLength *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dnsrecord_txt_length,omitempty"` - DnsrecordTxtSensitive *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dnsrecord_txt_sensitive,omitempty"` - DnssecDisabled *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dnssec_disabled,omitempty"` - StoredXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"stored_xss,omitempty"` - DomainTakeover *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"domain_takeover,omitempty"` - Drupal7ElfinderRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"drupal7_elfinder_rce,omitempty"` - DrupalAvatarXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"drupal_avatar_xss,omitempty"` - DubboAdminDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dubbo_admin_default_login,omitempty"` - DuplicatedObject *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"duplicated_object,omitempty"` - EasyimageDownphpLfi *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"easyimage_downphp_lfi,omitempty"` - EcologyMysqlConfig *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ecology_mysql_config,omitempty"` - ElasticsearchDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"elasticsearch_default_login,omitempty"` - ErrorTypeInconsistency *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"error_type_inconsistency,omitempty"` - EsafenetMysqlFileread *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"esafenet_mysql_fileread,omitempty"` - ExcessiveBrowserPermissions *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"excessive_browser_permissions,omitempty"` - ExposedConfigFile *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_config_file,omitempty"` - ExposedMysqlConfig *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_mysql_config,omitempty"` - ExposedSettingsPhp *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_settings_php,omitempty"` - ExposedSourcemap *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_sourcemap,omitempty"` - ExposedSqlDumps *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_sql_dumps,omitempty"` - FileDisclosure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"file_disclosure,omitempty"` - FileInclusion *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"file_inclusion,omitempty"` - ForcedBrowsing *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"forced_browsing,omitempty"` - FrontendLocalstorageSensitiveData *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"frontend_localstorage_sensitive_data,omitempty"` - GraphqlAliasLimit *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_alias_limit,omitempty"` - GraphqlApq *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_apq,omitempty"` - GraphqlBatchLimit *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_batch_limit,omitempty"` - GraphqlCircularIntrospection *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_circular_introspection,omitempty"` - GraphqlContentType *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_content_type,omitempty"` - GraphqlDepthLimit *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_depth_limit,omitempty"` - GraphqlDirectiveOverload *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_directive_overload,omitempty"` - GraphqlExtensionDisclosure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_extension_disclosure,omitempty"` - GraphqlFieldDuplication *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_field_duplication,omitempty"` - GraphqlFieldLimit *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_field_limit,omitempty"` - GraphqlFieldSuggestion *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_field_suggestion,omitempty"` - GraphqlRecursiveFragment *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_recursive_fragment,omitempty"` - GraphqlResponseFormat *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_response_format,omitempty"` - GraphqlWidthLimit *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"graphql_width_limit,omitempty"` - GuessableCookieValue *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"guessable_cookie_value,omitempty"` - HeaderAccessControlAllowOrigin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_access_control_allow_origin,omitempty"` - HeaderCacheControl *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_cache_control,omitempty"` - HeaderContentSecurityPolicy *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_content_security_policy,omitempty"` - HeaderContentType *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_content_type,omitempty"` - HeaderLeak *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_leak,omitempty"` - HeaderSetCookie *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_set_cookie,omitempty"` - Headers *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"headers,omitempty"` - HeaderStrictTransportSecurity *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_strict_transport_security,omitempty"` - HeaderXContentTypeOptions *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_x_content_type_options,omitempty"` - HeaderXFrameOptions *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"header_x_frame_options,omitempty"` - HtmlInjection *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"html_injection,omitempty"` - HttpParamPollution *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"http_param_pollution,omitempty"` - IdeEnabled *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ide_enabled,omitempty"` - ImproperInput *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"improper_input,omitempty"` - ImproperInputStored *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"improper_input_stored,omitempty"` - IntrospectionEnabled *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"introspection_enabled,omitempty"` - InvalidAllof *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"invalid_allof,omitempty"` - InvalidParametersInPath *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"invalid_parameters_in_path,omitempty"` - InvalidPersistedQuery *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"invalid_persisted_query,omitempty"` - InvalidRefs *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"invalid_refs,omitempty"` - JwtAlgConfusion *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"jwt_alg_confusion,omitempty"` - JwtAlgNone *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"jwt_alg_none,omitempty"` - ExposedJwt *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"exposed_jwt,omitempty"` - JwtSignCheck *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"jwt_sign_check,omitempty"` - LargeJsonInput *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"large_json_input,omitempty"` - LeakingAuthentication *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"leaking_authentication,omitempty"` - LlmDetection *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_detection,omitempty"` - LlmExcessiveAgency *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_excessive_agency,omitempty"` - LlmInsecureOutputHandling *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_insecure_output_handling,omitempty"` - LlmInsecurePluginDesign *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_insecure_plugin_design,omitempty"` - LlmJailBreak *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_jail_break,omitempty"` - LlmModelDos *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_model_dos,omitempty"` - LlmModelTheft *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_model_theft,omitempty"` - LlmOverreliance *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_overreliance,omitempty"` - LlmPromptInjection *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_prompt_injection,omitempty"` - LlmSensitiveInformationDisclosure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_sensitive_information_disclosure,omitempty"` - LlmSupplyChainVulnerabilities *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_supply_chain_vulnerabilities,omitempty"` - LlmTrainingDataPoisoning *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"llm_training_data_poisoning,omitempty"` - Log4shell *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"log4shell,omitempty"` - MassAssignment *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"mass_assignment,omitempty"` - MismatchingPersistedQueriesAndSchema *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"mismatching_persisted_queries_and_schema,omitempty"` - Nosql *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nosql,omitempty"` - NosqlStored *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nosql_stored,omitempty"` - Nuclei *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nuclei,omitempty"` - OpenPort *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"open_port,omitempty"` - OpenRedirect *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"open_redirect,omitempty"` - PaginationMissing *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"pagination_missing,omitempty"` - PasswordFieldAutocompletion *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"password_field_autocompletion,omitempty"` - PermissiveJsonInput *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"permissive_json_input,omitempty"` - PositiveIntegerValidation *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"positive_integer_validation,omitempty"` - PotentialCve *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"potential_cve,omitempty"` - PrivateData *ProfileDetailedConfigurationSecurityTestsPrivateData `json:"private_data,omitempty"` - PrivateFields *ProfileDetailedConfigurationSecurityTestsPrivateData `json:"private_fields,omitempty"` - PrivateIp *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"private_ip,omitempty"` - PublicStateAlteringOperation *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"public_state_altering_operation,omitempty"` - ReflectedUrlParameter *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"reflected_url_parameter,omitempty"` - RequestSmuggling *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"request_smuggling,omitempty"` - RequestUrlOverride *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"request_url_override,omitempty"` - ResourceLimitingBypass *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"resource_limiting_bypass,omitempty"` - ResponseSize *ProfileDetailedConfigurationSecurityTestsResponseSize `json:"response_size,omitempty"` - ResponseTypeMismatch *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"response_type_mismatch,omitempty"` - SensitiveComments *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"sensitive_comments,omitempty"` - SensitiveEndpointBruteforce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"sensitive_endpoint_bruteforce,omitempty"` - ServerError *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"server_error,omitempty"` - SoftwareComponentLeak *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"software_component_leak,omitempty"` - SpringbootActuatorDump *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_dump,omitempty"` - SpringbootActuatorEnv *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_env,omitempty"` - SpringbootActuatorHeapdump *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_heapdump,omitempty"` - SpringbootActuatorLogfile *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_logfile,omitempty"` - SpringbootActuatorMappings *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_mappings,omitempty"` - SpringbootActuatorRestart *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_restart,omitempty"` - SpringbootActuatorShutdown *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_shutdown,omitempty"` - SpringbootActuatorTrace *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"springboot_actuator_trace,omitempty"` - Sql *ProfileDetailedConfigurationSecurityTestsSql `json:"sql,omitempty"` - SslCertificate *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ssl_certificate,omitempty"` - Ssl *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ssl,omitempty"` - SsrfHeader *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ssrf_header,omitempty"` - Ssrf *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ssrf,omitempty"` - Ssti *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ssti,omitempty"` - Stacktrace *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"stacktrace,omitempty"` - SubresourceIntegrityMissing *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"subresource_integrity_missing,omitempty"` - SwaggerRules *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"swagger_rules,omitempty"` - TenantIsolation *ProfileDetailedConfigurationSecurityTestsTenantIsolation `json:"tenant_isolation,omitempty"` - Timeout *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"timeout,omitempty"` - TlsConfigurationCipher *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"tls_configuration_cipher,omitempty"` - TlsConfigurationKey *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"tls_configuration_key,omitempty"` - TlsConfigurationProtocol *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"tls_configuration_protocol,omitempty"` - TlsConfigurationServerDefault *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"tls_configuration_server_default,omitempty"` - TlsConfigurationServerPref *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"tls_configuration_server_pref,omitempty"` - TlsConfigurationVuln *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"tls_configuration_vuln,omitempty"` - TypingMisconfiguration *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"typing_misconfiguration,omitempty"` - UndefinedObject *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"undefined_object,omitempty"` - UnhandledEndpoint *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"unhandled_endpoint,omitempty"` - UnreachableServer *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"unreachable_server,omitempty"` - UnsafeFunctionUse *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"unsafe_function_use,omitempty"` - WafBypass *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"waf_bypass,omitempty"` - WordpressOembedEndpointExposed *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_oembed_endpoint_exposed,omitempty"` - WordpressRdfFeedUserExposed *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_rdf_feed_user_exposed,omitempty"` - WordpressRestApiUsersExposed *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_rest_api_users_exposed,omitempty"` - WordpressAffiliatewpLog *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_affiliatewp_log,omitempty"` - WordpressDbBackup *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_db_backup,omitempty"` - WordpressDbBackupListing *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_db_backup_listing,omitempty"` - WordpressDbRepair *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_db_repair,omitempty"` - WordpressDebugLog *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_debug_log,omitempty"` - WordpressSocialMetricsTracker *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_social_metrics_tracker,omitempty"` - WordpressSsrfOembed *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_ssrf_oembed,omitempty"` - WordpressTotalUpkeepBackupDownload *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_total_upkeep_backup_download,omitempty"` - WordpressWordfenceLfi *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_wordfence_lfi,omitempty"` - WordpressWordfenceWafBypassXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_wordfence_waf_bypass_xss,omitempty"` - WordpressWordfenceXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_wordfence_xss,omitempty"` - WordpressWpCronExposed *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_wp_cron_exposed,omitempty"` - WordpressXmlrpcPhpExposed *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_xmlrpc_php_exposed,omitempty"` - WordpressZebraFormXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_zebra_form_xss,omitempty"` - WpInsertPhpXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wp_insert_php_xss,omitempty"` - WpPhpfreechatXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wp_phpfreechat_xss,omitempty"` - XssViaDomainTakeover *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"xss_via_domain_takeover,omitempty"` - Xxe *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"xxe,omitempty"` - ZombieObject *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"zombie_object,omitempty"` - FlaskSessionCookie *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"flask_session_cookie,omitempty"` - GeovisionGeowebserverLfiXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"geovision_geowebserver_lfi_xss,omitempty"` - GitExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"git_exposure,omitempty"` - GitlabWeakLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"gitlab_weak_login,omitempty"` - GlpiDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"glpi_default_login,omitempty"` - GrafanaDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"grafana_default_login,omitempty"` - InfobloxNetmriRailsCookieRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"infoblox_netmri_rails_cookie_rce,omitempty"` - IotawattAppExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"iotawatt_app_exposure,omitempty"` - JenkinsWeakPassword *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"jenkins_weak_password,omitempty"` - JolokiaTomcatCredsLeak *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"jolokia_tomcat_creds_leak,omitempty"` - JoomlaComBookingComponent *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_com_booking_component,omitempty"` - JoomlaComFabrikLfi *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_com_fabrik_lfi,omitempty"` - JoomlaDepartmentSqli *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_department_sqli,omitempty"` - JoomlaEasyshopLfi *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_easyshop_lfi,omitempty"` - JoomlaIpropertyXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_iproperty_xss,omitempty"` - JoomlaJlexXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_jlex_xss,omitempty"` - JoomlaJmarketXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_jmarket_xss,omitempty"` - JoomlaJoombriCareersXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_joombri_careers_xss,omitempty"` - JoomlaJvehiclesLfi *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_jvehicles_lfi,omitempty"` - JoomlaJvtwitterXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_jvtwitter_xss,omitempty"` - JoomlaMarvikshopSqli *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_marvikshop_sqli,omitempty"` - JoomlaMarvikshopXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_marvikshop_xss,omitempty"` - JoomlaSolidresXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"joomla_solidres_xss,omitempty"` - JupyterNotebookRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"jupyter_notebook_rce,omitempty"` - KafkaCenterDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"kafka_center_default_login,omitempty"` - KarafDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"karaf_default_login,omitempty"` - KkfileviewSsrf *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"kkfileview_ssrf,omitempty"` - KylinDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"kylin_default_login,omitempty"` - LuceeRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"lucee_rce,omitempty"` - MalwaredByobRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"malwared_byob_rce,omitempty"` - MdbDatabaseFile *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"mdb_database_file,omitempty"` - MinioDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"minio_default_login,omitempty"` - NginxMergeSlashesPathTraversal *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nginx_merge_slashes_path_traversal,omitempty"` - NginxModuleVtsXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nginx_module_vts_xss,omitempty"` - NginxProxyManagerDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nginx_proxy_manager_default_login,omitempty"` - NginxWebuiRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nginx_webui_rce,omitempty"` - NginxwebuiRuncmdRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nginxwebui_runcmd_rce,omitempty"` - NodeEcstaticInternalPath *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"node_ecstatic_internal_path,omitempty"` - NoderedDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"nodered_default_login,omitempty"` - OpenmediavaultDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"openmediavault_default_login,omitempty"` - OpensearchDashboardDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"opensearch_dashboard_default_login,omitempty"` - PhpTimeclockXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"php_timeclock_xss,omitempty"` - PhpXdebugRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"php_xdebug_rce,omitempty"` - PhpZerodiumBackdoorRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"php_zerodium_backdoor_rce,omitempty"` - PhpldapadminXss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"phpldapadmin_xss,omitempty"` - PhpmyadminDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"phpmyadmin_default_login,omitempty"` - PhpmyadminUnauthAccess *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"phpmyadmin_unauth_access,omitempty"` - PhpokSqli *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"phpok_sqli,omitempty"` - PhpwikiLfi *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"phpwiki_lfi,omitempty"` - PrivateKeyExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"private_key_exposure,omitempty"` - RabbitmqDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"rabbitmq_default_login,omitempty"` - Rails6Xss *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"rails6_xss,omitempty"` - RangerDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"ranger_default_login,omitempty"` - React2shell1 *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"react2shell_1,omitempty"` - React2shell2 *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"react2shell_2,omitempty"` - RowLevelSecurity *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"row_level_security,omitempty"` - RundeckDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"rundeck_default_login,omitempty"` - RustyJoomla *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"rusty_joomla,omitempty"` - SangforCphpRce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"sangfor_cphp_rce,omitempty"` - SecretTokenRb *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"secret_token_rb,omitempty"` - SeeyonCreatemysqlExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"seeyon_createmysql_exposure,omitempty"` - SeleniumExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"selenium_exposure,omitempty"` - SelfSignedSsl *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"self_signed_ssl,omitempty"` - SonarqubeDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"sonarqube_default_login,omitempty"` - Thinkphp6ArbitraryWrite *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp6_arbitrary_write,omitempty"` - Thinkphp2Rce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp_2_rce,omitempty"` - Thinkphp501Rce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp_501_rce,omitempty"` - Thinkphp5023Rce *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp_5023_rce,omitempty"` - Thinkphp509InformationDisclosure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"thinkphp_509_information_disclosure,omitempty"` - TomcatDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"tomcat_default_login,omitempty"` - TomcatExamplesLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"tomcat_examples_login,omitempty"` - TotolinkN150rtPasswordExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"totolink_n150rt_password_exposure,omitempty"` - TwigPhpSsti *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"twig_php_ssti,omitempty"` - TwonkyServerExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"twonky_server_exposure,omitempty"` - WeaverMysqlConfigExposure *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"weaver_mysql_config_exposure,omitempty"` - WebminDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"webmin_default_login,omitempty"` - WordpressAccessibleWpconfig *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"wordpress_accessible_wpconfig,omitempty"` - CompromisedSupplyChain *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"compromised_supply_chain,omitempty"` - ZabbixDefaultLogin *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"zabbix_default_login,omitempty"` - DnsRebindingAttack *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"dns_rebinding_attack,omitempty"` - SpoofableSpfRecordsPtrMechanism *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin `json:"spoofable_spf_records_ptr_mechanism,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTests ProfileDetailedConfigurationSecurityTests - -// NewProfileDetailedConfigurationSecurityTests instantiates a new ProfileDetailedConfigurationSecurityTests 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 NewProfileDetailedConfigurationSecurityTests() *ProfileDetailedConfigurationSecurityTests { - this := ProfileDetailedConfigurationSecurityTests{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTests 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 NewProfileDetailedConfigurationSecurityTestsWithDefaults() *ProfileDetailedConfigurationSecurityTests { - this := ProfileDetailedConfigurationSecurityTests{} - return &this -} - -// GetHighNumberOfCustomScalars returns the HighNumberOfCustomScalars field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfCustomScalars() ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - if o == nil || IsNil(o.HighNumberOfCustomScalars) { - var ret ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars - return ret - } - return *o.HighNumberOfCustomScalars -} - -// GetHighNumberOfCustomScalarsOk returns a tuple with the HighNumberOfCustomScalars field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfCustomScalarsOk() (*ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { - if o == nil || IsNil(o.HighNumberOfCustomScalars) { - return nil, false - } - return o.HighNumberOfCustomScalars, true -} - -// HasHighNumberOfCustomScalars returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHighNumberOfCustomScalars() bool { - if o != nil && !IsNil(o.HighNumberOfCustomScalars) { - return true - } - - return false -} - -// SetHighNumberOfCustomScalars gets a reference to the given ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfCustomScalars field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHighNumberOfCustomScalars(v ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) { - o.HighNumberOfCustomScalars = &v -} - -// GetHighNumberOfPci returns the HighNumberOfPci field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfPci() ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - if o == nil || IsNil(o.HighNumberOfPci) { - var ret ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars - return ret - } - return *o.HighNumberOfPci -} - -// GetHighNumberOfPciOk returns a tuple with the HighNumberOfPci field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfPciOk() (*ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { - if o == nil || IsNil(o.HighNumberOfPci) { - return nil, false - } - return o.HighNumberOfPci, true -} - -// HasHighNumberOfPci returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHighNumberOfPci() bool { - if o != nil && !IsNil(o.HighNumberOfPci) { - return true - } - - return false -} - -// SetHighNumberOfPci gets a reference to the given ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfPci field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHighNumberOfPci(v ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) { - o.HighNumberOfPci = &v -} - -// GetHighNumberOfPii returns the HighNumberOfPii field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfPii() ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - if o == nil || IsNil(o.HighNumberOfPii) { - var ret ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars - return ret - } - return *o.HighNumberOfPii -} - -// GetHighNumberOfPiiOk returns a tuple with the HighNumberOfPii field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfPiiOk() (*ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { - if o == nil || IsNil(o.HighNumberOfPii) { - return nil, false - } - return o.HighNumberOfPii, true -} - -// HasHighNumberOfPii returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHighNumberOfPii() bool { - if o != nil && !IsNil(o.HighNumberOfPii) { - return true - } - - return false -} - -// SetHighNumberOfPii gets a reference to the given ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfPii field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHighNumberOfPii(v ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) { - o.HighNumberOfPii = &v -} - -// GetHighNumberOfPhi returns the HighNumberOfPhi field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfPhi() ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - if o == nil || IsNil(o.HighNumberOfPhi) { - var ret ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars - return ret - } - return *o.HighNumberOfPhi -} - -// GetHighNumberOfPhiOk returns a tuple with the HighNumberOfPhi field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfPhiOk() (*ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { - if o == nil || IsNil(o.HighNumberOfPhi) { - return nil, false - } - return o.HighNumberOfPhi, true -} - -// HasHighNumberOfPhi returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHighNumberOfPhi() bool { - if o != nil && !IsNil(o.HighNumberOfPhi) { - return true - } - - return false -} - -// SetHighNumberOfPhi gets a reference to the given ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfPhi field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHighNumberOfPhi(v ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) { - o.HighNumberOfPhi = &v -} - -// GetHighNumberOfSecrets returns the HighNumberOfSecrets field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfSecrets() ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - if o == nil || IsNil(o.HighNumberOfSecrets) { - var ret ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars - return ret - } - return *o.HighNumberOfSecrets -} - -// GetHighNumberOfSecretsOk returns a tuple with the HighNumberOfSecrets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHighNumberOfSecretsOk() (*ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars, bool) { - if o == nil || IsNil(o.HighNumberOfSecrets) { - return nil, false - } - return o.HighNumberOfSecrets, true -} - -// HasHighNumberOfSecrets returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHighNumberOfSecrets() bool { - if o != nil && !IsNil(o.HighNumberOfSecrets) { - return true - } - - return false -} - -// SetHighNumberOfSecrets gets a reference to the given ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars and assigns it to the HighNumberOfSecrets field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHighNumberOfSecrets(v ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) { - o.HighNumberOfSecrets = &v -} - -// GetAdminerDefaultLogin returns the AdminerDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAdminerDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AdminerDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AdminerDefaultLogin -} - -// GetAdminerDefaultLoginOk returns a tuple with the AdminerDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAdminerDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AdminerDefaultLogin) { - return nil, false - } - return o.AdminerDefaultLogin, true -} - -// HasAdminerDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAdminerDefaultLogin() bool { - if o != nil && !IsNil(o.AdminerDefaultLogin) { - return true - } - - return false -} - -// SetAdminerDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AdminerDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAdminerDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AdminerDefaultLogin = &v -} - -// GetApiAgenticPentesting returns the ApiAgenticPentesting field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApiAgenticPentesting() ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting { - if o == nil || IsNil(o.ApiAgenticPentesting) { - var ret ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting - return ret - } - return *o.ApiAgenticPentesting -} - -// GetApiAgenticPentestingOk returns a tuple with the ApiAgenticPentesting field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApiAgenticPentestingOk() (*ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting, bool) { - if o == nil || IsNil(o.ApiAgenticPentesting) { - return nil, false - } - return o.ApiAgenticPentesting, true -} - -// HasApiAgenticPentesting returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApiAgenticPentesting() bool { - if o != nil && !IsNil(o.ApiAgenticPentesting) { - return true - } - - return false -} - -// SetApiAgenticPentesting gets a reference to the given ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting and assigns it to the ApiAgenticPentesting field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApiAgenticPentesting(v ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) { - o.ApiAgenticPentesting = &v -} - -// GetAirflowConfigExposure returns the AirflowConfigExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAirflowConfigExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AirflowConfigExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AirflowConfigExposure -} - -// GetAirflowConfigExposureOk returns a tuple with the AirflowConfigExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAirflowConfigExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AirflowConfigExposure) { - return nil, false - } - return o.AirflowConfigExposure, true -} - -// HasAirflowConfigExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAirflowConfigExposure() bool { - if o != nil && !IsNil(o.AirflowConfigExposure) { - return true - } - - return false -} - -// SetAirflowConfigExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AirflowConfigExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAirflowConfigExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AirflowConfigExposure = &v -} - -// GetAirflowDefaultLogin returns the AirflowDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAirflowDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AirflowDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AirflowDefaultLogin -} - -// GetAirflowDefaultLoginOk returns a tuple with the AirflowDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAirflowDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AirflowDefaultLogin) { - return nil, false - } - return o.AirflowDefaultLogin, true -} - -// HasAirflowDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAirflowDefaultLogin() bool { - if o != nil && !IsNil(o.AirflowDefaultLogin) { - return true - } - - return false -} - -// SetAirflowDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AirflowDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAirflowDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AirflowDefaultLogin = &v -} - -// GetAirflowV3DefaultLogin returns the AirflowV3DefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAirflowV3DefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AirflowV3DefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AirflowV3DefaultLogin -} - -// GetAirflowV3DefaultLoginOk returns a tuple with the AirflowV3DefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAirflowV3DefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AirflowV3DefaultLogin) { - return nil, false - } - return o.AirflowV3DefaultLogin, true -} - -// HasAirflowV3DefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAirflowV3DefaultLogin() bool { - if o != nil && !IsNil(o.AirflowV3DefaultLogin) { - return true - } - - return false -} - -// SetAirflowV3DefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AirflowV3DefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAirflowV3DefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AirflowV3DefaultLogin = &v -} - -// GetAlibabaCanalLeak returns the AlibabaCanalLeak field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAlibabaCanalLeak() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AlibabaCanalLeak) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AlibabaCanalLeak -} - -// GetAlibabaCanalLeakOk returns a tuple with the AlibabaCanalLeak field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAlibabaCanalLeakOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AlibabaCanalLeak) { - return nil, false - } - return o.AlibabaCanalLeak, true -} - -// HasAlibabaCanalLeak returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAlibabaCanalLeak() bool { - if o != nil && !IsNil(o.AlibabaCanalLeak) { - return true - } - - return false -} - -// SetAlibabaCanalLeak gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AlibabaCanalLeak field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAlibabaCanalLeak(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AlibabaCanalLeak = &v -} - -// GetAnsibleConfigExposure returns the AnsibleConfigExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAnsibleConfigExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AnsibleConfigExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AnsibleConfigExposure -} - -// GetAnsibleConfigExposureOk returns a tuple with the AnsibleConfigExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAnsibleConfigExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AnsibleConfigExposure) { - return nil, false - } - return o.AnsibleConfigExposure, true -} - -// HasAnsibleConfigExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAnsibleConfigExposure() bool { - if o != nil && !IsNil(o.AnsibleConfigExposure) { - return true - } - - return false -} - -// SetAnsibleConfigExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AnsibleConfigExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAnsibleConfigExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AnsibleConfigExposure = &v -} - -// GetApacheApolloDefaultLogin returns the ApacheApolloDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheApolloDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheApolloDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheApolloDefaultLogin -} - -// GetApacheApolloDefaultLoginOk returns a tuple with the ApacheApolloDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheApolloDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheApolloDefaultLogin) { - return nil, false - } - return o.ApacheApolloDefaultLogin, true -} - -// HasApacheApolloDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheApolloDefaultLogin() bool { - if o != nil && !IsNil(o.ApacheApolloDefaultLogin) { - return true - } - - return false -} - -// SetApacheApolloDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheApolloDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheApolloDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheApolloDefaultLogin = &v -} - -// GetApacheDruidLog4j returns the ApacheDruidLog4j field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheDruidLog4j() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheDruidLog4j) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheDruidLog4j -} - -// GetApacheDruidLog4jOk returns a tuple with the ApacheDruidLog4j field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheDruidLog4jOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheDruidLog4j) { - return nil, false - } - return o.ApacheDruidLog4j, true -} - -// HasApacheDruidLog4j returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheDruidLog4j() bool { - if o != nil && !IsNil(o.ApacheDruidLog4j) { - return true - } - - return false -} - -// SetApacheDruidLog4j gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheDruidLog4j field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheDruidLog4j(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheDruidLog4j = &v -} - -// GetApacheFlinkUnauthRce returns the ApacheFlinkUnauthRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheFlinkUnauthRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheFlinkUnauthRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheFlinkUnauthRce -} - -// GetApacheFlinkUnauthRceOk returns a tuple with the ApacheFlinkUnauthRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheFlinkUnauthRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheFlinkUnauthRce) { - return nil, false - } - return o.ApacheFlinkUnauthRce, true -} - -// HasApacheFlinkUnauthRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheFlinkUnauthRce() bool { - if o != nil && !IsNil(o.ApacheFlinkUnauthRce) { - return true - } - - return false -} - -// SetApacheFlinkUnauthRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheFlinkUnauthRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheFlinkUnauthRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheFlinkUnauthRce = &v -} - -// GetApacheHertzbeatDefaultLogin returns the ApacheHertzbeatDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheHertzbeatDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheHertzbeatDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheHertzbeatDefaultLogin -} - -// GetApacheHertzbeatDefaultLoginOk returns a tuple with the ApacheHertzbeatDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheHertzbeatDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheHertzbeatDefaultLogin) { - return nil, false - } - return o.ApacheHertzbeatDefaultLogin, true -} - -// HasApacheHertzbeatDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheHertzbeatDefaultLogin() bool { - if o != nil && !IsNil(o.ApacheHertzbeatDefaultLogin) { - return true - } - - return false -} - -// SetApacheHertzbeatDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheHertzbeatDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheHertzbeatDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheHertzbeatDefaultLogin = &v -} - -// GetApacheNifiRce returns the ApacheNifiRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheNifiRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheNifiRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheNifiRce -} - -// GetApacheNifiRceOk returns a tuple with the ApacheNifiRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheNifiRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheNifiRce) { - return nil, false - } - return o.ApacheNifiRce, true -} - -// HasApacheNifiRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheNifiRce() bool { - if o != nil && !IsNil(o.ApacheNifiRce) { - return true - } - - return false -} - -// SetApacheNifiRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheNifiRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheNifiRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheNifiRce = &v -} - -// GetApacheOfbizLog4jRce returns the ApacheOfbizLog4jRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheOfbizLog4jRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheOfbizLog4jRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheOfbizLog4jRce -} - -// GetApacheOfbizLog4jRceOk returns a tuple with the ApacheOfbizLog4jRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheOfbizLog4jRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheOfbizLog4jRce) { - return nil, false - } - return o.ApacheOfbizLog4jRce, true -} - -// HasApacheOfbizLog4jRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheOfbizLog4jRce() bool { - if o != nil && !IsNil(o.ApacheOfbizLog4jRce) { - return true - } - - return false -} - -// SetApacheOfbizLog4jRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheOfbizLog4jRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheOfbizLog4jRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheOfbizLog4jRce = &v -} - -// GetApacheSolrFileRead returns the ApacheSolrFileRead field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheSolrFileRead() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheSolrFileRead) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheSolrFileRead -} - -// GetApacheSolrFileReadOk returns a tuple with the ApacheSolrFileRead field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheSolrFileReadOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheSolrFileRead) { - return nil, false - } - return o.ApacheSolrFileRead, true -} - -// HasApacheSolrFileRead returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheSolrFileRead() bool { - if o != nil && !IsNil(o.ApacheSolrFileRead) { - return true - } - - return false -} - -// SetApacheSolrFileRead gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheSolrFileRead field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheSolrFileRead(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheSolrFileRead = &v -} - -// GetApacheSolrLog4jRce returns the ApacheSolrLog4jRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheSolrLog4jRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheSolrLog4jRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheSolrLog4jRce -} - -// GetApacheSolrLog4jRceOk returns a tuple with the ApacheSolrLog4jRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheSolrLog4jRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheSolrLog4jRce) { - return nil, false - } - return o.ApacheSolrLog4jRce, true -} - -// HasApacheSolrLog4jRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheSolrLog4jRce() bool { - if o != nil && !IsNil(o.ApacheSolrLog4jRce) { - return true - } - - return false -} - -// SetApacheSolrLog4jRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheSolrLog4jRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheSolrLog4jRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheSolrLog4jRce = &v -} - -// GetApacheSolrRce returns the ApacheSolrRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheSolrRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApacheSolrRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApacheSolrRce -} - -// GetApacheSolrRceOk returns a tuple with the ApacheSolrRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApacheSolrRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApacheSolrRce) { - return nil, false - } - return o.ApacheSolrRce, true -} - -// HasApacheSolrRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApacheSolrRce() bool { - if o != nil && !IsNil(o.ApacheSolrRce) { - return true - } - - return false -} - -// SetApacheSolrRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApacheSolrRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApacheSolrRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApacheSolrRce = &v -} - -// GetApisixDefaultLogin returns the ApisixDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetApisixDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ApisixDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ApisixDefaultLogin -} - -// GetApisixDefaultLoginOk returns a tuple with the ApisixDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetApisixDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ApisixDefaultLogin) { - return nil, false - } - return o.ApisixDefaultLogin, true -} - -// HasApisixDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasApisixDefaultLogin() bool { - if o != nil && !IsNil(o.ApisixDefaultLogin) { - return true - } - - return false -} - -// SetApisixDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ApisixDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetApisixDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ApisixDefaultLogin = &v -} - -// GetAppspecExposure returns the AppspecExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAppspecExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AppspecExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AppspecExposure -} - -// GetAppspecExposureOk returns a tuple with the AppspecExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAppspecExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AppspecExposure) { - return nil, false - } - return o.AppspecExposure, true -} - -// HasAppspecExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAppspecExposure() bool { - if o != nil && !IsNil(o.AppspecExposure) { - return true - } - - return false -} - -// SetAppspecExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AppspecExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAppspecExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AppspecExposure = &v -} - -// GetAppveyorConfigExposure returns the AppveyorConfigExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAppveyorConfigExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AppveyorConfigExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AppveyorConfigExposure -} - -// GetAppveyorConfigExposureOk returns a tuple with the AppveyorConfigExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAppveyorConfigExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AppveyorConfigExposure) { - return nil, false - } - return o.AppveyorConfigExposure, true -} - -// HasAppveyorConfigExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAppveyorConfigExposure() bool { - if o != nil && !IsNil(o.AppveyorConfigExposure) { - return true - } - - return false -} - -// SetAppveyorConfigExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AppveyorConfigExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAppveyorConfigExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AppveyorConfigExposure = &v -} - -// GetArbitraryTokenScope returns the ArbitraryTokenScope field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetArbitraryTokenScope() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ArbitraryTokenScope) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ArbitraryTokenScope -} - -// GetArbitraryTokenScopeOk returns a tuple with the ArbitraryTokenScope field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetArbitraryTokenScopeOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ArbitraryTokenScope) { - return nil, false - } - return o.ArbitraryTokenScope, true -} - -// HasArbitraryTokenScope returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasArbitraryTokenScope() bool { - if o != nil && !IsNil(o.ArbitraryTokenScope) { - return true - } - - return false -} - -// SetArbitraryTokenScope gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ArbitraryTokenScope field. -func (o *ProfileDetailedConfigurationSecurityTests) SetArbitraryTokenScope(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ArbitraryTokenScope = &v -} - -// GetArcadePhpSqli returns the ArcadePhpSqli field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetArcadePhpSqli() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ArcadePhpSqli) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ArcadePhpSqli -} - -// GetArcadePhpSqliOk returns a tuple with the ArcadePhpSqli field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetArcadePhpSqliOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ArcadePhpSqli) { - return nil, false - } - return o.ArcadePhpSqli, true -} - -// HasArcadePhpSqli returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasArcadePhpSqli() bool { - if o != nil && !IsNil(o.ArcadePhpSqli) { - return true - } - - return false -} - -// SetArcadePhpSqli gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ArcadePhpSqli field. -func (o *ProfileDetailedConfigurationSecurityTests) SetArcadePhpSqli(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ArcadePhpSqli = &v -} - -// GetAuthBypass returns the AuthBypass field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAuthBypass() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AuthBypass) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AuthBypass -} - -// GetAuthBypassOk returns a tuple with the AuthBypass field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAuthBypassOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AuthBypass) { - return nil, false - } - return o.AuthBypass, true -} - -// HasAuthBypass returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAuthBypass() bool { - if o != nil && !IsNil(o.AuthBypass) { - return true - } - - return false -} - -// SetAuthBypass gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AuthBypass field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAuthBypass(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AuthBypass = &v -} - -// GetAwsAccessToken returns the AwsAccessToken field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwsAccessToken() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AwsAccessToken) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AwsAccessToken -} - -// GetAwsAccessTokenOk returns a tuple with the AwsAccessToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwsAccessTokenOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AwsAccessToken) { - return nil, false - } - return o.AwsAccessToken, true -} - -// HasAwsAccessToken returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAwsAccessToken() bool { - if o != nil && !IsNil(o.AwsAccessToken) { - return true - } - - return false -} - -// SetAwsAccessToken gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwsAccessToken field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAwsAccessToken(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AwsAccessToken = &v -} - -// GetAwsConfigExposure returns the AwsConfigExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwsConfigExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AwsConfigExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AwsConfigExposure -} - -// GetAwsConfigExposureOk returns a tuple with the AwsConfigExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwsConfigExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AwsConfigExposure) { - return nil, false - } - return o.AwsConfigExposure, true -} - -// HasAwsConfigExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAwsConfigExposure() bool { - if o != nil && !IsNil(o.AwsConfigExposure) { - return true - } - - return false -} - -// SetAwsConfigExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwsConfigExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAwsConfigExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AwsConfigExposure = &v -} - -// GetAwsDockerConfigExposure returns the AwsDockerConfigExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwsDockerConfigExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AwsDockerConfigExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AwsDockerConfigExposure -} - -// GetAwsDockerConfigExposureOk returns a tuple with the AwsDockerConfigExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwsDockerConfigExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AwsDockerConfigExposure) { - return nil, false - } - return o.AwsDockerConfigExposure, true -} - -// HasAwsDockerConfigExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAwsDockerConfigExposure() bool { - if o != nil && !IsNil(o.AwsDockerConfigExposure) { - return true - } - - return false -} - -// SetAwsDockerConfigExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwsDockerConfigExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAwsDockerConfigExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AwsDockerConfigExposure = &v -} - -// GetAwstatsConfigExposure returns the AwstatsConfigExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwstatsConfigExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AwstatsConfigExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AwstatsConfigExposure -} - -// GetAwstatsConfigExposureOk returns a tuple with the AwstatsConfigExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwstatsConfigExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AwstatsConfigExposure) { - return nil, false - } - return o.AwstatsConfigExposure, true -} - -// HasAwstatsConfigExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAwstatsConfigExposure() bool { - if o != nil && !IsNil(o.AwstatsConfigExposure) { - return true - } - - return false -} - -// SetAwstatsConfigExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwstatsConfigExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAwstatsConfigExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AwstatsConfigExposure = &v -} - -// GetAwstatsExposure returns the AwstatsExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwstatsExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AwstatsExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AwstatsExposure -} - -// GetAwstatsExposureOk returns a tuple with the AwstatsExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAwstatsExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AwstatsExposure) { - return nil, false - } - return o.AwstatsExposure, true -} - -// HasAwstatsExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAwstatsExposure() bool { - if o != nil && !IsNil(o.AwstatsExposure) { - return true - } - - return false -} - -// SetAwstatsExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AwstatsExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAwstatsExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AwstatsExposure = &v -} - -// GetAzureTenantIdExposure returns the AzureTenantIdExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetAzureTenantIdExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.AzureTenantIdExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.AzureTenantIdExposure -} - -// GetAzureTenantIdExposureOk returns a tuple with the AzureTenantIdExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetAzureTenantIdExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.AzureTenantIdExposure) { - return nil, false - } - return o.AzureTenantIdExposure, true -} - -// HasAzureTenantIdExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasAzureTenantIdExposure() bool { - if o != nil && !IsNil(o.AzureTenantIdExposure) { - return true - } - - return false -} - -// SetAzureTenantIdExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the AzureTenantIdExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetAzureTenantIdExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.AzureTenantIdExposure = &v -} - -// GetBsphpInfo returns the BsphpInfo field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetBsphpInfo() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.BsphpInfo) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.BsphpInfo -} - -// GetBsphpInfoOk returns a tuple with the BsphpInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetBsphpInfoOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.BsphpInfo) { - return nil, false - } - return o.BsphpInfo, true -} - -// HasBsphpInfo returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasBsphpInfo() bool { - if o != nil && !IsNil(o.BsphpInfo) { - return true - } - - return false -} - -// SetBsphpInfo gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the BsphpInfo field. -func (o *ProfileDetailedConfigurationSecurityTests) SetBsphpInfo(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.BsphpInfo = &v -} - -// GetBola returns the Bola field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetBola() ProfileDetailedConfigurationSecurityTestsBola { - if o == nil || IsNil(o.Bola) { - var ret ProfileDetailedConfigurationSecurityTestsBola - return ret - } - return *o.Bola -} - -// GetBolaOk returns a tuple with the Bola field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetBolaOk() (*ProfileDetailedConfigurationSecurityTestsBola, bool) { - if o == nil || IsNil(o.Bola) { - return nil, false - } - return o.Bola, true -} - -// HasBola returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasBola() bool { - if o != nil && !IsNil(o.Bola) { - return true - } - - return false -} - -// SetBola gets a reference to the given ProfileDetailedConfigurationSecurityTestsBola and assigns it to the Bola field. -func (o *ProfileDetailedConfigurationSecurityTests) SetBola(v ProfileDetailedConfigurationSecurityTestsBola) { - o.Bola = &v -} - -// GetCharacterLimit returns the CharacterLimit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCharacterLimit() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.CharacterLimit) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.CharacterLimit -} - -// GetCharacterLimitOk returns a tuple with the CharacterLimit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCharacterLimitOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.CharacterLimit) { - return nil, false - } - return o.CharacterLimit, true -} - -// HasCharacterLimit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCharacterLimit() bool { - if o != nil && !IsNil(o.CharacterLimit) { - return true - } - - return false -} - -// SetCharacterLimit gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CharacterLimit field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCharacterLimit(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.CharacterLimit = &v -} - -// GetCloudstackDefaultLogin returns the CloudstackDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCloudstackDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.CloudstackDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.CloudstackDefaultLogin -} - -// GetCloudstackDefaultLoginOk returns a tuple with the CloudstackDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCloudstackDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.CloudstackDefaultLogin) { - return nil, false - } - return o.CloudstackDefaultLogin, true -} - -// HasCloudstackDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCloudstackDefaultLogin() bool { - if o != nil && !IsNil(o.CloudstackDefaultLogin) { - return true - } - - return false -} - -// SetCloudstackDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CloudstackDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCloudstackDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.CloudstackDefaultLogin = &v -} - -// GetCodimdUnauthFileUpload returns the CodimdUnauthFileUpload field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCodimdUnauthFileUpload() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.CodimdUnauthFileUpload) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.CodimdUnauthFileUpload -} - -// GetCodimdUnauthFileUploadOk returns a tuple with the CodimdUnauthFileUpload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCodimdUnauthFileUploadOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.CodimdUnauthFileUpload) { - return nil, false - } - return o.CodimdUnauthFileUpload, true -} - -// HasCodimdUnauthFileUpload returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCodimdUnauthFileUpload() bool { - if o != nil && !IsNil(o.CodimdUnauthFileUpload) { - return true - } - - return false -} - -// SetCodimdUnauthFileUpload gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CodimdUnauthFileUpload field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCodimdUnauthFileUpload(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.CodimdUnauthFileUpload = &v -} - -// GetCommand returns the Command field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCommand() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Command) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Command -} - -// GetCommandOk returns a tuple with the Command field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCommandOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Command) { - return nil, false - } - return o.Command, true -} - -// HasCommand returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCommand() bool { - if o != nil && !IsNil(o.Command) { - return true - } - - return false -} - -// SetCommand gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Command field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCommand(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Command = &v -} - -// GetConfigJsonExposureFuzz returns the ConfigJsonExposureFuzz field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetConfigJsonExposureFuzz() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ConfigJsonExposureFuzz) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ConfigJsonExposureFuzz -} - -// GetConfigJsonExposureFuzzOk returns a tuple with the ConfigJsonExposureFuzz field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetConfigJsonExposureFuzzOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ConfigJsonExposureFuzz) { - return nil, false - } - return o.ConfigJsonExposureFuzz, true -} - -// HasConfigJsonExposureFuzz returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasConfigJsonExposureFuzz() bool { - if o != nil && !IsNil(o.ConfigJsonExposureFuzz) { - return true - } - - return false -} - -// SetConfigJsonExposureFuzz gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ConfigJsonExposureFuzz field. -func (o *ProfileDetailedConfigurationSecurityTests) SetConfigJsonExposureFuzz(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ConfigJsonExposureFuzz = &v -} - -// GetConsoleError returns the ConsoleError field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetConsoleError() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ConsoleError) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ConsoleError -} - -// GetConsoleErrorOk returns a tuple with the ConsoleError field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetConsoleErrorOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ConsoleError) { - return nil, false - } - return o.ConsoleError, true -} - -// HasConsoleError returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasConsoleError() bool { - if o != nil && !IsNil(o.ConsoleError) { - return true - } - - return false -} - -// SetConsoleError gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ConsoleError field. -func (o *ProfileDetailedConfigurationSecurityTests) SetConsoleError(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ConsoleError = &v -} - -// GetContentSecurityPolicy returns the ContentSecurityPolicy field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetContentSecurityPolicy() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ContentSecurityPolicy) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ContentSecurityPolicy -} - -// GetContentSecurityPolicyOk returns a tuple with the ContentSecurityPolicy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetContentSecurityPolicyOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ContentSecurityPolicy) { - return nil, false - } - return o.ContentSecurityPolicy, true -} - -// HasContentSecurityPolicy returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasContentSecurityPolicy() bool { - if o != nil && !IsNil(o.ContentSecurityPolicy) { - return true - } - - return false -} - -// SetContentSecurityPolicy gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ContentSecurityPolicy field. -func (o *ProfileDetailedConfigurationSecurityTests) SetContentSecurityPolicy(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ContentSecurityPolicy = &v -} - -// GetCors returns the Cors field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCors() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Cors) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Cors -} - -// GetCorsOk returns a tuple with the Cors field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCorsOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Cors) { - return nil, false - } - return o.Cors, true -} - -// HasCors returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCors() bool { - if o != nil && !IsNil(o.Cors) { - return true - } - - return false -} - -// SetCors gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cors field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCors(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Cors = &v -} - -// GetCrashingPage returns the CrashingPage field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCrashingPage() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.CrashingPage) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.CrashingPage -} - -// GetCrashingPageOk returns a tuple with the CrashingPage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCrashingPageOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.CrashingPage) { - return nil, false - } - return o.CrashingPage, true -} - -// HasCrashingPage returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCrashingPage() bool { - if o != nil && !IsNil(o.CrashingPage) { - return true - } - - return false -} - -// SetCrashingPage gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CrashingPage field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCrashingPage(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.CrashingPage = &v -} - -// GetCrlf returns the Crlf field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCrlf() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Crlf) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Crlf -} - -// GetCrlfOk returns a tuple with the Crlf field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCrlfOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Crlf) { - return nil, false - } - return o.Crlf, true -} - -// HasCrlf returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCrlf() bool { - if o != nil && !IsNil(o.Crlf) { - return true - } - - return false -} - -// SetCrlf gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Crlf field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCrlf(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Crlf = &v -} - -// GetDbgateUnauthRce returns the DbgateUnauthRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDbgateUnauthRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DbgateUnauthRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DbgateUnauthRce -} - -// GetDbgateUnauthRceOk returns a tuple with the DbgateUnauthRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDbgateUnauthRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DbgateUnauthRce) { - return nil, false - } - return o.DbgateUnauthRce, true -} - -// HasDbgateUnauthRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDbgateUnauthRce() bool { - if o != nil && !IsNil(o.DbgateUnauthRce) { - return true - } - - return false -} - -// SetDbgateUnauthRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DbgateUnauthRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDbgateUnauthRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DbgateUnauthRce = &v -} - -// GetCsrfGetBased returns the CsrfGetBased field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCsrfGetBased() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.CsrfGetBased) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.CsrfGetBased -} - -// GetCsrfGetBasedOk returns a tuple with the CsrfGetBased field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCsrfGetBasedOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.CsrfGetBased) { - return nil, false - } - return o.CsrfGetBased, true -} - -// HasCsrfGetBased returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCsrfGetBased() bool { - if o != nil && !IsNil(o.CsrfGetBased) { - return true - } - - return false -} - -// SetCsrfGetBased gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CsrfGetBased field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCsrfGetBased(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.CsrfGetBased = &v -} - -// GetCve202144228 returns the Cve202144228 field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCve202144228() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Cve202144228) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Cve202144228 -} - -// GetCve202144228Ok returns a tuple with the Cve202144228 field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCve202144228Ok() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Cve202144228) { - return nil, false - } - return o.Cve202144228, true -} - -// HasCve202144228 returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCve202144228() bool { - if o != nil && !IsNil(o.Cve202144228) { - return true - } - - return false -} - -// SetCve202144228 gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cve202144228 field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCve202144228(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Cve202144228 = &v -} - -// GetCve202425723 returns the Cve202425723 field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCve202425723() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Cve202425723) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Cve202425723 -} - -// GetCve202425723Ok returns a tuple with the Cve202425723 field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCve202425723Ok() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Cve202425723) { - return nil, false - } - return o.Cve202425723, true -} - -// HasCve202425723 returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCve202425723() bool { - if o != nil && !IsNil(o.Cve202425723) { - return true - } - - return false -} - -// SetCve202425723 gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cve202425723 field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCve202425723(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Cve202425723 = &v -} - -// GetCve202432651 returns the Cve202432651 field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCve202432651() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Cve202432651) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Cve202432651 -} - -// GetCve202432651Ok returns a tuple with the Cve202432651 field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCve202432651Ok() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Cve202432651) { - return nil, false - } - return o.Cve202432651, true -} - -// HasCve202432651 returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCve202432651() bool { - if o != nil && !IsNil(o.Cve202432651) { - return true - } - - return false -} - -// SetCve202432651 gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cve202432651 field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCve202432651(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Cve202432651 = &v -} - -// GetCve202440711 returns the Cve202440711 field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCve202440711() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Cve202440711) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Cve202440711 -} - -// GetCve202440711Ok returns a tuple with the Cve202440711 field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCve202440711Ok() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Cve202440711) { - return nil, false - } - return o.Cve202440711, true -} - -// HasCve202440711 returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCve202440711() bool { - if o != nil && !IsNil(o.Cve202440711) { - return true - } - - return false -} - -// SetCve202440711 gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Cve202440711 field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCve202440711(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Cve202440711 = &v -} - -// GetCsrfPostBased returns the CsrfPostBased field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCsrfPostBased() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.CsrfPostBased) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.CsrfPostBased -} - -// GetCsrfPostBasedOk returns a tuple with the CsrfPostBased field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCsrfPostBasedOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.CsrfPostBased) { - return nil, false - } - return o.CsrfPostBased, true -} - -// HasCsrfPostBased returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCsrfPostBased() bool { - if o != nil && !IsNil(o.CsrfPostBased) { - return true - } - - return false -} - -// SetCsrfPostBased gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CsrfPostBased field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCsrfPostBased(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.CsrfPostBased = &v -} - -// GetDebugMode returns the DebugMode field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDebugMode() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DebugMode) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DebugMode -} - -// GetDebugModeOk returns a tuple with the DebugMode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDebugModeOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DebugMode) { - return nil, false - } - return o.DebugMode, true -} - -// HasDebugMode returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDebugMode() bool { - if o != nil && !IsNil(o.DebugMode) { - return true - } - - return false -} - -// SetDebugMode gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DebugMode field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDebugMode(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DebugMode = &v -} - -// GetDjangoSecretKey returns the DjangoSecretKey field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDjangoSecretKey() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DjangoSecretKey) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DjangoSecretKey -} - -// GetDjangoSecretKeyOk returns a tuple with the DjangoSecretKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDjangoSecretKeyOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DjangoSecretKey) { - return nil, false - } - return o.DjangoSecretKey, true -} - -// HasDjangoSecretKey returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDjangoSecretKey() bool { - if o != nil && !IsNil(o.DjangoSecretKey) { - return true - } - - return false -} - -// SetDjangoSecretKey gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DjangoSecretKey field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDjangoSecretKey(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DjangoSecretKey = &v -} - -// GetDirectoryListing returns the DirectoryListing field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDirectoryListing() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DirectoryListing) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DirectoryListing -} - -// GetDirectoryListingOk returns a tuple with the DirectoryListing field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDirectoryListingOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DirectoryListing) { - return nil, false - } - return o.DirectoryListing, true -} - -// HasDirectoryListing returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDirectoryListing() bool { - if o != nil && !IsNil(o.DirectoryListing) { - return true - } - - return false -} - -// SetDirectoryListing gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DirectoryListing field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDirectoryListing(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DirectoryListing = &v -} - -// GetDolphinschedulerDefaultLogin returns the DolphinschedulerDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDolphinschedulerDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DolphinschedulerDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DolphinschedulerDefaultLogin -} - -// GetDolphinschedulerDefaultLoginOk returns a tuple with the DolphinschedulerDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDolphinschedulerDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DolphinschedulerDefaultLogin) { - return nil, false - } - return o.DolphinschedulerDefaultLogin, true -} - -// HasDolphinschedulerDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDolphinschedulerDefaultLogin() bool { - if o != nil && !IsNil(o.DolphinschedulerDefaultLogin) { - return true - } - - return false -} - -// SetDolphinschedulerDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DolphinschedulerDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDolphinschedulerDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DolphinschedulerDefaultLogin = &v -} - -// GetDorisDefaultLogin returns the DorisDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDorisDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DorisDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DorisDefaultLogin -} - -// GetDorisDefaultLoginOk returns a tuple with the DorisDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDorisDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DorisDefaultLogin) { - return nil, false - } - return o.DorisDefaultLogin, true -} - -// HasDorisDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDorisDefaultLogin() bool { - if o != nil && !IsNil(o.DorisDefaultLogin) { - return true - } - - return false -} - -// SetDorisDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DorisDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDorisDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DorisDefaultLogin = &v -} - -// GetDirectoryTraversal returns the DirectoryTraversal field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDirectoryTraversal() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DirectoryTraversal) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DirectoryTraversal -} - -// GetDirectoryTraversalOk returns a tuple with the DirectoryTraversal field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDirectoryTraversalOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DirectoryTraversal) { - return nil, false - } - return o.DirectoryTraversal, true -} - -// HasDirectoryTraversal returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDirectoryTraversal() bool { - if o != nil && !IsNil(o.DirectoryTraversal) { - return true - } - - return false -} - -// SetDirectoryTraversal gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DirectoryTraversal field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDirectoryTraversal(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DirectoryTraversal = &v -} - -// GetDkim returns the Dkim field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDkim() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Dkim) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Dkim -} - -// GetDkimOk returns a tuple with the Dkim field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDkimOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Dkim) { - return nil, false - } - return o.Dkim, true -} - -// HasDkim returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDkim() bool { - if o != nil && !IsNil(o.Dkim) { - return true - } - - return false -} - -// SetDkim gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Dkim field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDkim(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Dkim = &v -} - -// GetDmarc returns the Dmarc field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDmarc() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Dmarc) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Dmarc -} - -// GetDmarcOk returns a tuple with the Dmarc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDmarcOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Dmarc) { - return nil, false - } - return o.Dmarc, true -} - -// HasDmarc returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDmarc() bool { - if o != nil && !IsNil(o.Dmarc) { - return true - } - - return false -} - -// SetDmarc gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Dmarc field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDmarc(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Dmarc = &v -} - -// GetLoopback returns the Loopback field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLoopback() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Loopback) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Loopback -} - -// GetLoopbackOk returns a tuple with the Loopback field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLoopbackOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Loopback) { - return nil, false - } - return o.Loopback, true -} - -// HasLoopback returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLoopback() bool { - if o != nil && !IsNil(o.Loopback) { - return true - } - - return false -} - -// SetLoopback gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Loopback field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLoopback(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Loopback = &v -} - -// GetPermisiveSpf returns the PermisiveSpf field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPermisiveSpf() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PermisiveSpf) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PermisiveSpf -} - -// GetPermisiveSpfOk returns a tuple with the PermisiveSpf field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPermisiveSpfOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PermisiveSpf) { - return nil, false - } - return o.PermisiveSpf, true -} - -// HasPermisiveSpf returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPermisiveSpf() bool { - if o != nil && !IsNil(o.PermisiveSpf) { - return true - } - - return false -} - -// SetPermisiveSpf gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PermisiveSpf field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPermisiveSpf(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PermisiveSpf = &v -} - -// GetDnsrecordTxtLength returns the DnsrecordTxtLength field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDnsrecordTxtLength() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DnsrecordTxtLength) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DnsrecordTxtLength -} - -// GetDnsrecordTxtLengthOk returns a tuple with the DnsrecordTxtLength field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDnsrecordTxtLengthOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DnsrecordTxtLength) { - return nil, false - } - return o.DnsrecordTxtLength, true -} - -// HasDnsrecordTxtLength returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDnsrecordTxtLength() bool { - if o != nil && !IsNil(o.DnsrecordTxtLength) { - return true - } - - return false -} - -// SetDnsrecordTxtLength gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnsrecordTxtLength field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDnsrecordTxtLength(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DnsrecordTxtLength = &v -} - -// GetDnsrecordTxtSensitive returns the DnsrecordTxtSensitive field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDnsrecordTxtSensitive() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DnsrecordTxtSensitive) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DnsrecordTxtSensitive -} - -// GetDnsrecordTxtSensitiveOk returns a tuple with the DnsrecordTxtSensitive field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDnsrecordTxtSensitiveOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DnsrecordTxtSensitive) { - return nil, false - } - return o.DnsrecordTxtSensitive, true -} - -// HasDnsrecordTxtSensitive returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDnsrecordTxtSensitive() bool { - if o != nil && !IsNil(o.DnsrecordTxtSensitive) { - return true - } - - return false -} - -// SetDnsrecordTxtSensitive gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnsrecordTxtSensitive field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDnsrecordTxtSensitive(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DnsrecordTxtSensitive = &v -} - -// GetDnssecDisabled returns the DnssecDisabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDnssecDisabled() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DnssecDisabled) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DnssecDisabled -} - -// GetDnssecDisabledOk returns a tuple with the DnssecDisabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDnssecDisabledOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DnssecDisabled) { - return nil, false - } - return o.DnssecDisabled, true -} - -// HasDnssecDisabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDnssecDisabled() bool { - if o != nil && !IsNil(o.DnssecDisabled) { - return true - } - - return false -} - -// SetDnssecDisabled gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnssecDisabled field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDnssecDisabled(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DnssecDisabled = &v -} - -// GetStoredXss returns the StoredXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetStoredXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.StoredXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.StoredXss -} - -// GetStoredXssOk returns a tuple with the StoredXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetStoredXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.StoredXss) { - return nil, false - } - return o.StoredXss, true -} - -// HasStoredXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasStoredXss() bool { - if o != nil && !IsNil(o.StoredXss) { - return true - } - - return false -} - -// SetStoredXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the StoredXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetStoredXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.StoredXss = &v -} - -// GetDomainTakeover returns the DomainTakeover field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDomainTakeover() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DomainTakeover) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DomainTakeover -} - -// GetDomainTakeoverOk returns a tuple with the DomainTakeover field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDomainTakeoverOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DomainTakeover) { - return nil, false - } - return o.DomainTakeover, true -} - -// HasDomainTakeover returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDomainTakeover() bool { - if o != nil && !IsNil(o.DomainTakeover) { - return true - } - - return false -} - -// SetDomainTakeover gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DomainTakeover field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDomainTakeover(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DomainTakeover = &v -} - -// GetDrupal7ElfinderRce returns the Drupal7ElfinderRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDrupal7ElfinderRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Drupal7ElfinderRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Drupal7ElfinderRce -} - -// GetDrupal7ElfinderRceOk returns a tuple with the Drupal7ElfinderRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDrupal7ElfinderRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Drupal7ElfinderRce) { - return nil, false - } - return o.Drupal7ElfinderRce, true -} - -// HasDrupal7ElfinderRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDrupal7ElfinderRce() bool { - if o != nil && !IsNil(o.Drupal7ElfinderRce) { - return true - } - - return false -} - -// SetDrupal7ElfinderRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Drupal7ElfinderRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDrupal7ElfinderRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Drupal7ElfinderRce = &v -} - -// GetDrupalAvatarXss returns the DrupalAvatarXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDrupalAvatarXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DrupalAvatarXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DrupalAvatarXss -} - -// GetDrupalAvatarXssOk returns a tuple with the DrupalAvatarXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDrupalAvatarXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DrupalAvatarXss) { - return nil, false - } - return o.DrupalAvatarXss, true -} - -// HasDrupalAvatarXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDrupalAvatarXss() bool { - if o != nil && !IsNil(o.DrupalAvatarXss) { - return true - } - - return false -} - -// SetDrupalAvatarXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DrupalAvatarXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDrupalAvatarXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DrupalAvatarXss = &v -} - -// GetDubboAdminDefaultLogin returns the DubboAdminDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDubboAdminDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DubboAdminDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DubboAdminDefaultLogin -} - -// GetDubboAdminDefaultLoginOk returns a tuple with the DubboAdminDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDubboAdminDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DubboAdminDefaultLogin) { - return nil, false - } - return o.DubboAdminDefaultLogin, true -} - -// HasDubboAdminDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDubboAdminDefaultLogin() bool { - if o != nil && !IsNil(o.DubboAdminDefaultLogin) { - return true - } - - return false -} - -// SetDubboAdminDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DubboAdminDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDubboAdminDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DubboAdminDefaultLogin = &v -} - -// GetDuplicatedObject returns the DuplicatedObject field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDuplicatedObject() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DuplicatedObject) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DuplicatedObject -} - -// GetDuplicatedObjectOk returns a tuple with the DuplicatedObject field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDuplicatedObjectOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DuplicatedObject) { - return nil, false - } - return o.DuplicatedObject, true -} - -// HasDuplicatedObject returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDuplicatedObject() bool { - if o != nil && !IsNil(o.DuplicatedObject) { - return true - } - - return false -} - -// SetDuplicatedObject gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DuplicatedObject field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDuplicatedObject(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DuplicatedObject = &v -} - -// GetEasyimageDownphpLfi returns the EasyimageDownphpLfi field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetEasyimageDownphpLfi() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.EasyimageDownphpLfi) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.EasyimageDownphpLfi -} - -// GetEasyimageDownphpLfiOk returns a tuple with the EasyimageDownphpLfi field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetEasyimageDownphpLfiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.EasyimageDownphpLfi) { - return nil, false - } - return o.EasyimageDownphpLfi, true -} - -// HasEasyimageDownphpLfi returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasEasyimageDownphpLfi() bool { - if o != nil && !IsNil(o.EasyimageDownphpLfi) { - return true - } - - return false -} - -// SetEasyimageDownphpLfi gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the EasyimageDownphpLfi field. -func (o *ProfileDetailedConfigurationSecurityTests) SetEasyimageDownphpLfi(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.EasyimageDownphpLfi = &v -} - -// GetEcologyMysqlConfig returns the EcologyMysqlConfig field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetEcologyMysqlConfig() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.EcologyMysqlConfig) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.EcologyMysqlConfig -} - -// GetEcologyMysqlConfigOk returns a tuple with the EcologyMysqlConfig field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetEcologyMysqlConfigOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.EcologyMysqlConfig) { - return nil, false - } - return o.EcologyMysqlConfig, true -} - -// HasEcologyMysqlConfig returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasEcologyMysqlConfig() bool { - if o != nil && !IsNil(o.EcologyMysqlConfig) { - return true - } - - return false -} - -// SetEcologyMysqlConfig gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the EcologyMysqlConfig field. -func (o *ProfileDetailedConfigurationSecurityTests) SetEcologyMysqlConfig(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.EcologyMysqlConfig = &v -} - -// GetElasticsearchDefaultLogin returns the ElasticsearchDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetElasticsearchDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ElasticsearchDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ElasticsearchDefaultLogin -} - -// GetElasticsearchDefaultLoginOk returns a tuple with the ElasticsearchDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetElasticsearchDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ElasticsearchDefaultLogin) { - return nil, false - } - return o.ElasticsearchDefaultLogin, true -} - -// HasElasticsearchDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasElasticsearchDefaultLogin() bool { - if o != nil && !IsNil(o.ElasticsearchDefaultLogin) { - return true - } - - return false -} - -// SetElasticsearchDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ElasticsearchDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetElasticsearchDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ElasticsearchDefaultLogin = &v -} - -// GetErrorTypeInconsistency returns the ErrorTypeInconsistency field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetErrorTypeInconsistency() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ErrorTypeInconsistency) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ErrorTypeInconsistency -} - -// GetErrorTypeInconsistencyOk returns a tuple with the ErrorTypeInconsistency field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetErrorTypeInconsistencyOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ErrorTypeInconsistency) { - return nil, false - } - return o.ErrorTypeInconsistency, true -} - -// HasErrorTypeInconsistency returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasErrorTypeInconsistency() bool { - if o != nil && !IsNil(o.ErrorTypeInconsistency) { - return true - } - - return false -} - -// SetErrorTypeInconsistency gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ErrorTypeInconsistency field. -func (o *ProfileDetailedConfigurationSecurityTests) SetErrorTypeInconsistency(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ErrorTypeInconsistency = &v -} - -// GetEsafenetMysqlFileread returns the EsafenetMysqlFileread field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetEsafenetMysqlFileread() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.EsafenetMysqlFileread) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.EsafenetMysqlFileread -} - -// GetEsafenetMysqlFilereadOk returns a tuple with the EsafenetMysqlFileread field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetEsafenetMysqlFilereadOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.EsafenetMysqlFileread) { - return nil, false - } - return o.EsafenetMysqlFileread, true -} - -// HasEsafenetMysqlFileread returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasEsafenetMysqlFileread() bool { - if o != nil && !IsNil(o.EsafenetMysqlFileread) { - return true - } - - return false -} - -// SetEsafenetMysqlFileread gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the EsafenetMysqlFileread field. -func (o *ProfileDetailedConfigurationSecurityTests) SetEsafenetMysqlFileread(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.EsafenetMysqlFileread = &v -} - -// GetExcessiveBrowserPermissions returns the ExcessiveBrowserPermissions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetExcessiveBrowserPermissions() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ExcessiveBrowserPermissions) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ExcessiveBrowserPermissions -} - -// GetExcessiveBrowserPermissionsOk returns a tuple with the ExcessiveBrowserPermissions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetExcessiveBrowserPermissionsOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ExcessiveBrowserPermissions) { - return nil, false - } - return o.ExcessiveBrowserPermissions, true -} - -// HasExcessiveBrowserPermissions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasExcessiveBrowserPermissions() bool { - if o != nil && !IsNil(o.ExcessiveBrowserPermissions) { - return true - } - - return false -} - -// SetExcessiveBrowserPermissions gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExcessiveBrowserPermissions field. -func (o *ProfileDetailedConfigurationSecurityTests) SetExcessiveBrowserPermissions(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ExcessiveBrowserPermissions = &v -} - -// GetExposedConfigFile returns the ExposedConfigFile field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedConfigFile() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ExposedConfigFile) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ExposedConfigFile -} - -// GetExposedConfigFileOk returns a tuple with the ExposedConfigFile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedConfigFileOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ExposedConfigFile) { - return nil, false - } - return o.ExposedConfigFile, true -} - -// HasExposedConfigFile returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasExposedConfigFile() bool { - if o != nil && !IsNil(o.ExposedConfigFile) { - return true - } - - return false -} - -// SetExposedConfigFile gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedConfigFile field. -func (o *ProfileDetailedConfigurationSecurityTests) SetExposedConfigFile(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ExposedConfigFile = &v -} - -// GetExposedMysqlConfig returns the ExposedMysqlConfig field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedMysqlConfig() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ExposedMysqlConfig) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ExposedMysqlConfig -} - -// GetExposedMysqlConfigOk returns a tuple with the ExposedMysqlConfig field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedMysqlConfigOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ExposedMysqlConfig) { - return nil, false - } - return o.ExposedMysqlConfig, true -} - -// HasExposedMysqlConfig returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasExposedMysqlConfig() bool { - if o != nil && !IsNil(o.ExposedMysqlConfig) { - return true - } - - return false -} - -// SetExposedMysqlConfig gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedMysqlConfig field. -func (o *ProfileDetailedConfigurationSecurityTests) SetExposedMysqlConfig(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ExposedMysqlConfig = &v -} - -// GetExposedSettingsPhp returns the ExposedSettingsPhp field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedSettingsPhp() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ExposedSettingsPhp) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ExposedSettingsPhp -} - -// GetExposedSettingsPhpOk returns a tuple with the ExposedSettingsPhp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedSettingsPhpOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ExposedSettingsPhp) { - return nil, false - } - return o.ExposedSettingsPhp, true -} - -// HasExposedSettingsPhp returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasExposedSettingsPhp() bool { - if o != nil && !IsNil(o.ExposedSettingsPhp) { - return true - } - - return false -} - -// SetExposedSettingsPhp gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedSettingsPhp field. -func (o *ProfileDetailedConfigurationSecurityTests) SetExposedSettingsPhp(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ExposedSettingsPhp = &v -} - -// GetExposedSourcemap returns the ExposedSourcemap field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedSourcemap() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ExposedSourcemap) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ExposedSourcemap -} - -// GetExposedSourcemapOk returns a tuple with the ExposedSourcemap field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedSourcemapOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ExposedSourcemap) { - return nil, false - } - return o.ExposedSourcemap, true -} - -// HasExposedSourcemap returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasExposedSourcemap() bool { - if o != nil && !IsNil(o.ExposedSourcemap) { - return true - } - - return false -} - -// SetExposedSourcemap gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedSourcemap field. -func (o *ProfileDetailedConfigurationSecurityTests) SetExposedSourcemap(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ExposedSourcemap = &v -} - -// GetExposedSqlDumps returns the ExposedSqlDumps field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedSqlDumps() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ExposedSqlDumps) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ExposedSqlDumps -} - -// GetExposedSqlDumpsOk returns a tuple with the ExposedSqlDumps field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedSqlDumpsOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ExposedSqlDumps) { - return nil, false - } - return o.ExposedSqlDumps, true -} - -// HasExposedSqlDumps returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasExposedSqlDumps() bool { - if o != nil && !IsNil(o.ExposedSqlDumps) { - return true - } - - return false -} - -// SetExposedSqlDumps gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedSqlDumps field. -func (o *ProfileDetailedConfigurationSecurityTests) SetExposedSqlDumps(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ExposedSqlDumps = &v -} - -// GetFileDisclosure returns the FileDisclosure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetFileDisclosure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.FileDisclosure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.FileDisclosure -} - -// GetFileDisclosureOk returns a tuple with the FileDisclosure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetFileDisclosureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.FileDisclosure) { - return nil, false - } - return o.FileDisclosure, true -} - -// HasFileDisclosure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasFileDisclosure() bool { - if o != nil && !IsNil(o.FileDisclosure) { - return true - } - - return false -} - -// SetFileDisclosure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FileDisclosure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetFileDisclosure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.FileDisclosure = &v -} - -// GetFileInclusion returns the FileInclusion field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetFileInclusion() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.FileInclusion) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.FileInclusion -} - -// GetFileInclusionOk returns a tuple with the FileInclusion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetFileInclusionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.FileInclusion) { - return nil, false - } - return o.FileInclusion, true -} - -// HasFileInclusion returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasFileInclusion() bool { - if o != nil && !IsNil(o.FileInclusion) { - return true - } - - return false -} - -// SetFileInclusion gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FileInclusion field. -func (o *ProfileDetailedConfigurationSecurityTests) SetFileInclusion(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.FileInclusion = &v -} - -// GetForcedBrowsing returns the ForcedBrowsing field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetForcedBrowsing() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ForcedBrowsing) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ForcedBrowsing -} - -// GetForcedBrowsingOk returns a tuple with the ForcedBrowsing field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetForcedBrowsingOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ForcedBrowsing) { - return nil, false - } - return o.ForcedBrowsing, true -} - -// HasForcedBrowsing returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasForcedBrowsing() bool { - if o != nil && !IsNil(o.ForcedBrowsing) { - return true - } - - return false -} - -// SetForcedBrowsing gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ForcedBrowsing field. -func (o *ProfileDetailedConfigurationSecurityTests) SetForcedBrowsing(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ForcedBrowsing = &v -} - -// GetFrontendLocalstorageSensitiveData returns the FrontendLocalstorageSensitiveData field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetFrontendLocalstorageSensitiveData() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.FrontendLocalstorageSensitiveData) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.FrontendLocalstorageSensitiveData -} - -// GetFrontendLocalstorageSensitiveDataOk returns a tuple with the FrontendLocalstorageSensitiveData field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetFrontendLocalstorageSensitiveDataOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.FrontendLocalstorageSensitiveData) { - return nil, false - } - return o.FrontendLocalstorageSensitiveData, true -} - -// HasFrontendLocalstorageSensitiveData returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasFrontendLocalstorageSensitiveData() bool { - if o != nil && !IsNil(o.FrontendLocalstorageSensitiveData) { - return true - } - - return false -} - -// SetFrontendLocalstorageSensitiveData gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FrontendLocalstorageSensitiveData field. -func (o *ProfileDetailedConfigurationSecurityTests) SetFrontendLocalstorageSensitiveData(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.FrontendLocalstorageSensitiveData = &v -} - -// GetGraphqlAliasLimit returns the GraphqlAliasLimit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlAliasLimit() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlAliasLimit) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlAliasLimit -} - -// GetGraphqlAliasLimitOk returns a tuple with the GraphqlAliasLimit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlAliasLimitOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlAliasLimit) { - return nil, false - } - return o.GraphqlAliasLimit, true -} - -// HasGraphqlAliasLimit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlAliasLimit() bool { - if o != nil && !IsNil(o.GraphqlAliasLimit) { - return true - } - - return false -} - -// SetGraphqlAliasLimit gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlAliasLimit field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlAliasLimit(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlAliasLimit = &v -} - -// GetGraphqlApq returns the GraphqlApq field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlApq() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlApq) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlApq -} - -// GetGraphqlApqOk returns a tuple with the GraphqlApq field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlApqOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlApq) { - return nil, false - } - return o.GraphqlApq, true -} - -// HasGraphqlApq returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlApq() bool { - if o != nil && !IsNil(o.GraphqlApq) { - return true - } - - return false -} - -// SetGraphqlApq gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlApq field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlApq(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlApq = &v -} - -// GetGraphqlBatchLimit returns the GraphqlBatchLimit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlBatchLimit() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlBatchLimit) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlBatchLimit -} - -// GetGraphqlBatchLimitOk returns a tuple with the GraphqlBatchLimit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlBatchLimitOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlBatchLimit) { - return nil, false - } - return o.GraphqlBatchLimit, true -} - -// HasGraphqlBatchLimit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlBatchLimit() bool { - if o != nil && !IsNil(o.GraphqlBatchLimit) { - return true - } - - return false -} - -// SetGraphqlBatchLimit gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlBatchLimit field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlBatchLimit(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlBatchLimit = &v -} - -// GetGraphqlCircularIntrospection returns the GraphqlCircularIntrospection field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlCircularIntrospection() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlCircularIntrospection) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlCircularIntrospection -} - -// GetGraphqlCircularIntrospectionOk returns a tuple with the GraphqlCircularIntrospection field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlCircularIntrospectionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlCircularIntrospection) { - return nil, false - } - return o.GraphqlCircularIntrospection, true -} - -// HasGraphqlCircularIntrospection returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlCircularIntrospection() bool { - if o != nil && !IsNil(o.GraphqlCircularIntrospection) { - return true - } - - return false -} - -// SetGraphqlCircularIntrospection gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlCircularIntrospection field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlCircularIntrospection(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlCircularIntrospection = &v -} - -// GetGraphqlContentType returns the GraphqlContentType field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlContentType() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlContentType) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlContentType -} - -// GetGraphqlContentTypeOk returns a tuple with the GraphqlContentType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlContentTypeOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlContentType) { - return nil, false - } - return o.GraphqlContentType, true -} - -// HasGraphqlContentType returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlContentType() bool { - if o != nil && !IsNil(o.GraphqlContentType) { - return true - } - - return false -} - -// SetGraphqlContentType gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlContentType field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlContentType(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlContentType = &v -} - -// GetGraphqlDepthLimit returns the GraphqlDepthLimit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlDepthLimit() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlDepthLimit) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlDepthLimit -} - -// GetGraphqlDepthLimitOk returns a tuple with the GraphqlDepthLimit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlDepthLimitOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlDepthLimit) { - return nil, false - } - return o.GraphqlDepthLimit, true -} - -// HasGraphqlDepthLimit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlDepthLimit() bool { - if o != nil && !IsNil(o.GraphqlDepthLimit) { - return true - } - - return false -} - -// SetGraphqlDepthLimit gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlDepthLimit field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlDepthLimit(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlDepthLimit = &v -} - -// GetGraphqlDirectiveOverload returns the GraphqlDirectiveOverload field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlDirectiveOverload() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlDirectiveOverload) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlDirectiveOverload -} - -// GetGraphqlDirectiveOverloadOk returns a tuple with the GraphqlDirectiveOverload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlDirectiveOverloadOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlDirectiveOverload) { - return nil, false - } - return o.GraphqlDirectiveOverload, true -} - -// HasGraphqlDirectiveOverload returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlDirectiveOverload() bool { - if o != nil && !IsNil(o.GraphqlDirectiveOverload) { - return true - } - - return false -} - -// SetGraphqlDirectiveOverload gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlDirectiveOverload field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlDirectiveOverload(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlDirectiveOverload = &v -} - -// GetGraphqlExtensionDisclosure returns the GraphqlExtensionDisclosure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlExtensionDisclosure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlExtensionDisclosure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlExtensionDisclosure -} - -// GetGraphqlExtensionDisclosureOk returns a tuple with the GraphqlExtensionDisclosure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlExtensionDisclosureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlExtensionDisclosure) { - return nil, false - } - return o.GraphqlExtensionDisclosure, true -} - -// HasGraphqlExtensionDisclosure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlExtensionDisclosure() bool { - if o != nil && !IsNil(o.GraphqlExtensionDisclosure) { - return true - } - - return false -} - -// SetGraphqlExtensionDisclosure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlExtensionDisclosure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlExtensionDisclosure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlExtensionDisclosure = &v -} - -// GetGraphqlFieldDuplication returns the GraphqlFieldDuplication field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlFieldDuplication() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlFieldDuplication) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlFieldDuplication -} - -// GetGraphqlFieldDuplicationOk returns a tuple with the GraphqlFieldDuplication field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlFieldDuplicationOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlFieldDuplication) { - return nil, false - } - return o.GraphqlFieldDuplication, true -} - -// HasGraphqlFieldDuplication returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlFieldDuplication() bool { - if o != nil && !IsNil(o.GraphqlFieldDuplication) { - return true - } - - return false -} - -// SetGraphqlFieldDuplication gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlFieldDuplication field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlFieldDuplication(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlFieldDuplication = &v -} - -// GetGraphqlFieldLimit returns the GraphqlFieldLimit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlFieldLimit() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlFieldLimit) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlFieldLimit -} - -// GetGraphqlFieldLimitOk returns a tuple with the GraphqlFieldLimit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlFieldLimitOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlFieldLimit) { - return nil, false - } - return o.GraphqlFieldLimit, true -} - -// HasGraphqlFieldLimit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlFieldLimit() bool { - if o != nil && !IsNil(o.GraphqlFieldLimit) { - return true - } - - return false -} - -// SetGraphqlFieldLimit gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlFieldLimit field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlFieldLimit(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlFieldLimit = &v -} - -// GetGraphqlFieldSuggestion returns the GraphqlFieldSuggestion field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlFieldSuggestion() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlFieldSuggestion) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlFieldSuggestion -} - -// GetGraphqlFieldSuggestionOk returns a tuple with the GraphqlFieldSuggestion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlFieldSuggestionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlFieldSuggestion) { - return nil, false - } - return o.GraphqlFieldSuggestion, true -} - -// HasGraphqlFieldSuggestion returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlFieldSuggestion() bool { - if o != nil && !IsNil(o.GraphqlFieldSuggestion) { - return true - } - - return false -} - -// SetGraphqlFieldSuggestion gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlFieldSuggestion field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlFieldSuggestion(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlFieldSuggestion = &v -} - -// GetGraphqlRecursiveFragment returns the GraphqlRecursiveFragment field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlRecursiveFragment() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlRecursiveFragment) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlRecursiveFragment -} - -// GetGraphqlRecursiveFragmentOk returns a tuple with the GraphqlRecursiveFragment field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlRecursiveFragmentOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlRecursiveFragment) { - return nil, false - } - return o.GraphqlRecursiveFragment, true -} - -// HasGraphqlRecursiveFragment returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlRecursiveFragment() bool { - if o != nil && !IsNil(o.GraphqlRecursiveFragment) { - return true - } - - return false -} - -// SetGraphqlRecursiveFragment gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlRecursiveFragment field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlRecursiveFragment(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlRecursiveFragment = &v -} - -// GetGraphqlResponseFormat returns the GraphqlResponseFormat field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlResponseFormat() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlResponseFormat) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlResponseFormat -} - -// GetGraphqlResponseFormatOk returns a tuple with the GraphqlResponseFormat field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlResponseFormatOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlResponseFormat) { - return nil, false - } - return o.GraphqlResponseFormat, true -} - -// HasGraphqlResponseFormat returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlResponseFormat() bool { - if o != nil && !IsNil(o.GraphqlResponseFormat) { - return true - } - - return false -} - -// SetGraphqlResponseFormat gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlResponseFormat field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlResponseFormat(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlResponseFormat = &v -} - -// GetGraphqlWidthLimit returns the GraphqlWidthLimit field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlWidthLimit() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GraphqlWidthLimit) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GraphqlWidthLimit -} - -// GetGraphqlWidthLimitOk returns a tuple with the GraphqlWidthLimit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGraphqlWidthLimitOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GraphqlWidthLimit) { - return nil, false - } - return o.GraphqlWidthLimit, true -} - -// HasGraphqlWidthLimit returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGraphqlWidthLimit() bool { - if o != nil && !IsNil(o.GraphqlWidthLimit) { - return true - } - - return false -} - -// SetGraphqlWidthLimit gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GraphqlWidthLimit field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGraphqlWidthLimit(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GraphqlWidthLimit = &v -} - -// GetGuessableCookieValue returns the GuessableCookieValue field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGuessableCookieValue() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GuessableCookieValue) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GuessableCookieValue -} - -// GetGuessableCookieValueOk returns a tuple with the GuessableCookieValue field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGuessableCookieValueOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GuessableCookieValue) { - return nil, false - } - return o.GuessableCookieValue, true -} - -// HasGuessableCookieValue returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGuessableCookieValue() bool { - if o != nil && !IsNil(o.GuessableCookieValue) { - return true - } - - return false -} - -// SetGuessableCookieValue gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GuessableCookieValue field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGuessableCookieValue(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GuessableCookieValue = &v -} - -// GetHeaderAccessControlAllowOrigin returns the HeaderAccessControlAllowOrigin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderAccessControlAllowOrigin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderAccessControlAllowOrigin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderAccessControlAllowOrigin -} - -// GetHeaderAccessControlAllowOriginOk returns a tuple with the HeaderAccessControlAllowOrigin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderAccessControlAllowOriginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderAccessControlAllowOrigin) { - return nil, false - } - return o.HeaderAccessControlAllowOrigin, true -} - -// HasHeaderAccessControlAllowOrigin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderAccessControlAllowOrigin() bool { - if o != nil && !IsNil(o.HeaderAccessControlAllowOrigin) { - return true - } - - return false -} - -// SetHeaderAccessControlAllowOrigin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderAccessControlAllowOrigin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderAccessControlAllowOrigin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderAccessControlAllowOrigin = &v -} - -// GetHeaderCacheControl returns the HeaderCacheControl field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderCacheControl() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderCacheControl) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderCacheControl -} - -// GetHeaderCacheControlOk returns a tuple with the HeaderCacheControl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderCacheControlOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderCacheControl) { - return nil, false - } - return o.HeaderCacheControl, true -} - -// HasHeaderCacheControl returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderCacheControl() bool { - if o != nil && !IsNil(o.HeaderCacheControl) { - return true - } - - return false -} - -// SetHeaderCacheControl gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderCacheControl field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderCacheControl(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderCacheControl = &v -} - -// GetHeaderContentSecurityPolicy returns the HeaderContentSecurityPolicy field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderContentSecurityPolicy() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderContentSecurityPolicy) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderContentSecurityPolicy -} - -// GetHeaderContentSecurityPolicyOk returns a tuple with the HeaderContentSecurityPolicy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderContentSecurityPolicyOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderContentSecurityPolicy) { - return nil, false - } - return o.HeaderContentSecurityPolicy, true -} - -// HasHeaderContentSecurityPolicy returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderContentSecurityPolicy() bool { - if o != nil && !IsNil(o.HeaderContentSecurityPolicy) { - return true - } - - return false -} - -// SetHeaderContentSecurityPolicy gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderContentSecurityPolicy field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderContentSecurityPolicy(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderContentSecurityPolicy = &v -} - -// GetHeaderContentType returns the HeaderContentType field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderContentType() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderContentType) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderContentType -} - -// GetHeaderContentTypeOk returns a tuple with the HeaderContentType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderContentTypeOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderContentType) { - return nil, false - } - return o.HeaderContentType, true -} - -// HasHeaderContentType returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderContentType() bool { - if o != nil && !IsNil(o.HeaderContentType) { - return true - } - - return false -} - -// SetHeaderContentType gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderContentType field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderContentType(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderContentType = &v -} - -// GetHeaderLeak returns the HeaderLeak field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderLeak() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderLeak) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderLeak -} - -// GetHeaderLeakOk returns a tuple with the HeaderLeak field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderLeakOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderLeak) { - return nil, false - } - return o.HeaderLeak, true -} - -// HasHeaderLeak returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderLeak() bool { - if o != nil && !IsNil(o.HeaderLeak) { - return true - } - - return false -} - -// SetHeaderLeak gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderLeak field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderLeak(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderLeak = &v -} - -// GetHeaderSetCookie returns the HeaderSetCookie field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderSetCookie() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderSetCookie) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderSetCookie -} - -// GetHeaderSetCookieOk returns a tuple with the HeaderSetCookie field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderSetCookieOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderSetCookie) { - return nil, false - } - return o.HeaderSetCookie, true -} - -// HasHeaderSetCookie returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderSetCookie() bool { - if o != nil && !IsNil(o.HeaderSetCookie) { - return true - } - - return false -} - -// SetHeaderSetCookie gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderSetCookie field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderSetCookie(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderSetCookie = &v -} - -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaders() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Headers) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - 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 *ProfileDetailedConfigurationSecurityTests) GetHeadersOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Headers field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaders(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Headers = &v -} - -// GetHeaderStrictTransportSecurity returns the HeaderStrictTransportSecurity field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderStrictTransportSecurity() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderStrictTransportSecurity) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderStrictTransportSecurity -} - -// GetHeaderStrictTransportSecurityOk returns a tuple with the HeaderStrictTransportSecurity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderStrictTransportSecurityOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderStrictTransportSecurity) { - return nil, false - } - return o.HeaderStrictTransportSecurity, true -} - -// HasHeaderStrictTransportSecurity returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderStrictTransportSecurity() bool { - if o != nil && !IsNil(o.HeaderStrictTransportSecurity) { - return true - } - - return false -} - -// SetHeaderStrictTransportSecurity gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderStrictTransportSecurity field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderStrictTransportSecurity(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderStrictTransportSecurity = &v -} - -// GetHeaderXContentTypeOptions returns the HeaderXContentTypeOptions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderXContentTypeOptions() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderXContentTypeOptions) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderXContentTypeOptions -} - -// GetHeaderXContentTypeOptionsOk returns a tuple with the HeaderXContentTypeOptions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderXContentTypeOptionsOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderXContentTypeOptions) { - return nil, false - } - return o.HeaderXContentTypeOptions, true -} - -// HasHeaderXContentTypeOptions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderXContentTypeOptions() bool { - if o != nil && !IsNil(o.HeaderXContentTypeOptions) { - return true - } - - return false -} - -// SetHeaderXContentTypeOptions gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderXContentTypeOptions field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderXContentTypeOptions(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderXContentTypeOptions = &v -} - -// GetHeaderXFrameOptions returns the HeaderXFrameOptions field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderXFrameOptions() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HeaderXFrameOptions) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HeaderXFrameOptions -} - -// GetHeaderXFrameOptionsOk returns a tuple with the HeaderXFrameOptions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHeaderXFrameOptionsOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HeaderXFrameOptions) { - return nil, false - } - return o.HeaderXFrameOptions, true -} - -// HasHeaderXFrameOptions returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHeaderXFrameOptions() bool { - if o != nil && !IsNil(o.HeaderXFrameOptions) { - return true - } - - return false -} - -// SetHeaderXFrameOptions gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HeaderXFrameOptions field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHeaderXFrameOptions(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HeaderXFrameOptions = &v -} - -// GetHtmlInjection returns the HtmlInjection field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHtmlInjection() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HtmlInjection) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HtmlInjection -} - -// GetHtmlInjectionOk returns a tuple with the HtmlInjection field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHtmlInjectionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HtmlInjection) { - return nil, false - } - return o.HtmlInjection, true -} - -// HasHtmlInjection returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHtmlInjection() bool { - if o != nil && !IsNil(o.HtmlInjection) { - return true - } - - return false -} - -// SetHtmlInjection gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HtmlInjection field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHtmlInjection(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HtmlInjection = &v -} - -// GetHttpParamPollution returns the HttpParamPollution field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetHttpParamPollution() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.HttpParamPollution) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.HttpParamPollution -} - -// GetHttpParamPollutionOk returns a tuple with the HttpParamPollution field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetHttpParamPollutionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.HttpParamPollution) { - return nil, false - } - return o.HttpParamPollution, true -} - -// HasHttpParamPollution returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasHttpParamPollution() bool { - if o != nil && !IsNil(o.HttpParamPollution) { - return true - } - - return false -} - -// SetHttpParamPollution gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the HttpParamPollution field. -func (o *ProfileDetailedConfigurationSecurityTests) SetHttpParamPollution(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.HttpParamPollution = &v -} - -// GetIdeEnabled returns the IdeEnabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetIdeEnabled() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.IdeEnabled) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.IdeEnabled -} - -// GetIdeEnabledOk returns a tuple with the IdeEnabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetIdeEnabledOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.IdeEnabled) { - return nil, false - } - return o.IdeEnabled, true -} - -// HasIdeEnabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasIdeEnabled() bool { - if o != nil && !IsNil(o.IdeEnabled) { - return true - } - - return false -} - -// SetIdeEnabled gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the IdeEnabled field. -func (o *ProfileDetailedConfigurationSecurityTests) SetIdeEnabled(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.IdeEnabled = &v -} - -// GetImproperInput returns the ImproperInput field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetImproperInput() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ImproperInput) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ImproperInput -} - -// GetImproperInputOk returns a tuple with the ImproperInput field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetImproperInputOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ImproperInput) { - return nil, false - } - return o.ImproperInput, true -} - -// HasImproperInput returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasImproperInput() bool { - if o != nil && !IsNil(o.ImproperInput) { - return true - } - - return false -} - -// SetImproperInput gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ImproperInput field. -func (o *ProfileDetailedConfigurationSecurityTests) SetImproperInput(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ImproperInput = &v -} - -// GetImproperInputStored returns the ImproperInputStored field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetImproperInputStored() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ImproperInputStored) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ImproperInputStored -} - -// GetImproperInputStoredOk returns a tuple with the ImproperInputStored field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetImproperInputStoredOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ImproperInputStored) { - return nil, false - } - return o.ImproperInputStored, true -} - -// HasImproperInputStored returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasImproperInputStored() bool { - if o != nil && !IsNil(o.ImproperInputStored) { - return true - } - - return false -} - -// SetImproperInputStored gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ImproperInputStored field. -func (o *ProfileDetailedConfigurationSecurityTests) SetImproperInputStored(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ImproperInputStored = &v -} - -// GetIntrospectionEnabled returns the IntrospectionEnabled field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetIntrospectionEnabled() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.IntrospectionEnabled) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.IntrospectionEnabled -} - -// GetIntrospectionEnabledOk returns a tuple with the IntrospectionEnabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetIntrospectionEnabledOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.IntrospectionEnabled) { - return nil, false - } - return o.IntrospectionEnabled, true -} - -// HasIntrospectionEnabled returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasIntrospectionEnabled() bool { - if o != nil && !IsNil(o.IntrospectionEnabled) { - return true - } - - return false -} - -// SetIntrospectionEnabled gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the IntrospectionEnabled field. -func (o *ProfileDetailedConfigurationSecurityTests) SetIntrospectionEnabled(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.IntrospectionEnabled = &v -} - -// GetInvalidAllof returns the InvalidAllof field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetInvalidAllof() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.InvalidAllof) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.InvalidAllof -} - -// GetInvalidAllofOk returns a tuple with the InvalidAllof field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetInvalidAllofOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.InvalidAllof) { - return nil, false - } - return o.InvalidAllof, true -} - -// HasInvalidAllof returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasInvalidAllof() bool { - if o != nil && !IsNil(o.InvalidAllof) { - return true - } - - return false -} - -// SetInvalidAllof gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the InvalidAllof field. -func (o *ProfileDetailedConfigurationSecurityTests) SetInvalidAllof(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.InvalidAllof = &v -} - -// GetInvalidParametersInPath returns the InvalidParametersInPath field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetInvalidParametersInPath() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.InvalidParametersInPath) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.InvalidParametersInPath -} - -// GetInvalidParametersInPathOk returns a tuple with the InvalidParametersInPath field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetInvalidParametersInPathOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.InvalidParametersInPath) { - return nil, false - } - return o.InvalidParametersInPath, true -} - -// HasInvalidParametersInPath returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasInvalidParametersInPath() bool { - if o != nil && !IsNil(o.InvalidParametersInPath) { - return true - } - - return false -} - -// SetInvalidParametersInPath gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the InvalidParametersInPath field. -func (o *ProfileDetailedConfigurationSecurityTests) SetInvalidParametersInPath(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.InvalidParametersInPath = &v -} - -// GetInvalidPersistedQuery returns the InvalidPersistedQuery field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetInvalidPersistedQuery() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.InvalidPersistedQuery) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.InvalidPersistedQuery -} - -// GetInvalidPersistedQueryOk returns a tuple with the InvalidPersistedQuery field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetInvalidPersistedQueryOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.InvalidPersistedQuery) { - return nil, false - } - return o.InvalidPersistedQuery, true -} - -// HasInvalidPersistedQuery returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasInvalidPersistedQuery() bool { - if o != nil && !IsNil(o.InvalidPersistedQuery) { - return true - } - - return false -} - -// SetInvalidPersistedQuery gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the InvalidPersistedQuery field. -func (o *ProfileDetailedConfigurationSecurityTests) SetInvalidPersistedQuery(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.InvalidPersistedQuery = &v -} - -// GetInvalidRefs returns the InvalidRefs field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetInvalidRefs() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.InvalidRefs) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.InvalidRefs -} - -// GetInvalidRefsOk returns a tuple with the InvalidRefs field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetInvalidRefsOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.InvalidRefs) { - return nil, false - } - return o.InvalidRefs, true -} - -// HasInvalidRefs returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasInvalidRefs() bool { - if o != nil && !IsNil(o.InvalidRefs) { - return true - } - - return false -} - -// SetInvalidRefs gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the InvalidRefs field. -func (o *ProfileDetailedConfigurationSecurityTests) SetInvalidRefs(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.InvalidRefs = &v -} - -// GetJwtAlgConfusion returns the JwtAlgConfusion field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJwtAlgConfusion() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JwtAlgConfusion) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JwtAlgConfusion -} - -// GetJwtAlgConfusionOk returns a tuple with the JwtAlgConfusion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJwtAlgConfusionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JwtAlgConfusion) { - return nil, false - } - return o.JwtAlgConfusion, true -} - -// HasJwtAlgConfusion returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJwtAlgConfusion() bool { - if o != nil && !IsNil(o.JwtAlgConfusion) { - return true - } - - return false -} - -// SetJwtAlgConfusion gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JwtAlgConfusion field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJwtAlgConfusion(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JwtAlgConfusion = &v -} - -// GetJwtAlgNone returns the JwtAlgNone field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJwtAlgNone() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JwtAlgNone) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JwtAlgNone -} - -// GetJwtAlgNoneOk returns a tuple with the JwtAlgNone field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJwtAlgNoneOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JwtAlgNone) { - return nil, false - } - return o.JwtAlgNone, true -} - -// HasJwtAlgNone returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJwtAlgNone() bool { - if o != nil && !IsNil(o.JwtAlgNone) { - return true - } - - return false -} - -// SetJwtAlgNone gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JwtAlgNone field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJwtAlgNone(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JwtAlgNone = &v -} - -// GetExposedJwt returns the ExposedJwt field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedJwt() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ExposedJwt) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ExposedJwt -} - -// GetExposedJwtOk returns a tuple with the ExposedJwt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetExposedJwtOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ExposedJwt) { - return nil, false - } - return o.ExposedJwt, true -} - -// HasExposedJwt returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasExposedJwt() bool { - if o != nil && !IsNil(o.ExposedJwt) { - return true - } - - return false -} - -// SetExposedJwt gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ExposedJwt field. -func (o *ProfileDetailedConfigurationSecurityTests) SetExposedJwt(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ExposedJwt = &v -} - -// GetJwtSignCheck returns the JwtSignCheck field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJwtSignCheck() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JwtSignCheck) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JwtSignCheck -} - -// GetJwtSignCheckOk returns a tuple with the JwtSignCheck field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJwtSignCheckOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JwtSignCheck) { - return nil, false - } - return o.JwtSignCheck, true -} - -// HasJwtSignCheck returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJwtSignCheck() bool { - if o != nil && !IsNil(o.JwtSignCheck) { - return true - } - - return false -} - -// SetJwtSignCheck gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JwtSignCheck field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJwtSignCheck(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JwtSignCheck = &v -} - -// GetLargeJsonInput returns the LargeJsonInput field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLargeJsonInput() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LargeJsonInput) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LargeJsonInput -} - -// GetLargeJsonInputOk returns a tuple with the LargeJsonInput field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLargeJsonInputOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LargeJsonInput) { - return nil, false - } - return o.LargeJsonInput, true -} - -// HasLargeJsonInput returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLargeJsonInput() bool { - if o != nil && !IsNil(o.LargeJsonInput) { - return true - } - - return false -} - -// SetLargeJsonInput gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LargeJsonInput field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLargeJsonInput(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LargeJsonInput = &v -} - -// GetLeakingAuthentication returns the LeakingAuthentication field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLeakingAuthentication() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LeakingAuthentication) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LeakingAuthentication -} - -// GetLeakingAuthenticationOk returns a tuple with the LeakingAuthentication field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLeakingAuthenticationOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LeakingAuthentication) { - return nil, false - } - return o.LeakingAuthentication, true -} - -// HasLeakingAuthentication returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLeakingAuthentication() bool { - if o != nil && !IsNil(o.LeakingAuthentication) { - return true - } - - return false -} - -// SetLeakingAuthentication gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LeakingAuthentication field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLeakingAuthentication(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LeakingAuthentication = &v -} - -// GetLlmDetection returns the LlmDetection field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmDetection() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmDetection) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmDetection -} - -// GetLlmDetectionOk returns a tuple with the LlmDetection field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmDetectionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmDetection) { - return nil, false - } - return o.LlmDetection, true -} - -// HasLlmDetection returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmDetection() bool { - if o != nil && !IsNil(o.LlmDetection) { - return true - } - - return false -} - -// SetLlmDetection gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmDetection field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmDetection(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmDetection = &v -} - -// GetLlmExcessiveAgency returns the LlmExcessiveAgency field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmExcessiveAgency() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmExcessiveAgency) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmExcessiveAgency -} - -// GetLlmExcessiveAgencyOk returns a tuple with the LlmExcessiveAgency field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmExcessiveAgencyOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmExcessiveAgency) { - return nil, false - } - return o.LlmExcessiveAgency, true -} - -// HasLlmExcessiveAgency returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmExcessiveAgency() bool { - if o != nil && !IsNil(o.LlmExcessiveAgency) { - return true - } - - return false -} - -// SetLlmExcessiveAgency gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmExcessiveAgency field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmExcessiveAgency(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmExcessiveAgency = &v -} - -// GetLlmInsecureOutputHandling returns the LlmInsecureOutputHandling field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmInsecureOutputHandling() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmInsecureOutputHandling) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmInsecureOutputHandling -} - -// GetLlmInsecureOutputHandlingOk returns a tuple with the LlmInsecureOutputHandling field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmInsecureOutputHandlingOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmInsecureOutputHandling) { - return nil, false - } - return o.LlmInsecureOutputHandling, true -} - -// HasLlmInsecureOutputHandling returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmInsecureOutputHandling() bool { - if o != nil && !IsNil(o.LlmInsecureOutputHandling) { - return true - } - - return false -} - -// SetLlmInsecureOutputHandling gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmInsecureOutputHandling field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmInsecureOutputHandling(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmInsecureOutputHandling = &v -} - -// GetLlmInsecurePluginDesign returns the LlmInsecurePluginDesign field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmInsecurePluginDesign() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmInsecurePluginDesign) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmInsecurePluginDesign -} - -// GetLlmInsecurePluginDesignOk returns a tuple with the LlmInsecurePluginDesign field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmInsecurePluginDesignOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmInsecurePluginDesign) { - return nil, false - } - return o.LlmInsecurePluginDesign, true -} - -// HasLlmInsecurePluginDesign returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmInsecurePluginDesign() bool { - if o != nil && !IsNil(o.LlmInsecurePluginDesign) { - return true - } - - return false -} - -// SetLlmInsecurePluginDesign gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmInsecurePluginDesign field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmInsecurePluginDesign(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmInsecurePluginDesign = &v -} - -// GetLlmJailBreak returns the LlmJailBreak field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmJailBreak() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmJailBreak) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmJailBreak -} - -// GetLlmJailBreakOk returns a tuple with the LlmJailBreak field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmJailBreakOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmJailBreak) { - return nil, false - } - return o.LlmJailBreak, true -} - -// HasLlmJailBreak returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmJailBreak() bool { - if o != nil && !IsNil(o.LlmJailBreak) { - return true - } - - return false -} - -// SetLlmJailBreak gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmJailBreak field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmJailBreak(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmJailBreak = &v -} - -// GetLlmModelDos returns the LlmModelDos field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmModelDos() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmModelDos) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmModelDos -} - -// GetLlmModelDosOk returns a tuple with the LlmModelDos field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmModelDosOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmModelDos) { - return nil, false - } - return o.LlmModelDos, true -} - -// HasLlmModelDos returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmModelDos() bool { - if o != nil && !IsNil(o.LlmModelDos) { - return true - } - - return false -} - -// SetLlmModelDos gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmModelDos field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmModelDos(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmModelDos = &v -} - -// GetLlmModelTheft returns the LlmModelTheft field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmModelTheft() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmModelTheft) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmModelTheft -} - -// GetLlmModelTheftOk returns a tuple with the LlmModelTheft field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmModelTheftOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmModelTheft) { - return nil, false - } - return o.LlmModelTheft, true -} - -// HasLlmModelTheft returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmModelTheft() bool { - if o != nil && !IsNil(o.LlmModelTheft) { - return true - } - - return false -} - -// SetLlmModelTheft gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmModelTheft field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmModelTheft(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmModelTheft = &v -} - -// GetLlmOverreliance returns the LlmOverreliance field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmOverreliance() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmOverreliance) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmOverreliance -} - -// GetLlmOverrelianceOk returns a tuple with the LlmOverreliance field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmOverrelianceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmOverreliance) { - return nil, false - } - return o.LlmOverreliance, true -} - -// HasLlmOverreliance returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmOverreliance() bool { - if o != nil && !IsNil(o.LlmOverreliance) { - return true - } - - return false -} - -// SetLlmOverreliance gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmOverreliance field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmOverreliance(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmOverreliance = &v -} - -// GetLlmPromptInjection returns the LlmPromptInjection field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmPromptInjection() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmPromptInjection) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmPromptInjection -} - -// GetLlmPromptInjectionOk returns a tuple with the LlmPromptInjection field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmPromptInjectionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmPromptInjection) { - return nil, false - } - return o.LlmPromptInjection, true -} - -// HasLlmPromptInjection returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmPromptInjection() bool { - if o != nil && !IsNil(o.LlmPromptInjection) { - return true - } - - return false -} - -// SetLlmPromptInjection gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmPromptInjection field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmPromptInjection(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmPromptInjection = &v -} - -// GetLlmSensitiveInformationDisclosure returns the LlmSensitiveInformationDisclosure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmSensitiveInformationDisclosure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmSensitiveInformationDisclosure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmSensitiveInformationDisclosure -} - -// GetLlmSensitiveInformationDisclosureOk returns a tuple with the LlmSensitiveInformationDisclosure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmSensitiveInformationDisclosureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmSensitiveInformationDisclosure) { - return nil, false - } - return o.LlmSensitiveInformationDisclosure, true -} - -// HasLlmSensitiveInformationDisclosure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmSensitiveInformationDisclosure() bool { - if o != nil && !IsNil(o.LlmSensitiveInformationDisclosure) { - return true - } - - return false -} - -// SetLlmSensitiveInformationDisclosure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmSensitiveInformationDisclosure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmSensitiveInformationDisclosure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmSensitiveInformationDisclosure = &v -} - -// GetLlmSupplyChainVulnerabilities returns the LlmSupplyChainVulnerabilities field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmSupplyChainVulnerabilities() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmSupplyChainVulnerabilities) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmSupplyChainVulnerabilities -} - -// GetLlmSupplyChainVulnerabilitiesOk returns a tuple with the LlmSupplyChainVulnerabilities field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmSupplyChainVulnerabilitiesOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmSupplyChainVulnerabilities) { - return nil, false - } - return o.LlmSupplyChainVulnerabilities, true -} - -// HasLlmSupplyChainVulnerabilities returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmSupplyChainVulnerabilities() bool { - if o != nil && !IsNil(o.LlmSupplyChainVulnerabilities) { - return true - } - - return false -} - -// SetLlmSupplyChainVulnerabilities gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmSupplyChainVulnerabilities field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmSupplyChainVulnerabilities(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmSupplyChainVulnerabilities = &v -} - -// GetLlmTrainingDataPoisoning returns the LlmTrainingDataPoisoning field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmTrainingDataPoisoning() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LlmTrainingDataPoisoning) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LlmTrainingDataPoisoning -} - -// GetLlmTrainingDataPoisoningOk returns a tuple with the LlmTrainingDataPoisoning field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLlmTrainingDataPoisoningOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LlmTrainingDataPoisoning) { - return nil, false - } - return o.LlmTrainingDataPoisoning, true -} - -// HasLlmTrainingDataPoisoning returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLlmTrainingDataPoisoning() bool { - if o != nil && !IsNil(o.LlmTrainingDataPoisoning) { - return true - } - - return false -} - -// SetLlmTrainingDataPoisoning gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LlmTrainingDataPoisoning field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLlmTrainingDataPoisoning(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LlmTrainingDataPoisoning = &v -} - -// GetLog4shell returns the Log4shell field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLog4shell() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Log4shell) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Log4shell -} - -// GetLog4shellOk returns a tuple with the Log4shell field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLog4shellOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Log4shell) { - return nil, false - } - return o.Log4shell, true -} - -// HasLog4shell returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLog4shell() bool { - if o != nil && !IsNil(o.Log4shell) { - return true - } - - return false -} - -// SetLog4shell gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Log4shell field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLog4shell(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Log4shell = &v -} - -// GetMassAssignment returns the MassAssignment field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetMassAssignment() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.MassAssignment) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.MassAssignment -} - -// GetMassAssignmentOk returns a tuple with the MassAssignment field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetMassAssignmentOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.MassAssignment) { - return nil, false - } - return o.MassAssignment, true -} - -// HasMassAssignment returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasMassAssignment() bool { - if o != nil && !IsNil(o.MassAssignment) { - return true - } - - return false -} - -// SetMassAssignment gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MassAssignment field. -func (o *ProfileDetailedConfigurationSecurityTests) SetMassAssignment(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.MassAssignment = &v -} - -// GetMismatchingPersistedQueriesAndSchema returns the MismatchingPersistedQueriesAndSchema field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetMismatchingPersistedQueriesAndSchema() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.MismatchingPersistedQueriesAndSchema) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.MismatchingPersistedQueriesAndSchema -} - -// GetMismatchingPersistedQueriesAndSchemaOk returns a tuple with the MismatchingPersistedQueriesAndSchema field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetMismatchingPersistedQueriesAndSchemaOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.MismatchingPersistedQueriesAndSchema) { - return nil, false - } - return o.MismatchingPersistedQueriesAndSchema, true -} - -// HasMismatchingPersistedQueriesAndSchema returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasMismatchingPersistedQueriesAndSchema() bool { - if o != nil && !IsNil(o.MismatchingPersistedQueriesAndSchema) { - return true - } - - return false -} - -// SetMismatchingPersistedQueriesAndSchema gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MismatchingPersistedQueriesAndSchema field. -func (o *ProfileDetailedConfigurationSecurityTests) SetMismatchingPersistedQueriesAndSchema(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.MismatchingPersistedQueriesAndSchema = &v -} - -// GetNosql returns the Nosql field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNosql() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Nosql) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Nosql -} - -// GetNosqlOk returns a tuple with the Nosql field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNosqlOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Nosql) { - return nil, false - } - return o.Nosql, true -} - -// HasNosql returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNosql() bool { - if o != nil && !IsNil(o.Nosql) { - return true - } - - return false -} - -// SetNosql gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Nosql field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNosql(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Nosql = &v -} - -// GetNosqlStored returns the NosqlStored field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNosqlStored() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.NosqlStored) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.NosqlStored -} - -// GetNosqlStoredOk returns a tuple with the NosqlStored field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNosqlStoredOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.NosqlStored) { - return nil, false - } - return o.NosqlStored, true -} - -// HasNosqlStored returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNosqlStored() bool { - if o != nil && !IsNil(o.NosqlStored) { - return true - } - - return false -} - -// SetNosqlStored gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NosqlStored field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNosqlStored(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.NosqlStored = &v -} - -// GetNuclei returns the Nuclei field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNuclei() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Nuclei) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Nuclei -} - -// GetNucleiOk returns a tuple with the Nuclei field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNucleiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Nuclei) { - return nil, false - } - return o.Nuclei, true -} - -// HasNuclei returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNuclei() bool { - if o != nil && !IsNil(o.Nuclei) { - return true - } - - return false -} - -// SetNuclei gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Nuclei field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNuclei(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Nuclei = &v -} - -// GetOpenPort returns the OpenPort field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetOpenPort() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.OpenPort) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.OpenPort -} - -// GetOpenPortOk returns a tuple with the OpenPort field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetOpenPortOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.OpenPort) { - return nil, false - } - return o.OpenPort, true -} - -// HasOpenPort returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasOpenPort() bool { - if o != nil && !IsNil(o.OpenPort) { - return true - } - - return false -} - -// SetOpenPort gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the OpenPort field. -func (o *ProfileDetailedConfigurationSecurityTests) SetOpenPort(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.OpenPort = &v -} - -// GetOpenRedirect returns the OpenRedirect field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetOpenRedirect() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.OpenRedirect) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.OpenRedirect -} - -// GetOpenRedirectOk returns a tuple with the OpenRedirect field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetOpenRedirectOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.OpenRedirect) { - return nil, false - } - return o.OpenRedirect, true -} - -// HasOpenRedirect returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasOpenRedirect() bool { - if o != nil && !IsNil(o.OpenRedirect) { - return true - } - - return false -} - -// SetOpenRedirect gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the OpenRedirect field. -func (o *ProfileDetailedConfigurationSecurityTests) SetOpenRedirect(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.OpenRedirect = &v -} - -// GetPaginationMissing returns the PaginationMissing field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPaginationMissing() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PaginationMissing) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PaginationMissing -} - -// GetPaginationMissingOk returns a tuple with the PaginationMissing field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPaginationMissingOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PaginationMissing) { - return nil, false - } - return o.PaginationMissing, true -} - -// HasPaginationMissing returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPaginationMissing() bool { - if o != nil && !IsNil(o.PaginationMissing) { - return true - } - - return false -} - -// SetPaginationMissing gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PaginationMissing field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPaginationMissing(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PaginationMissing = &v -} - -// GetPasswordFieldAutocompletion returns the PasswordFieldAutocompletion field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPasswordFieldAutocompletion() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PasswordFieldAutocompletion) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PasswordFieldAutocompletion -} - -// GetPasswordFieldAutocompletionOk returns a tuple with the PasswordFieldAutocompletion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPasswordFieldAutocompletionOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PasswordFieldAutocompletion) { - return nil, false - } - return o.PasswordFieldAutocompletion, true -} - -// HasPasswordFieldAutocompletion returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPasswordFieldAutocompletion() bool { - if o != nil && !IsNil(o.PasswordFieldAutocompletion) { - return true - } - - return false -} - -// SetPasswordFieldAutocompletion gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PasswordFieldAutocompletion field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPasswordFieldAutocompletion(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PasswordFieldAutocompletion = &v -} - -// GetPermissiveJsonInput returns the PermissiveJsonInput field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPermissiveJsonInput() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PermissiveJsonInput) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PermissiveJsonInput -} - -// GetPermissiveJsonInputOk returns a tuple with the PermissiveJsonInput field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPermissiveJsonInputOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PermissiveJsonInput) { - return nil, false - } - return o.PermissiveJsonInput, true -} - -// HasPermissiveJsonInput returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPermissiveJsonInput() bool { - if o != nil && !IsNil(o.PermissiveJsonInput) { - return true - } - - return false -} - -// SetPermissiveJsonInput gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PermissiveJsonInput field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPermissiveJsonInput(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PermissiveJsonInput = &v -} - -// GetPositiveIntegerValidation returns the PositiveIntegerValidation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPositiveIntegerValidation() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PositiveIntegerValidation) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PositiveIntegerValidation -} - -// GetPositiveIntegerValidationOk returns a tuple with the PositiveIntegerValidation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPositiveIntegerValidationOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PositiveIntegerValidation) { - return nil, false - } - return o.PositiveIntegerValidation, true -} - -// HasPositiveIntegerValidation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPositiveIntegerValidation() bool { - if o != nil && !IsNil(o.PositiveIntegerValidation) { - return true - } - - return false -} - -// SetPositiveIntegerValidation gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PositiveIntegerValidation field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPositiveIntegerValidation(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PositiveIntegerValidation = &v -} - -// GetPotentialCve returns the PotentialCve field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPotentialCve() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PotentialCve) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PotentialCve -} - -// GetPotentialCveOk returns a tuple with the PotentialCve field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPotentialCveOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PotentialCve) { - return nil, false - } - return o.PotentialCve, true -} - -// HasPotentialCve returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPotentialCve() bool { - if o != nil && !IsNil(o.PotentialCve) { - return true - } - - return false -} - -// SetPotentialCve gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PotentialCve field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPotentialCve(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PotentialCve = &v -} - -// GetPrivateData returns the PrivateData field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPrivateData() ProfileDetailedConfigurationSecurityTestsPrivateData { - if o == nil || IsNil(o.PrivateData) { - var ret ProfileDetailedConfigurationSecurityTestsPrivateData - return ret - } - return *o.PrivateData -} - -// GetPrivateDataOk returns a tuple with the PrivateData field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPrivateDataOk() (*ProfileDetailedConfigurationSecurityTestsPrivateData, bool) { - if o == nil || IsNil(o.PrivateData) { - return nil, false - } - return o.PrivateData, true -} - -// HasPrivateData returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPrivateData() bool { - if o != nil && !IsNil(o.PrivateData) { - return true - } - - return false -} - -// SetPrivateData gets a reference to the given ProfileDetailedConfigurationSecurityTestsPrivateData and assigns it to the PrivateData field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPrivateData(v ProfileDetailedConfigurationSecurityTestsPrivateData) { - o.PrivateData = &v -} - -// GetPrivateFields returns the PrivateFields field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPrivateFields() ProfileDetailedConfigurationSecurityTestsPrivateData { - if o == nil || IsNil(o.PrivateFields) { - var ret ProfileDetailedConfigurationSecurityTestsPrivateData - return ret - } - return *o.PrivateFields -} - -// GetPrivateFieldsOk returns a tuple with the PrivateFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPrivateFieldsOk() (*ProfileDetailedConfigurationSecurityTestsPrivateData, bool) { - if o == nil || IsNil(o.PrivateFields) { - return nil, false - } - return o.PrivateFields, true -} - -// HasPrivateFields returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPrivateFields() bool { - if o != nil && !IsNil(o.PrivateFields) { - return true - } - - return false -} - -// SetPrivateFields gets a reference to the given ProfileDetailedConfigurationSecurityTestsPrivateData and assigns it to the PrivateFields field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPrivateFields(v ProfileDetailedConfigurationSecurityTestsPrivateData) { - o.PrivateFields = &v -} - -// GetPrivateIp returns the PrivateIp field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPrivateIp() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PrivateIp) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PrivateIp -} - -// GetPrivateIpOk returns a tuple with the PrivateIp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPrivateIpOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PrivateIp) { - return nil, false - } - return o.PrivateIp, true -} - -// HasPrivateIp returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPrivateIp() bool { - if o != nil && !IsNil(o.PrivateIp) { - return true - } - - return false -} - -// SetPrivateIp gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PrivateIp field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPrivateIp(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PrivateIp = &v -} - -// GetPublicStateAlteringOperation returns the PublicStateAlteringOperation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPublicStateAlteringOperation() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PublicStateAlteringOperation) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PublicStateAlteringOperation -} - -// GetPublicStateAlteringOperationOk returns a tuple with the PublicStateAlteringOperation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPublicStateAlteringOperationOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PublicStateAlteringOperation) { - return nil, false - } - return o.PublicStateAlteringOperation, true -} - -// HasPublicStateAlteringOperation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPublicStateAlteringOperation() bool { - if o != nil && !IsNil(o.PublicStateAlteringOperation) { - return true - } - - return false -} - -// SetPublicStateAlteringOperation gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PublicStateAlteringOperation field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPublicStateAlteringOperation(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PublicStateAlteringOperation = &v -} - -// GetReflectedUrlParameter returns the ReflectedUrlParameter field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetReflectedUrlParameter() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ReflectedUrlParameter) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ReflectedUrlParameter -} - -// GetReflectedUrlParameterOk returns a tuple with the ReflectedUrlParameter field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetReflectedUrlParameterOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ReflectedUrlParameter) { - return nil, false - } - return o.ReflectedUrlParameter, true -} - -// HasReflectedUrlParameter returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasReflectedUrlParameter() bool { - if o != nil && !IsNil(o.ReflectedUrlParameter) { - return true - } - - return false -} - -// SetReflectedUrlParameter gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ReflectedUrlParameter field. -func (o *ProfileDetailedConfigurationSecurityTests) SetReflectedUrlParameter(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ReflectedUrlParameter = &v -} - -// GetRequestSmuggling returns the RequestSmuggling field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetRequestSmuggling() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.RequestSmuggling) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.RequestSmuggling -} - -// GetRequestSmugglingOk returns a tuple with the RequestSmuggling field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetRequestSmugglingOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.RequestSmuggling) { - return nil, false - } - return o.RequestSmuggling, true -} - -// HasRequestSmuggling returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasRequestSmuggling() bool { - if o != nil && !IsNil(o.RequestSmuggling) { - return true - } - - return false -} - -// SetRequestSmuggling gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RequestSmuggling field. -func (o *ProfileDetailedConfigurationSecurityTests) SetRequestSmuggling(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.RequestSmuggling = &v -} - -// GetRequestUrlOverride returns the RequestUrlOverride field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetRequestUrlOverride() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.RequestUrlOverride) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.RequestUrlOverride -} - -// GetRequestUrlOverrideOk returns a tuple with the RequestUrlOverride field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetRequestUrlOverrideOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.RequestUrlOverride) { - return nil, false - } - return o.RequestUrlOverride, true -} - -// HasRequestUrlOverride returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasRequestUrlOverride() bool { - if o != nil && !IsNil(o.RequestUrlOverride) { - return true - } - - return false -} - -// SetRequestUrlOverride gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RequestUrlOverride field. -func (o *ProfileDetailedConfigurationSecurityTests) SetRequestUrlOverride(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.RequestUrlOverride = &v -} - -// GetResourceLimitingBypass returns the ResourceLimitingBypass field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetResourceLimitingBypass() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ResourceLimitingBypass) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ResourceLimitingBypass -} - -// GetResourceLimitingBypassOk returns a tuple with the ResourceLimitingBypass field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetResourceLimitingBypassOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ResourceLimitingBypass) { - return nil, false - } - return o.ResourceLimitingBypass, true -} - -// HasResourceLimitingBypass returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasResourceLimitingBypass() bool { - if o != nil && !IsNil(o.ResourceLimitingBypass) { - return true - } - - return false -} - -// SetResourceLimitingBypass gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ResourceLimitingBypass field. -func (o *ProfileDetailedConfigurationSecurityTests) SetResourceLimitingBypass(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ResourceLimitingBypass = &v -} - -// GetResponseSize returns the ResponseSize field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetResponseSize() ProfileDetailedConfigurationSecurityTestsResponseSize { - if o == nil || IsNil(o.ResponseSize) { - var ret ProfileDetailedConfigurationSecurityTestsResponseSize - return ret - } - return *o.ResponseSize -} - -// GetResponseSizeOk returns a tuple with the ResponseSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetResponseSizeOk() (*ProfileDetailedConfigurationSecurityTestsResponseSize, bool) { - if o == nil || IsNil(o.ResponseSize) { - return nil, false - } - return o.ResponseSize, true -} - -// HasResponseSize returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasResponseSize() bool { - if o != nil && !IsNil(o.ResponseSize) { - return true - } - - return false -} - -// SetResponseSize gets a reference to the given ProfileDetailedConfigurationSecurityTestsResponseSize and assigns it to the ResponseSize field. -func (o *ProfileDetailedConfigurationSecurityTests) SetResponseSize(v ProfileDetailedConfigurationSecurityTestsResponseSize) { - o.ResponseSize = &v -} - -// GetResponseTypeMismatch returns the ResponseTypeMismatch field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetResponseTypeMismatch() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ResponseTypeMismatch) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ResponseTypeMismatch -} - -// GetResponseTypeMismatchOk returns a tuple with the ResponseTypeMismatch field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetResponseTypeMismatchOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ResponseTypeMismatch) { - return nil, false - } - return o.ResponseTypeMismatch, true -} - -// HasResponseTypeMismatch returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasResponseTypeMismatch() bool { - if o != nil && !IsNil(o.ResponseTypeMismatch) { - return true - } - - return false -} - -// SetResponseTypeMismatch gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ResponseTypeMismatch field. -func (o *ProfileDetailedConfigurationSecurityTests) SetResponseTypeMismatch(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ResponseTypeMismatch = &v -} - -// GetSensitiveComments returns the SensitiveComments field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSensitiveComments() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SensitiveComments) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SensitiveComments -} - -// GetSensitiveCommentsOk returns a tuple with the SensitiveComments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSensitiveCommentsOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SensitiveComments) { - return nil, false - } - return o.SensitiveComments, true -} - -// HasSensitiveComments returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSensitiveComments() bool { - if o != nil && !IsNil(o.SensitiveComments) { - return true - } - - return false -} - -// SetSensitiveComments gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SensitiveComments field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSensitiveComments(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SensitiveComments = &v -} - -// GetSensitiveEndpointBruteforce returns the SensitiveEndpointBruteforce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSensitiveEndpointBruteforce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SensitiveEndpointBruteforce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SensitiveEndpointBruteforce -} - -// GetSensitiveEndpointBruteforceOk returns a tuple with the SensitiveEndpointBruteforce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSensitiveEndpointBruteforceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SensitiveEndpointBruteforce) { - return nil, false - } - return o.SensitiveEndpointBruteforce, true -} - -// HasSensitiveEndpointBruteforce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSensitiveEndpointBruteforce() bool { - if o != nil && !IsNil(o.SensitiveEndpointBruteforce) { - return true - } - - return false -} - -// SetSensitiveEndpointBruteforce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SensitiveEndpointBruteforce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSensitiveEndpointBruteforce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SensitiveEndpointBruteforce = &v -} - -// GetServerError returns the ServerError field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetServerError() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ServerError) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ServerError -} - -// GetServerErrorOk returns a tuple with the ServerError field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetServerErrorOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ServerError) { - return nil, false - } - return o.ServerError, true -} - -// HasServerError returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasServerError() bool { - if o != nil && !IsNil(o.ServerError) { - return true - } - - return false -} - -// SetServerError gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ServerError field. -func (o *ProfileDetailedConfigurationSecurityTests) SetServerError(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ServerError = &v -} - -// GetSoftwareComponentLeak returns the SoftwareComponentLeak field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSoftwareComponentLeak() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SoftwareComponentLeak) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SoftwareComponentLeak -} - -// GetSoftwareComponentLeakOk returns a tuple with the SoftwareComponentLeak field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSoftwareComponentLeakOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SoftwareComponentLeak) { - return nil, false - } - return o.SoftwareComponentLeak, true -} - -// HasSoftwareComponentLeak returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSoftwareComponentLeak() bool { - if o != nil && !IsNil(o.SoftwareComponentLeak) { - return true - } - - return false -} - -// SetSoftwareComponentLeak gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SoftwareComponentLeak field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSoftwareComponentLeak(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SoftwareComponentLeak = &v -} - -// GetSpringbootActuatorDump returns the SpringbootActuatorDump field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorDump() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpringbootActuatorDump) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpringbootActuatorDump -} - -// GetSpringbootActuatorDumpOk returns a tuple with the SpringbootActuatorDump field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorDumpOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpringbootActuatorDump) { - return nil, false - } - return o.SpringbootActuatorDump, true -} - -// HasSpringbootActuatorDump returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpringbootActuatorDump() bool { - if o != nil && !IsNil(o.SpringbootActuatorDump) { - return true - } - - return false -} - -// SetSpringbootActuatorDump gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorDump field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpringbootActuatorDump(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpringbootActuatorDump = &v -} - -// GetSpringbootActuatorEnv returns the SpringbootActuatorEnv field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorEnv() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpringbootActuatorEnv) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpringbootActuatorEnv -} - -// GetSpringbootActuatorEnvOk returns a tuple with the SpringbootActuatorEnv field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorEnvOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpringbootActuatorEnv) { - return nil, false - } - return o.SpringbootActuatorEnv, true -} - -// HasSpringbootActuatorEnv returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpringbootActuatorEnv() bool { - if o != nil && !IsNil(o.SpringbootActuatorEnv) { - return true - } - - return false -} - -// SetSpringbootActuatorEnv gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorEnv field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpringbootActuatorEnv(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpringbootActuatorEnv = &v -} - -// GetSpringbootActuatorHeapdump returns the SpringbootActuatorHeapdump field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorHeapdump() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpringbootActuatorHeapdump) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpringbootActuatorHeapdump -} - -// GetSpringbootActuatorHeapdumpOk returns a tuple with the SpringbootActuatorHeapdump field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorHeapdumpOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpringbootActuatorHeapdump) { - return nil, false - } - return o.SpringbootActuatorHeapdump, true -} - -// HasSpringbootActuatorHeapdump returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpringbootActuatorHeapdump() bool { - if o != nil && !IsNil(o.SpringbootActuatorHeapdump) { - return true - } - - return false -} - -// SetSpringbootActuatorHeapdump gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorHeapdump field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpringbootActuatorHeapdump(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpringbootActuatorHeapdump = &v -} - -// GetSpringbootActuatorLogfile returns the SpringbootActuatorLogfile field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorLogfile() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpringbootActuatorLogfile) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpringbootActuatorLogfile -} - -// GetSpringbootActuatorLogfileOk returns a tuple with the SpringbootActuatorLogfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorLogfileOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpringbootActuatorLogfile) { - return nil, false - } - return o.SpringbootActuatorLogfile, true -} - -// HasSpringbootActuatorLogfile returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpringbootActuatorLogfile() bool { - if o != nil && !IsNil(o.SpringbootActuatorLogfile) { - return true - } - - return false -} - -// SetSpringbootActuatorLogfile gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorLogfile field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpringbootActuatorLogfile(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpringbootActuatorLogfile = &v -} - -// GetSpringbootActuatorMappings returns the SpringbootActuatorMappings field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorMappings() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpringbootActuatorMappings) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpringbootActuatorMappings -} - -// GetSpringbootActuatorMappingsOk returns a tuple with the SpringbootActuatorMappings field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorMappingsOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpringbootActuatorMappings) { - return nil, false - } - return o.SpringbootActuatorMappings, true -} - -// HasSpringbootActuatorMappings returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpringbootActuatorMappings() bool { - if o != nil && !IsNil(o.SpringbootActuatorMappings) { - return true - } - - return false -} - -// SetSpringbootActuatorMappings gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorMappings field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpringbootActuatorMappings(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpringbootActuatorMappings = &v -} - -// GetSpringbootActuatorRestart returns the SpringbootActuatorRestart field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorRestart() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpringbootActuatorRestart) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpringbootActuatorRestart -} - -// GetSpringbootActuatorRestartOk returns a tuple with the SpringbootActuatorRestart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorRestartOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpringbootActuatorRestart) { - return nil, false - } - return o.SpringbootActuatorRestart, true -} - -// HasSpringbootActuatorRestart returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpringbootActuatorRestart() bool { - if o != nil && !IsNil(o.SpringbootActuatorRestart) { - return true - } - - return false -} - -// SetSpringbootActuatorRestart gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorRestart field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpringbootActuatorRestart(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpringbootActuatorRestart = &v -} - -// GetSpringbootActuatorShutdown returns the SpringbootActuatorShutdown field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorShutdown() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpringbootActuatorShutdown) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpringbootActuatorShutdown -} - -// GetSpringbootActuatorShutdownOk returns a tuple with the SpringbootActuatorShutdown field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorShutdownOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpringbootActuatorShutdown) { - return nil, false - } - return o.SpringbootActuatorShutdown, true -} - -// HasSpringbootActuatorShutdown returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpringbootActuatorShutdown() bool { - if o != nil && !IsNil(o.SpringbootActuatorShutdown) { - return true - } - - return false -} - -// SetSpringbootActuatorShutdown gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorShutdown field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpringbootActuatorShutdown(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpringbootActuatorShutdown = &v -} - -// GetSpringbootActuatorTrace returns the SpringbootActuatorTrace field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorTrace() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpringbootActuatorTrace) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpringbootActuatorTrace -} - -// GetSpringbootActuatorTraceOk returns a tuple with the SpringbootActuatorTrace field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpringbootActuatorTraceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpringbootActuatorTrace) { - return nil, false - } - return o.SpringbootActuatorTrace, true -} - -// HasSpringbootActuatorTrace returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpringbootActuatorTrace() bool { - if o != nil && !IsNil(o.SpringbootActuatorTrace) { - return true - } - - return false -} - -// SetSpringbootActuatorTrace gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpringbootActuatorTrace field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpringbootActuatorTrace(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpringbootActuatorTrace = &v -} - -// GetSql returns the Sql field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSql() ProfileDetailedConfigurationSecurityTestsSql { - if o == nil || IsNil(o.Sql) { - var ret ProfileDetailedConfigurationSecurityTestsSql - return ret - } - return *o.Sql -} - -// GetSqlOk returns a tuple with the Sql field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSqlOk() (*ProfileDetailedConfigurationSecurityTestsSql, bool) { - if o == nil || IsNil(o.Sql) { - return nil, false - } - return o.Sql, true -} - -// HasSql returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSql() bool { - if o != nil && !IsNil(o.Sql) { - return true - } - - return false -} - -// SetSql gets a reference to the given ProfileDetailedConfigurationSecurityTestsSql and assigns it to the Sql field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSql(v ProfileDetailedConfigurationSecurityTestsSql) { - o.Sql = &v -} - -// GetSslCertificate returns the SslCertificate field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSslCertificate() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SslCertificate) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SslCertificate -} - -// GetSslCertificateOk returns a tuple with the SslCertificate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSslCertificateOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SslCertificate) { - return nil, false - } - return o.SslCertificate, true -} - -// HasSslCertificate returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSslCertificate() bool { - if o != nil && !IsNil(o.SslCertificate) { - return true - } - - return false -} - -// SetSslCertificate gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SslCertificate field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSslCertificate(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SslCertificate = &v -} - -// GetSsl returns the Ssl field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSsl() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Ssl) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Ssl -} - -// GetSslOk returns a tuple with the Ssl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSslOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Ssl) { - return nil, false - } - return o.Ssl, true -} - -// HasSsl returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSsl() bool { - if o != nil && !IsNil(o.Ssl) { - return true - } - - return false -} - -// SetSsl gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Ssl field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSsl(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Ssl = &v -} - -// GetSsrfHeader returns the SsrfHeader field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSsrfHeader() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SsrfHeader) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SsrfHeader -} - -// GetSsrfHeaderOk returns a tuple with the SsrfHeader field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSsrfHeaderOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SsrfHeader) { - return nil, false - } - return o.SsrfHeader, true -} - -// HasSsrfHeader returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSsrfHeader() bool { - if o != nil && !IsNil(o.SsrfHeader) { - return true - } - - return false -} - -// SetSsrfHeader gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SsrfHeader field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSsrfHeader(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SsrfHeader = &v -} - -// GetSsrf returns the Ssrf field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSsrf() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Ssrf) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Ssrf -} - -// GetSsrfOk returns a tuple with the Ssrf field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSsrfOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Ssrf) { - return nil, false - } - return o.Ssrf, true -} - -// HasSsrf returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSsrf() bool { - if o != nil && !IsNil(o.Ssrf) { - return true - } - - return false -} - -// SetSsrf gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Ssrf field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSsrf(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Ssrf = &v -} - -// GetSsti returns the Ssti field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSsti() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Ssti) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Ssti -} - -// GetSstiOk returns a tuple with the Ssti field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSstiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Ssti) { - return nil, false - } - return o.Ssti, true -} - -// HasSsti returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSsti() bool { - if o != nil && !IsNil(o.Ssti) { - return true - } - - return false -} - -// SetSsti gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Ssti field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSsti(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Ssti = &v -} - -// GetStacktrace returns the Stacktrace field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetStacktrace() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Stacktrace) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - 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 *ProfileDetailedConfigurationSecurityTests) GetStacktraceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Stacktrace) { - return nil, false - } - return o.Stacktrace, true -} - -// HasStacktrace returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasStacktrace() bool { - if o != nil && !IsNil(o.Stacktrace) { - return true - } - - return false -} - -// SetStacktrace gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Stacktrace field. -func (o *ProfileDetailedConfigurationSecurityTests) SetStacktrace(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Stacktrace = &v -} - -// GetSubresourceIntegrityMissing returns the SubresourceIntegrityMissing field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSubresourceIntegrityMissing() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SubresourceIntegrityMissing) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SubresourceIntegrityMissing -} - -// GetSubresourceIntegrityMissingOk returns a tuple with the SubresourceIntegrityMissing field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSubresourceIntegrityMissingOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SubresourceIntegrityMissing) { - return nil, false - } - return o.SubresourceIntegrityMissing, true -} - -// HasSubresourceIntegrityMissing returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSubresourceIntegrityMissing() bool { - if o != nil && !IsNil(o.SubresourceIntegrityMissing) { - return true - } - - return false -} - -// SetSubresourceIntegrityMissing gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SubresourceIntegrityMissing field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSubresourceIntegrityMissing(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SubresourceIntegrityMissing = &v -} - -// GetSwaggerRules returns the SwaggerRules field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSwaggerRules() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SwaggerRules) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SwaggerRules -} - -// GetSwaggerRulesOk returns a tuple with the SwaggerRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSwaggerRulesOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SwaggerRules) { - return nil, false - } - return o.SwaggerRules, true -} - -// HasSwaggerRules returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSwaggerRules() bool { - if o != nil && !IsNil(o.SwaggerRules) { - return true - } - - return false -} - -// SetSwaggerRules gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SwaggerRules field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSwaggerRules(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SwaggerRules = &v -} - -// GetTenantIsolation returns the TenantIsolation field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTenantIsolation() ProfileDetailedConfigurationSecurityTestsTenantIsolation { - if o == nil || IsNil(o.TenantIsolation) { - var ret ProfileDetailedConfigurationSecurityTestsTenantIsolation - return ret - } - return *o.TenantIsolation -} - -// GetTenantIsolationOk returns a tuple with the TenantIsolation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTenantIsolationOk() (*ProfileDetailedConfigurationSecurityTestsTenantIsolation, bool) { - if o == nil || IsNil(o.TenantIsolation) { - return nil, false - } - return o.TenantIsolation, true -} - -// HasTenantIsolation returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTenantIsolation() bool { - if o != nil && !IsNil(o.TenantIsolation) { - return true - } - - return false -} - -// SetTenantIsolation gets a reference to the given ProfileDetailedConfigurationSecurityTestsTenantIsolation and assigns it to the TenantIsolation field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTenantIsolation(v ProfileDetailedConfigurationSecurityTestsTenantIsolation) { - o.TenantIsolation = &v -} - -// GetTimeout returns the Timeout field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTimeout() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Timeout) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Timeout -} - -// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTimeoutOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Timeout) { - return nil, false - } - return o.Timeout, true -} - -// HasTimeout returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTimeout() bool { - if o != nil && !IsNil(o.Timeout) { - return true - } - - return false -} - -// SetTimeout gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Timeout field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTimeout(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Timeout = &v -} - -// GetTlsConfigurationCipher returns the TlsConfigurationCipher field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationCipher() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TlsConfigurationCipher) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TlsConfigurationCipher -} - -// GetTlsConfigurationCipherOk returns a tuple with the TlsConfigurationCipher field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationCipherOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TlsConfigurationCipher) { - return nil, false - } - return o.TlsConfigurationCipher, true -} - -// HasTlsConfigurationCipher returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTlsConfigurationCipher() bool { - if o != nil && !IsNil(o.TlsConfigurationCipher) { - return true - } - - return false -} - -// SetTlsConfigurationCipher gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TlsConfigurationCipher field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTlsConfigurationCipher(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TlsConfigurationCipher = &v -} - -// GetTlsConfigurationKey returns the TlsConfigurationKey field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationKey() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TlsConfigurationKey) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TlsConfigurationKey -} - -// GetTlsConfigurationKeyOk returns a tuple with the TlsConfigurationKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationKeyOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TlsConfigurationKey) { - return nil, false - } - return o.TlsConfigurationKey, true -} - -// HasTlsConfigurationKey returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTlsConfigurationKey() bool { - if o != nil && !IsNil(o.TlsConfigurationKey) { - return true - } - - return false -} - -// SetTlsConfigurationKey gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TlsConfigurationKey field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTlsConfigurationKey(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TlsConfigurationKey = &v -} - -// GetTlsConfigurationProtocol returns the TlsConfigurationProtocol field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationProtocol() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TlsConfigurationProtocol) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TlsConfigurationProtocol -} - -// GetTlsConfigurationProtocolOk returns a tuple with the TlsConfigurationProtocol field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationProtocolOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TlsConfigurationProtocol) { - return nil, false - } - return o.TlsConfigurationProtocol, true -} - -// HasTlsConfigurationProtocol returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTlsConfigurationProtocol() bool { - if o != nil && !IsNil(o.TlsConfigurationProtocol) { - return true - } - - return false -} - -// SetTlsConfigurationProtocol gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TlsConfigurationProtocol field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTlsConfigurationProtocol(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TlsConfigurationProtocol = &v -} - -// GetTlsConfigurationServerDefault returns the TlsConfigurationServerDefault field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationServerDefault() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TlsConfigurationServerDefault) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TlsConfigurationServerDefault -} - -// GetTlsConfigurationServerDefaultOk returns a tuple with the TlsConfigurationServerDefault field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationServerDefaultOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TlsConfigurationServerDefault) { - return nil, false - } - return o.TlsConfigurationServerDefault, true -} - -// HasTlsConfigurationServerDefault returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTlsConfigurationServerDefault() bool { - if o != nil && !IsNil(o.TlsConfigurationServerDefault) { - return true - } - - return false -} - -// SetTlsConfigurationServerDefault gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TlsConfigurationServerDefault field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTlsConfigurationServerDefault(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TlsConfigurationServerDefault = &v -} - -// GetTlsConfigurationServerPref returns the TlsConfigurationServerPref field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationServerPref() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TlsConfigurationServerPref) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TlsConfigurationServerPref -} - -// GetTlsConfigurationServerPrefOk returns a tuple with the TlsConfigurationServerPref field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationServerPrefOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TlsConfigurationServerPref) { - return nil, false - } - return o.TlsConfigurationServerPref, true -} - -// HasTlsConfigurationServerPref returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTlsConfigurationServerPref() bool { - if o != nil && !IsNil(o.TlsConfigurationServerPref) { - return true - } - - return false -} - -// SetTlsConfigurationServerPref gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TlsConfigurationServerPref field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTlsConfigurationServerPref(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TlsConfigurationServerPref = &v -} - -// GetTlsConfigurationVuln returns the TlsConfigurationVuln field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationVuln() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TlsConfigurationVuln) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TlsConfigurationVuln -} - -// GetTlsConfigurationVulnOk returns a tuple with the TlsConfigurationVuln field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTlsConfigurationVulnOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TlsConfigurationVuln) { - return nil, false - } - return o.TlsConfigurationVuln, true -} - -// HasTlsConfigurationVuln returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTlsConfigurationVuln() bool { - if o != nil && !IsNil(o.TlsConfigurationVuln) { - return true - } - - return false -} - -// SetTlsConfigurationVuln gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TlsConfigurationVuln field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTlsConfigurationVuln(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TlsConfigurationVuln = &v -} - -// GetTypingMisconfiguration returns the TypingMisconfiguration field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTypingMisconfiguration() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TypingMisconfiguration) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TypingMisconfiguration -} - -// GetTypingMisconfigurationOk returns a tuple with the TypingMisconfiguration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTypingMisconfigurationOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TypingMisconfiguration) { - return nil, false - } - return o.TypingMisconfiguration, true -} - -// HasTypingMisconfiguration returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTypingMisconfiguration() bool { - if o != nil && !IsNil(o.TypingMisconfiguration) { - return true - } - - return false -} - -// SetTypingMisconfiguration gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TypingMisconfiguration field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTypingMisconfiguration(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TypingMisconfiguration = &v -} - -// GetUndefinedObject returns the UndefinedObject field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetUndefinedObject() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.UndefinedObject) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.UndefinedObject -} - -// GetUndefinedObjectOk returns a tuple with the UndefinedObject field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetUndefinedObjectOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.UndefinedObject) { - return nil, false - } - return o.UndefinedObject, true -} - -// HasUndefinedObject returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasUndefinedObject() bool { - if o != nil && !IsNil(o.UndefinedObject) { - return true - } - - return false -} - -// SetUndefinedObject gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the UndefinedObject field. -func (o *ProfileDetailedConfigurationSecurityTests) SetUndefinedObject(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.UndefinedObject = &v -} - -// GetUnhandledEndpoint returns the UnhandledEndpoint field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetUnhandledEndpoint() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.UnhandledEndpoint) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.UnhandledEndpoint -} - -// GetUnhandledEndpointOk returns a tuple with the UnhandledEndpoint field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetUnhandledEndpointOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.UnhandledEndpoint) { - return nil, false - } - return o.UnhandledEndpoint, true -} - -// HasUnhandledEndpoint returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasUnhandledEndpoint() bool { - if o != nil && !IsNil(o.UnhandledEndpoint) { - return true - } - - return false -} - -// SetUnhandledEndpoint gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the UnhandledEndpoint field. -func (o *ProfileDetailedConfigurationSecurityTests) SetUnhandledEndpoint(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.UnhandledEndpoint = &v -} - -// GetUnreachableServer returns the UnreachableServer field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetUnreachableServer() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.UnreachableServer) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.UnreachableServer -} - -// GetUnreachableServerOk returns a tuple with the UnreachableServer field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetUnreachableServerOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.UnreachableServer) { - return nil, false - } - return o.UnreachableServer, true -} - -// HasUnreachableServer returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasUnreachableServer() bool { - if o != nil && !IsNil(o.UnreachableServer) { - return true - } - - return false -} - -// SetUnreachableServer gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the UnreachableServer field. -func (o *ProfileDetailedConfigurationSecurityTests) SetUnreachableServer(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.UnreachableServer = &v -} - -// GetUnsafeFunctionUse returns the UnsafeFunctionUse field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetUnsafeFunctionUse() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.UnsafeFunctionUse) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.UnsafeFunctionUse -} - -// GetUnsafeFunctionUseOk returns a tuple with the UnsafeFunctionUse field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetUnsafeFunctionUseOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.UnsafeFunctionUse) { - return nil, false - } - return o.UnsafeFunctionUse, true -} - -// HasUnsafeFunctionUse returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasUnsafeFunctionUse() bool { - if o != nil && !IsNil(o.UnsafeFunctionUse) { - return true - } - - return false -} - -// SetUnsafeFunctionUse gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the UnsafeFunctionUse field. -func (o *ProfileDetailedConfigurationSecurityTests) SetUnsafeFunctionUse(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.UnsafeFunctionUse = &v -} - -// GetWafBypass returns the WafBypass field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWafBypass() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WafBypass) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WafBypass -} - -// GetWafBypassOk returns a tuple with the WafBypass field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWafBypassOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WafBypass) { - return nil, false - } - return o.WafBypass, true -} - -// HasWafBypass returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWafBypass() bool { - if o != nil && !IsNil(o.WafBypass) { - return true - } - - return false -} - -// SetWafBypass gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WafBypass field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWafBypass(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WafBypass = &v -} - -// GetWordpressOembedEndpointExposed returns the WordpressOembedEndpointExposed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressOembedEndpointExposed() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressOembedEndpointExposed) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressOembedEndpointExposed -} - -// GetWordpressOembedEndpointExposedOk returns a tuple with the WordpressOembedEndpointExposed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressOembedEndpointExposedOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressOembedEndpointExposed) { - return nil, false - } - return o.WordpressOembedEndpointExposed, true -} - -// HasWordpressOembedEndpointExposed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressOembedEndpointExposed() bool { - if o != nil && !IsNil(o.WordpressOembedEndpointExposed) { - return true - } - - return false -} - -// SetWordpressOembedEndpointExposed gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressOembedEndpointExposed field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressOembedEndpointExposed(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressOembedEndpointExposed = &v -} - -// GetWordpressRdfFeedUserExposed returns the WordpressRdfFeedUserExposed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressRdfFeedUserExposed() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressRdfFeedUserExposed) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressRdfFeedUserExposed -} - -// GetWordpressRdfFeedUserExposedOk returns a tuple with the WordpressRdfFeedUserExposed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressRdfFeedUserExposedOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressRdfFeedUserExposed) { - return nil, false - } - return o.WordpressRdfFeedUserExposed, true -} - -// HasWordpressRdfFeedUserExposed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressRdfFeedUserExposed() bool { - if o != nil && !IsNil(o.WordpressRdfFeedUserExposed) { - return true - } - - return false -} - -// SetWordpressRdfFeedUserExposed gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressRdfFeedUserExposed field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressRdfFeedUserExposed(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressRdfFeedUserExposed = &v -} - -// GetWordpressRestApiUsersExposed returns the WordpressRestApiUsersExposed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressRestApiUsersExposed() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressRestApiUsersExposed) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressRestApiUsersExposed -} - -// GetWordpressRestApiUsersExposedOk returns a tuple with the WordpressRestApiUsersExposed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressRestApiUsersExposedOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressRestApiUsersExposed) { - return nil, false - } - return o.WordpressRestApiUsersExposed, true -} - -// HasWordpressRestApiUsersExposed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressRestApiUsersExposed() bool { - if o != nil && !IsNil(o.WordpressRestApiUsersExposed) { - return true - } - - return false -} - -// SetWordpressRestApiUsersExposed gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressRestApiUsersExposed field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressRestApiUsersExposed(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressRestApiUsersExposed = &v -} - -// GetWordpressAffiliatewpLog returns the WordpressAffiliatewpLog field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressAffiliatewpLog() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressAffiliatewpLog) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressAffiliatewpLog -} - -// GetWordpressAffiliatewpLogOk returns a tuple with the WordpressAffiliatewpLog field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressAffiliatewpLogOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressAffiliatewpLog) { - return nil, false - } - return o.WordpressAffiliatewpLog, true -} - -// HasWordpressAffiliatewpLog returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressAffiliatewpLog() bool { - if o != nil && !IsNil(o.WordpressAffiliatewpLog) { - return true - } - - return false -} - -// SetWordpressAffiliatewpLog gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressAffiliatewpLog field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressAffiliatewpLog(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressAffiliatewpLog = &v -} - -// GetWordpressDbBackup returns the WordpressDbBackup field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressDbBackup() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressDbBackup) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressDbBackup -} - -// GetWordpressDbBackupOk returns a tuple with the WordpressDbBackup field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressDbBackupOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressDbBackup) { - return nil, false - } - return o.WordpressDbBackup, true -} - -// HasWordpressDbBackup returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressDbBackup() bool { - if o != nil && !IsNil(o.WordpressDbBackup) { - return true - } - - return false -} - -// SetWordpressDbBackup gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressDbBackup field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressDbBackup(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressDbBackup = &v -} - -// GetWordpressDbBackupListing returns the WordpressDbBackupListing field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressDbBackupListing() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressDbBackupListing) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressDbBackupListing -} - -// GetWordpressDbBackupListingOk returns a tuple with the WordpressDbBackupListing field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressDbBackupListingOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressDbBackupListing) { - return nil, false - } - return o.WordpressDbBackupListing, true -} - -// HasWordpressDbBackupListing returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressDbBackupListing() bool { - if o != nil && !IsNil(o.WordpressDbBackupListing) { - return true - } - - return false -} - -// SetWordpressDbBackupListing gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressDbBackupListing field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressDbBackupListing(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressDbBackupListing = &v -} - -// GetWordpressDbRepair returns the WordpressDbRepair field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressDbRepair() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressDbRepair) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressDbRepair -} - -// GetWordpressDbRepairOk returns a tuple with the WordpressDbRepair field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressDbRepairOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressDbRepair) { - return nil, false - } - return o.WordpressDbRepair, true -} - -// HasWordpressDbRepair returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressDbRepair() bool { - if o != nil && !IsNil(o.WordpressDbRepair) { - return true - } - - return false -} - -// SetWordpressDbRepair gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressDbRepair field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressDbRepair(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressDbRepair = &v -} - -// GetWordpressDebugLog returns the WordpressDebugLog field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressDebugLog() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressDebugLog) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressDebugLog -} - -// GetWordpressDebugLogOk returns a tuple with the WordpressDebugLog field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressDebugLogOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressDebugLog) { - return nil, false - } - return o.WordpressDebugLog, true -} - -// HasWordpressDebugLog returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressDebugLog() bool { - if o != nil && !IsNil(o.WordpressDebugLog) { - return true - } - - return false -} - -// SetWordpressDebugLog gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressDebugLog field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressDebugLog(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressDebugLog = &v -} - -// GetWordpressSocialMetricsTracker returns the WordpressSocialMetricsTracker field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressSocialMetricsTracker() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressSocialMetricsTracker) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressSocialMetricsTracker -} - -// GetWordpressSocialMetricsTrackerOk returns a tuple with the WordpressSocialMetricsTracker field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressSocialMetricsTrackerOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressSocialMetricsTracker) { - return nil, false - } - return o.WordpressSocialMetricsTracker, true -} - -// HasWordpressSocialMetricsTracker returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressSocialMetricsTracker() bool { - if o != nil && !IsNil(o.WordpressSocialMetricsTracker) { - return true - } - - return false -} - -// SetWordpressSocialMetricsTracker gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressSocialMetricsTracker field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressSocialMetricsTracker(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressSocialMetricsTracker = &v -} - -// GetWordpressSsrfOembed returns the WordpressSsrfOembed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressSsrfOembed() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressSsrfOembed) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressSsrfOembed -} - -// GetWordpressSsrfOembedOk returns a tuple with the WordpressSsrfOembed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressSsrfOembedOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressSsrfOembed) { - return nil, false - } - return o.WordpressSsrfOembed, true -} - -// HasWordpressSsrfOembed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressSsrfOembed() bool { - if o != nil && !IsNil(o.WordpressSsrfOembed) { - return true - } - - return false -} - -// SetWordpressSsrfOembed gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressSsrfOembed field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressSsrfOembed(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressSsrfOembed = &v -} - -// GetWordpressTotalUpkeepBackupDownload returns the WordpressTotalUpkeepBackupDownload field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressTotalUpkeepBackupDownload() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressTotalUpkeepBackupDownload) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressTotalUpkeepBackupDownload -} - -// GetWordpressTotalUpkeepBackupDownloadOk returns a tuple with the WordpressTotalUpkeepBackupDownload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressTotalUpkeepBackupDownloadOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressTotalUpkeepBackupDownload) { - return nil, false - } - return o.WordpressTotalUpkeepBackupDownload, true -} - -// HasWordpressTotalUpkeepBackupDownload returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressTotalUpkeepBackupDownload() bool { - if o != nil && !IsNil(o.WordpressTotalUpkeepBackupDownload) { - return true - } - - return false -} - -// SetWordpressTotalUpkeepBackupDownload gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressTotalUpkeepBackupDownload field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressTotalUpkeepBackupDownload(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressTotalUpkeepBackupDownload = &v -} - -// GetWordpressWordfenceLfi returns the WordpressWordfenceLfi field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressWordfenceLfi() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressWordfenceLfi) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressWordfenceLfi -} - -// GetWordpressWordfenceLfiOk returns a tuple with the WordpressWordfenceLfi field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressWordfenceLfiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressWordfenceLfi) { - return nil, false - } - return o.WordpressWordfenceLfi, true -} - -// HasWordpressWordfenceLfi returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressWordfenceLfi() bool { - if o != nil && !IsNil(o.WordpressWordfenceLfi) { - return true - } - - return false -} - -// SetWordpressWordfenceLfi gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressWordfenceLfi field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressWordfenceLfi(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressWordfenceLfi = &v -} - -// GetWordpressWordfenceWafBypassXss returns the WordpressWordfenceWafBypassXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressWordfenceWafBypassXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressWordfenceWafBypassXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressWordfenceWafBypassXss -} - -// GetWordpressWordfenceWafBypassXssOk returns a tuple with the WordpressWordfenceWafBypassXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressWordfenceWafBypassXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressWordfenceWafBypassXss) { - return nil, false - } - return o.WordpressWordfenceWafBypassXss, true -} - -// HasWordpressWordfenceWafBypassXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressWordfenceWafBypassXss() bool { - if o != nil && !IsNil(o.WordpressWordfenceWafBypassXss) { - return true - } - - return false -} - -// SetWordpressWordfenceWafBypassXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressWordfenceWafBypassXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressWordfenceWafBypassXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressWordfenceWafBypassXss = &v -} - -// GetWordpressWordfenceXss returns the WordpressWordfenceXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressWordfenceXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressWordfenceXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressWordfenceXss -} - -// GetWordpressWordfenceXssOk returns a tuple with the WordpressWordfenceXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressWordfenceXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressWordfenceXss) { - return nil, false - } - return o.WordpressWordfenceXss, true -} - -// HasWordpressWordfenceXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressWordfenceXss() bool { - if o != nil && !IsNil(o.WordpressWordfenceXss) { - return true - } - - return false -} - -// SetWordpressWordfenceXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressWordfenceXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressWordfenceXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressWordfenceXss = &v -} - -// GetWordpressWpCronExposed returns the WordpressWpCronExposed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressWpCronExposed() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressWpCronExposed) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressWpCronExposed -} - -// GetWordpressWpCronExposedOk returns a tuple with the WordpressWpCronExposed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressWpCronExposedOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressWpCronExposed) { - return nil, false - } - return o.WordpressWpCronExposed, true -} - -// HasWordpressWpCronExposed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressWpCronExposed() bool { - if o != nil && !IsNil(o.WordpressWpCronExposed) { - return true - } - - return false -} - -// SetWordpressWpCronExposed gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressWpCronExposed field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressWpCronExposed(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressWpCronExposed = &v -} - -// GetWordpressXmlrpcPhpExposed returns the WordpressXmlrpcPhpExposed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressXmlrpcPhpExposed() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressXmlrpcPhpExposed) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressXmlrpcPhpExposed -} - -// GetWordpressXmlrpcPhpExposedOk returns a tuple with the WordpressXmlrpcPhpExposed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressXmlrpcPhpExposedOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressXmlrpcPhpExposed) { - return nil, false - } - return o.WordpressXmlrpcPhpExposed, true -} - -// HasWordpressXmlrpcPhpExposed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressXmlrpcPhpExposed() bool { - if o != nil && !IsNil(o.WordpressXmlrpcPhpExposed) { - return true - } - - return false -} - -// SetWordpressXmlrpcPhpExposed gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressXmlrpcPhpExposed field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressXmlrpcPhpExposed(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressXmlrpcPhpExposed = &v -} - -// GetWordpressZebraFormXss returns the WordpressZebraFormXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressZebraFormXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressZebraFormXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressZebraFormXss -} - -// GetWordpressZebraFormXssOk returns a tuple with the WordpressZebraFormXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressZebraFormXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressZebraFormXss) { - return nil, false - } - return o.WordpressZebraFormXss, true -} - -// HasWordpressZebraFormXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressZebraFormXss() bool { - if o != nil && !IsNil(o.WordpressZebraFormXss) { - return true - } - - return false -} - -// SetWordpressZebraFormXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressZebraFormXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressZebraFormXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressZebraFormXss = &v -} - -// GetWpInsertPhpXss returns the WpInsertPhpXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWpInsertPhpXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WpInsertPhpXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WpInsertPhpXss -} - -// GetWpInsertPhpXssOk returns a tuple with the WpInsertPhpXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWpInsertPhpXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WpInsertPhpXss) { - return nil, false - } - return o.WpInsertPhpXss, true -} - -// HasWpInsertPhpXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWpInsertPhpXss() bool { - if o != nil && !IsNil(o.WpInsertPhpXss) { - return true - } - - return false -} - -// SetWpInsertPhpXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WpInsertPhpXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWpInsertPhpXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WpInsertPhpXss = &v -} - -// GetWpPhpfreechatXss returns the WpPhpfreechatXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWpPhpfreechatXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WpPhpfreechatXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WpPhpfreechatXss -} - -// GetWpPhpfreechatXssOk returns a tuple with the WpPhpfreechatXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWpPhpfreechatXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WpPhpfreechatXss) { - return nil, false - } - return o.WpPhpfreechatXss, true -} - -// HasWpPhpfreechatXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWpPhpfreechatXss() bool { - if o != nil && !IsNil(o.WpPhpfreechatXss) { - return true - } - - return false -} - -// SetWpPhpfreechatXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WpPhpfreechatXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWpPhpfreechatXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WpPhpfreechatXss = &v -} - -// GetXssViaDomainTakeover returns the XssViaDomainTakeover field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetXssViaDomainTakeover() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.XssViaDomainTakeover) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.XssViaDomainTakeover -} - -// GetXssViaDomainTakeoverOk returns a tuple with the XssViaDomainTakeover field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetXssViaDomainTakeoverOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.XssViaDomainTakeover) { - return nil, false - } - return o.XssViaDomainTakeover, true -} - -// HasXssViaDomainTakeover returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasXssViaDomainTakeover() bool { - if o != nil && !IsNil(o.XssViaDomainTakeover) { - return true - } - - return false -} - -// SetXssViaDomainTakeover gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the XssViaDomainTakeover field. -func (o *ProfileDetailedConfigurationSecurityTests) SetXssViaDomainTakeover(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.XssViaDomainTakeover = &v -} - -// GetXxe returns the Xxe field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetXxe() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Xxe) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Xxe -} - -// GetXxeOk returns a tuple with the Xxe field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetXxeOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Xxe) { - return nil, false - } - return o.Xxe, true -} - -// HasXxe returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasXxe() bool { - if o != nil && !IsNil(o.Xxe) { - return true - } - - return false -} - -// SetXxe gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Xxe field. -func (o *ProfileDetailedConfigurationSecurityTests) SetXxe(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Xxe = &v -} - -// GetZombieObject returns the ZombieObject field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetZombieObject() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ZombieObject) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ZombieObject -} - -// GetZombieObjectOk returns a tuple with the ZombieObject field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetZombieObjectOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ZombieObject) { - return nil, false - } - return o.ZombieObject, true -} - -// HasZombieObject returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasZombieObject() bool { - if o != nil && !IsNil(o.ZombieObject) { - return true - } - - return false -} - -// SetZombieObject gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ZombieObject field. -func (o *ProfileDetailedConfigurationSecurityTests) SetZombieObject(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ZombieObject = &v -} - -// GetFlaskSessionCookie returns the FlaskSessionCookie field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetFlaskSessionCookie() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.FlaskSessionCookie) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.FlaskSessionCookie -} - -// GetFlaskSessionCookieOk returns a tuple with the FlaskSessionCookie field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetFlaskSessionCookieOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.FlaskSessionCookie) { - return nil, false - } - return o.FlaskSessionCookie, true -} - -// HasFlaskSessionCookie returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasFlaskSessionCookie() bool { - if o != nil && !IsNil(o.FlaskSessionCookie) { - return true - } - - return false -} - -// SetFlaskSessionCookie gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the FlaskSessionCookie field. -func (o *ProfileDetailedConfigurationSecurityTests) SetFlaskSessionCookie(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.FlaskSessionCookie = &v -} - -// GetGeovisionGeowebserverLfiXss returns the GeovisionGeowebserverLfiXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGeovisionGeowebserverLfiXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GeovisionGeowebserverLfiXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GeovisionGeowebserverLfiXss -} - -// GetGeovisionGeowebserverLfiXssOk returns a tuple with the GeovisionGeowebserverLfiXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGeovisionGeowebserverLfiXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GeovisionGeowebserverLfiXss) { - return nil, false - } - return o.GeovisionGeowebserverLfiXss, true -} - -// HasGeovisionGeowebserverLfiXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGeovisionGeowebserverLfiXss() bool { - if o != nil && !IsNil(o.GeovisionGeowebserverLfiXss) { - return true - } - - return false -} - -// SetGeovisionGeowebserverLfiXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GeovisionGeowebserverLfiXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGeovisionGeowebserverLfiXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GeovisionGeowebserverLfiXss = &v -} - -// GetGitExposure returns the GitExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGitExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GitExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GitExposure -} - -// GetGitExposureOk returns a tuple with the GitExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGitExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GitExposure) { - return nil, false - } - return o.GitExposure, true -} - -// HasGitExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGitExposure() bool { - if o != nil && !IsNil(o.GitExposure) { - return true - } - - return false -} - -// SetGitExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GitExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGitExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GitExposure = &v -} - -// GetGitlabWeakLogin returns the GitlabWeakLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGitlabWeakLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GitlabWeakLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GitlabWeakLogin -} - -// GetGitlabWeakLoginOk returns a tuple with the GitlabWeakLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGitlabWeakLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GitlabWeakLogin) { - return nil, false - } - return o.GitlabWeakLogin, true -} - -// HasGitlabWeakLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGitlabWeakLogin() bool { - if o != nil && !IsNil(o.GitlabWeakLogin) { - return true - } - - return false -} - -// SetGitlabWeakLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GitlabWeakLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGitlabWeakLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GitlabWeakLogin = &v -} - -// GetGlpiDefaultLogin returns the GlpiDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGlpiDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GlpiDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GlpiDefaultLogin -} - -// GetGlpiDefaultLoginOk returns a tuple with the GlpiDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGlpiDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GlpiDefaultLogin) { - return nil, false - } - return o.GlpiDefaultLogin, true -} - -// HasGlpiDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGlpiDefaultLogin() bool { - if o != nil && !IsNil(o.GlpiDefaultLogin) { - return true - } - - return false -} - -// SetGlpiDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GlpiDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGlpiDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GlpiDefaultLogin = &v -} - -// GetGrafanaDefaultLogin returns the GrafanaDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetGrafanaDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.GrafanaDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.GrafanaDefaultLogin -} - -// GetGrafanaDefaultLoginOk returns a tuple with the GrafanaDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetGrafanaDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.GrafanaDefaultLogin) { - return nil, false - } - return o.GrafanaDefaultLogin, true -} - -// HasGrafanaDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasGrafanaDefaultLogin() bool { - if o != nil && !IsNil(o.GrafanaDefaultLogin) { - return true - } - - return false -} - -// SetGrafanaDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the GrafanaDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetGrafanaDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.GrafanaDefaultLogin = &v -} - -// GetInfobloxNetmriRailsCookieRce returns the InfobloxNetmriRailsCookieRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetInfobloxNetmriRailsCookieRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.InfobloxNetmriRailsCookieRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.InfobloxNetmriRailsCookieRce -} - -// GetInfobloxNetmriRailsCookieRceOk returns a tuple with the InfobloxNetmriRailsCookieRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetInfobloxNetmriRailsCookieRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.InfobloxNetmriRailsCookieRce) { - return nil, false - } - return o.InfobloxNetmriRailsCookieRce, true -} - -// HasInfobloxNetmriRailsCookieRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasInfobloxNetmriRailsCookieRce() bool { - if o != nil && !IsNil(o.InfobloxNetmriRailsCookieRce) { - return true - } - - return false -} - -// SetInfobloxNetmriRailsCookieRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the InfobloxNetmriRailsCookieRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetInfobloxNetmriRailsCookieRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.InfobloxNetmriRailsCookieRce = &v -} - -// GetIotawattAppExposure returns the IotawattAppExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetIotawattAppExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.IotawattAppExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.IotawattAppExposure -} - -// GetIotawattAppExposureOk returns a tuple with the IotawattAppExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetIotawattAppExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.IotawattAppExposure) { - return nil, false - } - return o.IotawattAppExposure, true -} - -// HasIotawattAppExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasIotawattAppExposure() bool { - if o != nil && !IsNil(o.IotawattAppExposure) { - return true - } - - return false -} - -// SetIotawattAppExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the IotawattAppExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetIotawattAppExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.IotawattAppExposure = &v -} - -// GetJenkinsWeakPassword returns the JenkinsWeakPassword field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJenkinsWeakPassword() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JenkinsWeakPassword) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JenkinsWeakPassword -} - -// GetJenkinsWeakPasswordOk returns a tuple with the JenkinsWeakPassword field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJenkinsWeakPasswordOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JenkinsWeakPassword) { - return nil, false - } - return o.JenkinsWeakPassword, true -} - -// HasJenkinsWeakPassword returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJenkinsWeakPassword() bool { - if o != nil && !IsNil(o.JenkinsWeakPassword) { - return true - } - - return false -} - -// SetJenkinsWeakPassword gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JenkinsWeakPassword field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJenkinsWeakPassword(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JenkinsWeakPassword = &v -} - -// GetJolokiaTomcatCredsLeak returns the JolokiaTomcatCredsLeak field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJolokiaTomcatCredsLeak() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JolokiaTomcatCredsLeak) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JolokiaTomcatCredsLeak -} - -// GetJolokiaTomcatCredsLeakOk returns a tuple with the JolokiaTomcatCredsLeak field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJolokiaTomcatCredsLeakOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JolokiaTomcatCredsLeak) { - return nil, false - } - return o.JolokiaTomcatCredsLeak, true -} - -// HasJolokiaTomcatCredsLeak returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJolokiaTomcatCredsLeak() bool { - if o != nil && !IsNil(o.JolokiaTomcatCredsLeak) { - return true - } - - return false -} - -// SetJolokiaTomcatCredsLeak gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JolokiaTomcatCredsLeak field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJolokiaTomcatCredsLeak(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JolokiaTomcatCredsLeak = &v -} - -// GetJoomlaComBookingComponent returns the JoomlaComBookingComponent field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaComBookingComponent() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaComBookingComponent) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaComBookingComponent -} - -// GetJoomlaComBookingComponentOk returns a tuple with the JoomlaComBookingComponent field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaComBookingComponentOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaComBookingComponent) { - return nil, false - } - return o.JoomlaComBookingComponent, true -} - -// HasJoomlaComBookingComponent returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaComBookingComponent() bool { - if o != nil && !IsNil(o.JoomlaComBookingComponent) { - return true - } - - return false -} - -// SetJoomlaComBookingComponent gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaComBookingComponent field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaComBookingComponent(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaComBookingComponent = &v -} - -// GetJoomlaComFabrikLfi returns the JoomlaComFabrikLfi field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaComFabrikLfi() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaComFabrikLfi) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaComFabrikLfi -} - -// GetJoomlaComFabrikLfiOk returns a tuple with the JoomlaComFabrikLfi field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaComFabrikLfiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaComFabrikLfi) { - return nil, false - } - return o.JoomlaComFabrikLfi, true -} - -// HasJoomlaComFabrikLfi returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaComFabrikLfi() bool { - if o != nil && !IsNil(o.JoomlaComFabrikLfi) { - return true - } - - return false -} - -// SetJoomlaComFabrikLfi gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaComFabrikLfi field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaComFabrikLfi(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaComFabrikLfi = &v -} - -// GetJoomlaDepartmentSqli returns the JoomlaDepartmentSqli field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaDepartmentSqli() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaDepartmentSqli) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaDepartmentSqli -} - -// GetJoomlaDepartmentSqliOk returns a tuple with the JoomlaDepartmentSqli field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaDepartmentSqliOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaDepartmentSqli) { - return nil, false - } - return o.JoomlaDepartmentSqli, true -} - -// HasJoomlaDepartmentSqli returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaDepartmentSqli() bool { - if o != nil && !IsNil(o.JoomlaDepartmentSqli) { - return true - } - - return false -} - -// SetJoomlaDepartmentSqli gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaDepartmentSqli field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaDepartmentSqli(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaDepartmentSqli = &v -} - -// GetJoomlaEasyshopLfi returns the JoomlaEasyshopLfi field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaEasyshopLfi() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaEasyshopLfi) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaEasyshopLfi -} - -// GetJoomlaEasyshopLfiOk returns a tuple with the JoomlaEasyshopLfi field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaEasyshopLfiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaEasyshopLfi) { - return nil, false - } - return o.JoomlaEasyshopLfi, true -} - -// HasJoomlaEasyshopLfi returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaEasyshopLfi() bool { - if o != nil && !IsNil(o.JoomlaEasyshopLfi) { - return true - } - - return false -} - -// SetJoomlaEasyshopLfi gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaEasyshopLfi field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaEasyshopLfi(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaEasyshopLfi = &v -} - -// GetJoomlaIpropertyXss returns the JoomlaIpropertyXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaIpropertyXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaIpropertyXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaIpropertyXss -} - -// GetJoomlaIpropertyXssOk returns a tuple with the JoomlaIpropertyXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaIpropertyXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaIpropertyXss) { - return nil, false - } - return o.JoomlaIpropertyXss, true -} - -// HasJoomlaIpropertyXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaIpropertyXss() bool { - if o != nil && !IsNil(o.JoomlaIpropertyXss) { - return true - } - - return false -} - -// SetJoomlaIpropertyXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaIpropertyXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaIpropertyXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaIpropertyXss = &v -} - -// GetJoomlaJlexXss returns the JoomlaJlexXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJlexXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaJlexXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaJlexXss -} - -// GetJoomlaJlexXssOk returns a tuple with the JoomlaJlexXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJlexXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaJlexXss) { - return nil, false - } - return o.JoomlaJlexXss, true -} - -// HasJoomlaJlexXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaJlexXss() bool { - if o != nil && !IsNil(o.JoomlaJlexXss) { - return true - } - - return false -} - -// SetJoomlaJlexXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJlexXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaJlexXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaJlexXss = &v -} - -// GetJoomlaJmarketXss returns the JoomlaJmarketXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJmarketXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaJmarketXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaJmarketXss -} - -// GetJoomlaJmarketXssOk returns a tuple with the JoomlaJmarketXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJmarketXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaJmarketXss) { - return nil, false - } - return o.JoomlaJmarketXss, true -} - -// HasJoomlaJmarketXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaJmarketXss() bool { - if o != nil && !IsNil(o.JoomlaJmarketXss) { - return true - } - - return false -} - -// SetJoomlaJmarketXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJmarketXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaJmarketXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaJmarketXss = &v -} - -// GetJoomlaJoombriCareersXss returns the JoomlaJoombriCareersXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJoombriCareersXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaJoombriCareersXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaJoombriCareersXss -} - -// GetJoomlaJoombriCareersXssOk returns a tuple with the JoomlaJoombriCareersXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJoombriCareersXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaJoombriCareersXss) { - return nil, false - } - return o.JoomlaJoombriCareersXss, true -} - -// HasJoomlaJoombriCareersXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaJoombriCareersXss() bool { - if o != nil && !IsNil(o.JoomlaJoombriCareersXss) { - return true - } - - return false -} - -// SetJoomlaJoombriCareersXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJoombriCareersXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaJoombriCareersXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaJoombriCareersXss = &v -} - -// GetJoomlaJvehiclesLfi returns the JoomlaJvehiclesLfi field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJvehiclesLfi() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaJvehiclesLfi) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaJvehiclesLfi -} - -// GetJoomlaJvehiclesLfiOk returns a tuple with the JoomlaJvehiclesLfi field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJvehiclesLfiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaJvehiclesLfi) { - return nil, false - } - return o.JoomlaJvehiclesLfi, true -} - -// HasJoomlaJvehiclesLfi returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaJvehiclesLfi() bool { - if o != nil && !IsNil(o.JoomlaJvehiclesLfi) { - return true - } - - return false -} - -// SetJoomlaJvehiclesLfi gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJvehiclesLfi field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaJvehiclesLfi(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaJvehiclesLfi = &v -} - -// GetJoomlaJvtwitterXss returns the JoomlaJvtwitterXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJvtwitterXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaJvtwitterXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaJvtwitterXss -} - -// GetJoomlaJvtwitterXssOk returns a tuple with the JoomlaJvtwitterXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaJvtwitterXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaJvtwitterXss) { - return nil, false - } - return o.JoomlaJvtwitterXss, true -} - -// HasJoomlaJvtwitterXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaJvtwitterXss() bool { - if o != nil && !IsNil(o.JoomlaJvtwitterXss) { - return true - } - - return false -} - -// SetJoomlaJvtwitterXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaJvtwitterXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaJvtwitterXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaJvtwitterXss = &v -} - -// GetJoomlaMarvikshopSqli returns the JoomlaMarvikshopSqli field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaMarvikshopSqli() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaMarvikshopSqli) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaMarvikshopSqli -} - -// GetJoomlaMarvikshopSqliOk returns a tuple with the JoomlaMarvikshopSqli field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaMarvikshopSqliOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaMarvikshopSqli) { - return nil, false - } - return o.JoomlaMarvikshopSqli, true -} - -// HasJoomlaMarvikshopSqli returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaMarvikshopSqli() bool { - if o != nil && !IsNil(o.JoomlaMarvikshopSqli) { - return true - } - - return false -} - -// SetJoomlaMarvikshopSqli gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaMarvikshopSqli field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaMarvikshopSqli(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaMarvikshopSqli = &v -} - -// GetJoomlaMarvikshopXss returns the JoomlaMarvikshopXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaMarvikshopXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaMarvikshopXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaMarvikshopXss -} - -// GetJoomlaMarvikshopXssOk returns a tuple with the JoomlaMarvikshopXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaMarvikshopXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaMarvikshopXss) { - return nil, false - } - return o.JoomlaMarvikshopXss, true -} - -// HasJoomlaMarvikshopXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaMarvikshopXss() bool { - if o != nil && !IsNil(o.JoomlaMarvikshopXss) { - return true - } - - return false -} - -// SetJoomlaMarvikshopXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaMarvikshopXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaMarvikshopXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaMarvikshopXss = &v -} - -// GetJoomlaSolidresXss returns the JoomlaSolidresXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaSolidresXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JoomlaSolidresXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JoomlaSolidresXss -} - -// GetJoomlaSolidresXssOk returns a tuple with the JoomlaSolidresXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJoomlaSolidresXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JoomlaSolidresXss) { - return nil, false - } - return o.JoomlaSolidresXss, true -} - -// HasJoomlaSolidresXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJoomlaSolidresXss() bool { - if o != nil && !IsNil(o.JoomlaSolidresXss) { - return true - } - - return false -} - -// SetJoomlaSolidresXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JoomlaSolidresXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJoomlaSolidresXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JoomlaSolidresXss = &v -} - -// GetJupyterNotebookRce returns the JupyterNotebookRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetJupyterNotebookRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.JupyterNotebookRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.JupyterNotebookRce -} - -// GetJupyterNotebookRceOk returns a tuple with the JupyterNotebookRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetJupyterNotebookRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.JupyterNotebookRce) { - return nil, false - } - return o.JupyterNotebookRce, true -} - -// HasJupyterNotebookRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasJupyterNotebookRce() bool { - if o != nil && !IsNil(o.JupyterNotebookRce) { - return true - } - - return false -} - -// SetJupyterNotebookRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the JupyterNotebookRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetJupyterNotebookRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.JupyterNotebookRce = &v -} - -// GetKafkaCenterDefaultLogin returns the KafkaCenterDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetKafkaCenterDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.KafkaCenterDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.KafkaCenterDefaultLogin -} - -// GetKafkaCenterDefaultLoginOk returns a tuple with the KafkaCenterDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetKafkaCenterDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.KafkaCenterDefaultLogin) { - return nil, false - } - return o.KafkaCenterDefaultLogin, true -} - -// HasKafkaCenterDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasKafkaCenterDefaultLogin() bool { - if o != nil && !IsNil(o.KafkaCenterDefaultLogin) { - return true - } - - return false -} - -// SetKafkaCenterDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the KafkaCenterDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetKafkaCenterDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.KafkaCenterDefaultLogin = &v -} - -// GetKarafDefaultLogin returns the KarafDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetKarafDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.KarafDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.KarafDefaultLogin -} - -// GetKarafDefaultLoginOk returns a tuple with the KarafDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetKarafDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.KarafDefaultLogin) { - return nil, false - } - return o.KarafDefaultLogin, true -} - -// HasKarafDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasKarafDefaultLogin() bool { - if o != nil && !IsNil(o.KarafDefaultLogin) { - return true - } - - return false -} - -// SetKarafDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the KarafDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetKarafDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.KarafDefaultLogin = &v -} - -// GetKkfileviewSsrf returns the KkfileviewSsrf field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetKkfileviewSsrf() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.KkfileviewSsrf) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.KkfileviewSsrf -} - -// GetKkfileviewSsrfOk returns a tuple with the KkfileviewSsrf field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetKkfileviewSsrfOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.KkfileviewSsrf) { - return nil, false - } - return o.KkfileviewSsrf, true -} - -// HasKkfileviewSsrf returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasKkfileviewSsrf() bool { - if o != nil && !IsNil(o.KkfileviewSsrf) { - return true - } - - return false -} - -// SetKkfileviewSsrf gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the KkfileviewSsrf field. -func (o *ProfileDetailedConfigurationSecurityTests) SetKkfileviewSsrf(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.KkfileviewSsrf = &v -} - -// GetKylinDefaultLogin returns the KylinDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetKylinDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.KylinDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.KylinDefaultLogin -} - -// GetKylinDefaultLoginOk returns a tuple with the KylinDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetKylinDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.KylinDefaultLogin) { - return nil, false - } - return o.KylinDefaultLogin, true -} - -// HasKylinDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasKylinDefaultLogin() bool { - if o != nil && !IsNil(o.KylinDefaultLogin) { - return true - } - - return false -} - -// SetKylinDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the KylinDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetKylinDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.KylinDefaultLogin = &v -} - -// GetLuceeRce returns the LuceeRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetLuceeRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.LuceeRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.LuceeRce -} - -// GetLuceeRceOk returns a tuple with the LuceeRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetLuceeRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.LuceeRce) { - return nil, false - } - return o.LuceeRce, true -} - -// HasLuceeRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasLuceeRce() bool { - if o != nil && !IsNil(o.LuceeRce) { - return true - } - - return false -} - -// SetLuceeRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the LuceeRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetLuceeRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.LuceeRce = &v -} - -// GetMalwaredByobRce returns the MalwaredByobRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetMalwaredByobRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.MalwaredByobRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.MalwaredByobRce -} - -// GetMalwaredByobRceOk returns a tuple with the MalwaredByobRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetMalwaredByobRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.MalwaredByobRce) { - return nil, false - } - return o.MalwaredByobRce, true -} - -// HasMalwaredByobRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasMalwaredByobRce() bool { - if o != nil && !IsNil(o.MalwaredByobRce) { - return true - } - - return false -} - -// SetMalwaredByobRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MalwaredByobRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetMalwaredByobRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.MalwaredByobRce = &v -} - -// GetMdbDatabaseFile returns the MdbDatabaseFile field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetMdbDatabaseFile() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.MdbDatabaseFile) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.MdbDatabaseFile -} - -// GetMdbDatabaseFileOk returns a tuple with the MdbDatabaseFile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetMdbDatabaseFileOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.MdbDatabaseFile) { - return nil, false - } - return o.MdbDatabaseFile, true -} - -// HasMdbDatabaseFile returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasMdbDatabaseFile() bool { - if o != nil && !IsNil(o.MdbDatabaseFile) { - return true - } - - return false -} - -// SetMdbDatabaseFile gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MdbDatabaseFile field. -func (o *ProfileDetailedConfigurationSecurityTests) SetMdbDatabaseFile(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.MdbDatabaseFile = &v -} - -// GetMinioDefaultLogin returns the MinioDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetMinioDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.MinioDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.MinioDefaultLogin -} - -// GetMinioDefaultLoginOk returns a tuple with the MinioDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetMinioDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.MinioDefaultLogin) { - return nil, false - } - return o.MinioDefaultLogin, true -} - -// HasMinioDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasMinioDefaultLogin() bool { - if o != nil && !IsNil(o.MinioDefaultLogin) { - return true - } - - return false -} - -// SetMinioDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the MinioDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetMinioDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.MinioDefaultLogin = &v -} - -// GetNginxMergeSlashesPathTraversal returns the NginxMergeSlashesPathTraversal field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxMergeSlashesPathTraversal() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.NginxMergeSlashesPathTraversal) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.NginxMergeSlashesPathTraversal -} - -// GetNginxMergeSlashesPathTraversalOk returns a tuple with the NginxMergeSlashesPathTraversal field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxMergeSlashesPathTraversalOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.NginxMergeSlashesPathTraversal) { - return nil, false - } - return o.NginxMergeSlashesPathTraversal, true -} - -// HasNginxMergeSlashesPathTraversal returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNginxMergeSlashesPathTraversal() bool { - if o != nil && !IsNil(o.NginxMergeSlashesPathTraversal) { - return true - } - - return false -} - -// SetNginxMergeSlashesPathTraversal gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxMergeSlashesPathTraversal field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNginxMergeSlashesPathTraversal(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.NginxMergeSlashesPathTraversal = &v -} - -// GetNginxModuleVtsXss returns the NginxModuleVtsXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxModuleVtsXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.NginxModuleVtsXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.NginxModuleVtsXss -} - -// GetNginxModuleVtsXssOk returns a tuple with the NginxModuleVtsXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxModuleVtsXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.NginxModuleVtsXss) { - return nil, false - } - return o.NginxModuleVtsXss, true -} - -// HasNginxModuleVtsXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNginxModuleVtsXss() bool { - if o != nil && !IsNil(o.NginxModuleVtsXss) { - return true - } - - return false -} - -// SetNginxModuleVtsXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxModuleVtsXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNginxModuleVtsXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.NginxModuleVtsXss = &v -} - -// GetNginxProxyManagerDefaultLogin returns the NginxProxyManagerDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxProxyManagerDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.NginxProxyManagerDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.NginxProxyManagerDefaultLogin -} - -// GetNginxProxyManagerDefaultLoginOk returns a tuple with the NginxProxyManagerDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxProxyManagerDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.NginxProxyManagerDefaultLogin) { - return nil, false - } - return o.NginxProxyManagerDefaultLogin, true -} - -// HasNginxProxyManagerDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNginxProxyManagerDefaultLogin() bool { - if o != nil && !IsNil(o.NginxProxyManagerDefaultLogin) { - return true - } - - return false -} - -// SetNginxProxyManagerDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxProxyManagerDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNginxProxyManagerDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.NginxProxyManagerDefaultLogin = &v -} - -// GetNginxWebuiRce returns the NginxWebuiRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxWebuiRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.NginxWebuiRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.NginxWebuiRce -} - -// GetNginxWebuiRceOk returns a tuple with the NginxWebuiRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxWebuiRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.NginxWebuiRce) { - return nil, false - } - return o.NginxWebuiRce, true -} - -// HasNginxWebuiRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNginxWebuiRce() bool { - if o != nil && !IsNil(o.NginxWebuiRce) { - return true - } - - return false -} - -// SetNginxWebuiRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxWebuiRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNginxWebuiRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.NginxWebuiRce = &v -} - -// GetNginxwebuiRuncmdRce returns the NginxwebuiRuncmdRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxwebuiRuncmdRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.NginxwebuiRuncmdRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.NginxwebuiRuncmdRce -} - -// GetNginxwebuiRuncmdRceOk returns a tuple with the NginxwebuiRuncmdRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNginxwebuiRuncmdRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.NginxwebuiRuncmdRce) { - return nil, false - } - return o.NginxwebuiRuncmdRce, true -} - -// HasNginxwebuiRuncmdRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNginxwebuiRuncmdRce() bool { - if o != nil && !IsNil(o.NginxwebuiRuncmdRce) { - return true - } - - return false -} - -// SetNginxwebuiRuncmdRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NginxwebuiRuncmdRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNginxwebuiRuncmdRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.NginxwebuiRuncmdRce = &v -} - -// GetNodeEcstaticInternalPath returns the NodeEcstaticInternalPath field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNodeEcstaticInternalPath() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.NodeEcstaticInternalPath) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.NodeEcstaticInternalPath -} - -// GetNodeEcstaticInternalPathOk returns a tuple with the NodeEcstaticInternalPath field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNodeEcstaticInternalPathOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.NodeEcstaticInternalPath) { - return nil, false - } - return o.NodeEcstaticInternalPath, true -} - -// HasNodeEcstaticInternalPath returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNodeEcstaticInternalPath() bool { - if o != nil && !IsNil(o.NodeEcstaticInternalPath) { - return true - } - - return false -} - -// SetNodeEcstaticInternalPath gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NodeEcstaticInternalPath field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNodeEcstaticInternalPath(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.NodeEcstaticInternalPath = &v -} - -// GetNoderedDefaultLogin returns the NoderedDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetNoderedDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.NoderedDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.NoderedDefaultLogin -} - -// GetNoderedDefaultLoginOk returns a tuple with the NoderedDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetNoderedDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.NoderedDefaultLogin) { - return nil, false - } - return o.NoderedDefaultLogin, true -} - -// HasNoderedDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasNoderedDefaultLogin() bool { - if o != nil && !IsNil(o.NoderedDefaultLogin) { - return true - } - - return false -} - -// SetNoderedDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the NoderedDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetNoderedDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.NoderedDefaultLogin = &v -} - -// GetOpenmediavaultDefaultLogin returns the OpenmediavaultDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetOpenmediavaultDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.OpenmediavaultDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.OpenmediavaultDefaultLogin -} - -// GetOpenmediavaultDefaultLoginOk returns a tuple with the OpenmediavaultDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetOpenmediavaultDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.OpenmediavaultDefaultLogin) { - return nil, false - } - return o.OpenmediavaultDefaultLogin, true -} - -// HasOpenmediavaultDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasOpenmediavaultDefaultLogin() bool { - if o != nil && !IsNil(o.OpenmediavaultDefaultLogin) { - return true - } - - return false -} - -// SetOpenmediavaultDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the OpenmediavaultDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetOpenmediavaultDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.OpenmediavaultDefaultLogin = &v -} - -// GetOpensearchDashboardDefaultLogin returns the OpensearchDashboardDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetOpensearchDashboardDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.OpensearchDashboardDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.OpensearchDashboardDefaultLogin -} - -// GetOpensearchDashboardDefaultLoginOk returns a tuple with the OpensearchDashboardDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetOpensearchDashboardDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.OpensearchDashboardDefaultLogin) { - return nil, false - } - return o.OpensearchDashboardDefaultLogin, true -} - -// HasOpensearchDashboardDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasOpensearchDashboardDefaultLogin() bool { - if o != nil && !IsNil(o.OpensearchDashboardDefaultLogin) { - return true - } - - return false -} - -// SetOpensearchDashboardDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the OpensearchDashboardDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetOpensearchDashboardDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.OpensearchDashboardDefaultLogin = &v -} - -// GetPhpTimeclockXss returns the PhpTimeclockXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpTimeclockXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PhpTimeclockXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PhpTimeclockXss -} - -// GetPhpTimeclockXssOk returns a tuple with the PhpTimeclockXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpTimeclockXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PhpTimeclockXss) { - return nil, false - } - return o.PhpTimeclockXss, true -} - -// HasPhpTimeclockXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPhpTimeclockXss() bool { - if o != nil && !IsNil(o.PhpTimeclockXss) { - return true - } - - return false -} - -// SetPhpTimeclockXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpTimeclockXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPhpTimeclockXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PhpTimeclockXss = &v -} - -// GetPhpXdebugRce returns the PhpXdebugRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpXdebugRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PhpXdebugRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PhpXdebugRce -} - -// GetPhpXdebugRceOk returns a tuple with the PhpXdebugRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpXdebugRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PhpXdebugRce) { - return nil, false - } - return o.PhpXdebugRce, true -} - -// HasPhpXdebugRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPhpXdebugRce() bool { - if o != nil && !IsNil(o.PhpXdebugRce) { - return true - } - - return false -} - -// SetPhpXdebugRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpXdebugRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPhpXdebugRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PhpXdebugRce = &v -} - -// GetPhpZerodiumBackdoorRce returns the PhpZerodiumBackdoorRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpZerodiumBackdoorRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PhpZerodiumBackdoorRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PhpZerodiumBackdoorRce -} - -// GetPhpZerodiumBackdoorRceOk returns a tuple with the PhpZerodiumBackdoorRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpZerodiumBackdoorRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PhpZerodiumBackdoorRce) { - return nil, false - } - return o.PhpZerodiumBackdoorRce, true -} - -// HasPhpZerodiumBackdoorRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPhpZerodiumBackdoorRce() bool { - if o != nil && !IsNil(o.PhpZerodiumBackdoorRce) { - return true - } - - return false -} - -// SetPhpZerodiumBackdoorRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpZerodiumBackdoorRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPhpZerodiumBackdoorRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PhpZerodiumBackdoorRce = &v -} - -// GetPhpldapadminXss returns the PhpldapadminXss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpldapadminXss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PhpldapadminXss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PhpldapadminXss -} - -// GetPhpldapadminXssOk returns a tuple with the PhpldapadminXss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpldapadminXssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PhpldapadminXss) { - return nil, false - } - return o.PhpldapadminXss, true -} - -// HasPhpldapadminXss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPhpldapadminXss() bool { - if o != nil && !IsNil(o.PhpldapadminXss) { - return true - } - - return false -} - -// SetPhpldapadminXss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpldapadminXss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPhpldapadminXss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PhpldapadminXss = &v -} - -// GetPhpmyadminDefaultLogin returns the PhpmyadminDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpmyadminDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PhpmyadminDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PhpmyadminDefaultLogin -} - -// GetPhpmyadminDefaultLoginOk returns a tuple with the PhpmyadminDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpmyadminDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PhpmyadminDefaultLogin) { - return nil, false - } - return o.PhpmyadminDefaultLogin, true -} - -// HasPhpmyadminDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPhpmyadminDefaultLogin() bool { - if o != nil && !IsNil(o.PhpmyadminDefaultLogin) { - return true - } - - return false -} - -// SetPhpmyadminDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpmyadminDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPhpmyadminDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PhpmyadminDefaultLogin = &v -} - -// GetPhpmyadminUnauthAccess returns the PhpmyadminUnauthAccess field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpmyadminUnauthAccess() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PhpmyadminUnauthAccess) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PhpmyadminUnauthAccess -} - -// GetPhpmyadminUnauthAccessOk returns a tuple with the PhpmyadminUnauthAccess field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpmyadminUnauthAccessOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PhpmyadminUnauthAccess) { - return nil, false - } - return o.PhpmyadminUnauthAccess, true -} - -// HasPhpmyadminUnauthAccess returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPhpmyadminUnauthAccess() bool { - if o != nil && !IsNil(o.PhpmyadminUnauthAccess) { - return true - } - - return false -} - -// SetPhpmyadminUnauthAccess gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpmyadminUnauthAccess field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPhpmyadminUnauthAccess(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PhpmyadminUnauthAccess = &v -} - -// GetPhpokSqli returns the PhpokSqli field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpokSqli() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PhpokSqli) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PhpokSqli -} - -// GetPhpokSqliOk returns a tuple with the PhpokSqli field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpokSqliOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PhpokSqli) { - return nil, false - } - return o.PhpokSqli, true -} - -// HasPhpokSqli returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPhpokSqli() bool { - if o != nil && !IsNil(o.PhpokSqli) { - return true - } - - return false -} - -// SetPhpokSqli gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpokSqli field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPhpokSqli(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PhpokSqli = &v -} - -// GetPhpwikiLfi returns the PhpwikiLfi field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpwikiLfi() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PhpwikiLfi) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PhpwikiLfi -} - -// GetPhpwikiLfiOk returns a tuple with the PhpwikiLfi field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPhpwikiLfiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PhpwikiLfi) { - return nil, false - } - return o.PhpwikiLfi, true -} - -// HasPhpwikiLfi returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPhpwikiLfi() bool { - if o != nil && !IsNil(o.PhpwikiLfi) { - return true - } - - return false -} - -// SetPhpwikiLfi gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PhpwikiLfi field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPhpwikiLfi(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PhpwikiLfi = &v -} - -// GetPrivateKeyExposure returns the PrivateKeyExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetPrivateKeyExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.PrivateKeyExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.PrivateKeyExposure -} - -// GetPrivateKeyExposureOk returns a tuple with the PrivateKeyExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetPrivateKeyExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.PrivateKeyExposure) { - return nil, false - } - return o.PrivateKeyExposure, true -} - -// HasPrivateKeyExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasPrivateKeyExposure() bool { - if o != nil && !IsNil(o.PrivateKeyExposure) { - return true - } - - return false -} - -// SetPrivateKeyExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the PrivateKeyExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetPrivateKeyExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.PrivateKeyExposure = &v -} - -// GetRabbitmqDefaultLogin returns the RabbitmqDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetRabbitmqDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.RabbitmqDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.RabbitmqDefaultLogin -} - -// GetRabbitmqDefaultLoginOk returns a tuple with the RabbitmqDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetRabbitmqDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.RabbitmqDefaultLogin) { - return nil, false - } - return o.RabbitmqDefaultLogin, true -} - -// HasRabbitmqDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasRabbitmqDefaultLogin() bool { - if o != nil && !IsNil(o.RabbitmqDefaultLogin) { - return true - } - - return false -} - -// SetRabbitmqDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RabbitmqDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetRabbitmqDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.RabbitmqDefaultLogin = &v -} - -// GetRails6Xss returns the Rails6Xss field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetRails6Xss() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Rails6Xss) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Rails6Xss -} - -// GetRails6XssOk returns a tuple with the Rails6Xss field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetRails6XssOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Rails6Xss) { - return nil, false - } - return o.Rails6Xss, true -} - -// HasRails6Xss returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasRails6Xss() bool { - if o != nil && !IsNil(o.Rails6Xss) { - return true - } - - return false -} - -// SetRails6Xss gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Rails6Xss field. -func (o *ProfileDetailedConfigurationSecurityTests) SetRails6Xss(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Rails6Xss = &v -} - -// GetRangerDefaultLogin returns the RangerDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetRangerDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.RangerDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.RangerDefaultLogin -} - -// GetRangerDefaultLoginOk returns a tuple with the RangerDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetRangerDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.RangerDefaultLogin) { - return nil, false - } - return o.RangerDefaultLogin, true -} - -// HasRangerDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasRangerDefaultLogin() bool { - if o != nil && !IsNil(o.RangerDefaultLogin) { - return true - } - - return false -} - -// SetRangerDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RangerDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetRangerDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.RangerDefaultLogin = &v -} - -// GetReact2shell1 returns the React2shell1 field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetReact2shell1() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.React2shell1) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.React2shell1 -} - -// GetReact2shell1Ok returns a tuple with the React2shell1 field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetReact2shell1Ok() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.React2shell1) { - return nil, false - } - return o.React2shell1, true -} - -// HasReact2shell1 returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasReact2shell1() bool { - if o != nil && !IsNil(o.React2shell1) { - return true - } - - return false -} - -// SetReact2shell1 gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the React2shell1 field. -func (o *ProfileDetailedConfigurationSecurityTests) SetReact2shell1(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.React2shell1 = &v -} - -// GetReact2shell2 returns the React2shell2 field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetReact2shell2() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.React2shell2) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.React2shell2 -} - -// GetReact2shell2Ok returns a tuple with the React2shell2 field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetReact2shell2Ok() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.React2shell2) { - return nil, false - } - return o.React2shell2, true -} - -// HasReact2shell2 returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasReact2shell2() bool { - if o != nil && !IsNil(o.React2shell2) { - return true - } - - return false -} - -// SetReact2shell2 gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the React2shell2 field. -func (o *ProfileDetailedConfigurationSecurityTests) SetReact2shell2(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.React2shell2 = &v -} - -// GetRowLevelSecurity returns the RowLevelSecurity field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetRowLevelSecurity() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.RowLevelSecurity) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.RowLevelSecurity -} - -// GetRowLevelSecurityOk returns a tuple with the RowLevelSecurity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetRowLevelSecurityOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.RowLevelSecurity) { - return nil, false - } - return o.RowLevelSecurity, true -} - -// HasRowLevelSecurity returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasRowLevelSecurity() bool { - if o != nil && !IsNil(o.RowLevelSecurity) { - return true - } - - return false -} - -// SetRowLevelSecurity gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RowLevelSecurity field. -func (o *ProfileDetailedConfigurationSecurityTests) SetRowLevelSecurity(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.RowLevelSecurity = &v -} - -// GetRundeckDefaultLogin returns the RundeckDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetRundeckDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.RundeckDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.RundeckDefaultLogin -} - -// GetRundeckDefaultLoginOk returns a tuple with the RundeckDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetRundeckDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.RundeckDefaultLogin) { - return nil, false - } - return o.RundeckDefaultLogin, true -} - -// HasRundeckDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasRundeckDefaultLogin() bool { - if o != nil && !IsNil(o.RundeckDefaultLogin) { - return true - } - - return false -} - -// SetRundeckDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RundeckDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetRundeckDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.RundeckDefaultLogin = &v -} - -// GetRustyJoomla returns the RustyJoomla field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetRustyJoomla() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.RustyJoomla) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.RustyJoomla -} - -// GetRustyJoomlaOk returns a tuple with the RustyJoomla field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetRustyJoomlaOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.RustyJoomla) { - return nil, false - } - return o.RustyJoomla, true -} - -// HasRustyJoomla returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasRustyJoomla() bool { - if o != nil && !IsNil(o.RustyJoomla) { - return true - } - - return false -} - -// SetRustyJoomla gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the RustyJoomla field. -func (o *ProfileDetailedConfigurationSecurityTests) SetRustyJoomla(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.RustyJoomla = &v -} - -// GetSangforCphpRce returns the SangforCphpRce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSangforCphpRce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SangforCphpRce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SangforCphpRce -} - -// GetSangforCphpRceOk returns a tuple with the SangforCphpRce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSangforCphpRceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SangforCphpRce) { - return nil, false - } - return o.SangforCphpRce, true -} - -// HasSangforCphpRce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSangforCphpRce() bool { - if o != nil && !IsNil(o.SangforCphpRce) { - return true - } - - return false -} - -// SetSangforCphpRce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SangforCphpRce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSangforCphpRce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SangforCphpRce = &v -} - -// GetSecretTokenRb returns the SecretTokenRb field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSecretTokenRb() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SecretTokenRb) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SecretTokenRb -} - -// GetSecretTokenRbOk returns a tuple with the SecretTokenRb field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSecretTokenRbOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SecretTokenRb) { - return nil, false - } - return o.SecretTokenRb, true -} - -// HasSecretTokenRb returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSecretTokenRb() bool { - if o != nil && !IsNil(o.SecretTokenRb) { - return true - } - - return false -} - -// SetSecretTokenRb gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SecretTokenRb field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSecretTokenRb(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SecretTokenRb = &v -} - -// GetSeeyonCreatemysqlExposure returns the SeeyonCreatemysqlExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSeeyonCreatemysqlExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SeeyonCreatemysqlExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SeeyonCreatemysqlExposure -} - -// GetSeeyonCreatemysqlExposureOk returns a tuple with the SeeyonCreatemysqlExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSeeyonCreatemysqlExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SeeyonCreatemysqlExposure) { - return nil, false - } - return o.SeeyonCreatemysqlExposure, true -} - -// HasSeeyonCreatemysqlExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSeeyonCreatemysqlExposure() bool { - if o != nil && !IsNil(o.SeeyonCreatemysqlExposure) { - return true - } - - return false -} - -// SetSeeyonCreatemysqlExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SeeyonCreatemysqlExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSeeyonCreatemysqlExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SeeyonCreatemysqlExposure = &v -} - -// GetSeleniumExposure returns the SeleniumExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSeleniumExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SeleniumExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SeleniumExposure -} - -// GetSeleniumExposureOk returns a tuple with the SeleniumExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSeleniumExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SeleniumExposure) { - return nil, false - } - return o.SeleniumExposure, true -} - -// HasSeleniumExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSeleniumExposure() bool { - if o != nil && !IsNil(o.SeleniumExposure) { - return true - } - - return false -} - -// SetSeleniumExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SeleniumExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSeleniumExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SeleniumExposure = &v -} - -// GetSelfSignedSsl returns the SelfSignedSsl field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSelfSignedSsl() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SelfSignedSsl) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SelfSignedSsl -} - -// GetSelfSignedSslOk returns a tuple with the SelfSignedSsl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSelfSignedSslOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SelfSignedSsl) { - return nil, false - } - return o.SelfSignedSsl, true -} - -// HasSelfSignedSsl returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSelfSignedSsl() bool { - if o != nil && !IsNil(o.SelfSignedSsl) { - return true - } - - return false -} - -// SetSelfSignedSsl gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SelfSignedSsl field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSelfSignedSsl(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SelfSignedSsl = &v -} - -// GetSonarqubeDefaultLogin returns the SonarqubeDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSonarqubeDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SonarqubeDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SonarqubeDefaultLogin -} - -// GetSonarqubeDefaultLoginOk returns a tuple with the SonarqubeDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSonarqubeDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SonarqubeDefaultLogin) { - return nil, false - } - return o.SonarqubeDefaultLogin, true -} - -// HasSonarqubeDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSonarqubeDefaultLogin() bool { - if o != nil && !IsNil(o.SonarqubeDefaultLogin) { - return true - } - - return false -} - -// SetSonarqubeDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SonarqubeDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSonarqubeDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SonarqubeDefaultLogin = &v -} - -// GetThinkphp6ArbitraryWrite returns the Thinkphp6ArbitraryWrite field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp6ArbitraryWrite() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Thinkphp6ArbitraryWrite) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Thinkphp6ArbitraryWrite -} - -// GetThinkphp6ArbitraryWriteOk returns a tuple with the Thinkphp6ArbitraryWrite field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp6ArbitraryWriteOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Thinkphp6ArbitraryWrite) { - return nil, false - } - return o.Thinkphp6ArbitraryWrite, true -} - -// HasThinkphp6ArbitraryWrite returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasThinkphp6ArbitraryWrite() bool { - if o != nil && !IsNil(o.Thinkphp6ArbitraryWrite) { - return true - } - - return false -} - -// SetThinkphp6ArbitraryWrite gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp6ArbitraryWrite field. -func (o *ProfileDetailedConfigurationSecurityTests) SetThinkphp6ArbitraryWrite(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Thinkphp6ArbitraryWrite = &v -} - -// GetThinkphp2Rce returns the Thinkphp2Rce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp2Rce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Thinkphp2Rce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Thinkphp2Rce -} - -// GetThinkphp2RceOk returns a tuple with the Thinkphp2Rce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp2RceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Thinkphp2Rce) { - return nil, false - } - return o.Thinkphp2Rce, true -} - -// HasThinkphp2Rce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasThinkphp2Rce() bool { - if o != nil && !IsNil(o.Thinkphp2Rce) { - return true - } - - return false -} - -// SetThinkphp2Rce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp2Rce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetThinkphp2Rce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Thinkphp2Rce = &v -} - -// GetThinkphp501Rce returns the Thinkphp501Rce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp501Rce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Thinkphp501Rce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Thinkphp501Rce -} - -// GetThinkphp501RceOk returns a tuple with the Thinkphp501Rce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp501RceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Thinkphp501Rce) { - return nil, false - } - return o.Thinkphp501Rce, true -} - -// HasThinkphp501Rce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasThinkphp501Rce() bool { - if o != nil && !IsNil(o.Thinkphp501Rce) { - return true - } - - return false -} - -// SetThinkphp501Rce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp501Rce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetThinkphp501Rce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Thinkphp501Rce = &v -} - -// GetThinkphp5023Rce returns the Thinkphp5023Rce field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp5023Rce() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Thinkphp5023Rce) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Thinkphp5023Rce -} - -// GetThinkphp5023RceOk returns a tuple with the Thinkphp5023Rce field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp5023RceOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Thinkphp5023Rce) { - return nil, false - } - return o.Thinkphp5023Rce, true -} - -// HasThinkphp5023Rce returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasThinkphp5023Rce() bool { - if o != nil && !IsNil(o.Thinkphp5023Rce) { - return true - } - - return false -} - -// SetThinkphp5023Rce gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp5023Rce field. -func (o *ProfileDetailedConfigurationSecurityTests) SetThinkphp5023Rce(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Thinkphp5023Rce = &v -} - -// GetThinkphp509InformationDisclosure returns the Thinkphp509InformationDisclosure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp509InformationDisclosure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.Thinkphp509InformationDisclosure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.Thinkphp509InformationDisclosure -} - -// GetThinkphp509InformationDisclosureOk returns a tuple with the Thinkphp509InformationDisclosure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetThinkphp509InformationDisclosureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.Thinkphp509InformationDisclosure) { - return nil, false - } - return o.Thinkphp509InformationDisclosure, true -} - -// HasThinkphp509InformationDisclosure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasThinkphp509InformationDisclosure() bool { - if o != nil && !IsNil(o.Thinkphp509InformationDisclosure) { - return true - } - - return false -} - -// SetThinkphp509InformationDisclosure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the Thinkphp509InformationDisclosure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetThinkphp509InformationDisclosure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.Thinkphp509InformationDisclosure = &v -} - -// GetTomcatDefaultLogin returns the TomcatDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTomcatDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TomcatDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TomcatDefaultLogin -} - -// GetTomcatDefaultLoginOk returns a tuple with the TomcatDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTomcatDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TomcatDefaultLogin) { - return nil, false - } - return o.TomcatDefaultLogin, true -} - -// HasTomcatDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTomcatDefaultLogin() bool { - if o != nil && !IsNil(o.TomcatDefaultLogin) { - return true - } - - return false -} - -// SetTomcatDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TomcatDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTomcatDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TomcatDefaultLogin = &v -} - -// GetTomcatExamplesLogin returns the TomcatExamplesLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTomcatExamplesLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TomcatExamplesLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TomcatExamplesLogin -} - -// GetTomcatExamplesLoginOk returns a tuple with the TomcatExamplesLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTomcatExamplesLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TomcatExamplesLogin) { - return nil, false - } - return o.TomcatExamplesLogin, true -} - -// HasTomcatExamplesLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTomcatExamplesLogin() bool { - if o != nil && !IsNil(o.TomcatExamplesLogin) { - return true - } - - return false -} - -// SetTomcatExamplesLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TomcatExamplesLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTomcatExamplesLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TomcatExamplesLogin = &v -} - -// GetTotolinkN150rtPasswordExposure returns the TotolinkN150rtPasswordExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTotolinkN150rtPasswordExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TotolinkN150rtPasswordExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TotolinkN150rtPasswordExposure -} - -// GetTotolinkN150rtPasswordExposureOk returns a tuple with the TotolinkN150rtPasswordExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTotolinkN150rtPasswordExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TotolinkN150rtPasswordExposure) { - return nil, false - } - return o.TotolinkN150rtPasswordExposure, true -} - -// HasTotolinkN150rtPasswordExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTotolinkN150rtPasswordExposure() bool { - if o != nil && !IsNil(o.TotolinkN150rtPasswordExposure) { - return true - } - - return false -} - -// SetTotolinkN150rtPasswordExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TotolinkN150rtPasswordExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTotolinkN150rtPasswordExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TotolinkN150rtPasswordExposure = &v -} - -// GetTwigPhpSsti returns the TwigPhpSsti field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTwigPhpSsti() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TwigPhpSsti) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TwigPhpSsti -} - -// GetTwigPhpSstiOk returns a tuple with the TwigPhpSsti field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTwigPhpSstiOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TwigPhpSsti) { - return nil, false - } - return o.TwigPhpSsti, true -} - -// HasTwigPhpSsti returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTwigPhpSsti() bool { - if o != nil && !IsNil(o.TwigPhpSsti) { - return true - } - - return false -} - -// SetTwigPhpSsti gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TwigPhpSsti field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTwigPhpSsti(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TwigPhpSsti = &v -} - -// GetTwonkyServerExposure returns the TwonkyServerExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetTwonkyServerExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.TwonkyServerExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.TwonkyServerExposure -} - -// GetTwonkyServerExposureOk returns a tuple with the TwonkyServerExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetTwonkyServerExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.TwonkyServerExposure) { - return nil, false - } - return o.TwonkyServerExposure, true -} - -// HasTwonkyServerExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasTwonkyServerExposure() bool { - if o != nil && !IsNil(o.TwonkyServerExposure) { - return true - } - - return false -} - -// SetTwonkyServerExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the TwonkyServerExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetTwonkyServerExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.TwonkyServerExposure = &v -} - -// GetWeaverMysqlConfigExposure returns the WeaverMysqlConfigExposure field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWeaverMysqlConfigExposure() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WeaverMysqlConfigExposure) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WeaverMysqlConfigExposure -} - -// GetWeaverMysqlConfigExposureOk returns a tuple with the WeaverMysqlConfigExposure field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWeaverMysqlConfigExposureOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WeaverMysqlConfigExposure) { - return nil, false - } - return o.WeaverMysqlConfigExposure, true -} - -// HasWeaverMysqlConfigExposure returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWeaverMysqlConfigExposure() bool { - if o != nil && !IsNil(o.WeaverMysqlConfigExposure) { - return true - } - - return false -} - -// SetWeaverMysqlConfigExposure gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WeaverMysqlConfigExposure field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWeaverMysqlConfigExposure(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WeaverMysqlConfigExposure = &v -} - -// GetWebminDefaultLogin returns the WebminDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWebminDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WebminDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WebminDefaultLogin -} - -// GetWebminDefaultLoginOk returns a tuple with the WebminDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWebminDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WebminDefaultLogin) { - return nil, false - } - return o.WebminDefaultLogin, true -} - -// HasWebminDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWebminDefaultLogin() bool { - if o != nil && !IsNil(o.WebminDefaultLogin) { - return true - } - - return false -} - -// SetWebminDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WebminDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWebminDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WebminDefaultLogin = &v -} - -// GetWordpressAccessibleWpconfig returns the WordpressAccessibleWpconfig field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressAccessibleWpconfig() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.WordpressAccessibleWpconfig) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.WordpressAccessibleWpconfig -} - -// GetWordpressAccessibleWpconfigOk returns a tuple with the WordpressAccessibleWpconfig field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetWordpressAccessibleWpconfigOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.WordpressAccessibleWpconfig) { - return nil, false - } - return o.WordpressAccessibleWpconfig, true -} - -// HasWordpressAccessibleWpconfig returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasWordpressAccessibleWpconfig() bool { - if o != nil && !IsNil(o.WordpressAccessibleWpconfig) { - return true - } - - return false -} - -// SetWordpressAccessibleWpconfig gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the WordpressAccessibleWpconfig field. -func (o *ProfileDetailedConfigurationSecurityTests) SetWordpressAccessibleWpconfig(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.WordpressAccessibleWpconfig = &v -} - -// GetCompromisedSupplyChain returns the CompromisedSupplyChain field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetCompromisedSupplyChain() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.CompromisedSupplyChain) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.CompromisedSupplyChain -} - -// GetCompromisedSupplyChainOk returns a tuple with the CompromisedSupplyChain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetCompromisedSupplyChainOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.CompromisedSupplyChain) { - return nil, false - } - return o.CompromisedSupplyChain, true -} - -// HasCompromisedSupplyChain returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasCompromisedSupplyChain() bool { - if o != nil && !IsNil(o.CompromisedSupplyChain) { - return true - } - - return false -} - -// SetCompromisedSupplyChain gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the CompromisedSupplyChain field. -func (o *ProfileDetailedConfigurationSecurityTests) SetCompromisedSupplyChain(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.CompromisedSupplyChain = &v -} - -// GetZabbixDefaultLogin returns the ZabbixDefaultLogin field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetZabbixDefaultLogin() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.ZabbixDefaultLogin) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.ZabbixDefaultLogin -} - -// GetZabbixDefaultLoginOk returns a tuple with the ZabbixDefaultLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetZabbixDefaultLoginOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.ZabbixDefaultLogin) { - return nil, false - } - return o.ZabbixDefaultLogin, true -} - -// HasZabbixDefaultLogin returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasZabbixDefaultLogin() bool { - if o != nil && !IsNil(o.ZabbixDefaultLogin) { - return true - } - - return false -} - -// SetZabbixDefaultLogin gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the ZabbixDefaultLogin field. -func (o *ProfileDetailedConfigurationSecurityTests) SetZabbixDefaultLogin(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.ZabbixDefaultLogin = &v -} - -// GetDnsRebindingAttack returns the DnsRebindingAttack field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetDnsRebindingAttack() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.DnsRebindingAttack) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.DnsRebindingAttack -} - -// GetDnsRebindingAttackOk returns a tuple with the DnsRebindingAttack field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetDnsRebindingAttackOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.DnsRebindingAttack) { - return nil, false - } - return o.DnsRebindingAttack, true -} - -// HasDnsRebindingAttack returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasDnsRebindingAttack() bool { - if o != nil && !IsNil(o.DnsRebindingAttack) { - return true - } - - return false -} - -// SetDnsRebindingAttack gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the DnsRebindingAttack field. -func (o *ProfileDetailedConfigurationSecurityTests) SetDnsRebindingAttack(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.DnsRebindingAttack = &v -} - -// GetSpoofableSpfRecordsPtrMechanism returns the SpoofableSpfRecordsPtrMechanism field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpoofableSpfRecordsPtrMechanism() ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - if o == nil || IsNil(o.SpoofableSpfRecordsPtrMechanism) { - var ret ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - return ret - } - return *o.SpoofableSpfRecordsPtrMechanism -} - -// GetSpoofableSpfRecordsPtrMechanismOk returns a tuple with the SpoofableSpfRecordsPtrMechanism field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTests) GetSpoofableSpfRecordsPtrMechanismOk() (*ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin, bool) { - if o == nil || IsNil(o.SpoofableSpfRecordsPtrMechanism) { - return nil, false - } - return o.SpoofableSpfRecordsPtrMechanism, true -} - -// HasSpoofableSpfRecordsPtrMechanism returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTests) HasSpoofableSpfRecordsPtrMechanism() bool { - if o != nil && !IsNil(o.SpoofableSpfRecordsPtrMechanism) { - return true - } - - return false -} - -// SetSpoofableSpfRecordsPtrMechanism gets a reference to the given ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin and assigns it to the SpoofableSpfRecordsPtrMechanism field. -func (o *ProfileDetailedConfigurationSecurityTests) SetSpoofableSpfRecordsPtrMechanism(v ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - o.SpoofableSpfRecordsPtrMechanism = &v -} - -func (o ProfileDetailedConfigurationSecurityTests) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTests) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.HighNumberOfCustomScalars) { - toSerialize["high_number_of_custom_scalars"] = o.HighNumberOfCustomScalars - } - if !IsNil(o.HighNumberOfPci) { - toSerialize["high_number_of_pci"] = o.HighNumberOfPci - } - if !IsNil(o.HighNumberOfPii) { - toSerialize["high_number_of_pii"] = o.HighNumberOfPii - } - if !IsNil(o.HighNumberOfPhi) { - toSerialize["high_number_of_phi"] = o.HighNumberOfPhi - } - if !IsNil(o.HighNumberOfSecrets) { - toSerialize["high_number_of_secrets"] = o.HighNumberOfSecrets - } - if !IsNil(o.AdminerDefaultLogin) { - toSerialize["adminer_default_login"] = o.AdminerDefaultLogin - } - if !IsNil(o.ApiAgenticPentesting) { - toSerialize["api_agentic_pentesting"] = o.ApiAgenticPentesting - } - if !IsNil(o.AirflowConfigExposure) { - toSerialize["airflow_config_exposure"] = o.AirflowConfigExposure - } - if !IsNil(o.AirflowDefaultLogin) { - toSerialize["airflow_default_login"] = o.AirflowDefaultLogin - } - if !IsNil(o.AirflowV3DefaultLogin) { - toSerialize["airflow_v3_default_login"] = o.AirflowV3DefaultLogin - } - if !IsNil(o.AlibabaCanalLeak) { - toSerialize["alibaba_canal_leak"] = o.AlibabaCanalLeak - } - if !IsNil(o.AnsibleConfigExposure) { - toSerialize["ansible_config_exposure"] = o.AnsibleConfigExposure - } - if !IsNil(o.ApacheApolloDefaultLogin) { - toSerialize["apache_apollo_default_login"] = o.ApacheApolloDefaultLogin - } - if !IsNil(o.ApacheDruidLog4j) { - toSerialize["apache_druid_log4j"] = o.ApacheDruidLog4j - } - if !IsNil(o.ApacheFlinkUnauthRce) { - toSerialize["apache_flink_unauth_rce"] = o.ApacheFlinkUnauthRce - } - if !IsNil(o.ApacheHertzbeatDefaultLogin) { - toSerialize["apache_hertzbeat_default_login"] = o.ApacheHertzbeatDefaultLogin - } - if !IsNil(o.ApacheNifiRce) { - toSerialize["apache_nifi_rce"] = o.ApacheNifiRce - } - if !IsNil(o.ApacheOfbizLog4jRce) { - toSerialize["apache_ofbiz_log4j_rce"] = o.ApacheOfbizLog4jRce - } - if !IsNil(o.ApacheSolrFileRead) { - toSerialize["apache_solr_file_read"] = o.ApacheSolrFileRead - } - if !IsNil(o.ApacheSolrLog4jRce) { - toSerialize["apache_solr_log4j_rce"] = o.ApacheSolrLog4jRce - } - if !IsNil(o.ApacheSolrRce) { - toSerialize["apache_solr_rce"] = o.ApacheSolrRce - } - if !IsNil(o.ApisixDefaultLogin) { - toSerialize["apisix_default_login"] = o.ApisixDefaultLogin - } - if !IsNil(o.AppspecExposure) { - toSerialize["appspec_exposure"] = o.AppspecExposure - } - if !IsNil(o.AppveyorConfigExposure) { - toSerialize["appveyor_config_exposure"] = o.AppveyorConfigExposure - } - if !IsNil(o.ArbitraryTokenScope) { - toSerialize["arbitrary_token_scope"] = o.ArbitraryTokenScope - } - if !IsNil(o.ArcadePhpSqli) { - toSerialize["arcade_php_sqli"] = o.ArcadePhpSqli - } - if !IsNil(o.AuthBypass) { - toSerialize["auth_bypass"] = o.AuthBypass - } - if !IsNil(o.AwsAccessToken) { - toSerialize["aws_access_token"] = o.AwsAccessToken - } - if !IsNil(o.AwsConfigExposure) { - toSerialize["aws_config_exposure"] = o.AwsConfigExposure - } - if !IsNil(o.AwsDockerConfigExposure) { - toSerialize["aws_docker_config_exposure"] = o.AwsDockerConfigExposure - } - if !IsNil(o.AwstatsConfigExposure) { - toSerialize["awstats_config_exposure"] = o.AwstatsConfigExposure - } - if !IsNil(o.AwstatsExposure) { - toSerialize["awstats_exposure"] = o.AwstatsExposure - } - if !IsNil(o.AzureTenantIdExposure) { - toSerialize["azure_tenant_id_exposure"] = o.AzureTenantIdExposure - } - if !IsNil(o.BsphpInfo) { - toSerialize["bsphp_info"] = o.BsphpInfo - } - if !IsNil(o.Bola) { - toSerialize["bola"] = o.Bola - } - if !IsNil(o.CharacterLimit) { - toSerialize["character_limit"] = o.CharacterLimit - } - if !IsNil(o.CloudstackDefaultLogin) { - toSerialize["cloudstack_default_login"] = o.CloudstackDefaultLogin - } - if !IsNil(o.CodimdUnauthFileUpload) { - toSerialize["codimd_unauth_file_upload"] = o.CodimdUnauthFileUpload - } - if !IsNil(o.Command) { - toSerialize["command"] = o.Command - } - if !IsNil(o.ConfigJsonExposureFuzz) { - toSerialize["config_json_exposure_fuzz"] = o.ConfigJsonExposureFuzz - } - if !IsNil(o.ConsoleError) { - toSerialize["console_error"] = o.ConsoleError - } - if !IsNil(o.ContentSecurityPolicy) { - toSerialize["content_security_policy"] = o.ContentSecurityPolicy - } - if !IsNil(o.Cors) { - toSerialize["cors"] = o.Cors - } - if !IsNil(o.CrashingPage) { - toSerialize["crashing_page"] = o.CrashingPage - } - if !IsNil(o.Crlf) { - toSerialize["crlf"] = o.Crlf - } - if !IsNil(o.DbgateUnauthRce) { - toSerialize["dbgate_unauth_rce"] = o.DbgateUnauthRce - } - if !IsNil(o.CsrfGetBased) { - toSerialize["csrf_get_based"] = o.CsrfGetBased - } - if !IsNil(o.Cve202144228) { - toSerialize["cve_2021_44228"] = o.Cve202144228 - } - if !IsNil(o.Cve202425723) { - toSerialize["cve_2024_25723"] = o.Cve202425723 - } - if !IsNil(o.Cve202432651) { - toSerialize["cve_2024_32651"] = o.Cve202432651 - } - if !IsNil(o.Cve202440711) { - toSerialize["cve_2024_40711"] = o.Cve202440711 - } - if !IsNil(o.CsrfPostBased) { - toSerialize["csrf_post_based"] = o.CsrfPostBased - } - if !IsNil(o.DebugMode) { - toSerialize["debug_mode"] = o.DebugMode - } - if !IsNil(o.DjangoSecretKey) { - toSerialize["django_secret_key"] = o.DjangoSecretKey - } - if !IsNil(o.DirectoryListing) { - toSerialize["directory_listing"] = o.DirectoryListing - } - if !IsNil(o.DolphinschedulerDefaultLogin) { - toSerialize["dolphinscheduler_default_login"] = o.DolphinschedulerDefaultLogin - } - if !IsNil(o.DorisDefaultLogin) { - toSerialize["doris_default_login"] = o.DorisDefaultLogin - } - if !IsNil(o.DirectoryTraversal) { - toSerialize["directory_traversal"] = o.DirectoryTraversal - } - if !IsNil(o.Dkim) { - toSerialize["dkim"] = o.Dkim - } - if !IsNil(o.Dmarc) { - toSerialize["dmarc"] = o.Dmarc - } - if !IsNil(o.Loopback) { - toSerialize["loopback"] = o.Loopback - } - if !IsNil(o.PermisiveSpf) { - toSerialize["permisive_spf"] = o.PermisiveSpf - } - if !IsNil(o.DnsrecordTxtLength) { - toSerialize["dnsrecord_txt_length"] = o.DnsrecordTxtLength - } - if !IsNil(o.DnsrecordTxtSensitive) { - toSerialize["dnsrecord_txt_sensitive"] = o.DnsrecordTxtSensitive - } - if !IsNil(o.DnssecDisabled) { - toSerialize["dnssec_disabled"] = o.DnssecDisabled - } - if !IsNil(o.StoredXss) { - toSerialize["stored_xss"] = o.StoredXss - } - if !IsNil(o.DomainTakeover) { - toSerialize["domain_takeover"] = o.DomainTakeover - } - if !IsNil(o.Drupal7ElfinderRce) { - toSerialize["drupal7_elfinder_rce"] = o.Drupal7ElfinderRce - } - if !IsNil(o.DrupalAvatarXss) { - toSerialize["drupal_avatar_xss"] = o.DrupalAvatarXss - } - if !IsNil(o.DubboAdminDefaultLogin) { - toSerialize["dubbo_admin_default_login"] = o.DubboAdminDefaultLogin - } - if !IsNil(o.DuplicatedObject) { - toSerialize["duplicated_object"] = o.DuplicatedObject - } - if !IsNil(o.EasyimageDownphpLfi) { - toSerialize["easyimage_downphp_lfi"] = o.EasyimageDownphpLfi - } - if !IsNil(o.EcologyMysqlConfig) { - toSerialize["ecology_mysql_config"] = o.EcologyMysqlConfig - } - if !IsNil(o.ElasticsearchDefaultLogin) { - toSerialize["elasticsearch_default_login"] = o.ElasticsearchDefaultLogin - } - if !IsNil(o.ErrorTypeInconsistency) { - toSerialize["error_type_inconsistency"] = o.ErrorTypeInconsistency - } - if !IsNil(o.EsafenetMysqlFileread) { - toSerialize["esafenet_mysql_fileread"] = o.EsafenetMysqlFileread - } - if !IsNil(o.ExcessiveBrowserPermissions) { - toSerialize["excessive_browser_permissions"] = o.ExcessiveBrowserPermissions - } - if !IsNil(o.ExposedConfigFile) { - toSerialize["exposed_config_file"] = o.ExposedConfigFile - } - if !IsNil(o.ExposedMysqlConfig) { - toSerialize["exposed_mysql_config"] = o.ExposedMysqlConfig - } - if !IsNil(o.ExposedSettingsPhp) { - toSerialize["exposed_settings_php"] = o.ExposedSettingsPhp - } - if !IsNil(o.ExposedSourcemap) { - toSerialize["exposed_sourcemap"] = o.ExposedSourcemap - } - if !IsNil(o.ExposedSqlDumps) { - toSerialize["exposed_sql_dumps"] = o.ExposedSqlDumps - } - if !IsNil(o.FileDisclosure) { - toSerialize["file_disclosure"] = o.FileDisclosure - } - if !IsNil(o.FileInclusion) { - toSerialize["file_inclusion"] = o.FileInclusion - } - if !IsNil(o.ForcedBrowsing) { - toSerialize["forced_browsing"] = o.ForcedBrowsing - } - if !IsNil(o.FrontendLocalstorageSensitiveData) { - toSerialize["frontend_localstorage_sensitive_data"] = o.FrontendLocalstorageSensitiveData - } - if !IsNil(o.GraphqlAliasLimit) { - toSerialize["graphql_alias_limit"] = o.GraphqlAliasLimit - } - if !IsNil(o.GraphqlApq) { - toSerialize["graphql_apq"] = o.GraphqlApq - } - if !IsNil(o.GraphqlBatchLimit) { - toSerialize["graphql_batch_limit"] = o.GraphqlBatchLimit - } - if !IsNil(o.GraphqlCircularIntrospection) { - toSerialize["graphql_circular_introspection"] = o.GraphqlCircularIntrospection - } - if !IsNil(o.GraphqlContentType) { - toSerialize["graphql_content_type"] = o.GraphqlContentType - } - if !IsNil(o.GraphqlDepthLimit) { - toSerialize["graphql_depth_limit"] = o.GraphqlDepthLimit - } - if !IsNil(o.GraphqlDirectiveOverload) { - toSerialize["graphql_directive_overload"] = o.GraphqlDirectiveOverload - } - if !IsNil(o.GraphqlExtensionDisclosure) { - toSerialize["graphql_extension_disclosure"] = o.GraphqlExtensionDisclosure - } - if !IsNil(o.GraphqlFieldDuplication) { - toSerialize["graphql_field_duplication"] = o.GraphqlFieldDuplication - } - if !IsNil(o.GraphqlFieldLimit) { - toSerialize["graphql_field_limit"] = o.GraphqlFieldLimit - } - if !IsNil(o.GraphqlFieldSuggestion) { - toSerialize["graphql_field_suggestion"] = o.GraphqlFieldSuggestion - } - if !IsNil(o.GraphqlRecursiveFragment) { - toSerialize["graphql_recursive_fragment"] = o.GraphqlRecursiveFragment - } - if !IsNil(o.GraphqlResponseFormat) { - toSerialize["graphql_response_format"] = o.GraphqlResponseFormat - } - if !IsNil(o.GraphqlWidthLimit) { - toSerialize["graphql_width_limit"] = o.GraphqlWidthLimit - } - if !IsNil(o.GuessableCookieValue) { - toSerialize["guessable_cookie_value"] = o.GuessableCookieValue - } - if !IsNil(o.HeaderAccessControlAllowOrigin) { - toSerialize["header_access_control_allow_origin"] = o.HeaderAccessControlAllowOrigin - } - if !IsNil(o.HeaderCacheControl) { - toSerialize["header_cache_control"] = o.HeaderCacheControl - } - if !IsNil(o.HeaderContentSecurityPolicy) { - toSerialize["header_content_security_policy"] = o.HeaderContentSecurityPolicy - } - if !IsNil(o.HeaderContentType) { - toSerialize["header_content_type"] = o.HeaderContentType - } - if !IsNil(o.HeaderLeak) { - toSerialize["header_leak"] = o.HeaderLeak - } - if !IsNil(o.HeaderSetCookie) { - toSerialize["header_set_cookie"] = o.HeaderSetCookie - } - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if !IsNil(o.HeaderStrictTransportSecurity) { - toSerialize["header_strict_transport_security"] = o.HeaderStrictTransportSecurity - } - if !IsNil(o.HeaderXContentTypeOptions) { - toSerialize["header_x_content_type_options"] = o.HeaderXContentTypeOptions - } - if !IsNil(o.HeaderXFrameOptions) { - toSerialize["header_x_frame_options"] = o.HeaderXFrameOptions - } - if !IsNil(o.HtmlInjection) { - toSerialize["html_injection"] = o.HtmlInjection - } - if !IsNil(o.HttpParamPollution) { - toSerialize["http_param_pollution"] = o.HttpParamPollution - } - if !IsNil(o.IdeEnabled) { - toSerialize["ide_enabled"] = o.IdeEnabled - } - if !IsNil(o.ImproperInput) { - toSerialize["improper_input"] = o.ImproperInput - } - if !IsNil(o.ImproperInputStored) { - toSerialize["improper_input_stored"] = o.ImproperInputStored - } - if !IsNil(o.IntrospectionEnabled) { - toSerialize["introspection_enabled"] = o.IntrospectionEnabled - } - if !IsNil(o.InvalidAllof) { - toSerialize["invalid_allof"] = o.InvalidAllof - } - if !IsNil(o.InvalidParametersInPath) { - toSerialize["invalid_parameters_in_path"] = o.InvalidParametersInPath - } - if !IsNil(o.InvalidPersistedQuery) { - toSerialize["invalid_persisted_query"] = o.InvalidPersistedQuery - } - if !IsNil(o.InvalidRefs) { - toSerialize["invalid_refs"] = o.InvalidRefs - } - if !IsNil(o.JwtAlgConfusion) { - toSerialize["jwt_alg_confusion"] = o.JwtAlgConfusion - } - if !IsNil(o.JwtAlgNone) { - toSerialize["jwt_alg_none"] = o.JwtAlgNone - } - if !IsNil(o.ExposedJwt) { - toSerialize["exposed_jwt"] = o.ExposedJwt - } - if !IsNil(o.JwtSignCheck) { - toSerialize["jwt_sign_check"] = o.JwtSignCheck - } - if !IsNil(o.LargeJsonInput) { - toSerialize["large_json_input"] = o.LargeJsonInput - } - if !IsNil(o.LeakingAuthentication) { - toSerialize["leaking_authentication"] = o.LeakingAuthentication - } - if !IsNil(o.LlmDetection) { - toSerialize["llm_detection"] = o.LlmDetection - } - if !IsNil(o.LlmExcessiveAgency) { - toSerialize["llm_excessive_agency"] = o.LlmExcessiveAgency - } - if !IsNil(o.LlmInsecureOutputHandling) { - toSerialize["llm_insecure_output_handling"] = o.LlmInsecureOutputHandling - } - if !IsNil(o.LlmInsecurePluginDesign) { - toSerialize["llm_insecure_plugin_design"] = o.LlmInsecurePluginDesign - } - if !IsNil(o.LlmJailBreak) { - toSerialize["llm_jail_break"] = o.LlmJailBreak - } - if !IsNil(o.LlmModelDos) { - toSerialize["llm_model_dos"] = o.LlmModelDos - } - if !IsNil(o.LlmModelTheft) { - toSerialize["llm_model_theft"] = o.LlmModelTheft - } - if !IsNil(o.LlmOverreliance) { - toSerialize["llm_overreliance"] = o.LlmOverreliance - } - if !IsNil(o.LlmPromptInjection) { - toSerialize["llm_prompt_injection"] = o.LlmPromptInjection - } - if !IsNil(o.LlmSensitiveInformationDisclosure) { - toSerialize["llm_sensitive_information_disclosure"] = o.LlmSensitiveInformationDisclosure - } - if !IsNil(o.LlmSupplyChainVulnerabilities) { - toSerialize["llm_supply_chain_vulnerabilities"] = o.LlmSupplyChainVulnerabilities - } - if !IsNil(o.LlmTrainingDataPoisoning) { - toSerialize["llm_training_data_poisoning"] = o.LlmTrainingDataPoisoning - } - if !IsNil(o.Log4shell) { - toSerialize["log4shell"] = o.Log4shell - } - if !IsNil(o.MassAssignment) { - toSerialize["mass_assignment"] = o.MassAssignment - } - if !IsNil(o.MismatchingPersistedQueriesAndSchema) { - toSerialize["mismatching_persisted_queries_and_schema"] = o.MismatchingPersistedQueriesAndSchema - } - if !IsNil(o.Nosql) { - toSerialize["nosql"] = o.Nosql - } - if !IsNil(o.NosqlStored) { - toSerialize["nosql_stored"] = o.NosqlStored - } - if !IsNil(o.Nuclei) { - toSerialize["nuclei"] = o.Nuclei - } - if !IsNil(o.OpenPort) { - toSerialize["open_port"] = o.OpenPort - } - if !IsNil(o.OpenRedirect) { - toSerialize["open_redirect"] = o.OpenRedirect - } - if !IsNil(o.PaginationMissing) { - toSerialize["pagination_missing"] = o.PaginationMissing - } - if !IsNil(o.PasswordFieldAutocompletion) { - toSerialize["password_field_autocompletion"] = o.PasswordFieldAutocompletion - } - if !IsNil(o.PermissiveJsonInput) { - toSerialize["permissive_json_input"] = o.PermissiveJsonInput - } - if !IsNil(o.PositiveIntegerValidation) { - toSerialize["positive_integer_validation"] = o.PositiveIntegerValidation - } - if !IsNil(o.PotentialCve) { - toSerialize["potential_cve"] = o.PotentialCve - } - if !IsNil(o.PrivateData) { - toSerialize["private_data"] = o.PrivateData - } - if !IsNil(o.PrivateFields) { - toSerialize["private_fields"] = o.PrivateFields - } - if !IsNil(o.PrivateIp) { - toSerialize["private_ip"] = o.PrivateIp - } - if !IsNil(o.PublicStateAlteringOperation) { - toSerialize["public_state_altering_operation"] = o.PublicStateAlteringOperation - } - if !IsNil(o.ReflectedUrlParameter) { - toSerialize["reflected_url_parameter"] = o.ReflectedUrlParameter - } - if !IsNil(o.RequestSmuggling) { - toSerialize["request_smuggling"] = o.RequestSmuggling - } - if !IsNil(o.RequestUrlOverride) { - toSerialize["request_url_override"] = o.RequestUrlOverride - } - if !IsNil(o.ResourceLimitingBypass) { - toSerialize["resource_limiting_bypass"] = o.ResourceLimitingBypass - } - if !IsNil(o.ResponseSize) { - toSerialize["response_size"] = o.ResponseSize - } - if !IsNil(o.ResponseTypeMismatch) { - toSerialize["response_type_mismatch"] = o.ResponseTypeMismatch - } - if !IsNil(o.SensitiveComments) { - toSerialize["sensitive_comments"] = o.SensitiveComments - } - if !IsNil(o.SensitiveEndpointBruteforce) { - toSerialize["sensitive_endpoint_bruteforce"] = o.SensitiveEndpointBruteforce - } - if !IsNil(o.ServerError) { - toSerialize["server_error"] = o.ServerError - } - if !IsNil(o.SoftwareComponentLeak) { - toSerialize["software_component_leak"] = o.SoftwareComponentLeak - } - if !IsNil(o.SpringbootActuatorDump) { - toSerialize["springboot_actuator_dump"] = o.SpringbootActuatorDump - } - if !IsNil(o.SpringbootActuatorEnv) { - toSerialize["springboot_actuator_env"] = o.SpringbootActuatorEnv - } - if !IsNil(o.SpringbootActuatorHeapdump) { - toSerialize["springboot_actuator_heapdump"] = o.SpringbootActuatorHeapdump - } - if !IsNil(o.SpringbootActuatorLogfile) { - toSerialize["springboot_actuator_logfile"] = o.SpringbootActuatorLogfile - } - if !IsNil(o.SpringbootActuatorMappings) { - toSerialize["springboot_actuator_mappings"] = o.SpringbootActuatorMappings - } - if !IsNil(o.SpringbootActuatorRestart) { - toSerialize["springboot_actuator_restart"] = o.SpringbootActuatorRestart - } - if !IsNil(o.SpringbootActuatorShutdown) { - toSerialize["springboot_actuator_shutdown"] = o.SpringbootActuatorShutdown - } - if !IsNil(o.SpringbootActuatorTrace) { - toSerialize["springboot_actuator_trace"] = o.SpringbootActuatorTrace - } - if !IsNil(o.Sql) { - toSerialize["sql"] = o.Sql - } - if !IsNil(o.SslCertificate) { - toSerialize["ssl_certificate"] = o.SslCertificate - } - if !IsNil(o.Ssl) { - toSerialize["ssl"] = o.Ssl - } - if !IsNil(o.SsrfHeader) { - toSerialize["ssrf_header"] = o.SsrfHeader - } - if !IsNil(o.Ssrf) { - toSerialize["ssrf"] = o.Ssrf - } - if !IsNil(o.Ssti) { - toSerialize["ssti"] = o.Ssti - } - if !IsNil(o.Stacktrace) { - toSerialize["stacktrace"] = o.Stacktrace - } - if !IsNil(o.SubresourceIntegrityMissing) { - toSerialize["subresource_integrity_missing"] = o.SubresourceIntegrityMissing - } - if !IsNil(o.SwaggerRules) { - toSerialize["swagger_rules"] = o.SwaggerRules - } - if !IsNil(o.TenantIsolation) { - toSerialize["tenant_isolation"] = o.TenantIsolation - } - if !IsNil(o.Timeout) { - toSerialize["timeout"] = o.Timeout - } - if !IsNil(o.TlsConfigurationCipher) { - toSerialize["tls_configuration_cipher"] = o.TlsConfigurationCipher - } - if !IsNil(o.TlsConfigurationKey) { - toSerialize["tls_configuration_key"] = o.TlsConfigurationKey - } - if !IsNil(o.TlsConfigurationProtocol) { - toSerialize["tls_configuration_protocol"] = o.TlsConfigurationProtocol - } - if !IsNil(o.TlsConfigurationServerDefault) { - toSerialize["tls_configuration_server_default"] = o.TlsConfigurationServerDefault - } - if !IsNil(o.TlsConfigurationServerPref) { - toSerialize["tls_configuration_server_pref"] = o.TlsConfigurationServerPref - } - if !IsNil(o.TlsConfigurationVuln) { - toSerialize["tls_configuration_vuln"] = o.TlsConfigurationVuln - } - if !IsNil(o.TypingMisconfiguration) { - toSerialize["typing_misconfiguration"] = o.TypingMisconfiguration - } - if !IsNil(o.UndefinedObject) { - toSerialize["undefined_object"] = o.UndefinedObject - } - if !IsNil(o.UnhandledEndpoint) { - toSerialize["unhandled_endpoint"] = o.UnhandledEndpoint - } - if !IsNil(o.UnreachableServer) { - toSerialize["unreachable_server"] = o.UnreachableServer - } - if !IsNil(o.UnsafeFunctionUse) { - toSerialize["unsafe_function_use"] = o.UnsafeFunctionUse - } - if !IsNil(o.WafBypass) { - toSerialize["waf_bypass"] = o.WafBypass - } - if !IsNil(o.WordpressOembedEndpointExposed) { - toSerialize["wordpress_oembed_endpoint_exposed"] = o.WordpressOembedEndpointExposed - } - if !IsNil(o.WordpressRdfFeedUserExposed) { - toSerialize["wordpress_rdf_feed_user_exposed"] = o.WordpressRdfFeedUserExposed - } - if !IsNil(o.WordpressRestApiUsersExposed) { - toSerialize["wordpress_rest_api_users_exposed"] = o.WordpressRestApiUsersExposed - } - if !IsNil(o.WordpressAffiliatewpLog) { - toSerialize["wordpress_affiliatewp_log"] = o.WordpressAffiliatewpLog - } - if !IsNil(o.WordpressDbBackup) { - toSerialize["wordpress_db_backup"] = o.WordpressDbBackup - } - if !IsNil(o.WordpressDbBackupListing) { - toSerialize["wordpress_db_backup_listing"] = o.WordpressDbBackupListing - } - if !IsNil(o.WordpressDbRepair) { - toSerialize["wordpress_db_repair"] = o.WordpressDbRepair - } - if !IsNil(o.WordpressDebugLog) { - toSerialize["wordpress_debug_log"] = o.WordpressDebugLog - } - if !IsNil(o.WordpressSocialMetricsTracker) { - toSerialize["wordpress_social_metrics_tracker"] = o.WordpressSocialMetricsTracker - } - if !IsNil(o.WordpressSsrfOembed) { - toSerialize["wordpress_ssrf_oembed"] = o.WordpressSsrfOembed - } - if !IsNil(o.WordpressTotalUpkeepBackupDownload) { - toSerialize["wordpress_total_upkeep_backup_download"] = o.WordpressTotalUpkeepBackupDownload - } - if !IsNil(o.WordpressWordfenceLfi) { - toSerialize["wordpress_wordfence_lfi"] = o.WordpressWordfenceLfi - } - if !IsNil(o.WordpressWordfenceWafBypassXss) { - toSerialize["wordpress_wordfence_waf_bypass_xss"] = o.WordpressWordfenceWafBypassXss - } - if !IsNil(o.WordpressWordfenceXss) { - toSerialize["wordpress_wordfence_xss"] = o.WordpressWordfenceXss - } - if !IsNil(o.WordpressWpCronExposed) { - toSerialize["wordpress_wp_cron_exposed"] = o.WordpressWpCronExposed - } - if !IsNil(o.WordpressXmlrpcPhpExposed) { - toSerialize["wordpress_xmlrpc_php_exposed"] = o.WordpressXmlrpcPhpExposed - } - if !IsNil(o.WordpressZebraFormXss) { - toSerialize["wordpress_zebra_form_xss"] = o.WordpressZebraFormXss - } - if !IsNil(o.WpInsertPhpXss) { - toSerialize["wp_insert_php_xss"] = o.WpInsertPhpXss - } - if !IsNil(o.WpPhpfreechatXss) { - toSerialize["wp_phpfreechat_xss"] = o.WpPhpfreechatXss - } - if !IsNil(o.XssViaDomainTakeover) { - toSerialize["xss_via_domain_takeover"] = o.XssViaDomainTakeover - } - if !IsNil(o.Xxe) { - toSerialize["xxe"] = o.Xxe - } - if !IsNil(o.ZombieObject) { - toSerialize["zombie_object"] = o.ZombieObject - } - if !IsNil(o.FlaskSessionCookie) { - toSerialize["flask_session_cookie"] = o.FlaskSessionCookie - } - if !IsNil(o.GeovisionGeowebserverLfiXss) { - toSerialize["geovision_geowebserver_lfi_xss"] = o.GeovisionGeowebserverLfiXss - } - if !IsNil(o.GitExposure) { - toSerialize["git_exposure"] = o.GitExposure - } - if !IsNil(o.GitlabWeakLogin) { - toSerialize["gitlab_weak_login"] = o.GitlabWeakLogin - } - if !IsNil(o.GlpiDefaultLogin) { - toSerialize["glpi_default_login"] = o.GlpiDefaultLogin - } - if !IsNil(o.GrafanaDefaultLogin) { - toSerialize["grafana_default_login"] = o.GrafanaDefaultLogin - } - if !IsNil(o.InfobloxNetmriRailsCookieRce) { - toSerialize["infoblox_netmri_rails_cookie_rce"] = o.InfobloxNetmriRailsCookieRce - } - if !IsNil(o.IotawattAppExposure) { - toSerialize["iotawatt_app_exposure"] = o.IotawattAppExposure - } - if !IsNil(o.JenkinsWeakPassword) { - toSerialize["jenkins_weak_password"] = o.JenkinsWeakPassword - } - if !IsNil(o.JolokiaTomcatCredsLeak) { - toSerialize["jolokia_tomcat_creds_leak"] = o.JolokiaTomcatCredsLeak - } - if !IsNil(o.JoomlaComBookingComponent) { - toSerialize["joomla_com_booking_component"] = o.JoomlaComBookingComponent - } - if !IsNil(o.JoomlaComFabrikLfi) { - toSerialize["joomla_com_fabrik_lfi"] = o.JoomlaComFabrikLfi - } - if !IsNil(o.JoomlaDepartmentSqli) { - toSerialize["joomla_department_sqli"] = o.JoomlaDepartmentSqli - } - if !IsNil(o.JoomlaEasyshopLfi) { - toSerialize["joomla_easyshop_lfi"] = o.JoomlaEasyshopLfi - } - if !IsNil(o.JoomlaIpropertyXss) { - toSerialize["joomla_iproperty_xss"] = o.JoomlaIpropertyXss - } - if !IsNil(o.JoomlaJlexXss) { - toSerialize["joomla_jlex_xss"] = o.JoomlaJlexXss - } - if !IsNil(o.JoomlaJmarketXss) { - toSerialize["joomla_jmarket_xss"] = o.JoomlaJmarketXss - } - if !IsNil(o.JoomlaJoombriCareersXss) { - toSerialize["joomla_joombri_careers_xss"] = o.JoomlaJoombriCareersXss - } - if !IsNil(o.JoomlaJvehiclesLfi) { - toSerialize["joomla_jvehicles_lfi"] = o.JoomlaJvehiclesLfi - } - if !IsNil(o.JoomlaJvtwitterXss) { - toSerialize["joomla_jvtwitter_xss"] = o.JoomlaJvtwitterXss - } - if !IsNil(o.JoomlaMarvikshopSqli) { - toSerialize["joomla_marvikshop_sqli"] = o.JoomlaMarvikshopSqli - } - if !IsNil(o.JoomlaMarvikshopXss) { - toSerialize["joomla_marvikshop_xss"] = o.JoomlaMarvikshopXss - } - if !IsNil(o.JoomlaSolidresXss) { - toSerialize["joomla_solidres_xss"] = o.JoomlaSolidresXss - } - if !IsNil(o.JupyterNotebookRce) { - toSerialize["jupyter_notebook_rce"] = o.JupyterNotebookRce - } - if !IsNil(o.KafkaCenterDefaultLogin) { - toSerialize["kafka_center_default_login"] = o.KafkaCenterDefaultLogin - } - if !IsNil(o.KarafDefaultLogin) { - toSerialize["karaf_default_login"] = o.KarafDefaultLogin - } - if !IsNil(o.KkfileviewSsrf) { - toSerialize["kkfileview_ssrf"] = o.KkfileviewSsrf - } - if !IsNil(o.KylinDefaultLogin) { - toSerialize["kylin_default_login"] = o.KylinDefaultLogin - } - if !IsNil(o.LuceeRce) { - toSerialize["lucee_rce"] = o.LuceeRce - } - if !IsNil(o.MalwaredByobRce) { - toSerialize["malwared_byob_rce"] = o.MalwaredByobRce - } - if !IsNil(o.MdbDatabaseFile) { - toSerialize["mdb_database_file"] = o.MdbDatabaseFile - } - if !IsNil(o.MinioDefaultLogin) { - toSerialize["minio_default_login"] = o.MinioDefaultLogin - } - if !IsNil(o.NginxMergeSlashesPathTraversal) { - toSerialize["nginx_merge_slashes_path_traversal"] = o.NginxMergeSlashesPathTraversal - } - if !IsNil(o.NginxModuleVtsXss) { - toSerialize["nginx_module_vts_xss"] = o.NginxModuleVtsXss - } - if !IsNil(o.NginxProxyManagerDefaultLogin) { - toSerialize["nginx_proxy_manager_default_login"] = o.NginxProxyManagerDefaultLogin - } - if !IsNil(o.NginxWebuiRce) { - toSerialize["nginx_webui_rce"] = o.NginxWebuiRce - } - if !IsNil(o.NginxwebuiRuncmdRce) { - toSerialize["nginxwebui_runcmd_rce"] = o.NginxwebuiRuncmdRce - } - if !IsNil(o.NodeEcstaticInternalPath) { - toSerialize["node_ecstatic_internal_path"] = o.NodeEcstaticInternalPath - } - if !IsNil(o.NoderedDefaultLogin) { - toSerialize["nodered_default_login"] = o.NoderedDefaultLogin - } - if !IsNil(o.OpenmediavaultDefaultLogin) { - toSerialize["openmediavault_default_login"] = o.OpenmediavaultDefaultLogin - } - if !IsNil(o.OpensearchDashboardDefaultLogin) { - toSerialize["opensearch_dashboard_default_login"] = o.OpensearchDashboardDefaultLogin - } - if !IsNil(o.PhpTimeclockXss) { - toSerialize["php_timeclock_xss"] = o.PhpTimeclockXss - } - if !IsNil(o.PhpXdebugRce) { - toSerialize["php_xdebug_rce"] = o.PhpXdebugRce - } - if !IsNil(o.PhpZerodiumBackdoorRce) { - toSerialize["php_zerodium_backdoor_rce"] = o.PhpZerodiumBackdoorRce - } - if !IsNil(o.PhpldapadminXss) { - toSerialize["phpldapadmin_xss"] = o.PhpldapadminXss - } - if !IsNil(o.PhpmyadminDefaultLogin) { - toSerialize["phpmyadmin_default_login"] = o.PhpmyadminDefaultLogin - } - if !IsNil(o.PhpmyadminUnauthAccess) { - toSerialize["phpmyadmin_unauth_access"] = o.PhpmyadminUnauthAccess - } - if !IsNil(o.PhpokSqli) { - toSerialize["phpok_sqli"] = o.PhpokSqli - } - if !IsNil(o.PhpwikiLfi) { - toSerialize["phpwiki_lfi"] = o.PhpwikiLfi - } - if !IsNil(o.PrivateKeyExposure) { - toSerialize["private_key_exposure"] = o.PrivateKeyExposure - } - if !IsNil(o.RabbitmqDefaultLogin) { - toSerialize["rabbitmq_default_login"] = o.RabbitmqDefaultLogin - } - if !IsNil(o.Rails6Xss) { - toSerialize["rails6_xss"] = o.Rails6Xss - } - if !IsNil(o.RangerDefaultLogin) { - toSerialize["ranger_default_login"] = o.RangerDefaultLogin - } - if !IsNil(o.React2shell1) { - toSerialize["react2shell_1"] = o.React2shell1 - } - if !IsNil(o.React2shell2) { - toSerialize["react2shell_2"] = o.React2shell2 - } - if !IsNil(o.RowLevelSecurity) { - toSerialize["row_level_security"] = o.RowLevelSecurity - } - if !IsNil(o.RundeckDefaultLogin) { - toSerialize["rundeck_default_login"] = o.RundeckDefaultLogin - } - if !IsNil(o.RustyJoomla) { - toSerialize["rusty_joomla"] = o.RustyJoomla - } - if !IsNil(o.SangforCphpRce) { - toSerialize["sangfor_cphp_rce"] = o.SangforCphpRce - } - if !IsNil(o.SecretTokenRb) { - toSerialize["secret_token_rb"] = o.SecretTokenRb - } - if !IsNil(o.SeeyonCreatemysqlExposure) { - toSerialize["seeyon_createmysql_exposure"] = o.SeeyonCreatemysqlExposure - } - if !IsNil(o.SeleniumExposure) { - toSerialize["selenium_exposure"] = o.SeleniumExposure - } - if !IsNil(o.SelfSignedSsl) { - toSerialize["self_signed_ssl"] = o.SelfSignedSsl - } - if !IsNil(o.SonarqubeDefaultLogin) { - toSerialize["sonarqube_default_login"] = o.SonarqubeDefaultLogin - } - if !IsNil(o.Thinkphp6ArbitraryWrite) { - toSerialize["thinkphp6_arbitrary_write"] = o.Thinkphp6ArbitraryWrite - } - if !IsNil(o.Thinkphp2Rce) { - toSerialize["thinkphp_2_rce"] = o.Thinkphp2Rce - } - if !IsNil(o.Thinkphp501Rce) { - toSerialize["thinkphp_501_rce"] = o.Thinkphp501Rce - } - if !IsNil(o.Thinkphp5023Rce) { - toSerialize["thinkphp_5023_rce"] = o.Thinkphp5023Rce - } - if !IsNil(o.Thinkphp509InformationDisclosure) { - toSerialize["thinkphp_509_information_disclosure"] = o.Thinkphp509InformationDisclosure - } - if !IsNil(o.TomcatDefaultLogin) { - toSerialize["tomcat_default_login"] = o.TomcatDefaultLogin - } - if !IsNil(o.TomcatExamplesLogin) { - toSerialize["tomcat_examples_login"] = o.TomcatExamplesLogin - } - if !IsNil(o.TotolinkN150rtPasswordExposure) { - toSerialize["totolink_n150rt_password_exposure"] = o.TotolinkN150rtPasswordExposure - } - if !IsNil(o.TwigPhpSsti) { - toSerialize["twig_php_ssti"] = o.TwigPhpSsti - } - if !IsNil(o.TwonkyServerExposure) { - toSerialize["twonky_server_exposure"] = o.TwonkyServerExposure - } - if !IsNil(o.WeaverMysqlConfigExposure) { - toSerialize["weaver_mysql_config_exposure"] = o.WeaverMysqlConfigExposure - } - if !IsNil(o.WebminDefaultLogin) { - toSerialize["webmin_default_login"] = o.WebminDefaultLogin - } - if !IsNil(o.WordpressAccessibleWpconfig) { - toSerialize["wordpress_accessible_wpconfig"] = o.WordpressAccessibleWpconfig - } - if !IsNil(o.CompromisedSupplyChain) { - toSerialize["compromised_supply_chain"] = o.CompromisedSupplyChain - } - if !IsNil(o.ZabbixDefaultLogin) { - toSerialize["zabbix_default_login"] = o.ZabbixDefaultLogin - } - if !IsNil(o.DnsRebindingAttack) { - toSerialize["dns_rebinding_attack"] = o.DnsRebindingAttack - } - if !IsNil(o.SpoofableSpfRecordsPtrMechanism) { - toSerialize["spoofable_spf_records_ptr_mechanism"] = o.SpoofableSpfRecordsPtrMechanism - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTests) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTests := _ProfileDetailedConfigurationSecurityTests{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTests) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTests(varProfileDetailedConfigurationSecurityTests) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "high_number_of_custom_scalars") - delete(additionalProperties, "high_number_of_pci") - delete(additionalProperties, "high_number_of_pii") - delete(additionalProperties, "high_number_of_phi") - delete(additionalProperties, "high_number_of_secrets") - delete(additionalProperties, "adminer_default_login") - delete(additionalProperties, "api_agentic_pentesting") - delete(additionalProperties, "airflow_config_exposure") - delete(additionalProperties, "airflow_default_login") - delete(additionalProperties, "airflow_v3_default_login") - delete(additionalProperties, "alibaba_canal_leak") - delete(additionalProperties, "ansible_config_exposure") - delete(additionalProperties, "apache_apollo_default_login") - delete(additionalProperties, "apache_druid_log4j") - delete(additionalProperties, "apache_flink_unauth_rce") - delete(additionalProperties, "apache_hertzbeat_default_login") - delete(additionalProperties, "apache_nifi_rce") - delete(additionalProperties, "apache_ofbiz_log4j_rce") - delete(additionalProperties, "apache_solr_file_read") - delete(additionalProperties, "apache_solr_log4j_rce") - delete(additionalProperties, "apache_solr_rce") - delete(additionalProperties, "apisix_default_login") - delete(additionalProperties, "appspec_exposure") - delete(additionalProperties, "appveyor_config_exposure") - delete(additionalProperties, "arbitrary_token_scope") - delete(additionalProperties, "arcade_php_sqli") - delete(additionalProperties, "auth_bypass") - delete(additionalProperties, "aws_access_token") - delete(additionalProperties, "aws_config_exposure") - delete(additionalProperties, "aws_docker_config_exposure") - delete(additionalProperties, "awstats_config_exposure") - delete(additionalProperties, "awstats_exposure") - delete(additionalProperties, "azure_tenant_id_exposure") - delete(additionalProperties, "bsphp_info") - delete(additionalProperties, "bola") - delete(additionalProperties, "character_limit") - delete(additionalProperties, "cloudstack_default_login") - delete(additionalProperties, "codimd_unauth_file_upload") - delete(additionalProperties, "command") - delete(additionalProperties, "config_json_exposure_fuzz") - delete(additionalProperties, "console_error") - delete(additionalProperties, "content_security_policy") - delete(additionalProperties, "cors") - delete(additionalProperties, "crashing_page") - delete(additionalProperties, "crlf") - delete(additionalProperties, "dbgate_unauth_rce") - delete(additionalProperties, "csrf_get_based") - delete(additionalProperties, "cve_2021_44228") - delete(additionalProperties, "cve_2024_25723") - delete(additionalProperties, "cve_2024_32651") - delete(additionalProperties, "cve_2024_40711") - delete(additionalProperties, "csrf_post_based") - delete(additionalProperties, "debug_mode") - delete(additionalProperties, "django_secret_key") - delete(additionalProperties, "directory_listing") - delete(additionalProperties, "dolphinscheduler_default_login") - delete(additionalProperties, "doris_default_login") - delete(additionalProperties, "directory_traversal") - delete(additionalProperties, "dkim") - delete(additionalProperties, "dmarc") - delete(additionalProperties, "loopback") - delete(additionalProperties, "permisive_spf") - delete(additionalProperties, "dnsrecord_txt_length") - delete(additionalProperties, "dnsrecord_txt_sensitive") - delete(additionalProperties, "dnssec_disabled") - delete(additionalProperties, "stored_xss") - delete(additionalProperties, "domain_takeover") - delete(additionalProperties, "drupal7_elfinder_rce") - delete(additionalProperties, "drupal_avatar_xss") - delete(additionalProperties, "dubbo_admin_default_login") - delete(additionalProperties, "duplicated_object") - delete(additionalProperties, "easyimage_downphp_lfi") - delete(additionalProperties, "ecology_mysql_config") - delete(additionalProperties, "elasticsearch_default_login") - delete(additionalProperties, "error_type_inconsistency") - delete(additionalProperties, "esafenet_mysql_fileread") - delete(additionalProperties, "excessive_browser_permissions") - delete(additionalProperties, "exposed_config_file") - delete(additionalProperties, "exposed_mysql_config") - delete(additionalProperties, "exposed_settings_php") - delete(additionalProperties, "exposed_sourcemap") - delete(additionalProperties, "exposed_sql_dumps") - delete(additionalProperties, "file_disclosure") - delete(additionalProperties, "file_inclusion") - delete(additionalProperties, "forced_browsing") - delete(additionalProperties, "frontend_localstorage_sensitive_data") - delete(additionalProperties, "graphql_alias_limit") - delete(additionalProperties, "graphql_apq") - delete(additionalProperties, "graphql_batch_limit") - delete(additionalProperties, "graphql_circular_introspection") - delete(additionalProperties, "graphql_content_type") - delete(additionalProperties, "graphql_depth_limit") - delete(additionalProperties, "graphql_directive_overload") - delete(additionalProperties, "graphql_extension_disclosure") - delete(additionalProperties, "graphql_field_duplication") - delete(additionalProperties, "graphql_field_limit") - delete(additionalProperties, "graphql_field_suggestion") - delete(additionalProperties, "graphql_recursive_fragment") - delete(additionalProperties, "graphql_response_format") - delete(additionalProperties, "graphql_width_limit") - delete(additionalProperties, "guessable_cookie_value") - delete(additionalProperties, "header_access_control_allow_origin") - delete(additionalProperties, "header_cache_control") - delete(additionalProperties, "header_content_security_policy") - delete(additionalProperties, "header_content_type") - delete(additionalProperties, "header_leak") - delete(additionalProperties, "header_set_cookie") - delete(additionalProperties, "headers") - delete(additionalProperties, "header_strict_transport_security") - delete(additionalProperties, "header_x_content_type_options") - delete(additionalProperties, "header_x_frame_options") - delete(additionalProperties, "html_injection") - delete(additionalProperties, "http_param_pollution") - delete(additionalProperties, "ide_enabled") - delete(additionalProperties, "improper_input") - delete(additionalProperties, "improper_input_stored") - delete(additionalProperties, "introspection_enabled") - delete(additionalProperties, "invalid_allof") - delete(additionalProperties, "invalid_parameters_in_path") - delete(additionalProperties, "invalid_persisted_query") - delete(additionalProperties, "invalid_refs") - delete(additionalProperties, "jwt_alg_confusion") - delete(additionalProperties, "jwt_alg_none") - delete(additionalProperties, "exposed_jwt") - delete(additionalProperties, "jwt_sign_check") - delete(additionalProperties, "large_json_input") - delete(additionalProperties, "leaking_authentication") - delete(additionalProperties, "llm_detection") - delete(additionalProperties, "llm_excessive_agency") - delete(additionalProperties, "llm_insecure_output_handling") - delete(additionalProperties, "llm_insecure_plugin_design") - delete(additionalProperties, "llm_jail_break") - delete(additionalProperties, "llm_model_dos") - delete(additionalProperties, "llm_model_theft") - delete(additionalProperties, "llm_overreliance") - delete(additionalProperties, "llm_prompt_injection") - delete(additionalProperties, "llm_sensitive_information_disclosure") - delete(additionalProperties, "llm_supply_chain_vulnerabilities") - delete(additionalProperties, "llm_training_data_poisoning") - delete(additionalProperties, "log4shell") - delete(additionalProperties, "mass_assignment") - delete(additionalProperties, "mismatching_persisted_queries_and_schema") - delete(additionalProperties, "nosql") - delete(additionalProperties, "nosql_stored") - delete(additionalProperties, "nuclei") - delete(additionalProperties, "open_port") - delete(additionalProperties, "open_redirect") - delete(additionalProperties, "pagination_missing") - delete(additionalProperties, "password_field_autocompletion") - delete(additionalProperties, "permissive_json_input") - delete(additionalProperties, "positive_integer_validation") - delete(additionalProperties, "potential_cve") - delete(additionalProperties, "private_data") - delete(additionalProperties, "private_fields") - delete(additionalProperties, "private_ip") - delete(additionalProperties, "public_state_altering_operation") - delete(additionalProperties, "reflected_url_parameter") - delete(additionalProperties, "request_smuggling") - delete(additionalProperties, "request_url_override") - delete(additionalProperties, "resource_limiting_bypass") - delete(additionalProperties, "response_size") - delete(additionalProperties, "response_type_mismatch") - delete(additionalProperties, "sensitive_comments") - delete(additionalProperties, "sensitive_endpoint_bruteforce") - delete(additionalProperties, "server_error") - delete(additionalProperties, "software_component_leak") - delete(additionalProperties, "springboot_actuator_dump") - delete(additionalProperties, "springboot_actuator_env") - delete(additionalProperties, "springboot_actuator_heapdump") - delete(additionalProperties, "springboot_actuator_logfile") - delete(additionalProperties, "springboot_actuator_mappings") - delete(additionalProperties, "springboot_actuator_restart") - delete(additionalProperties, "springboot_actuator_shutdown") - delete(additionalProperties, "springboot_actuator_trace") - delete(additionalProperties, "sql") - delete(additionalProperties, "ssl_certificate") - delete(additionalProperties, "ssl") - delete(additionalProperties, "ssrf_header") - delete(additionalProperties, "ssrf") - delete(additionalProperties, "ssti") - delete(additionalProperties, "stacktrace") - delete(additionalProperties, "subresource_integrity_missing") - delete(additionalProperties, "swagger_rules") - delete(additionalProperties, "tenant_isolation") - delete(additionalProperties, "timeout") - delete(additionalProperties, "tls_configuration_cipher") - delete(additionalProperties, "tls_configuration_key") - delete(additionalProperties, "tls_configuration_protocol") - delete(additionalProperties, "tls_configuration_server_default") - delete(additionalProperties, "tls_configuration_server_pref") - delete(additionalProperties, "tls_configuration_vuln") - delete(additionalProperties, "typing_misconfiguration") - delete(additionalProperties, "undefined_object") - delete(additionalProperties, "unhandled_endpoint") - delete(additionalProperties, "unreachable_server") - delete(additionalProperties, "unsafe_function_use") - delete(additionalProperties, "waf_bypass") - delete(additionalProperties, "wordpress_oembed_endpoint_exposed") - delete(additionalProperties, "wordpress_rdf_feed_user_exposed") - delete(additionalProperties, "wordpress_rest_api_users_exposed") - delete(additionalProperties, "wordpress_affiliatewp_log") - delete(additionalProperties, "wordpress_db_backup") - delete(additionalProperties, "wordpress_db_backup_listing") - delete(additionalProperties, "wordpress_db_repair") - delete(additionalProperties, "wordpress_debug_log") - delete(additionalProperties, "wordpress_social_metrics_tracker") - delete(additionalProperties, "wordpress_ssrf_oembed") - delete(additionalProperties, "wordpress_total_upkeep_backup_download") - delete(additionalProperties, "wordpress_wordfence_lfi") - delete(additionalProperties, "wordpress_wordfence_waf_bypass_xss") - delete(additionalProperties, "wordpress_wordfence_xss") - delete(additionalProperties, "wordpress_wp_cron_exposed") - delete(additionalProperties, "wordpress_xmlrpc_php_exposed") - delete(additionalProperties, "wordpress_zebra_form_xss") - delete(additionalProperties, "wp_insert_php_xss") - delete(additionalProperties, "wp_phpfreechat_xss") - delete(additionalProperties, "xss_via_domain_takeover") - delete(additionalProperties, "xxe") - delete(additionalProperties, "zombie_object") - delete(additionalProperties, "flask_session_cookie") - delete(additionalProperties, "geovision_geowebserver_lfi_xss") - delete(additionalProperties, "git_exposure") - delete(additionalProperties, "gitlab_weak_login") - delete(additionalProperties, "glpi_default_login") - delete(additionalProperties, "grafana_default_login") - delete(additionalProperties, "infoblox_netmri_rails_cookie_rce") - delete(additionalProperties, "iotawatt_app_exposure") - delete(additionalProperties, "jenkins_weak_password") - delete(additionalProperties, "jolokia_tomcat_creds_leak") - delete(additionalProperties, "joomla_com_booking_component") - delete(additionalProperties, "joomla_com_fabrik_lfi") - delete(additionalProperties, "joomla_department_sqli") - delete(additionalProperties, "joomla_easyshop_lfi") - delete(additionalProperties, "joomla_iproperty_xss") - delete(additionalProperties, "joomla_jlex_xss") - delete(additionalProperties, "joomla_jmarket_xss") - delete(additionalProperties, "joomla_joombri_careers_xss") - delete(additionalProperties, "joomla_jvehicles_lfi") - delete(additionalProperties, "joomla_jvtwitter_xss") - delete(additionalProperties, "joomla_marvikshop_sqli") - delete(additionalProperties, "joomla_marvikshop_xss") - delete(additionalProperties, "joomla_solidres_xss") - delete(additionalProperties, "jupyter_notebook_rce") - delete(additionalProperties, "kafka_center_default_login") - delete(additionalProperties, "karaf_default_login") - delete(additionalProperties, "kkfileview_ssrf") - delete(additionalProperties, "kylin_default_login") - delete(additionalProperties, "lucee_rce") - delete(additionalProperties, "malwared_byob_rce") - delete(additionalProperties, "mdb_database_file") - delete(additionalProperties, "minio_default_login") - delete(additionalProperties, "nginx_merge_slashes_path_traversal") - delete(additionalProperties, "nginx_module_vts_xss") - delete(additionalProperties, "nginx_proxy_manager_default_login") - delete(additionalProperties, "nginx_webui_rce") - delete(additionalProperties, "nginxwebui_runcmd_rce") - delete(additionalProperties, "node_ecstatic_internal_path") - delete(additionalProperties, "nodered_default_login") - delete(additionalProperties, "openmediavault_default_login") - delete(additionalProperties, "opensearch_dashboard_default_login") - delete(additionalProperties, "php_timeclock_xss") - delete(additionalProperties, "php_xdebug_rce") - delete(additionalProperties, "php_zerodium_backdoor_rce") - delete(additionalProperties, "phpldapadmin_xss") - delete(additionalProperties, "phpmyadmin_default_login") - delete(additionalProperties, "phpmyadmin_unauth_access") - delete(additionalProperties, "phpok_sqli") - delete(additionalProperties, "phpwiki_lfi") - delete(additionalProperties, "private_key_exposure") - delete(additionalProperties, "rabbitmq_default_login") - delete(additionalProperties, "rails6_xss") - delete(additionalProperties, "ranger_default_login") - delete(additionalProperties, "react2shell_1") - delete(additionalProperties, "react2shell_2") - delete(additionalProperties, "row_level_security") - delete(additionalProperties, "rundeck_default_login") - delete(additionalProperties, "rusty_joomla") - delete(additionalProperties, "sangfor_cphp_rce") - delete(additionalProperties, "secret_token_rb") - delete(additionalProperties, "seeyon_createmysql_exposure") - delete(additionalProperties, "selenium_exposure") - delete(additionalProperties, "self_signed_ssl") - delete(additionalProperties, "sonarqube_default_login") - delete(additionalProperties, "thinkphp6_arbitrary_write") - delete(additionalProperties, "thinkphp_2_rce") - delete(additionalProperties, "thinkphp_501_rce") - delete(additionalProperties, "thinkphp_5023_rce") - delete(additionalProperties, "thinkphp_509_information_disclosure") - delete(additionalProperties, "tomcat_default_login") - delete(additionalProperties, "tomcat_examples_login") - delete(additionalProperties, "totolink_n150rt_password_exposure") - delete(additionalProperties, "twig_php_ssti") - delete(additionalProperties, "twonky_server_exposure") - delete(additionalProperties, "weaver_mysql_config_exposure") - delete(additionalProperties, "webmin_default_login") - delete(additionalProperties, "wordpress_accessible_wpconfig") - delete(additionalProperties, "compromised_supply_chain") - delete(additionalProperties, "zabbix_default_login") - delete(additionalProperties, "dns_rebinding_attack") - delete(additionalProperties, "spoofable_spf_records_ptr_mechanism") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTests struct { - value *ProfileDetailedConfigurationSecurityTests - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTests) Get() *ProfileDetailedConfigurationSecurityTests { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTests) Set(val *ProfileDetailedConfigurationSecurityTests) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTests) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTests) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTests(val *ProfileDetailedConfigurationSecurityTests) *NullableProfileDetailedConfigurationSecurityTests { - return &NullableProfileDetailedConfigurationSecurityTests{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTests) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTests) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_adminer_default_login.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_adminer_default_login.go deleted file mode 100644 index a07bca64..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_adminer_default_login.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin{} - -// ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin struct for ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin -type ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin struct { - Skip *bool `json:"skip,omitempty"` - AssetsAllowed []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS `json:"assets_allowed,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - -// NewProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin instantiates a new ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin 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 NewProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin() *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - this := ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsAdminerDefaultLoginWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin 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 NewProfileDetailedConfigurationSecurityTestsAdminerDefaultLoginWithDefaults() *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - this := ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin{} - return &this -} - -// GetSkip returns the Skip field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) GetSkip() bool { - if o == nil || IsNil(o.Skip) { - var ret bool - return ret - } - return *o.Skip -} - -// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) GetSkipOk() (*bool, bool) { - if o == nil || IsNil(o.Skip) { - return nil, false - } - return o.Skip, true -} - -// HasSkip returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) HasSkip() bool { - if o != nil && !IsNil(o.Skip) { - return true - } - - return false -} - -// SetSkip gets a reference to the given bool and assigns it to the Skip field. -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) SetSkip(v bool) { - o.Skip = &v -} - -// GetAssetsAllowed returns the AssetsAllowed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) GetAssetsAllowed() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - if o == nil || IsNil(o.AssetsAllowed) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - return ret - } - return o.AssetsAllowed -} - -// GetAssetsAllowedOk returns a tuple with the AssetsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) GetAssetsAllowedOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, bool) { - if o == nil || IsNil(o.AssetsAllowed) { - return nil, false - } - return o.AssetsAllowed, true -} - -// HasAssetsAllowed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) HasAssetsAllowed() bool { - if o != nil && !IsNil(o.AssetsAllowed) { - return true - } - - return false -} - -// SetAssetsAllowed gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS and assigns it to the AssetsAllowed field. -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) SetAssetsAllowed(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - o.AssetsAllowed = v -} - -func (o ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Skip) { - toSerialize["skip"] = o.Skip - } - if !IsNil(o.AssetsAllowed) { - toSerialize["assets_allowed"] = o.AssetsAllowed - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin := _ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin(varProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "skip") - delete(additionalProperties, "assets_allowed") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin struct { - value *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) Get() *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) Set(val *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin(val *ProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) *NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin { - return &NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsAdminerDefaultLogin) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_api_agentic_pentesting.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_api_agentic_pentesting.go deleted file mode 100644 index b1d4888b..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_api_agentic_pentesting.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting{} - -// ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting struct for ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting -type ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting struct { - Skip *bool `json:"skip,omitempty"` - AssetsAllowed []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS `json:"assets_allowed,omitempty"` - Preprompt *string `json:"preprompt,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting - -// NewProfileDetailedConfigurationSecurityTestsApiAgenticPentesting instantiates a new ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting 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 NewProfileDetailedConfigurationSecurityTestsApiAgenticPentesting() *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting { - this := ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsApiAgenticPentestingWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting 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 NewProfileDetailedConfigurationSecurityTestsApiAgenticPentestingWithDefaults() *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting { - this := ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting{} - return &this -} - -// GetSkip returns the Skip field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) GetSkip() bool { - if o == nil || IsNil(o.Skip) { - var ret bool - return ret - } - return *o.Skip -} - -// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) GetSkipOk() (*bool, bool) { - if o == nil || IsNil(o.Skip) { - return nil, false - } - return o.Skip, true -} - -// HasSkip returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) HasSkip() bool { - if o != nil && !IsNil(o.Skip) { - return true - } - - return false -} - -// SetSkip gets a reference to the given bool and assigns it to the Skip field. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) SetSkip(v bool) { - o.Skip = &v -} - -// GetAssetsAllowed returns the AssetsAllowed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) GetAssetsAllowed() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - if o == nil || IsNil(o.AssetsAllowed) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - return ret - } - return o.AssetsAllowed -} - -// GetAssetsAllowedOk returns a tuple with the AssetsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) GetAssetsAllowedOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, bool) { - if o == nil || IsNil(o.AssetsAllowed) { - return nil, false - } - return o.AssetsAllowed, true -} - -// HasAssetsAllowed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) HasAssetsAllowed() bool { - if o != nil && !IsNil(o.AssetsAllowed) { - return true - } - - return false -} - -// SetAssetsAllowed gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS and assigns it to the AssetsAllowed field. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) SetAssetsAllowed(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - o.AssetsAllowed = v -} - -// GetPreprompt returns the Preprompt field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) GetPreprompt() string { - if o == nil || IsNil(o.Preprompt) { - var ret string - return ret - } - return *o.Preprompt -} - -// GetPrepromptOk returns a tuple with the Preprompt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) GetPrepromptOk() (*string, bool) { - if o == nil || IsNil(o.Preprompt) { - return nil, false - } - return o.Preprompt, true -} - -// HasPreprompt returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) HasPreprompt() bool { - if o != nil && !IsNil(o.Preprompt) { - return true - } - - return false -} - -// SetPreprompt gets a reference to the given string and assigns it to the Preprompt field. -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) SetPreprompt(v string) { - o.Preprompt = &v -} - -func (o ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Skip) { - toSerialize["skip"] = o.Skip - } - if !IsNil(o.AssetsAllowed) { - toSerialize["assets_allowed"] = o.AssetsAllowed - } - if !IsNil(o.Preprompt) { - toSerialize["preprompt"] = o.Preprompt - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTestsApiAgenticPentesting := _ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting(varProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "skip") - delete(additionalProperties, "assets_allowed") - delete(additionalProperties, "preprompt") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting struct { - value *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) Get() *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) Set(val *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting(val *ProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) *NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting { - return &NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsApiAgenticPentesting) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_bola.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_bola.go deleted file mode 100644 index 8099e915..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_bola.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsBola type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsBola{} - -// ProfileDetailedConfigurationSecurityTestsBola struct for ProfileDetailedConfigurationSecurityTestsBola -type ProfileDetailedConfigurationSecurityTestsBola struct { - Skip *bool `json:"skip,omitempty"` - AssetsAllowed []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS `json:"assets_allowed,omitempty"` - DoNotFuzz []string `json:"do_not_fuzz,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsBola ProfileDetailedConfigurationSecurityTestsBola - -// NewProfileDetailedConfigurationSecurityTestsBola instantiates a new ProfileDetailedConfigurationSecurityTestsBola 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 NewProfileDetailedConfigurationSecurityTestsBola() *ProfileDetailedConfigurationSecurityTestsBola { - this := ProfileDetailedConfigurationSecurityTestsBola{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsBolaWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsBola 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 NewProfileDetailedConfigurationSecurityTestsBolaWithDefaults() *ProfileDetailedConfigurationSecurityTestsBola { - this := ProfileDetailedConfigurationSecurityTestsBola{} - return &this -} - -// GetSkip returns the Skip field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsBola) GetSkip() bool { - if o == nil || IsNil(o.Skip) { - var ret bool - return ret - } - return *o.Skip -} - -// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsBola) GetSkipOk() (*bool, bool) { - if o == nil || IsNil(o.Skip) { - return nil, false - } - return o.Skip, true -} - -// HasSkip returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsBola) HasSkip() bool { - if o != nil && !IsNil(o.Skip) { - return true - } - - return false -} - -// SetSkip gets a reference to the given bool and assigns it to the Skip field. -func (o *ProfileDetailedConfigurationSecurityTestsBola) SetSkip(v bool) { - o.Skip = &v -} - -// GetAssetsAllowed returns the AssetsAllowed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsBola) GetAssetsAllowed() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - if o == nil || IsNil(o.AssetsAllowed) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - return ret - } - return o.AssetsAllowed -} - -// GetAssetsAllowedOk returns a tuple with the AssetsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsBola) GetAssetsAllowedOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, bool) { - if o == nil || IsNil(o.AssetsAllowed) { - return nil, false - } - return o.AssetsAllowed, true -} - -// HasAssetsAllowed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsBola) HasAssetsAllowed() bool { - if o != nil && !IsNil(o.AssetsAllowed) { - return true - } - - return false -} - -// SetAssetsAllowed gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS and assigns it to the AssetsAllowed field. -func (o *ProfileDetailedConfigurationSecurityTestsBola) SetAssetsAllowed(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - o.AssetsAllowed = v -} - -// GetDoNotFuzz returns the DoNotFuzz field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsBola) GetDoNotFuzz() []string { - if o == nil || IsNil(o.DoNotFuzz) { - var ret []string - return ret - } - return o.DoNotFuzz -} - -// GetDoNotFuzzOk returns a tuple with the DoNotFuzz field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsBola) GetDoNotFuzzOk() ([]string, bool) { - if o == nil || IsNil(o.DoNotFuzz) { - return nil, false - } - return o.DoNotFuzz, true -} - -// HasDoNotFuzz returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsBola) HasDoNotFuzz() bool { - if o != nil && !IsNil(o.DoNotFuzz) { - return true - } - - return false -} - -// SetDoNotFuzz gets a reference to the given []string and assigns it to the DoNotFuzz field. -func (o *ProfileDetailedConfigurationSecurityTestsBola) SetDoNotFuzz(v []string) { - o.DoNotFuzz = v -} - -func (o ProfileDetailedConfigurationSecurityTestsBola) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsBola) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Skip) { - toSerialize["skip"] = o.Skip - } - if !IsNil(o.AssetsAllowed) { - toSerialize["assets_allowed"] = o.AssetsAllowed - } - if !IsNil(o.DoNotFuzz) { - toSerialize["do_not_fuzz"] = o.DoNotFuzz - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsBola) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTestsBola := _ProfileDetailedConfigurationSecurityTestsBola{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsBola) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsBola(varProfileDetailedConfigurationSecurityTestsBola) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "skip") - delete(additionalProperties, "assets_allowed") - delete(additionalProperties, "do_not_fuzz") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsBola struct { - value *ProfileDetailedConfigurationSecurityTestsBola - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsBola) Get() *ProfileDetailedConfigurationSecurityTestsBola { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsBola) Set(val *ProfileDetailedConfigurationSecurityTestsBola) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsBola) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsBola) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsBola(val *ProfileDetailedConfigurationSecurityTestsBola) *NullableProfileDetailedConfigurationSecurityTestsBola { - return &NullableProfileDetailedConfigurationSecurityTestsBola{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsBola) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsBola) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_high_number_of_custom_scalars.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_high_number_of_custom_scalars.go deleted file mode 100644 index 0fccd859..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_high_number_of_custom_scalars.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars{} - -// ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars struct for ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars -type ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars struct { - Skip *bool `json:"skip,omitempty"` - AssetsAllowed []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS `json:"assets_allowed,omitempty"` - DetectionThreshold *float32 `json:"detection_threshold,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars - -// NewProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars instantiates a new ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars 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 NewProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars() *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - this := ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalarsWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars 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 NewProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalarsWithDefaults() *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - this := ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars{} - return &this -} - -// GetSkip returns the Skip field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) GetSkip() bool { - if o == nil || IsNil(o.Skip) { - var ret bool - return ret - } - return *o.Skip -} - -// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) GetSkipOk() (*bool, bool) { - if o == nil || IsNil(o.Skip) { - return nil, false - } - return o.Skip, true -} - -// HasSkip returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) HasSkip() bool { - if o != nil && !IsNil(o.Skip) { - return true - } - - return false -} - -// SetSkip gets a reference to the given bool and assigns it to the Skip field. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) SetSkip(v bool) { - o.Skip = &v -} - -// GetAssetsAllowed returns the AssetsAllowed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) GetAssetsAllowed() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - if o == nil || IsNil(o.AssetsAllowed) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - return ret - } - return o.AssetsAllowed -} - -// GetAssetsAllowedOk returns a tuple with the AssetsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) GetAssetsAllowedOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, bool) { - if o == nil || IsNil(o.AssetsAllowed) { - return nil, false - } - return o.AssetsAllowed, true -} - -// HasAssetsAllowed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) HasAssetsAllowed() bool { - if o != nil && !IsNil(o.AssetsAllowed) { - return true - } - - return false -} - -// SetAssetsAllowed gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS and assigns it to the AssetsAllowed field. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) SetAssetsAllowed(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - o.AssetsAllowed = v -} - -// GetDetectionThreshold returns the DetectionThreshold field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) GetDetectionThreshold() float32 { - if o == nil || IsNil(o.DetectionThreshold) { - var ret float32 - return ret - } - return *o.DetectionThreshold -} - -// GetDetectionThresholdOk returns a tuple with the DetectionThreshold field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) GetDetectionThresholdOk() (*float32, bool) { - if o == nil || IsNil(o.DetectionThreshold) { - return nil, false - } - return o.DetectionThreshold, true -} - -// HasDetectionThreshold returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) HasDetectionThreshold() bool { - if o != nil && !IsNil(o.DetectionThreshold) { - return true - } - - return false -} - -// SetDetectionThreshold gets a reference to the given float32 and assigns it to the DetectionThreshold field. -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) SetDetectionThreshold(v float32) { - o.DetectionThreshold = &v -} - -func (o ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Skip) { - toSerialize["skip"] = o.Skip - } - if !IsNil(o.AssetsAllowed) { - toSerialize["assets_allowed"] = o.AssetsAllowed - } - if !IsNil(o.DetectionThreshold) { - toSerialize["detection_threshold"] = o.DetectionThreshold - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars := _ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars(varProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "skip") - delete(additionalProperties, "assets_allowed") - delete(additionalProperties, "detection_threshold") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars struct { - value *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) Get() *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) Set(val *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars(val *ProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) *NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars { - return &NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsHighNumberOfCustomScalars) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_private_data.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_private_data.go deleted file mode 100644 index fa7ac94f..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_private_data.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsPrivateData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsPrivateData{} - -// ProfileDetailedConfigurationSecurityTestsPrivateData struct for ProfileDetailedConfigurationSecurityTestsPrivateData -type ProfileDetailedConfigurationSecurityTestsPrivateData struct { - Skip *bool `json:"skip,omitempty"` - AssetsAllowed []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS `json:"assets_allowed,omitempty"` - Users map[string][]string `json:"users,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsPrivateData ProfileDetailedConfigurationSecurityTestsPrivateData - -// NewProfileDetailedConfigurationSecurityTestsPrivateData instantiates a new ProfileDetailedConfigurationSecurityTestsPrivateData 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 NewProfileDetailedConfigurationSecurityTestsPrivateData() *ProfileDetailedConfigurationSecurityTestsPrivateData { - this := ProfileDetailedConfigurationSecurityTestsPrivateData{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsPrivateDataWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsPrivateData 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 NewProfileDetailedConfigurationSecurityTestsPrivateDataWithDefaults() *ProfileDetailedConfigurationSecurityTestsPrivateData { - this := ProfileDetailedConfigurationSecurityTestsPrivateData{} - return &this -} - -// GetSkip returns the Skip field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) GetSkip() bool { - if o == nil || IsNil(o.Skip) { - var ret bool - return ret - } - return *o.Skip -} - -// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) GetSkipOk() (*bool, bool) { - if o == nil || IsNil(o.Skip) { - return nil, false - } - return o.Skip, true -} - -// HasSkip returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) HasSkip() bool { - if o != nil && !IsNil(o.Skip) { - return true - } - - return false -} - -// SetSkip gets a reference to the given bool and assigns it to the Skip field. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) SetSkip(v bool) { - o.Skip = &v -} - -// GetAssetsAllowed returns the AssetsAllowed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) GetAssetsAllowed() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - if o == nil || IsNil(o.AssetsAllowed) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - return ret - } - return o.AssetsAllowed -} - -// GetAssetsAllowedOk returns a tuple with the AssetsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) GetAssetsAllowedOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, bool) { - if o == nil || IsNil(o.AssetsAllowed) { - return nil, false - } - return o.AssetsAllowed, true -} - -// HasAssetsAllowed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) HasAssetsAllowed() bool { - if o != nil && !IsNil(o.AssetsAllowed) { - return true - } - - return false -} - -// SetAssetsAllowed gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS and assigns it to the AssetsAllowed field. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) SetAssetsAllowed(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - o.AssetsAllowed = v -} - -// GetUsers returns the Users field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) GetUsers() map[string][]string { - if o == nil || IsNil(o.Users) { - var ret map[string][]string - return ret - } - return o.Users -} - -// GetUsersOk returns a tuple with the Users field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) GetUsersOk() (map[string][]string, bool) { - if o == nil || IsNil(o.Users) { - return map[string][]string{}, false - } - return o.Users, true -} - -// HasUsers returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) HasUsers() bool { - if o != nil && !IsNil(o.Users) { - return true - } - - return false -} - -// SetUsers gets a reference to the given map[string][]string and assigns it to the Users field. -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) SetUsers(v map[string][]string) { - o.Users = v -} - -func (o ProfileDetailedConfigurationSecurityTestsPrivateData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsPrivateData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Skip) { - toSerialize["skip"] = o.Skip - } - if !IsNil(o.AssetsAllowed) { - toSerialize["assets_allowed"] = o.AssetsAllowed - } - if !IsNil(o.Users) { - toSerialize["users"] = o.Users - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsPrivateData) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTestsPrivateData := _ProfileDetailedConfigurationSecurityTestsPrivateData{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsPrivateData) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsPrivateData(varProfileDetailedConfigurationSecurityTestsPrivateData) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "skip") - delete(additionalProperties, "assets_allowed") - delete(additionalProperties, "users") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsPrivateData struct { - value *ProfileDetailedConfigurationSecurityTestsPrivateData - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsPrivateData) Get() *ProfileDetailedConfigurationSecurityTestsPrivateData { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsPrivateData) Set(val *ProfileDetailedConfigurationSecurityTestsPrivateData) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsPrivateData) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsPrivateData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsPrivateData(val *ProfileDetailedConfigurationSecurityTestsPrivateData) *NullableProfileDetailedConfigurationSecurityTestsPrivateData { - return &NullableProfileDetailedConfigurationSecurityTestsPrivateData{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsPrivateData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsPrivateData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_response_size.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_response_size.go deleted file mode 100644 index 2cb9224e..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_response_size.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsResponseSize type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsResponseSize{} - -// ProfileDetailedConfigurationSecurityTestsResponseSize struct for ProfileDetailedConfigurationSecurityTestsResponseSize -type ProfileDetailedConfigurationSecurityTestsResponseSize struct { - Skip *bool `json:"skip,omitempty"` - AssetsAllowed []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS `json:"assets_allowed,omitempty"` - MaxLength *float32 `json:"max_length,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsResponseSize ProfileDetailedConfigurationSecurityTestsResponseSize - -// NewProfileDetailedConfigurationSecurityTestsResponseSize instantiates a new ProfileDetailedConfigurationSecurityTestsResponseSize 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 NewProfileDetailedConfigurationSecurityTestsResponseSize() *ProfileDetailedConfigurationSecurityTestsResponseSize { - this := ProfileDetailedConfigurationSecurityTestsResponseSize{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsResponseSizeWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsResponseSize 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 NewProfileDetailedConfigurationSecurityTestsResponseSizeWithDefaults() *ProfileDetailedConfigurationSecurityTestsResponseSize { - this := ProfileDetailedConfigurationSecurityTestsResponseSize{} - return &this -} - -// GetSkip returns the Skip field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) GetSkip() bool { - if o == nil || IsNil(o.Skip) { - var ret bool - return ret - } - return *o.Skip -} - -// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) GetSkipOk() (*bool, bool) { - if o == nil || IsNil(o.Skip) { - return nil, false - } - return o.Skip, true -} - -// HasSkip returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) HasSkip() bool { - if o != nil && !IsNil(o.Skip) { - return true - } - - return false -} - -// SetSkip gets a reference to the given bool and assigns it to the Skip field. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) SetSkip(v bool) { - o.Skip = &v -} - -// GetAssetsAllowed returns the AssetsAllowed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) GetAssetsAllowed() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - if o == nil || IsNil(o.AssetsAllowed) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - return ret - } - return o.AssetsAllowed -} - -// GetAssetsAllowedOk returns a tuple with the AssetsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) GetAssetsAllowedOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, bool) { - if o == nil || IsNil(o.AssetsAllowed) { - return nil, false - } - return o.AssetsAllowed, true -} - -// HasAssetsAllowed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) HasAssetsAllowed() bool { - if o != nil && !IsNil(o.AssetsAllowed) { - return true - } - - return false -} - -// SetAssetsAllowed gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS and assigns it to the AssetsAllowed field. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) SetAssetsAllowed(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - o.AssetsAllowed = v -} - -// GetMaxLength returns the MaxLength field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) GetMaxLength() float32 { - if o == nil || IsNil(o.MaxLength) { - var ret float32 - return ret - } - return *o.MaxLength -} - -// GetMaxLengthOk returns a tuple with the MaxLength field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) GetMaxLengthOk() (*float32, bool) { - if o == nil || IsNil(o.MaxLength) { - return nil, false - } - return o.MaxLength, true -} - -// HasMaxLength returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) HasMaxLength() bool { - if o != nil && !IsNil(o.MaxLength) { - return true - } - - return false -} - -// SetMaxLength gets a reference to the given float32 and assigns it to the MaxLength field. -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) SetMaxLength(v float32) { - o.MaxLength = &v -} - -func (o ProfileDetailedConfigurationSecurityTestsResponseSize) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsResponseSize) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Skip) { - toSerialize["skip"] = o.Skip - } - if !IsNil(o.AssetsAllowed) { - toSerialize["assets_allowed"] = o.AssetsAllowed - } - if !IsNil(o.MaxLength) { - toSerialize["max_length"] = o.MaxLength - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsResponseSize) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTestsResponseSize := _ProfileDetailedConfigurationSecurityTestsResponseSize{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsResponseSize) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsResponseSize(varProfileDetailedConfigurationSecurityTestsResponseSize) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "skip") - delete(additionalProperties, "assets_allowed") - delete(additionalProperties, "max_length") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsResponseSize struct { - value *ProfileDetailedConfigurationSecurityTestsResponseSize - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsResponseSize) Get() *ProfileDetailedConfigurationSecurityTestsResponseSize { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsResponseSize) Set(val *ProfileDetailedConfigurationSecurityTestsResponseSize) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsResponseSize) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsResponseSize) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsResponseSize(val *ProfileDetailedConfigurationSecurityTestsResponseSize) *NullableProfileDetailedConfigurationSecurityTestsResponseSize { - return &NullableProfileDetailedConfigurationSecurityTestsResponseSize{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsResponseSize) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsResponseSize) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_sql.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_sql.go deleted file mode 100644 index cf3e7e8b..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_sql.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsSql type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsSql{} - -// ProfileDetailedConfigurationSecurityTestsSql struct for ProfileDetailedConfigurationSecurityTestsSql -type ProfileDetailedConfigurationSecurityTestsSql struct { - Skip *bool `json:"skip,omitempty"` - AssetsAllowed []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS `json:"assets_allowed,omitempty"` - DedupeQueryParamsByName *bool `json:"dedupe_query_params_by_name,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsSql ProfileDetailedConfigurationSecurityTestsSql - -// NewProfileDetailedConfigurationSecurityTestsSql instantiates a new ProfileDetailedConfigurationSecurityTestsSql 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 NewProfileDetailedConfigurationSecurityTestsSql() *ProfileDetailedConfigurationSecurityTestsSql { - this := ProfileDetailedConfigurationSecurityTestsSql{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsSqlWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsSql 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 NewProfileDetailedConfigurationSecurityTestsSqlWithDefaults() *ProfileDetailedConfigurationSecurityTestsSql { - this := ProfileDetailedConfigurationSecurityTestsSql{} - return &this -} - -// GetSkip returns the Skip field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsSql) GetSkip() bool { - if o == nil || IsNil(o.Skip) { - var ret bool - return ret - } - return *o.Skip -} - -// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsSql) GetSkipOk() (*bool, bool) { - if o == nil || IsNil(o.Skip) { - return nil, false - } - return o.Skip, true -} - -// HasSkip returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsSql) HasSkip() bool { - if o != nil && !IsNil(o.Skip) { - return true - } - - return false -} - -// SetSkip gets a reference to the given bool and assigns it to the Skip field. -func (o *ProfileDetailedConfigurationSecurityTestsSql) SetSkip(v bool) { - o.Skip = &v -} - -// GetAssetsAllowed returns the AssetsAllowed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsSql) GetAssetsAllowed() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - if o == nil || IsNil(o.AssetsAllowed) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - return ret - } - return o.AssetsAllowed -} - -// GetAssetsAllowedOk returns a tuple with the AssetsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsSql) GetAssetsAllowedOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, bool) { - if o == nil || IsNil(o.AssetsAllowed) { - return nil, false - } - return o.AssetsAllowed, true -} - -// HasAssetsAllowed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsSql) HasAssetsAllowed() bool { - if o != nil && !IsNil(o.AssetsAllowed) { - return true - } - - return false -} - -// SetAssetsAllowed gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS and assigns it to the AssetsAllowed field. -func (o *ProfileDetailedConfigurationSecurityTestsSql) SetAssetsAllowed(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - o.AssetsAllowed = v -} - -// GetDedupeQueryParamsByName returns the DedupeQueryParamsByName field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsSql) GetDedupeQueryParamsByName() bool { - if o == nil || IsNil(o.DedupeQueryParamsByName) { - var ret bool - return ret - } - return *o.DedupeQueryParamsByName -} - -// GetDedupeQueryParamsByNameOk returns a tuple with the DedupeQueryParamsByName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsSql) GetDedupeQueryParamsByNameOk() (*bool, bool) { - if o == nil || IsNil(o.DedupeQueryParamsByName) { - return nil, false - } - return o.DedupeQueryParamsByName, true -} - -// HasDedupeQueryParamsByName returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsSql) HasDedupeQueryParamsByName() bool { - if o != nil && !IsNil(o.DedupeQueryParamsByName) { - return true - } - - return false -} - -// SetDedupeQueryParamsByName gets a reference to the given bool and assigns it to the DedupeQueryParamsByName field. -func (o *ProfileDetailedConfigurationSecurityTestsSql) SetDedupeQueryParamsByName(v bool) { - o.DedupeQueryParamsByName = &v -} - -func (o ProfileDetailedConfigurationSecurityTestsSql) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsSql) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Skip) { - toSerialize["skip"] = o.Skip - } - if !IsNil(o.AssetsAllowed) { - toSerialize["assets_allowed"] = o.AssetsAllowed - } - if !IsNil(o.DedupeQueryParamsByName) { - toSerialize["dedupe_query_params_by_name"] = o.DedupeQueryParamsByName - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsSql) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTestsSql := _ProfileDetailedConfigurationSecurityTestsSql{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsSql) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsSql(varProfileDetailedConfigurationSecurityTestsSql) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "skip") - delete(additionalProperties, "assets_allowed") - delete(additionalProperties, "dedupe_query_params_by_name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsSql struct { - value *ProfileDetailedConfigurationSecurityTestsSql - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsSql) Get() *ProfileDetailedConfigurationSecurityTestsSql { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsSql) Set(val *ProfileDetailedConfigurationSecurityTestsSql) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsSql) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsSql) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsSql(val *ProfileDetailedConfigurationSecurityTestsSql) *NullableProfileDetailedConfigurationSecurityTestsSql { - return &NullableProfileDetailedConfigurationSecurityTestsSql{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsSql) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsSql) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation.go deleted file mode 100644 index ce2fd918..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation.go +++ /dev/null @@ -1,412 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsTenantIsolation type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsTenantIsolation{} - -// ProfileDetailedConfigurationSecurityTestsTenantIsolation struct for ProfileDetailedConfigurationSecurityTestsTenantIsolation -type ProfileDetailedConfigurationSecurityTestsTenantIsolation struct { - Skip *bool `json:"skip,omitempty"` - AssetsAllowed []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS `json:"assets_allowed,omitempty"` - MainUser *string `json:"main_user,omitempty"` - NaturalLanguageRule *string `json:"natural_language_rule,omitempty"` - OtherUsers *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers `json:"other_users,omitempty"` - SpecificUsers map[string]ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue `json:"specific_users,omitempty"` - Paths []string `json:"paths,omitempty"` - KeysMatching []string `json:"keys_matching,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsTenantIsolation ProfileDetailedConfigurationSecurityTestsTenantIsolation - -// NewProfileDetailedConfigurationSecurityTestsTenantIsolation instantiates a new ProfileDetailedConfigurationSecurityTestsTenantIsolation 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 NewProfileDetailedConfigurationSecurityTestsTenantIsolation() *ProfileDetailedConfigurationSecurityTestsTenantIsolation { - this := ProfileDetailedConfigurationSecurityTestsTenantIsolation{} - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsTenantIsolationWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsTenantIsolation 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 NewProfileDetailedConfigurationSecurityTestsTenantIsolationWithDefaults() *ProfileDetailedConfigurationSecurityTestsTenantIsolation { - this := ProfileDetailedConfigurationSecurityTestsTenantIsolation{} - return &this -} - -// GetSkip returns the Skip field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetSkip() bool { - if o == nil || IsNil(o.Skip) { - var ret bool - return ret - } - return *o.Skip -} - -// GetSkipOk returns a tuple with the Skip field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetSkipOk() (*bool, bool) { - if o == nil || IsNil(o.Skip) { - return nil, false - } - return o.Skip, true -} - -// HasSkip returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) HasSkip() bool { - if o != nil && !IsNil(o.Skip) { - return true - } - - return false -} - -// SetSkip gets a reference to the given bool and assigns it to the Skip field. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) SetSkip(v bool) { - o.Skip = &v -} - -// GetAssetsAllowed returns the AssetsAllowed field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetAssetsAllowed() []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS { - if o == nil || IsNil(o.AssetsAllowed) { - var ret []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS - return ret - } - return o.AssetsAllowed -} - -// GetAssetsAllowedOk returns a tuple with the AssetsAllowed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetAssetsAllowedOk() ([]ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS, bool) { - if o == nil || IsNil(o.AssetsAllowed) { - return nil, false - } - return o.AssetsAllowed, true -} - -// HasAssetsAllowed returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) HasAssetsAllowed() bool { - if o != nil && !IsNil(o.AssetsAllowed) { - return true - } - - return false -} - -// SetAssetsAllowed gets a reference to the given []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS and assigns it to the AssetsAllowed field. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) SetAssetsAllowed(v []ENUMPROPERTIESCONFIGURATIONPROPERTIESSECURITYTESTSPROPERTIESHIGHNUMBEROFCUSTOMSCALARSPROPERTIESASSETSALLOWEDITEMS) { - o.AssetsAllowed = v -} - -// GetMainUser returns the MainUser field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetMainUser() string { - if o == nil || IsNil(o.MainUser) { - var ret string - return ret - } - return *o.MainUser -} - -// GetMainUserOk returns a tuple with the MainUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetMainUserOk() (*string, bool) { - if o == nil || IsNil(o.MainUser) { - return nil, false - } - return o.MainUser, true -} - -// HasMainUser returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) HasMainUser() bool { - if o != nil && !IsNil(o.MainUser) { - return true - } - - return false -} - -// SetMainUser gets a reference to the given string and assigns it to the MainUser field. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) SetMainUser(v string) { - o.MainUser = &v -} - -// GetNaturalLanguageRule returns the NaturalLanguageRule field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetNaturalLanguageRule() string { - if o == nil || IsNil(o.NaturalLanguageRule) { - var ret string - return ret - } - return *o.NaturalLanguageRule -} - -// GetNaturalLanguageRuleOk returns a tuple with the NaturalLanguageRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetNaturalLanguageRuleOk() (*string, bool) { - if o == nil || IsNil(o.NaturalLanguageRule) { - return nil, false - } - return o.NaturalLanguageRule, true -} - -// HasNaturalLanguageRule returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) HasNaturalLanguageRule() bool { - if o != nil && !IsNil(o.NaturalLanguageRule) { - return true - } - - return false -} - -// SetNaturalLanguageRule gets a reference to the given string and assigns it to the NaturalLanguageRule field. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) SetNaturalLanguageRule(v string) { - o.NaturalLanguageRule = &v -} - -// GetOtherUsers returns the OtherUsers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetOtherUsers() ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers { - if o == nil || IsNil(o.OtherUsers) { - var ret ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers - return ret - } - return *o.OtherUsers -} - -// GetOtherUsersOk returns a tuple with the OtherUsers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetOtherUsersOk() (*ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers, bool) { - if o == nil || IsNil(o.OtherUsers) { - return nil, false - } - return o.OtherUsers, true -} - -// HasOtherUsers returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) HasOtherUsers() bool { - if o != nil && !IsNil(o.OtherUsers) { - return true - } - - return false -} - -// SetOtherUsers gets a reference to the given ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers and assigns it to the OtherUsers field. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) SetOtherUsers(v ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) { - o.OtherUsers = &v -} - -// GetSpecificUsers returns the SpecificUsers field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetSpecificUsers() map[string]ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue { - if o == nil || IsNil(o.SpecificUsers) { - var ret map[string]ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue - return ret - } - return o.SpecificUsers -} - -// GetSpecificUsersOk returns a tuple with the SpecificUsers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetSpecificUsersOk() (map[string]ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue, bool) { - if o == nil || IsNil(o.SpecificUsers) { - return map[string]ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue{}, false - } - return o.SpecificUsers, true -} - -// HasSpecificUsers returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) HasSpecificUsers() bool { - if o != nil && !IsNil(o.SpecificUsers) { - return true - } - - return false -} - -// SetSpecificUsers gets a reference to the given map[string]ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue and assigns it to the SpecificUsers field. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) SetSpecificUsers(v map[string]ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) { - o.SpecificUsers = v -} - -// GetPaths returns the Paths field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetPaths() []string { - if o == nil || IsNil(o.Paths) { - var ret []string - return ret - } - return o.Paths -} - -// GetPathsOk returns a tuple with the Paths field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetPathsOk() ([]string, bool) { - if o == nil || IsNil(o.Paths) { - return nil, false - } - return o.Paths, true -} - -// HasPaths returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) HasPaths() bool { - if o != nil && !IsNil(o.Paths) { - return true - } - - return false -} - -// SetPaths gets a reference to the given []string and assigns it to the Paths field. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) SetPaths(v []string) { - o.Paths = v -} - -// GetKeysMatching returns the KeysMatching field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetKeysMatching() []string { - if o == nil || IsNil(o.KeysMatching) { - var ret []string - return ret - } - return o.KeysMatching -} - -// GetKeysMatchingOk returns a tuple with the KeysMatching field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) GetKeysMatchingOk() ([]string, bool) { - if o == nil || IsNil(o.KeysMatching) { - return nil, false - } - return o.KeysMatching, true -} - -// HasKeysMatching returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) HasKeysMatching() bool { - if o != nil && !IsNil(o.KeysMatching) { - return true - } - - return false -} - -// SetKeysMatching gets a reference to the given []string and assigns it to the KeysMatching field. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) SetKeysMatching(v []string) { - o.KeysMatching = v -} - -func (o ProfileDetailedConfigurationSecurityTestsTenantIsolation) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsTenantIsolation) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Skip) { - toSerialize["skip"] = o.Skip - } - if !IsNil(o.AssetsAllowed) { - toSerialize["assets_allowed"] = o.AssetsAllowed - } - if !IsNil(o.MainUser) { - toSerialize["main_user"] = o.MainUser - } - if !IsNil(o.NaturalLanguageRule) { - toSerialize["natural_language_rule"] = o.NaturalLanguageRule - } - if !IsNil(o.OtherUsers) { - toSerialize["other_users"] = o.OtherUsers - } - if !IsNil(o.SpecificUsers) { - toSerialize["specific_users"] = o.SpecificUsers - } - if !IsNil(o.Paths) { - toSerialize["paths"] = o.Paths - } - if !IsNil(o.KeysMatching) { - toSerialize["keys_matching"] = o.KeysMatching - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolation) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSecurityTestsTenantIsolation := _ProfileDetailedConfigurationSecurityTestsTenantIsolation{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsTenantIsolation) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsTenantIsolation(varProfileDetailedConfigurationSecurityTestsTenantIsolation) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "skip") - delete(additionalProperties, "assets_allowed") - delete(additionalProperties, "main_user") - delete(additionalProperties, "natural_language_rule") - delete(additionalProperties, "other_users") - delete(additionalProperties, "specific_users") - delete(additionalProperties, "paths") - delete(additionalProperties, "keys_matching") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsTenantIsolation struct { - value *ProfileDetailedConfigurationSecurityTestsTenantIsolation - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolation) Get() *ProfileDetailedConfigurationSecurityTestsTenantIsolation { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolation) Set(val *ProfileDetailedConfigurationSecurityTestsTenantIsolation) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolation) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsTenantIsolation(val *ProfileDetailedConfigurationSecurityTestsTenantIsolation) *NullableProfileDetailedConfigurationSecurityTestsTenantIsolation { - return &NullableProfileDetailedConfigurationSecurityTestsTenantIsolation{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation_other_users.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation_other_users.go deleted file mode 100644 index 049b8486..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation_other_users.go +++ /dev/null @@ -1,166 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers{} - -// ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers struct for ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers -type ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers struct { - Detect []interface{} `json:"detect"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers - -// NewProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers instantiates a new ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers 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 NewProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers(detect []interface{}) *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers { - this := ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers{} - this.Detect = detect - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsersWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers 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 NewProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsersWithDefaults() *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers { - this := ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers{} - return &this -} - -// GetDetect returns the Detect field value -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) GetDetect() []interface{} { - if o == nil { - var ret []interface{} - return ret - } - - return o.Detect -} - -// GetDetectOk returns a tuple with the Detect field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) GetDetectOk() ([]interface{}, bool) { - if o == nil { - return nil, false - } - return o.Detect, true -} - -// SetDetect sets field value -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) SetDetect(v []interface{}) { - o.Detect = v -} - -func (o ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["detect"] = o.Detect - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "detect", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers := _ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers(varProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "detect") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers struct { - value *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) Get() *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) Set(val *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers(val *ProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) *NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers { - return &NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolationOtherUsers) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation_specific_users_value.go b/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation_specific_users_value.go deleted file mode 100644 index 9f51643b..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_security_tests_tenant_isolation_specific_users_value.go +++ /dev/null @@ -1,166 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue{} - -// ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue struct for ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue -type ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue struct { - Detect []interface{} `json:"detect"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue - -// NewProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue instantiates a new ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue 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 NewProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue(detect []interface{}) *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue { - this := ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue{} - this.Detect = detect - return &this -} - -// NewProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValueWithDefaults instantiates a new ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue 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 NewProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValueWithDefaults() *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue { - this := ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue{} - return &this -} - -// GetDetect returns the Detect field value -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) GetDetect() []interface{} { - if o == nil { - var ret []interface{} - return ret - } - - return o.Detect -} - -// GetDetectOk returns a tuple with the Detect field value -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) GetDetectOk() ([]interface{}, bool) { - if o == nil { - return nil, false - } - return o.Detect, true -} - -// SetDetect sets field value -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) SetDetect(v []interface{}) { - o.Detect = v -} - -func (o ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["detect"] = o.Detect - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "detect", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue := _ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue(varProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "detect") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue struct { - value *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue - isSet bool -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) Get() *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) Set(val *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue(val *ProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) *NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue { - return &NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSecurityTestsTenantIsolationSpecificUsersValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_service_discovery.go b/pkg/api/v3/model_profile_detailed_configuration_service_discovery.go deleted file mode 100644 index fc11a8de..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_service_discovery.go +++ /dev/null @@ -1,301 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationServiceDiscovery type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationServiceDiscovery{} - -// ProfileDetailedConfigurationServiceDiscovery struct for ProfileDetailedConfigurationServiceDiscovery -type ProfileDetailedConfigurationServiceDiscovery struct { - BlocklistedDomains []string `json:"blocklisted_domains,omitempty"` - BaseUrlsDelimiters []string `json:"base_urls_delimiters,omitempty"` - BaseUrlsWordlist []string `json:"base_urls_wordlist,omitempty"` - EndpointsWordlist []string `json:"endpoints_wordlist,omitempty"` - GraphqlEndpointsWordlist []string `json:"graphql_endpoints_wordlist,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationServiceDiscovery ProfileDetailedConfigurationServiceDiscovery - -// NewProfileDetailedConfigurationServiceDiscovery instantiates a new ProfileDetailedConfigurationServiceDiscovery 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 NewProfileDetailedConfigurationServiceDiscovery() *ProfileDetailedConfigurationServiceDiscovery { - this := ProfileDetailedConfigurationServiceDiscovery{} - return &this -} - -// NewProfileDetailedConfigurationServiceDiscoveryWithDefaults instantiates a new ProfileDetailedConfigurationServiceDiscovery 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 NewProfileDetailedConfigurationServiceDiscoveryWithDefaults() *ProfileDetailedConfigurationServiceDiscovery { - this := ProfileDetailedConfigurationServiceDiscovery{} - return &this -} - -// GetBlocklistedDomains returns the BlocklistedDomains field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetBlocklistedDomains() []string { - if o == nil || IsNil(o.BlocklistedDomains) { - var ret []string - return ret - } - return o.BlocklistedDomains -} - -// GetBlocklistedDomainsOk returns a tuple with the BlocklistedDomains field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetBlocklistedDomainsOk() ([]string, bool) { - if o == nil || IsNil(o.BlocklistedDomains) { - return nil, false - } - return o.BlocklistedDomains, true -} - -// HasBlocklistedDomains returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) HasBlocklistedDomains() bool { - if o != nil && !IsNil(o.BlocklistedDomains) { - return true - } - - return false -} - -// SetBlocklistedDomains gets a reference to the given []string and assigns it to the BlocklistedDomains field. -func (o *ProfileDetailedConfigurationServiceDiscovery) SetBlocklistedDomains(v []string) { - o.BlocklistedDomains = v -} - -// GetBaseUrlsDelimiters returns the BaseUrlsDelimiters field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetBaseUrlsDelimiters() []string { - if o == nil || IsNil(o.BaseUrlsDelimiters) { - var ret []string - return ret - } - return o.BaseUrlsDelimiters -} - -// GetBaseUrlsDelimitersOk returns a tuple with the BaseUrlsDelimiters field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetBaseUrlsDelimitersOk() ([]string, bool) { - if o == nil || IsNil(o.BaseUrlsDelimiters) { - return nil, false - } - return o.BaseUrlsDelimiters, true -} - -// HasBaseUrlsDelimiters returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) HasBaseUrlsDelimiters() bool { - if o != nil && !IsNil(o.BaseUrlsDelimiters) { - return true - } - - return false -} - -// SetBaseUrlsDelimiters gets a reference to the given []string and assigns it to the BaseUrlsDelimiters field. -func (o *ProfileDetailedConfigurationServiceDiscovery) SetBaseUrlsDelimiters(v []string) { - o.BaseUrlsDelimiters = v -} - -// GetBaseUrlsWordlist returns the BaseUrlsWordlist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetBaseUrlsWordlist() []string { - if o == nil || IsNil(o.BaseUrlsWordlist) { - var ret []string - return ret - } - return o.BaseUrlsWordlist -} - -// GetBaseUrlsWordlistOk returns a tuple with the BaseUrlsWordlist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetBaseUrlsWordlistOk() ([]string, bool) { - if o == nil || IsNil(o.BaseUrlsWordlist) { - return nil, false - } - return o.BaseUrlsWordlist, true -} - -// HasBaseUrlsWordlist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) HasBaseUrlsWordlist() bool { - if o != nil && !IsNil(o.BaseUrlsWordlist) { - return true - } - - return false -} - -// SetBaseUrlsWordlist gets a reference to the given []string and assigns it to the BaseUrlsWordlist field. -func (o *ProfileDetailedConfigurationServiceDiscovery) SetBaseUrlsWordlist(v []string) { - o.BaseUrlsWordlist = v -} - -// GetEndpointsWordlist returns the EndpointsWordlist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetEndpointsWordlist() []string { - if o == nil || IsNil(o.EndpointsWordlist) { - var ret []string - return ret - } - return o.EndpointsWordlist -} - -// GetEndpointsWordlistOk returns a tuple with the EndpointsWordlist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetEndpointsWordlistOk() ([]string, bool) { - if o == nil || IsNil(o.EndpointsWordlist) { - return nil, false - } - return o.EndpointsWordlist, true -} - -// HasEndpointsWordlist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) HasEndpointsWordlist() bool { - if o != nil && !IsNil(o.EndpointsWordlist) { - return true - } - - return false -} - -// SetEndpointsWordlist gets a reference to the given []string and assigns it to the EndpointsWordlist field. -func (o *ProfileDetailedConfigurationServiceDiscovery) SetEndpointsWordlist(v []string) { - o.EndpointsWordlist = v -} - -// GetGraphqlEndpointsWordlist returns the GraphqlEndpointsWordlist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetGraphqlEndpointsWordlist() []string { - if o == nil || IsNil(o.GraphqlEndpointsWordlist) { - var ret []string - return ret - } - return o.GraphqlEndpointsWordlist -} - -// GetGraphqlEndpointsWordlistOk returns a tuple with the GraphqlEndpointsWordlist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) GetGraphqlEndpointsWordlistOk() ([]string, bool) { - if o == nil || IsNil(o.GraphqlEndpointsWordlist) { - return nil, false - } - return o.GraphqlEndpointsWordlist, true -} - -// HasGraphqlEndpointsWordlist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationServiceDiscovery) HasGraphqlEndpointsWordlist() bool { - if o != nil && !IsNil(o.GraphqlEndpointsWordlist) { - return true - } - - return false -} - -// SetGraphqlEndpointsWordlist gets a reference to the given []string and assigns it to the GraphqlEndpointsWordlist field. -func (o *ProfileDetailedConfigurationServiceDiscovery) SetGraphqlEndpointsWordlist(v []string) { - o.GraphqlEndpointsWordlist = v -} - -func (o ProfileDetailedConfigurationServiceDiscovery) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationServiceDiscovery) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.BlocklistedDomains) { - toSerialize["blocklisted_domains"] = o.BlocklistedDomains - } - if !IsNil(o.BaseUrlsDelimiters) { - toSerialize["base_urls_delimiters"] = o.BaseUrlsDelimiters - } - if !IsNil(o.BaseUrlsWordlist) { - toSerialize["base_urls_wordlist"] = o.BaseUrlsWordlist - } - if !IsNil(o.EndpointsWordlist) { - toSerialize["endpoints_wordlist"] = o.EndpointsWordlist - } - if !IsNil(o.GraphqlEndpointsWordlist) { - toSerialize["graphql_endpoints_wordlist"] = o.GraphqlEndpointsWordlist - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationServiceDiscovery) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationServiceDiscovery := _ProfileDetailedConfigurationServiceDiscovery{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationServiceDiscovery) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationServiceDiscovery(varProfileDetailedConfigurationServiceDiscovery) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "blocklisted_domains") - delete(additionalProperties, "base_urls_delimiters") - delete(additionalProperties, "base_urls_wordlist") - delete(additionalProperties, "endpoints_wordlist") - delete(additionalProperties, "graphql_endpoints_wordlist") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationServiceDiscovery struct { - value *ProfileDetailedConfigurationServiceDiscovery - isSet bool -} - -func (v NullableProfileDetailedConfigurationServiceDiscovery) Get() *ProfileDetailedConfigurationServiceDiscovery { - return v.value -} - -func (v *NullableProfileDetailedConfigurationServiceDiscovery) Set(val *ProfileDetailedConfigurationServiceDiscovery) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationServiceDiscovery) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationServiceDiscovery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationServiceDiscovery(val *ProfileDetailedConfigurationServiceDiscovery) *NullableProfileDetailedConfigurationServiceDiscovery { - return &NullableProfileDetailedConfigurationServiceDiscovery{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationServiceDiscovery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationServiceDiscovery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_detailed_configuration_subdomain_enumeration.go b/pkg/api/v3/model_profile_detailed_configuration_subdomain_enumeration.go deleted file mode 100644 index a4362858..00000000 --- a/pkg/api/v3/model_profile_detailed_configuration_subdomain_enumeration.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" -) - -// checks if the ProfileDetailedConfigurationSubdomainEnumeration type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ProfileDetailedConfigurationSubdomainEnumeration{} - -// ProfileDetailedConfigurationSubdomainEnumeration struct for ProfileDetailedConfigurationSubdomainEnumeration -type ProfileDetailedConfigurationSubdomainEnumeration struct { - Blocklist []string `json:"blocklist,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ProfileDetailedConfigurationSubdomainEnumeration ProfileDetailedConfigurationSubdomainEnumeration - -// NewProfileDetailedConfigurationSubdomainEnumeration instantiates a new ProfileDetailedConfigurationSubdomainEnumeration 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 NewProfileDetailedConfigurationSubdomainEnumeration() *ProfileDetailedConfigurationSubdomainEnumeration { - this := ProfileDetailedConfigurationSubdomainEnumeration{} - return &this -} - -// NewProfileDetailedConfigurationSubdomainEnumerationWithDefaults instantiates a new ProfileDetailedConfigurationSubdomainEnumeration 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 NewProfileDetailedConfigurationSubdomainEnumerationWithDefaults() *ProfileDetailedConfigurationSubdomainEnumeration { - this := ProfileDetailedConfigurationSubdomainEnumeration{} - return &this -} - -// GetBlocklist returns the Blocklist field value if set, zero value otherwise. -func (o *ProfileDetailedConfigurationSubdomainEnumeration) GetBlocklist() []string { - if o == nil || IsNil(o.Blocklist) { - var ret []string - return ret - } - return o.Blocklist -} - -// GetBlocklistOk returns a tuple with the Blocklist field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProfileDetailedConfigurationSubdomainEnumeration) GetBlocklistOk() ([]string, bool) { - if o == nil || IsNil(o.Blocklist) { - return nil, false - } - return o.Blocklist, true -} - -// HasBlocklist returns a boolean if a field has been set. -func (o *ProfileDetailedConfigurationSubdomainEnumeration) HasBlocklist() bool { - if o != nil && !IsNil(o.Blocklist) { - return true - } - - return false -} - -// SetBlocklist gets a reference to the given []string and assigns it to the Blocklist field. -func (o *ProfileDetailedConfigurationSubdomainEnumeration) SetBlocklist(v []string) { - o.Blocklist = v -} - -func (o ProfileDetailedConfigurationSubdomainEnumeration) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ProfileDetailedConfigurationSubdomainEnumeration) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Blocklist) { - toSerialize["blocklist"] = o.Blocklist - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ProfileDetailedConfigurationSubdomainEnumeration) UnmarshalJSON(data []byte) (err error) { - varProfileDetailedConfigurationSubdomainEnumeration := _ProfileDetailedConfigurationSubdomainEnumeration{} - - err = json.Unmarshal(data, &varProfileDetailedConfigurationSubdomainEnumeration) - - if err != nil { - return err - } - - *o = ProfileDetailedConfigurationSubdomainEnumeration(varProfileDetailedConfigurationSubdomainEnumeration) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "blocklist") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableProfileDetailedConfigurationSubdomainEnumeration struct { - value *ProfileDetailedConfigurationSubdomainEnumeration - isSet bool -} - -func (v NullableProfileDetailedConfigurationSubdomainEnumeration) Get() *ProfileDetailedConfigurationSubdomainEnumeration { - return v.value -} - -func (v *NullableProfileDetailedConfigurationSubdomainEnumeration) Set(val *ProfileDetailedConfigurationSubdomainEnumeration) { - v.value = val - v.isSet = true -} - -func (v NullableProfileDetailedConfigurationSubdomainEnumeration) IsSet() bool { - return v.isSet -} - -func (v *NullableProfileDetailedConfigurationSubdomainEnumeration) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableProfileDetailedConfigurationSubdomainEnumeration(val *ProfileDetailedConfigurationSubdomainEnumeration) *NullableProfileDetailedConfigurationSubdomainEnumeration { - return &NullableProfileDetailedConfigurationSubdomainEnumeration{value: val, isSet: true} -} - -func (v NullableProfileDetailedConfigurationSubdomainEnumeration) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableProfileDetailedConfigurationSubdomainEnumeration) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_profile_summarized.go b/pkg/api/v3/model_profile_summarized.go index d492f914..9fdfffe3 100644 --- a/pkg/api/v3/model_profile_summarized.go +++ b/pkg/api/v3/model_profile_summarized.go @@ -24,6 +24,8 @@ type ProfileSummarized struct { Id string `json:"id"` // The name of the profile Name string `json:"name"` + // The description of the profile + Description string `json:"description"` // The date and time the profile was created CreatedAt string `json:"createdAt"` // The initiators of the profile @@ -41,10 +43,11 @@ type _ProfileSummarized ProfileSummarized // 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 NewProfileSummarized(id string, name string, createdAt string, initiators []ENUMPROPERTIESDATAITEMSPROPERTIESINITIATORSITEMS, asset AssetDetailed, links ProfileSummarizedLinks) *ProfileSummarized { +func NewProfileSummarized(id string, name string, description string, createdAt string, initiators []ENUMPROPERTIESDATAITEMSPROPERTIESINITIATORSITEMS, asset AssetDetailed, links ProfileSummarizedLinks) *ProfileSummarized { this := ProfileSummarized{} this.Id = id this.Name = name + this.Description = description this.CreatedAt = createdAt this.Initiators = initiators this.Asset = asset @@ -108,6 +111,30 @@ func (o *ProfileSummarized) SetName(v string) { o.Name = v } +// GetDescription returns the Description field value +func (o *ProfileSummarized) 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 *ProfileSummarized) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ProfileSummarized) SetDescription(v string) { + o.Description = v +} + // GetCreatedAt returns the CreatedAt field value func (o *ProfileSummarized) GetCreatedAt() string { if o == nil { @@ -248,6 +275,7 @@ func (o ProfileSummarized) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["name"] = o.Name + toSerialize["description"] = o.Description toSerialize["createdAt"] = o.CreatedAt toSerialize["initiators"] = o.Initiators if !IsNil(o.Cron) { @@ -270,6 +298,7 @@ func (o *ProfileSummarized) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "name", + "description", "createdAt", "initiators", "asset", @@ -305,6 +334,7 @@ func (o *ProfileSummarized) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "name") + delete(additionalProperties, "description") delete(additionalProperties, "createdAt") delete(additionalProperties, "initiators") delete(additionalProperties, "cron") diff --git a/pkg/api/v3/model_scan_detailed.go b/pkg/api/v3/model_scan_detailed.go index 4e81e5cd..c603af97 100644 --- a/pkg/api/v3/model_scan_detailed.go +++ b/pkg/api/v3/model_scan_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the ScanDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ScanDetailed{} -// ScanDetailed Detailed information about a scan +// ScanDetailed The last resource scan of the profile type ScanDetailed struct { // The id of the scan Id string `json:"id"` diff --git a/pkg/api/v3/model_scan_detailed_1.go b/pkg/api/v3/model_scan_detailed_1.go index 6c6bb00b..7206461f 100644 --- a/pkg/api/v3/model_scan_detailed_1.go +++ b/pkg/api/v3/model_scan_detailed_1.go @@ -18,7 +18,7 @@ import ( // checks if the ScanDetailed1 type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ScanDetailed1{} -// ScanDetailed1 Detailed information about a scan +// ScanDetailed1 The last successful resource scan of the profile type ScanDetailed1 struct { // The id of the scan Id string `json:"id"` diff --git a/pkg/api/v3/model_scan_detailed_2.go b/pkg/api/v3/model_scan_detailed_2.go new file mode 100644 index 00000000..5476c0d6 --- /dev/null +++ b/pkg/api/v3/model_scan_detailed_2.go @@ -0,0 +1,727 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the ScanDetailed2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScanDetailed2{} + +// ScanDetailed2 The scan of the event +type ScanDetailed2 struct { + // The id of the scan + Id string `json:"id"` + // The status of the scan + Status string `json:"status"` + // The date and time the scan was created + CreatedAt string `json:"createdAt"` + // The date and time the scan was updated + UpdatedAt string `json:"updatedAt"` + // The date and time the scan was finished + FinishedAt *string `json:"finishedAt,omitempty"` + // The score of the scan + Score *float32 `json:"score,omitempty"` + // The duration of the scan + Duration float32 `json:"duration"` + // The progress ratio of the scan + ProgressRatio float32 `json:"progressRatio"` + // The initiator of the scan + Initiator string `json:"initiator"` + // The kind of the scan + Kind string `json:"kind"` + // The id of the profile of the scan + ProfileId string `json:"profileId"` + // The id of the organization of the scan + OrganizationId string `json:"organizationId"` + CommitHash *string `json:"commitHash,omitempty"` + CommitBranch *string `json:"commitBranch,omitempty"` + CommitAuthor *string `json:"commitAuthor,omitempty"` + CommitLink *string `json:"commitLink,omitempty"` + CommitAuthorProfilePictureLink *string `json:"commitAuthorProfilePictureLink,omitempty"` + Links ScanDetailedLinks `json:"links"` + AdditionalProperties map[string]interface{} +} + +type _ScanDetailed2 ScanDetailed2 + +// NewScanDetailed2 instantiates a new ScanDetailed2 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 NewScanDetailed2(id string, status string, createdAt string, updatedAt string, duration float32, progressRatio float32, initiator string, kind string, profileId string, organizationId string, links ScanDetailedLinks) *ScanDetailed2 { + this := ScanDetailed2{} + this.Id = id + this.Status = status + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + this.Duration = duration + this.ProgressRatio = progressRatio + this.Initiator = initiator + this.Kind = kind + this.ProfileId = profileId + this.OrganizationId = organizationId + this.Links = links + return &this +} + +// NewScanDetailed2WithDefaults instantiates a new ScanDetailed2 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 NewScanDetailed2WithDefaults() *ScanDetailed2 { + this := ScanDetailed2{} + return &this +} + +// GetId returns the Id field value +func (o *ScanDetailed2) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ScanDetailed2) SetId(v string) { + o.Id = v +} + +// GetStatus returns the Status field value +func (o *ScanDetailed2) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ScanDetailed2) SetStatus(v string) { + o.Status = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *ScanDetailed2) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *ScanDetailed2) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *ScanDetailed2) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *ScanDetailed2) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *ScanDetailed2) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *ScanDetailed2) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *ScanDetailed2) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetScore returns the Score field value if set, zero value otherwise. +func (o *ScanDetailed2) GetScore() float32 { + if o == nil || IsNil(o.Score) { + var ret float32 + return ret + } + return *o.Score +} + +// GetScoreOk returns a tuple with the Score field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetScoreOk() (*float32, bool) { + if o == nil || IsNil(o.Score) { + return nil, false + } + return o.Score, true +} + +// HasScore returns a boolean if a field has been set. +func (o *ScanDetailed2) HasScore() bool { + if o != nil && !IsNil(o.Score) { + return true + } + + return false +} + +// SetScore gets a reference to the given float32 and assigns it to the Score field. +func (o *ScanDetailed2) SetScore(v float32) { + o.Score = &v +} + +// GetDuration returns the Duration field value +func (o *ScanDetailed2) GetDuration() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Duration +} + +// GetDurationOk returns a tuple with the Duration field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetDurationOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Duration, true +} + +// SetDuration sets field value +func (o *ScanDetailed2) SetDuration(v float32) { + o.Duration = v +} + +// GetProgressRatio returns the ProgressRatio field value +func (o *ScanDetailed2) GetProgressRatio() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.ProgressRatio +} + +// GetProgressRatioOk returns a tuple with the ProgressRatio field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetProgressRatioOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.ProgressRatio, true +} + +// SetProgressRatio sets field value +func (o *ScanDetailed2) SetProgressRatio(v float32) { + o.ProgressRatio = v +} + +// GetInitiator returns the Initiator field value +func (o *ScanDetailed2) GetInitiator() string { + if o == nil { + var ret string + return ret + } + + return o.Initiator +} + +// GetInitiatorOk returns a tuple with the Initiator field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetInitiatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Initiator, true +} + +// SetInitiator sets field value +func (o *ScanDetailed2) SetInitiator(v string) { + o.Initiator = v +} + +// GetKind returns the Kind field value +func (o *ScanDetailed2) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ScanDetailed2) SetKind(v string) { + o.Kind = v +} + +// GetProfileId returns the ProfileId field value +func (o *ScanDetailed2) GetProfileId() string { + if o == nil { + var ret string + return ret + } + + return o.ProfileId +} + +// GetProfileIdOk returns a tuple with the ProfileId field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetProfileIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProfileId, true +} + +// SetProfileId sets field value +func (o *ScanDetailed2) SetProfileId(v string) { + o.ProfileId = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *ScanDetailed2) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *ScanDetailed2) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *ScanDetailed2) GetCommitHash() string { + if o == nil || IsNil(o.CommitHash) { + var ret string + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetCommitHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *ScanDetailed2) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given string and assigns it to the CommitHash field. +func (o *ScanDetailed2) SetCommitHash(v string) { + o.CommitHash = &v +} + +// GetCommitBranch returns the CommitBranch field value if set, zero value otherwise. +func (o *ScanDetailed2) GetCommitBranch() string { + if o == nil || IsNil(o.CommitBranch) { + var ret string + return ret + } + return *o.CommitBranch +} + +// GetCommitBranchOk returns a tuple with the CommitBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetCommitBranchOk() (*string, bool) { + if o == nil || IsNil(o.CommitBranch) { + return nil, false + } + return o.CommitBranch, true +} + +// HasCommitBranch returns a boolean if a field has been set. +func (o *ScanDetailed2) HasCommitBranch() bool { + if o != nil && !IsNil(o.CommitBranch) { + return true + } + + return false +} + +// SetCommitBranch gets a reference to the given string and assigns it to the CommitBranch field. +func (o *ScanDetailed2) SetCommitBranch(v string) { + o.CommitBranch = &v +} + +// GetCommitAuthor returns the CommitAuthor field value if set, zero value otherwise. +func (o *ScanDetailed2) GetCommitAuthor() string { + if o == nil || IsNil(o.CommitAuthor) { + var ret string + return ret + } + return *o.CommitAuthor +} + +// GetCommitAuthorOk returns a tuple with the CommitAuthor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetCommitAuthorOk() (*string, bool) { + if o == nil || IsNil(o.CommitAuthor) { + return nil, false + } + return o.CommitAuthor, true +} + +// HasCommitAuthor returns a boolean if a field has been set. +func (o *ScanDetailed2) HasCommitAuthor() bool { + if o != nil && !IsNil(o.CommitAuthor) { + return true + } + + return false +} + +// SetCommitAuthor gets a reference to the given string and assigns it to the CommitAuthor field. +func (o *ScanDetailed2) SetCommitAuthor(v string) { + o.CommitAuthor = &v +} + +// GetCommitLink returns the CommitLink field value if set, zero value otherwise. +func (o *ScanDetailed2) GetCommitLink() string { + if o == nil || IsNil(o.CommitLink) { + var ret string + return ret + } + return *o.CommitLink +} + +// GetCommitLinkOk returns a tuple with the CommitLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetCommitLinkOk() (*string, bool) { + if o == nil || IsNil(o.CommitLink) { + return nil, false + } + return o.CommitLink, true +} + +// HasCommitLink returns a boolean if a field has been set. +func (o *ScanDetailed2) HasCommitLink() bool { + if o != nil && !IsNil(o.CommitLink) { + return true + } + + return false +} + +// SetCommitLink gets a reference to the given string and assigns it to the CommitLink field. +func (o *ScanDetailed2) SetCommitLink(v string) { + o.CommitLink = &v +} + +// GetCommitAuthorProfilePictureLink returns the CommitAuthorProfilePictureLink field value if set, zero value otherwise. +func (o *ScanDetailed2) GetCommitAuthorProfilePictureLink() string { + if o == nil || IsNil(o.CommitAuthorProfilePictureLink) { + var ret string + return ret + } + return *o.CommitAuthorProfilePictureLink +} + +// GetCommitAuthorProfilePictureLinkOk returns a tuple with the CommitAuthorProfilePictureLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetCommitAuthorProfilePictureLinkOk() (*string, bool) { + if o == nil || IsNil(o.CommitAuthorProfilePictureLink) { + return nil, false + } + return o.CommitAuthorProfilePictureLink, true +} + +// HasCommitAuthorProfilePictureLink returns a boolean if a field has been set. +func (o *ScanDetailed2) HasCommitAuthorProfilePictureLink() bool { + if o != nil && !IsNil(o.CommitAuthorProfilePictureLink) { + return true + } + + return false +} + +// SetCommitAuthorProfilePictureLink gets a reference to the given string and assigns it to the CommitAuthorProfilePictureLink field. +func (o *ScanDetailed2) SetCommitAuthorProfilePictureLink(v string) { + o.CommitAuthorProfilePictureLink = &v +} + +// GetLinks returns the Links field value +func (o *ScanDetailed2) GetLinks() ScanDetailedLinks { + if o == nil { + var ret ScanDetailedLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *ScanDetailed2) GetLinksOk() (*ScanDetailedLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *ScanDetailed2) SetLinks(v ScanDetailedLinks) { + o.Links = v +} + +func (o ScanDetailed2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScanDetailed2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["status"] = o.Status + toSerialize["createdAt"] = o.CreatedAt + toSerialize["updatedAt"] = o.UpdatedAt + if !IsNil(o.FinishedAt) { + toSerialize["finishedAt"] = o.FinishedAt + } + if !IsNil(o.Score) { + toSerialize["score"] = o.Score + } + toSerialize["duration"] = o.Duration + toSerialize["progressRatio"] = o.ProgressRatio + toSerialize["initiator"] = o.Initiator + toSerialize["kind"] = o.Kind + toSerialize["profileId"] = o.ProfileId + toSerialize["organizationId"] = o.OrganizationId + if !IsNil(o.CommitHash) { + toSerialize["commitHash"] = o.CommitHash + } + if !IsNil(o.CommitBranch) { + toSerialize["commitBranch"] = o.CommitBranch + } + if !IsNil(o.CommitAuthor) { + toSerialize["commitAuthor"] = o.CommitAuthor + } + if !IsNil(o.CommitLink) { + toSerialize["commitLink"] = o.CommitLink + } + if !IsNil(o.CommitAuthorProfilePictureLink) { + toSerialize["commitAuthorProfilePictureLink"] = o.CommitAuthorProfilePictureLink + } + toSerialize["links"] = o.Links + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ScanDetailed2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "status", + "createdAt", + "updatedAt", + "duration", + "progressRatio", + "initiator", + "kind", + "profileId", + "organizationId", + "links", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varScanDetailed2 := _ScanDetailed2{} + + err = json.Unmarshal(data, &varScanDetailed2) + + if err != nil { + return err + } + + *o = ScanDetailed2(varScanDetailed2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "status") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "updatedAt") + delete(additionalProperties, "finishedAt") + delete(additionalProperties, "score") + delete(additionalProperties, "duration") + delete(additionalProperties, "progressRatio") + delete(additionalProperties, "initiator") + delete(additionalProperties, "kind") + delete(additionalProperties, "profileId") + delete(additionalProperties, "organizationId") + delete(additionalProperties, "commitHash") + delete(additionalProperties, "commitBranch") + delete(additionalProperties, "commitAuthor") + delete(additionalProperties, "commitLink") + delete(additionalProperties, "commitAuthorProfilePictureLink") + delete(additionalProperties, "links") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableScanDetailed2 struct { + value *ScanDetailed2 + isSet bool +} + +func (v NullableScanDetailed2) Get() *ScanDetailed2 { + return v.value +} + +func (v *NullableScanDetailed2) Set(val *ScanDetailed2) { + v.value = val + v.isSet = true +} + +func (v NullableScanDetailed2) IsSet() bool { + return v.isSet +} + +func (v *NullableScanDetailed2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScanDetailed2(val *ScanDetailed2) *NullableScanDetailed2 { + return &NullableScanDetailed2{value: val, isSet: true} +} + +func (v NullableScanDetailed2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScanDetailed2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_scan_summarized.go b/pkg/api/v3/model_scan_summarized.go index 600295eb..34130352 100644 --- a/pkg/api/v3/model_scan_summarized.go +++ b/pkg/api/v3/model_scan_summarized.go @@ -18,7 +18,7 @@ import ( // checks if the ScanSummarized type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ScanSummarized{} -// ScanSummarized Summarized information about a scan +// ScanSummarized The first seen scan of the asset type ScanSummarized struct { // The id of the scan Id string `json:"id"` diff --git a/pkg/api/v3/model_scan_summarized_1.go b/pkg/api/v3/model_scan_summarized_1.go index da867a3e..085b31ed 100644 --- a/pkg/api/v3/model_scan_summarized_1.go +++ b/pkg/api/v3/model_scan_summarized_1.go @@ -18,7 +18,7 @@ import ( // checks if the ScanSummarized1 type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ScanSummarized1{} -// ScanSummarized1 Summarized information about a scan +// ScanSummarized1 The last seen scan of the asset type ScanSummarized1 struct { // The id of the scan Id string `json:"id"` diff --git a/pkg/api/v3/model_scan_summarized_2.go b/pkg/api/v3/model_scan_summarized_2.go new file mode 100644 index 00000000..cddac763 --- /dev/null +++ b/pkg/api/v3/model_scan_summarized_2.go @@ -0,0 +1,528 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the ScanSummarized2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScanSummarized2{} + +// ScanSummarized2 Summarized information about a scan +type ScanSummarized2 struct { + // The id of the scan + Id string `json:"id"` + // The status of the scan + Status string `json:"status"` + // The date and time the scan was created + CreatedAt string `json:"createdAt"` + // The date and time the scan was finished + FinishedAt *string `json:"finishedAt,omitempty"` + // The score of the scan + Score *float32 `json:"score,omitempty"` + // The duration of the scan + Duration float32 `json:"duration"` + // The progress ratio of the scan + ProgressRatio float32 `json:"progressRatio"` + // The initiator of the scan + Initiator string `json:"initiator"` + // The kind of the scan + Kind string `json:"kind"` + // The commit hash of the scan + CommitHash *string `json:"commitHash,omitempty"` + // The commit branch of the scan + CommitBranch *string `json:"commitBranch,omitempty"` + Links ScanSummarizedLinks `json:"links"` + AdditionalProperties map[string]interface{} +} + +type _ScanSummarized2 ScanSummarized2 + +// NewScanSummarized2 instantiates a new ScanSummarized2 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 NewScanSummarized2(id string, status string, createdAt string, duration float32, progressRatio float32, initiator string, kind string, links ScanSummarizedLinks) *ScanSummarized2 { + this := ScanSummarized2{} + this.Id = id + this.Status = status + this.CreatedAt = createdAt + this.Duration = duration + this.ProgressRatio = progressRatio + this.Initiator = initiator + this.Kind = kind + this.Links = links + return &this +} + +// NewScanSummarized2WithDefaults instantiates a new ScanSummarized2 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 NewScanSummarized2WithDefaults() *ScanSummarized2 { + this := ScanSummarized2{} + return &this +} + +// GetId returns the Id field value +func (o *ScanSummarized2) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ScanSummarized2) SetId(v string) { + o.Id = v +} + +// GetStatus returns the Status field value +func (o *ScanSummarized2) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ScanSummarized2) SetStatus(v string) { + o.Status = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *ScanSummarized2) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *ScanSummarized2) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *ScanSummarized2) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *ScanSummarized2) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *ScanSummarized2) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetScore returns the Score field value if set, zero value otherwise. +func (o *ScanSummarized2) GetScore() float32 { + if o == nil || IsNil(o.Score) { + var ret float32 + return ret + } + return *o.Score +} + +// GetScoreOk returns a tuple with the Score field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetScoreOk() (*float32, bool) { + if o == nil || IsNil(o.Score) { + return nil, false + } + return o.Score, true +} + +// HasScore returns a boolean if a field has been set. +func (o *ScanSummarized2) HasScore() bool { + if o != nil && !IsNil(o.Score) { + return true + } + + return false +} + +// SetScore gets a reference to the given float32 and assigns it to the Score field. +func (o *ScanSummarized2) SetScore(v float32) { + o.Score = &v +} + +// GetDuration returns the Duration field value +func (o *ScanSummarized2) GetDuration() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Duration +} + +// GetDurationOk returns a tuple with the Duration field value +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetDurationOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Duration, true +} + +// SetDuration sets field value +func (o *ScanSummarized2) SetDuration(v float32) { + o.Duration = v +} + +// GetProgressRatio returns the ProgressRatio field value +func (o *ScanSummarized2) GetProgressRatio() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.ProgressRatio +} + +// GetProgressRatioOk returns a tuple with the ProgressRatio field value +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetProgressRatioOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.ProgressRatio, true +} + +// SetProgressRatio sets field value +func (o *ScanSummarized2) SetProgressRatio(v float32) { + o.ProgressRatio = v +} + +// GetInitiator returns the Initiator field value +func (o *ScanSummarized2) GetInitiator() string { + if o == nil { + var ret string + return ret + } + + return o.Initiator +} + +// GetInitiatorOk returns a tuple with the Initiator field value +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetInitiatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Initiator, true +} + +// SetInitiator sets field value +func (o *ScanSummarized2) SetInitiator(v string) { + o.Initiator = v +} + +// GetKind returns the Kind field value +func (o *ScanSummarized2) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ScanSummarized2) SetKind(v string) { + o.Kind = v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *ScanSummarized2) GetCommitHash() string { + if o == nil || IsNil(o.CommitHash) { + var ret string + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetCommitHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *ScanSummarized2) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given string and assigns it to the CommitHash field. +func (o *ScanSummarized2) SetCommitHash(v string) { + o.CommitHash = &v +} + +// GetCommitBranch returns the CommitBranch field value if set, zero value otherwise. +func (o *ScanSummarized2) GetCommitBranch() string { + if o == nil || IsNil(o.CommitBranch) { + var ret string + return ret + } + return *o.CommitBranch +} + +// GetCommitBranchOk returns a tuple with the CommitBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetCommitBranchOk() (*string, bool) { + if o == nil || IsNil(o.CommitBranch) { + return nil, false + } + return o.CommitBranch, true +} + +// HasCommitBranch returns a boolean if a field has been set. +func (o *ScanSummarized2) HasCommitBranch() bool { + if o != nil && !IsNil(o.CommitBranch) { + return true + } + + return false +} + +// SetCommitBranch gets a reference to the given string and assigns it to the CommitBranch field. +func (o *ScanSummarized2) SetCommitBranch(v string) { + o.CommitBranch = &v +} + +// GetLinks returns the Links field value +func (o *ScanSummarized2) GetLinks() ScanSummarizedLinks { + if o == nil { + var ret ScanSummarizedLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *ScanSummarized2) GetLinksOk() (*ScanSummarizedLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *ScanSummarized2) SetLinks(v ScanSummarizedLinks) { + o.Links = v +} + +func (o ScanSummarized2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScanSummarized2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["status"] = o.Status + toSerialize["createdAt"] = o.CreatedAt + if !IsNil(o.FinishedAt) { + toSerialize["finishedAt"] = o.FinishedAt + } + if !IsNil(o.Score) { + toSerialize["score"] = o.Score + } + toSerialize["duration"] = o.Duration + toSerialize["progressRatio"] = o.ProgressRatio + toSerialize["initiator"] = o.Initiator + toSerialize["kind"] = o.Kind + if !IsNil(o.CommitHash) { + toSerialize["commitHash"] = o.CommitHash + } + if !IsNil(o.CommitBranch) { + toSerialize["commitBranch"] = o.CommitBranch + } + toSerialize["links"] = o.Links + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ScanSummarized2) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "status", + "createdAt", + "duration", + "progressRatio", + "initiator", + "kind", + "links", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varScanSummarized2 := _ScanSummarized2{} + + err = json.Unmarshal(data, &varScanSummarized2) + + if err != nil { + return err + } + + *o = ScanSummarized2(varScanSummarized2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "status") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "finishedAt") + delete(additionalProperties, "score") + delete(additionalProperties, "duration") + delete(additionalProperties, "progressRatio") + delete(additionalProperties, "initiator") + delete(additionalProperties, "kind") + delete(additionalProperties, "commitHash") + delete(additionalProperties, "commitBranch") + delete(additionalProperties, "links") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableScanSummarized2 struct { + value *ScanSummarized2 + isSet bool +} + +func (v NullableScanSummarized2) Get() *ScanSummarized2 { + return v.value +} + +func (v *NullableScanSummarized2) Set(val *ScanSummarized2) { + v.value = val + v.isSet = true +} + +func (v NullableScanSummarized2) IsSet() bool { + return v.isSet +} + +func (v *NullableScanSummarized2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScanSummarized2(val *ScanSummarized2) *NullableScanSummarized2 { + return &NullableScanSummarized2{value: val, isSet: true} +} + +func (v NullableScanSummarized2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScanSummarized2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_screenshot_detailed.go b/pkg/api/v3/model_screenshot_detailed.go index 2bfe4735..9ffb67f7 100644 --- a/pkg/api/v3/model_screenshot_detailed.go +++ b/pkg/api/v3/model_screenshot_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the ScreenshotDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ScreenshotDetailed{} -// ScreenshotDetailed Detailed information about a screenshot +// ScreenshotDetailed The screenshot of the attachment type ScreenshotDetailed struct { // The alt of the screenshot Alt *string `json:"alt,omitempty"` diff --git a/pkg/api/v3/model_snippet_detailed.go b/pkg/api/v3/model_snippet_detailed.go index d5326c61..3506d2cf 100644 --- a/pkg/api/v3/model_snippet_detailed.go +++ b/pkg/api/v3/model_snippet_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the SnippetDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SnippetDetailed{} -// SnippetDetailed Detailed information about a snippet +// SnippetDetailed The snippet of the attachment type SnippetDetailed struct { // The date and time the snippet was created CreatedAt string `json:"createdAt"` diff --git a/pkg/api/v3/model_start_scan_200_response.go b/pkg/api/v3/model_start_scan_200_response.go new file mode 100644 index 00000000..0c9c6f5e --- /dev/null +++ b/pkg/api/v3/model_start_scan_200_response.go @@ -0,0 +1,727 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the StartScan200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StartScan200Response{} + +// StartScan200Response struct for StartScan200Response +type StartScan200Response struct { + // The id of the scan + Id string `json:"id"` + // The status of the scan + Status string `json:"status"` + // The date and time the scan was created + CreatedAt string `json:"createdAt"` + // The date and time the scan was updated + UpdatedAt string `json:"updatedAt"` + // The date and time the scan was finished + FinishedAt *string `json:"finishedAt,omitempty"` + // The score of the scan + Score *float32 `json:"score,omitempty"` + // The duration of the scan + Duration float32 `json:"duration"` + // The progress ratio of the scan + ProgressRatio float32 `json:"progressRatio"` + // The initiator of the scan + Initiator string `json:"initiator"` + // The kind of the scan + Kind string `json:"kind"` + // The id of the profile of the scan + ProfileId string `json:"profileId"` + // The id of the organization of the scan + OrganizationId string `json:"organizationId"` + CommitHash *string `json:"commitHash,omitempty"` + CommitBranch *string `json:"commitBranch,omitempty"` + CommitAuthor *string `json:"commitAuthor,omitempty"` + CommitLink *string `json:"commitLink,omitempty"` + CommitAuthorProfilePictureLink *string `json:"commitAuthorProfilePictureLink,omitempty"` + Links ScanDetailedLinks `json:"links"` + AdditionalProperties map[string]interface{} +} + +type _StartScan200Response StartScan200Response + +// NewStartScan200Response instantiates a new StartScan200Response 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 NewStartScan200Response(id string, status string, createdAt string, updatedAt string, duration float32, progressRatio float32, initiator string, kind string, profileId string, organizationId string, links ScanDetailedLinks) *StartScan200Response { + this := StartScan200Response{} + this.Id = id + this.Status = status + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + this.Duration = duration + this.ProgressRatio = progressRatio + this.Initiator = initiator + this.Kind = kind + this.ProfileId = profileId + this.OrganizationId = organizationId + this.Links = links + return &this +} + +// NewStartScan200ResponseWithDefaults instantiates a new StartScan200Response 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 NewStartScan200ResponseWithDefaults() *StartScan200Response { + this := StartScan200Response{} + return &this +} + +// GetId returns the Id field value +func (o *StartScan200Response) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *StartScan200Response) SetId(v string) { + o.Id = v +} + +// GetStatus returns the Status field value +func (o *StartScan200Response) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *StartScan200Response) SetStatus(v string) { + o.Status = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *StartScan200Response) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *StartScan200Response) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *StartScan200Response) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *StartScan200Response) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *StartScan200Response) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *StartScan200Response) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *StartScan200Response) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetScore returns the Score field value if set, zero value otherwise. +func (o *StartScan200Response) GetScore() float32 { + if o == nil || IsNil(o.Score) { + var ret float32 + return ret + } + return *o.Score +} + +// GetScoreOk returns a tuple with the Score field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetScoreOk() (*float32, bool) { + if o == nil || IsNil(o.Score) { + return nil, false + } + return o.Score, true +} + +// HasScore returns a boolean if a field has been set. +func (o *StartScan200Response) HasScore() bool { + if o != nil && !IsNil(o.Score) { + return true + } + + return false +} + +// SetScore gets a reference to the given float32 and assigns it to the Score field. +func (o *StartScan200Response) SetScore(v float32) { + o.Score = &v +} + +// GetDuration returns the Duration field value +func (o *StartScan200Response) GetDuration() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Duration +} + +// GetDurationOk returns a tuple with the Duration field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetDurationOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Duration, true +} + +// SetDuration sets field value +func (o *StartScan200Response) SetDuration(v float32) { + o.Duration = v +} + +// GetProgressRatio returns the ProgressRatio field value +func (o *StartScan200Response) GetProgressRatio() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.ProgressRatio +} + +// GetProgressRatioOk returns a tuple with the ProgressRatio field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetProgressRatioOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.ProgressRatio, true +} + +// SetProgressRatio sets field value +func (o *StartScan200Response) SetProgressRatio(v float32) { + o.ProgressRatio = v +} + +// GetInitiator returns the Initiator field value +func (o *StartScan200Response) GetInitiator() string { + if o == nil { + var ret string + return ret + } + + return o.Initiator +} + +// GetInitiatorOk returns a tuple with the Initiator field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetInitiatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Initiator, true +} + +// SetInitiator sets field value +func (o *StartScan200Response) SetInitiator(v string) { + o.Initiator = v +} + +// GetKind returns the Kind field value +func (o *StartScan200Response) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *StartScan200Response) SetKind(v string) { + o.Kind = v +} + +// GetProfileId returns the ProfileId field value +func (o *StartScan200Response) GetProfileId() string { + if o == nil { + var ret string + return ret + } + + return o.ProfileId +} + +// GetProfileIdOk returns a tuple with the ProfileId field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetProfileIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProfileId, true +} + +// SetProfileId sets field value +func (o *StartScan200Response) SetProfileId(v string) { + o.ProfileId = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *StartScan200Response) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *StartScan200Response) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *StartScan200Response) GetCommitHash() string { + if o == nil || IsNil(o.CommitHash) { + var ret string + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetCommitHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *StartScan200Response) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given string and assigns it to the CommitHash field. +func (o *StartScan200Response) SetCommitHash(v string) { + o.CommitHash = &v +} + +// GetCommitBranch returns the CommitBranch field value if set, zero value otherwise. +func (o *StartScan200Response) GetCommitBranch() string { + if o == nil || IsNil(o.CommitBranch) { + var ret string + return ret + } + return *o.CommitBranch +} + +// GetCommitBranchOk returns a tuple with the CommitBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetCommitBranchOk() (*string, bool) { + if o == nil || IsNil(o.CommitBranch) { + return nil, false + } + return o.CommitBranch, true +} + +// HasCommitBranch returns a boolean if a field has been set. +func (o *StartScan200Response) HasCommitBranch() bool { + if o != nil && !IsNil(o.CommitBranch) { + return true + } + + return false +} + +// SetCommitBranch gets a reference to the given string and assigns it to the CommitBranch field. +func (o *StartScan200Response) SetCommitBranch(v string) { + o.CommitBranch = &v +} + +// GetCommitAuthor returns the CommitAuthor field value if set, zero value otherwise. +func (o *StartScan200Response) GetCommitAuthor() string { + if o == nil || IsNil(o.CommitAuthor) { + var ret string + return ret + } + return *o.CommitAuthor +} + +// GetCommitAuthorOk returns a tuple with the CommitAuthor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetCommitAuthorOk() (*string, bool) { + if o == nil || IsNil(o.CommitAuthor) { + return nil, false + } + return o.CommitAuthor, true +} + +// HasCommitAuthor returns a boolean if a field has been set. +func (o *StartScan200Response) HasCommitAuthor() bool { + if o != nil && !IsNil(o.CommitAuthor) { + return true + } + + return false +} + +// SetCommitAuthor gets a reference to the given string and assigns it to the CommitAuthor field. +func (o *StartScan200Response) SetCommitAuthor(v string) { + o.CommitAuthor = &v +} + +// GetCommitLink returns the CommitLink field value if set, zero value otherwise. +func (o *StartScan200Response) GetCommitLink() string { + if o == nil || IsNil(o.CommitLink) { + var ret string + return ret + } + return *o.CommitLink +} + +// GetCommitLinkOk returns a tuple with the CommitLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetCommitLinkOk() (*string, bool) { + if o == nil || IsNil(o.CommitLink) { + return nil, false + } + return o.CommitLink, true +} + +// HasCommitLink returns a boolean if a field has been set. +func (o *StartScan200Response) HasCommitLink() bool { + if o != nil && !IsNil(o.CommitLink) { + return true + } + + return false +} + +// SetCommitLink gets a reference to the given string and assigns it to the CommitLink field. +func (o *StartScan200Response) SetCommitLink(v string) { + o.CommitLink = &v +} + +// GetCommitAuthorProfilePictureLink returns the CommitAuthorProfilePictureLink field value if set, zero value otherwise. +func (o *StartScan200Response) GetCommitAuthorProfilePictureLink() string { + if o == nil || IsNil(o.CommitAuthorProfilePictureLink) { + var ret string + return ret + } + return *o.CommitAuthorProfilePictureLink +} + +// GetCommitAuthorProfilePictureLinkOk returns a tuple with the CommitAuthorProfilePictureLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetCommitAuthorProfilePictureLinkOk() (*string, bool) { + if o == nil || IsNil(o.CommitAuthorProfilePictureLink) { + return nil, false + } + return o.CommitAuthorProfilePictureLink, true +} + +// HasCommitAuthorProfilePictureLink returns a boolean if a field has been set. +func (o *StartScan200Response) HasCommitAuthorProfilePictureLink() bool { + if o != nil && !IsNil(o.CommitAuthorProfilePictureLink) { + return true + } + + return false +} + +// SetCommitAuthorProfilePictureLink gets a reference to the given string and assigns it to the CommitAuthorProfilePictureLink field. +func (o *StartScan200Response) SetCommitAuthorProfilePictureLink(v string) { + o.CommitAuthorProfilePictureLink = &v +} + +// GetLinks returns the Links field value +func (o *StartScan200Response) GetLinks() ScanDetailedLinks { + if o == nil { + var ret ScanDetailedLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *StartScan200Response) GetLinksOk() (*ScanDetailedLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *StartScan200Response) SetLinks(v ScanDetailedLinks) { + o.Links = v +} + +func (o StartScan200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StartScan200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["status"] = o.Status + toSerialize["createdAt"] = o.CreatedAt + toSerialize["updatedAt"] = o.UpdatedAt + if !IsNil(o.FinishedAt) { + toSerialize["finishedAt"] = o.FinishedAt + } + if !IsNil(o.Score) { + toSerialize["score"] = o.Score + } + toSerialize["duration"] = o.Duration + toSerialize["progressRatio"] = o.ProgressRatio + toSerialize["initiator"] = o.Initiator + toSerialize["kind"] = o.Kind + toSerialize["profileId"] = o.ProfileId + toSerialize["organizationId"] = o.OrganizationId + if !IsNil(o.CommitHash) { + toSerialize["commitHash"] = o.CommitHash + } + if !IsNil(o.CommitBranch) { + toSerialize["commitBranch"] = o.CommitBranch + } + if !IsNil(o.CommitAuthor) { + toSerialize["commitAuthor"] = o.CommitAuthor + } + if !IsNil(o.CommitLink) { + toSerialize["commitLink"] = o.CommitLink + } + if !IsNil(o.CommitAuthorProfilePictureLink) { + toSerialize["commitAuthorProfilePictureLink"] = o.CommitAuthorProfilePictureLink + } + toSerialize["links"] = o.Links + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StartScan200Response) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "status", + "createdAt", + "updatedAt", + "duration", + "progressRatio", + "initiator", + "kind", + "profileId", + "organizationId", + "links", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varStartScan200Response := _StartScan200Response{} + + err = json.Unmarshal(data, &varStartScan200Response) + + if err != nil { + return err + } + + *o = StartScan200Response(varStartScan200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "status") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "updatedAt") + delete(additionalProperties, "finishedAt") + delete(additionalProperties, "score") + delete(additionalProperties, "duration") + delete(additionalProperties, "progressRatio") + delete(additionalProperties, "initiator") + delete(additionalProperties, "kind") + delete(additionalProperties, "profileId") + delete(additionalProperties, "organizationId") + delete(additionalProperties, "commitHash") + delete(additionalProperties, "commitBranch") + delete(additionalProperties, "commitAuthor") + delete(additionalProperties, "commitLink") + delete(additionalProperties, "commitAuthorProfilePictureLink") + delete(additionalProperties, "links") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStartScan200Response struct { + value *StartScan200Response + isSet bool +} + +func (v NullableStartScan200Response) Get() *StartScan200Response { + return v.value +} + +func (v *NullableStartScan200Response) Set(val *StartScan200Response) { + v.value = val + v.isSet = true +} + +func (v NullableStartScan200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableStartScan200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStartScan200Response(val *StartScan200Response) *NullableStartScan200Response { + return &NullableStartScan200Response{value: val, isSet: true} +} + +func (v NullableStartScan200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStartScan200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_statistics_detailed.go b/pkg/api/v3/model_statistics_detailed.go index 430a3f41..38e52046 100644 --- a/pkg/api/v3/model_statistics_detailed.go +++ b/pkg/api/v3/model_statistics_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the StatisticsDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &StatisticsDetailed{} -// StatisticsDetailed Detailed information about a statistics +// StatisticsDetailed The statistics of the profile type StatisticsDetailed struct { Issues StatisticsDetailedIssues `json:"issues"` AdditionalProperties map[string]interface{} diff --git a/pkg/api/v3/model_target_detailed.go b/pkg/api/v3/model_target_detailed.go index afc6a76f..bf1a4d6a 100644 --- a/pkg/api/v3/model_target_detailed.go +++ b/pkg/api/v3/model_target_detailed.go @@ -18,7 +18,7 @@ import ( // checks if the TargetDetailed type satisfies the MappedNullable interface at compile time var _ MappedNullable = &TargetDetailed{} -// TargetDetailed Detailed information about a target +// TargetDetailed The target of the attachment type TargetDetailed struct { // The date and time the target was created CreatedAt string `json:"createdAt"` diff --git a/pkg/api/v3/model_update_asset_200_response.go b/pkg/api/v3/model_update_asset_200_response.go new file mode 100644 index 00000000..c38a4fe2 --- /dev/null +++ b/pkg/api/v3/model_update_asset_200_response.go @@ -0,0 +1,770 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the UpdateAsset200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAsset200Response{} + +// UpdateAsset200Response struct for UpdateAsset200Response +type UpdateAsset200Response struct { + // The id of the asset + Id string `json:"id"` + Class ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS `json:"class"` + Type ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE `json:"type"` + // The name of the asset + Name string `json:"name"` + // The external url of the asset + ExternalUrl *string `json:"externalUrl,omitempty"` + // The favicon url of the asset + FaviconUrl *string `json:"faviconUrl,omitempty"` + // The description of the asset + Description *string `json:"description,omitempty"` + // The date and time the asset was created + CreatedAt string `json:"createdAt"` + // The date and time the asset was last seen + LastSeenAt string `json:"lastSeenAt"` + // The date and time the asset is scheduled for deletion + ScheduledForDeletionAt *string `json:"scheduledForDeletionAt,omitempty"` + Status ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS `json:"status"` + // The tags of the asset + Tags []Tag `json:"tags"` + // The risks of the asset + Risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS `json:"risks"` + FirstSeenScan *ScanSummarized `json:"firstSeenScan,omitempty"` + LastSeenScan *ScanSummarized1 `json:"lastSeenScan,omitempty"` + Service *AssetServiceDetailed `json:"service,omitempty"` + Frontend *AssetFrontendDetailed `json:"frontend,omitempty"` + Host *AssetHostDetailed `json:"host,omitempty"` + Links AssetDetailedLinks `json:"links"` + AdditionalProperties map[string]interface{} +} + +type _UpdateAsset200Response UpdateAsset200Response + +// NewUpdateAsset200Response instantiates a new UpdateAsset200Response 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 NewUpdateAsset200Response(id string, class ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, type_ ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, name string, createdAt string, lastSeenAt string, status ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, tags []Tag, risks []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, links AssetDetailedLinks) *UpdateAsset200Response { + this := UpdateAsset200Response{} + this.Id = id + this.Class = class + this.Type = type_ + this.Name = name + this.CreatedAt = createdAt + this.LastSeenAt = lastSeenAt + this.Status = status + this.Tags = tags + this.Risks = risks + this.Links = links + return &this +} + +// NewUpdateAsset200ResponseWithDefaults instantiates a new UpdateAsset200Response 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 NewUpdateAsset200ResponseWithDefaults() *UpdateAsset200Response { + this := UpdateAsset200Response{} + return &this +} + +// GetId returns the Id field value +func (o *UpdateAsset200Response) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *UpdateAsset200Response) SetId(v string) { + o.Id = v +} + +// GetClass returns the Class field value +func (o *UpdateAsset200Response) GetClass() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS + return ret + } + + return o.Class +} + +// GetClassOk returns a tuple with the Class field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetClassOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS, bool) { + if o == nil { + return nil, false + } + return &o.Class, true +} + +// SetClass sets field value +func (o *UpdateAsset200Response) SetClass(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESCLASS) { + o.Class = v +} + +// GetType returns the Type field value +func (o *UpdateAsset200Response) GetType() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetTypeOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *UpdateAsset200Response) SetType(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESTYPE) { + o.Type = v +} + +// GetName returns the Name field value +func (o *UpdateAsset200Response) 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 *UpdateAsset200Response) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateAsset200Response) SetName(v string) { + o.Name = v +} + +// GetExternalUrl returns the ExternalUrl field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetExternalUrl() string { + if o == nil || IsNil(o.ExternalUrl) { + var ret string + return ret + } + return *o.ExternalUrl +} + +// GetExternalUrlOk returns a tuple with the ExternalUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetExternalUrlOk() (*string, bool) { + if o == nil || IsNil(o.ExternalUrl) { + return nil, false + } + return o.ExternalUrl, true +} + +// HasExternalUrl returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasExternalUrl() bool { + if o != nil && !IsNil(o.ExternalUrl) { + return true + } + + return false +} + +// SetExternalUrl gets a reference to the given string and assigns it to the ExternalUrl field. +func (o *UpdateAsset200Response) SetExternalUrl(v string) { + o.ExternalUrl = &v +} + +// GetFaviconUrl returns the FaviconUrl field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetFaviconUrl() string { + if o == nil || IsNil(o.FaviconUrl) { + var ret string + return ret + } + return *o.FaviconUrl +} + +// GetFaviconUrlOk returns a tuple with the FaviconUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetFaviconUrlOk() (*string, bool) { + if o == nil || IsNil(o.FaviconUrl) { + return nil, false + } + return o.FaviconUrl, true +} + +// HasFaviconUrl returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasFaviconUrl() bool { + if o != nil && !IsNil(o.FaviconUrl) { + return true + } + + return false +} + +// SetFaviconUrl gets a reference to the given string and assigns it to the FaviconUrl field. +func (o *UpdateAsset200Response) SetFaviconUrl(v string) { + o.FaviconUrl = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *UpdateAsset200Response) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateAsset200Response) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *UpdateAsset200Response) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *UpdateAsset200Response) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetLastSeenAt returns the LastSeenAt field value +func (o *UpdateAsset200Response) GetLastSeenAt() string { + if o == nil { + var ret string + return ret + } + + return o.LastSeenAt +} + +// GetLastSeenAtOk returns a tuple with the LastSeenAt field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetLastSeenAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LastSeenAt, true +} + +// SetLastSeenAt sets field value +func (o *UpdateAsset200Response) SetLastSeenAt(v string) { + o.LastSeenAt = v +} + +// GetScheduledForDeletionAt returns the ScheduledForDeletionAt field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetScheduledForDeletionAt() string { + if o == nil || IsNil(o.ScheduledForDeletionAt) { + var ret string + return ret + } + return *o.ScheduledForDeletionAt +} + +// GetScheduledForDeletionAtOk returns a tuple with the ScheduledForDeletionAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetScheduledForDeletionAtOk() (*string, bool) { + if o == nil || IsNil(o.ScheduledForDeletionAt) { + return nil, false + } + return o.ScheduledForDeletionAt, true +} + +// HasScheduledForDeletionAt returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasScheduledForDeletionAt() bool { + if o != nil && !IsNil(o.ScheduledForDeletionAt) { + return true + } + + return false +} + +// SetScheduledForDeletionAt gets a reference to the given string and assigns it to the ScheduledForDeletionAt field. +func (o *UpdateAsset200Response) SetScheduledForDeletionAt(v string) { + o.ScheduledForDeletionAt = &v +} + +// GetStatus returns the Status field value +func (o *UpdateAsset200Response) GetStatus() ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS { + if o == nil { + var ret ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetStatusOk() (*ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *UpdateAsset200Response) SetStatus(v ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS) { + o.Status = v +} + +// GetTags returns the Tags field value +func (o *UpdateAsset200Response) GetTags() []Tag { + if o == nil { + var ret []Tag + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetTagsOk() ([]Tag, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *UpdateAsset200Response) SetTags(v []Tag) { + o.Tags = v +} + +// GetRisks returns the Risks field value +func (o *UpdateAsset200Response) GetRisks() []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS { + if o == nil { + var ret []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS + return ret + } + + return o.Risks +} + +// GetRisksOk returns a tuple with the Risks field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetRisksOk() ([]ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS, bool) { + if o == nil { + return nil, false + } + return o.Risks, true +} + +// SetRisks sets field value +func (o *UpdateAsset200Response) SetRisks(v []ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESRISKSITEMS) { + o.Risks = v +} + +// GetFirstSeenScan returns the FirstSeenScan field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetFirstSeenScan() ScanSummarized { + if o == nil || IsNil(o.FirstSeenScan) { + var ret ScanSummarized + return ret + } + return *o.FirstSeenScan +} + +// GetFirstSeenScanOk returns a tuple with the FirstSeenScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetFirstSeenScanOk() (*ScanSummarized, bool) { + if o == nil || IsNil(o.FirstSeenScan) { + return nil, false + } + return o.FirstSeenScan, true +} + +// HasFirstSeenScan returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasFirstSeenScan() bool { + if o != nil && !IsNil(o.FirstSeenScan) { + return true + } + + return false +} + +// SetFirstSeenScan gets a reference to the given ScanSummarized and assigns it to the FirstSeenScan field. +func (o *UpdateAsset200Response) SetFirstSeenScan(v ScanSummarized) { + o.FirstSeenScan = &v +} + +// GetLastSeenScan returns the LastSeenScan field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetLastSeenScan() ScanSummarized1 { + if o == nil || IsNil(o.LastSeenScan) { + var ret ScanSummarized1 + return ret + } + return *o.LastSeenScan +} + +// GetLastSeenScanOk returns a tuple with the LastSeenScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetLastSeenScanOk() (*ScanSummarized1, bool) { + if o == nil || IsNil(o.LastSeenScan) { + return nil, false + } + return o.LastSeenScan, true +} + +// HasLastSeenScan returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasLastSeenScan() bool { + if o != nil && !IsNil(o.LastSeenScan) { + return true + } + + return false +} + +// SetLastSeenScan gets a reference to the given ScanSummarized1 and assigns it to the LastSeenScan field. +func (o *UpdateAsset200Response) SetLastSeenScan(v ScanSummarized1) { + o.LastSeenScan = &v +} + +// GetService returns the Service field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetService() AssetServiceDetailed { + if o == nil || IsNil(o.Service) { + var ret AssetServiceDetailed + return ret + } + return *o.Service +} + +// GetServiceOk returns a tuple with the Service field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetServiceOk() (*AssetServiceDetailed, bool) { + if o == nil || IsNil(o.Service) { + return nil, false + } + return o.Service, true +} + +// HasService returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasService() bool { + if o != nil && !IsNil(o.Service) { + return true + } + + return false +} + +// SetService gets a reference to the given AssetServiceDetailed and assigns it to the Service field. +func (o *UpdateAsset200Response) SetService(v AssetServiceDetailed) { + o.Service = &v +} + +// GetFrontend returns the Frontend field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetFrontend() AssetFrontendDetailed { + if o == nil || IsNil(o.Frontend) { + var ret AssetFrontendDetailed + return ret + } + return *o.Frontend +} + +// GetFrontendOk returns a tuple with the Frontend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetFrontendOk() (*AssetFrontendDetailed, bool) { + if o == nil || IsNil(o.Frontend) { + return nil, false + } + return o.Frontend, true +} + +// HasFrontend returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasFrontend() bool { + if o != nil && !IsNil(o.Frontend) { + return true + } + + return false +} + +// SetFrontend gets a reference to the given AssetFrontendDetailed and assigns it to the Frontend field. +func (o *UpdateAsset200Response) SetFrontend(v AssetFrontendDetailed) { + o.Frontend = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *UpdateAsset200Response) GetHost() AssetHostDetailed { + if o == nil || IsNil(o.Host) { + var ret AssetHostDetailed + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetHostOk() (*AssetHostDetailed, bool) { + if o == nil || IsNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *UpdateAsset200Response) HasHost() bool { + if o != nil && !IsNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given AssetHostDetailed and assigns it to the Host field. +func (o *UpdateAsset200Response) SetHost(v AssetHostDetailed) { + o.Host = &v +} + +// GetLinks returns the Links field value +func (o *UpdateAsset200Response) GetLinks() AssetDetailedLinks { + if o == nil { + var ret AssetDetailedLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *UpdateAsset200Response) GetLinksOk() (*AssetDetailedLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *UpdateAsset200Response) SetLinks(v AssetDetailedLinks) { + o.Links = v +} + +func (o UpdateAsset200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAsset200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["class"] = o.Class + toSerialize["type"] = o.Type + toSerialize["name"] = o.Name + if !IsNil(o.ExternalUrl) { + toSerialize["externalUrl"] = o.ExternalUrl + } + if !IsNil(o.FaviconUrl) { + toSerialize["faviconUrl"] = o.FaviconUrl + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["createdAt"] = o.CreatedAt + toSerialize["lastSeenAt"] = o.LastSeenAt + if !IsNil(o.ScheduledForDeletionAt) { + toSerialize["scheduledForDeletionAt"] = o.ScheduledForDeletionAt + } + toSerialize["status"] = o.Status + toSerialize["tags"] = o.Tags + toSerialize["risks"] = o.Risks + if !IsNil(o.FirstSeenScan) { + toSerialize["firstSeenScan"] = o.FirstSeenScan + } + if !IsNil(o.LastSeenScan) { + toSerialize["lastSeenScan"] = o.LastSeenScan + } + if !IsNil(o.Service) { + toSerialize["service"] = o.Service + } + if !IsNil(o.Frontend) { + toSerialize["frontend"] = o.Frontend + } + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } + toSerialize["links"] = o.Links + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateAsset200Response) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "class", + "type", + "name", + "createdAt", + "lastSeenAt", + "status", + "tags", + "risks", + "links", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateAsset200Response := _UpdateAsset200Response{} + + err = json.Unmarshal(data, &varUpdateAsset200Response) + + if err != nil { + return err + } + + *o = UpdateAsset200Response(varUpdateAsset200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "class") + delete(additionalProperties, "type") + delete(additionalProperties, "name") + delete(additionalProperties, "externalUrl") + delete(additionalProperties, "faviconUrl") + delete(additionalProperties, "description") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "lastSeenAt") + delete(additionalProperties, "scheduledForDeletionAt") + delete(additionalProperties, "status") + delete(additionalProperties, "tags") + delete(additionalProperties, "risks") + delete(additionalProperties, "firstSeenScan") + delete(additionalProperties, "lastSeenScan") + delete(additionalProperties, "service") + delete(additionalProperties, "frontend") + delete(additionalProperties, "host") + delete(additionalProperties, "links") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateAsset200Response struct { + value *UpdateAsset200Response + isSet bool +} + +func (v NullableUpdateAsset200Response) Get() *UpdateAsset200Response { + return v.value +} + +func (v *NullableUpdateAsset200Response) Set(val *UpdateAsset200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAsset200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAsset200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAsset200Response(val *UpdateAsset200Response) *NullableUpdateAsset200Response { + return &NullableUpdateAsset200Response{value: val, isSet: true} +} + +func (v NullableUpdateAsset200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAsset200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_update_asset_request.go b/pkg/api/v3/model_update_asset_request.go index 9275262e..a736d096 100644 --- a/pkg/api/v3/model_update_asset_request.go +++ b/pkg/api/v3/model_update_asset_request.go @@ -26,7 +26,9 @@ type UpdateAssetRequest struct { Framework *ENUMPROPERTIESFRAMEWORK `json:"framework,omitempty"` Status *ENUMPROPERTIESDATAITEMSPROPERTIESASSETPROPERTIESSTATUS `json:"status,omitempty"` // The description of the asset - Description *string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` + // The custom name of the asset. If not provided, the default name will be used. + Name *string `json:"name,omitempty"` AdditionalProperties map[string]interface{} } @@ -241,6 +243,38 @@ func (o *UpdateAssetRequest) SetDescription(v string) { o.Description = &v } +// GetName returns the Name field value if set, zero value otherwise. +func (o *UpdateAssetRequest) GetName() string { + if o == nil || IsNil(o.Name) { + 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 *UpdateAssetRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *UpdateAssetRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *UpdateAssetRequest) SetName(v string) { + o.Name = &v +} + func (o UpdateAssetRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -269,6 +303,9 @@ func (o UpdateAssetRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -297,6 +334,7 @@ func (o *UpdateAssetRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "framework") delete(additionalProperties, "status") delete(additionalProperties, "description") + delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_update_profile_configuration_request_configuration.go b/pkg/api/v3/model_update_profile_configuration_request_configuration.go index 4ac98b98..cbe930c8 100644 --- a/pkg/api/v3/model_update_profile_configuration_request_configuration.go +++ b/pkg/api/v3/model_update_profile_configuration_request_configuration.go @@ -19,24 +19,25 @@ var _ MappedNullable = &UpdateProfileConfigurationRequestConfiguration{} // UpdateProfileConfigurationRequestConfiguration The configuration to update type UpdateProfileConfigurationRequestConfiguration struct { - PublicLocationIds []string `json:"public_location_ids,omitempty"` - PrivateLocationIds []string `json:"private_location_ids,omitempty"` - Scope *ProfileDetailedConfigurationScope `json:"scope,omitempty"` - ExplorationScope []string `json:"exploration_scope,omitempty"` - ApiCustomRuleIds []string `json:"api_custom_rule_ids,omitempty"` - FrontendCustomRuleIds []string `json:"frontend_custom_rule_ids,omitempty"` - Authentication *ProfileDetailedConfigurationAuthentication `json:"authentication,omitempty"` - SecurityTests *ProfileDetailedConfigurationSecurityTests `json:"security_tests,omitempty"` - Inference *ProfileDetailedConfigurationInference `json:"inference,omitempty"` - Network *ProfileDetailedConfigurationNetwork `json:"network,omitempty"` - ArgumentGeneration *ProfileDetailedConfigurationArgumentGeneration `json:"argument_generation,omitempty"` - SubdomainEnumeration *ProfileDetailedConfigurationSubdomainEnumeration `json:"subdomain_enumeration,omitempty"` - PortScanning *ProfileDetailedConfigurationPortScanning `json:"port_scanning,omitempty"` - ServiceDiscovery *ProfileDetailedConfigurationServiceDiscovery `json:"service_discovery,omitempty"` - FrontendDast *ProfileDetailedConfigurationFrontendDast `json:"frontend_dast,omitempty"` - GraphqlApiDast *ProfileDetailedConfigurationGraphqlApiDast `json:"graphql_api_dast,omitempty"` - RestApiDast *ProfileDetailedConfigurationRestApiDast `json:"rest_api_dast,omitempty"` - Experimental *ProfileDetailedConfigurationExperimental `json:"experimental,omitempty"` + PublicLocationIds []string `json:"public_location_ids,omitempty"` + PrivateLocationIds []string `json:"private_location_ids,omitempty"` + Scope *GetProfile200ResponseConfigurationScope `json:"scope,omitempty"` + ExplorationScope []string `json:"exploration_scope,omitempty"` + ApiCustomRuleIds []string `json:"api_custom_rule_ids,omitempty"` + FrontendCustomRuleIds []string `json:"frontend_custom_rule_ids,omitempty"` + Authentication *GetProfile200ResponseConfigurationAuthentication `json:"authentication,omitempty"` + SecurityTests *GetProfile200ResponseConfigurationSecurityTests `json:"security_tests,omitempty"` + Inference *GetProfile200ResponseConfigurationInference `json:"inference,omitempty"` + Network *GetProfile200ResponseConfigurationNetwork `json:"network,omitempty"` + ArgumentGeneration *GetProfile200ResponseConfigurationArgumentGeneration `json:"argument_generation,omitempty"` + SubdomainEnumeration *GetProfile200ResponseConfigurationSubdomainEnumeration `json:"subdomain_enumeration,omitempty"` + PortScanning *GetProfile200ResponseConfigurationPortScanning `json:"port_scanning,omitempty"` + ServiceDiscovery *GetProfile200ResponseConfigurationServiceDiscovery `json:"service_discovery,omitempty"` + FrontendDast *GetProfile200ResponseConfigurationFrontendDast `json:"frontend_dast,omitempty"` + GraphqlApiDast *GetProfile200ResponseConfigurationGraphqlApiDast `json:"graphql_api_dast,omitempty"` + RestApiDast *GetProfile200ResponseConfigurationRestApiDast `json:"rest_api_dast,omitempty"` + AutomatedPentesting *GetProfile200ResponseConfigurationAutomatedPentesting `json:"automated_pentesting,omitempty"` + Experimental *GetProfile200ResponseConfigurationExperimental `json:"experimental,omitempty"` AdditionalProperties map[string]interface{} } @@ -124,9 +125,9 @@ func (o *UpdateProfileConfigurationRequestConfiguration) SetPrivateLocationIds(v } // GetScope returns the Scope field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetScope() ProfileDetailedConfigurationScope { +func (o *UpdateProfileConfigurationRequestConfiguration) GetScope() GetProfile200ResponseConfigurationScope { if o == nil || IsNil(o.Scope) { - var ret ProfileDetailedConfigurationScope + var ret GetProfile200ResponseConfigurationScope return ret } return *o.Scope @@ -134,7 +135,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetScope() ProfileDetai // GetScopeOk returns a tuple with the Scope field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetScopeOk() (*ProfileDetailedConfigurationScope, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetScopeOk() (*GetProfile200ResponseConfigurationScope, bool) { if o == nil || IsNil(o.Scope) { return nil, false } @@ -150,8 +151,8 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasScope() bool { return false } -// SetScope gets a reference to the given ProfileDetailedConfigurationScope and assigns it to the Scope field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetScope(v ProfileDetailedConfigurationScope) { +// SetScope gets a reference to the given GetProfile200ResponseConfigurationScope and assigns it to the Scope field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetScope(v GetProfile200ResponseConfigurationScope) { o.Scope = &v } @@ -252,9 +253,9 @@ func (o *UpdateProfileConfigurationRequestConfiguration) SetFrontendCustomRuleId } // GetAuthentication returns the Authentication field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetAuthentication() ProfileDetailedConfigurationAuthentication { +func (o *UpdateProfileConfigurationRequestConfiguration) GetAuthentication() GetProfile200ResponseConfigurationAuthentication { if o == nil || IsNil(o.Authentication) { - var ret ProfileDetailedConfigurationAuthentication + var ret GetProfile200ResponseConfigurationAuthentication return ret } return *o.Authentication @@ -262,7 +263,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetAuthentication() Pro // GetAuthenticationOk returns a tuple with the Authentication field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetAuthenticationOk() (*ProfileDetailedConfigurationAuthentication, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetAuthenticationOk() (*GetProfile200ResponseConfigurationAuthentication, bool) { if o == nil || IsNil(o.Authentication) { return nil, false } @@ -278,15 +279,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasAuthentication() boo return false } -// SetAuthentication gets a reference to the given ProfileDetailedConfigurationAuthentication and assigns it to the Authentication field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetAuthentication(v ProfileDetailedConfigurationAuthentication) { +// SetAuthentication gets a reference to the given GetProfile200ResponseConfigurationAuthentication and assigns it to the Authentication field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetAuthentication(v GetProfile200ResponseConfigurationAuthentication) { o.Authentication = &v } // GetSecurityTests returns the SecurityTests field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetSecurityTests() ProfileDetailedConfigurationSecurityTests { +func (o *UpdateProfileConfigurationRequestConfiguration) GetSecurityTests() GetProfile200ResponseConfigurationSecurityTests { if o == nil || IsNil(o.SecurityTests) { - var ret ProfileDetailedConfigurationSecurityTests + var ret GetProfile200ResponseConfigurationSecurityTests return ret } return *o.SecurityTests @@ -294,7 +295,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetSecurityTests() Prof // GetSecurityTestsOk returns a tuple with the SecurityTests field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetSecurityTestsOk() (*ProfileDetailedConfigurationSecurityTests, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetSecurityTestsOk() (*GetProfile200ResponseConfigurationSecurityTests, bool) { if o == nil || IsNil(o.SecurityTests) { return nil, false } @@ -310,15 +311,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasSecurityTests() bool return false } -// SetSecurityTests gets a reference to the given ProfileDetailedConfigurationSecurityTests and assigns it to the SecurityTests field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetSecurityTests(v ProfileDetailedConfigurationSecurityTests) { +// SetSecurityTests gets a reference to the given GetProfile200ResponseConfigurationSecurityTests and assigns it to the SecurityTests field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetSecurityTests(v GetProfile200ResponseConfigurationSecurityTests) { o.SecurityTests = &v } // GetInference returns the Inference field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetInference() ProfileDetailedConfigurationInference { +func (o *UpdateProfileConfigurationRequestConfiguration) GetInference() GetProfile200ResponseConfigurationInference { if o == nil || IsNil(o.Inference) { - var ret ProfileDetailedConfigurationInference + var ret GetProfile200ResponseConfigurationInference return ret } return *o.Inference @@ -326,7 +327,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetInference() ProfileD // GetInferenceOk returns a tuple with the Inference field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetInferenceOk() (*ProfileDetailedConfigurationInference, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetInferenceOk() (*GetProfile200ResponseConfigurationInference, bool) { if o == nil || IsNil(o.Inference) { return nil, false } @@ -342,15 +343,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasInference() bool { return false } -// SetInference gets a reference to the given ProfileDetailedConfigurationInference and assigns it to the Inference field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetInference(v ProfileDetailedConfigurationInference) { +// SetInference gets a reference to the given GetProfile200ResponseConfigurationInference and assigns it to the Inference field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetInference(v GetProfile200ResponseConfigurationInference) { o.Inference = &v } // GetNetwork returns the Network field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetNetwork() ProfileDetailedConfigurationNetwork { +func (o *UpdateProfileConfigurationRequestConfiguration) GetNetwork() GetProfile200ResponseConfigurationNetwork { if o == nil || IsNil(o.Network) { - var ret ProfileDetailedConfigurationNetwork + var ret GetProfile200ResponseConfigurationNetwork return ret } return *o.Network @@ -358,7 +359,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetNetwork() ProfileDet // GetNetworkOk returns a tuple with the Network field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetNetworkOk() (*ProfileDetailedConfigurationNetwork, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetNetworkOk() (*GetProfile200ResponseConfigurationNetwork, bool) { if o == nil || IsNil(o.Network) { return nil, false } @@ -374,15 +375,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasNetwork() bool { return false } -// SetNetwork gets a reference to the given ProfileDetailedConfigurationNetwork and assigns it to the Network field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetNetwork(v ProfileDetailedConfigurationNetwork) { +// SetNetwork gets a reference to the given GetProfile200ResponseConfigurationNetwork and assigns it to the Network field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetNetwork(v GetProfile200ResponseConfigurationNetwork) { o.Network = &v } // GetArgumentGeneration returns the ArgumentGeneration field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetArgumentGeneration() ProfileDetailedConfigurationArgumentGeneration { +func (o *UpdateProfileConfigurationRequestConfiguration) GetArgumentGeneration() GetProfile200ResponseConfigurationArgumentGeneration { if o == nil || IsNil(o.ArgumentGeneration) { - var ret ProfileDetailedConfigurationArgumentGeneration + var ret GetProfile200ResponseConfigurationArgumentGeneration return ret } return *o.ArgumentGeneration @@ -390,7 +391,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetArgumentGeneration() // GetArgumentGenerationOk returns a tuple with the ArgumentGeneration field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetArgumentGenerationOk() (*ProfileDetailedConfigurationArgumentGeneration, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetArgumentGenerationOk() (*GetProfile200ResponseConfigurationArgumentGeneration, bool) { if o == nil || IsNil(o.ArgumentGeneration) { return nil, false } @@ -406,15 +407,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasArgumentGeneration() return false } -// SetArgumentGeneration gets a reference to the given ProfileDetailedConfigurationArgumentGeneration and assigns it to the ArgumentGeneration field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetArgumentGeneration(v ProfileDetailedConfigurationArgumentGeneration) { +// SetArgumentGeneration gets a reference to the given GetProfile200ResponseConfigurationArgumentGeneration and assigns it to the ArgumentGeneration field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetArgumentGeneration(v GetProfile200ResponseConfigurationArgumentGeneration) { o.ArgumentGeneration = &v } // GetSubdomainEnumeration returns the SubdomainEnumeration field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetSubdomainEnumeration() ProfileDetailedConfigurationSubdomainEnumeration { +func (o *UpdateProfileConfigurationRequestConfiguration) GetSubdomainEnumeration() GetProfile200ResponseConfigurationSubdomainEnumeration { if o == nil || IsNil(o.SubdomainEnumeration) { - var ret ProfileDetailedConfigurationSubdomainEnumeration + var ret GetProfile200ResponseConfigurationSubdomainEnumeration return ret } return *o.SubdomainEnumeration @@ -422,7 +423,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetSubdomainEnumeration // GetSubdomainEnumerationOk returns a tuple with the SubdomainEnumeration field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetSubdomainEnumerationOk() (*ProfileDetailedConfigurationSubdomainEnumeration, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetSubdomainEnumerationOk() (*GetProfile200ResponseConfigurationSubdomainEnumeration, bool) { if o == nil || IsNil(o.SubdomainEnumeration) { return nil, false } @@ -438,15 +439,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasSubdomainEnumeration return false } -// SetSubdomainEnumeration gets a reference to the given ProfileDetailedConfigurationSubdomainEnumeration and assigns it to the SubdomainEnumeration field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetSubdomainEnumeration(v ProfileDetailedConfigurationSubdomainEnumeration) { +// SetSubdomainEnumeration gets a reference to the given GetProfile200ResponseConfigurationSubdomainEnumeration and assigns it to the SubdomainEnumeration field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetSubdomainEnumeration(v GetProfile200ResponseConfigurationSubdomainEnumeration) { o.SubdomainEnumeration = &v } // GetPortScanning returns the PortScanning field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetPortScanning() ProfileDetailedConfigurationPortScanning { +func (o *UpdateProfileConfigurationRequestConfiguration) GetPortScanning() GetProfile200ResponseConfigurationPortScanning { if o == nil || IsNil(o.PortScanning) { - var ret ProfileDetailedConfigurationPortScanning + var ret GetProfile200ResponseConfigurationPortScanning return ret } return *o.PortScanning @@ -454,7 +455,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetPortScanning() Profi // GetPortScanningOk returns a tuple with the PortScanning field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetPortScanningOk() (*ProfileDetailedConfigurationPortScanning, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetPortScanningOk() (*GetProfile200ResponseConfigurationPortScanning, bool) { if o == nil || IsNil(o.PortScanning) { return nil, false } @@ -470,15 +471,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasPortScanning() bool return false } -// SetPortScanning gets a reference to the given ProfileDetailedConfigurationPortScanning and assigns it to the PortScanning field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetPortScanning(v ProfileDetailedConfigurationPortScanning) { +// SetPortScanning gets a reference to the given GetProfile200ResponseConfigurationPortScanning and assigns it to the PortScanning field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetPortScanning(v GetProfile200ResponseConfigurationPortScanning) { o.PortScanning = &v } // GetServiceDiscovery returns the ServiceDiscovery field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetServiceDiscovery() ProfileDetailedConfigurationServiceDiscovery { +func (o *UpdateProfileConfigurationRequestConfiguration) GetServiceDiscovery() GetProfile200ResponseConfigurationServiceDiscovery { if o == nil || IsNil(o.ServiceDiscovery) { - var ret ProfileDetailedConfigurationServiceDiscovery + var ret GetProfile200ResponseConfigurationServiceDiscovery return ret } return *o.ServiceDiscovery @@ -486,7 +487,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetServiceDiscovery() P // GetServiceDiscoveryOk returns a tuple with the ServiceDiscovery field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetServiceDiscoveryOk() (*ProfileDetailedConfigurationServiceDiscovery, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetServiceDiscoveryOk() (*GetProfile200ResponseConfigurationServiceDiscovery, bool) { if o == nil || IsNil(o.ServiceDiscovery) { return nil, false } @@ -502,15 +503,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasServiceDiscovery() b return false } -// SetServiceDiscovery gets a reference to the given ProfileDetailedConfigurationServiceDiscovery and assigns it to the ServiceDiscovery field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetServiceDiscovery(v ProfileDetailedConfigurationServiceDiscovery) { +// SetServiceDiscovery gets a reference to the given GetProfile200ResponseConfigurationServiceDiscovery and assigns it to the ServiceDiscovery field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetServiceDiscovery(v GetProfile200ResponseConfigurationServiceDiscovery) { o.ServiceDiscovery = &v } // GetFrontendDast returns the FrontendDast field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetFrontendDast() ProfileDetailedConfigurationFrontendDast { +func (o *UpdateProfileConfigurationRequestConfiguration) GetFrontendDast() GetProfile200ResponseConfigurationFrontendDast { if o == nil || IsNil(o.FrontendDast) { - var ret ProfileDetailedConfigurationFrontendDast + var ret GetProfile200ResponseConfigurationFrontendDast return ret } return *o.FrontendDast @@ -518,7 +519,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetFrontendDast() Profi // GetFrontendDastOk returns a tuple with the FrontendDast field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetFrontendDastOk() (*ProfileDetailedConfigurationFrontendDast, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetFrontendDastOk() (*GetProfile200ResponseConfigurationFrontendDast, bool) { if o == nil || IsNil(o.FrontendDast) { return nil, false } @@ -534,15 +535,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasFrontendDast() bool return false } -// SetFrontendDast gets a reference to the given ProfileDetailedConfigurationFrontendDast and assigns it to the FrontendDast field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetFrontendDast(v ProfileDetailedConfigurationFrontendDast) { +// SetFrontendDast gets a reference to the given GetProfile200ResponseConfigurationFrontendDast and assigns it to the FrontendDast field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetFrontendDast(v GetProfile200ResponseConfigurationFrontendDast) { o.FrontendDast = &v } // GetGraphqlApiDast returns the GraphqlApiDast field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetGraphqlApiDast() ProfileDetailedConfigurationGraphqlApiDast { +func (o *UpdateProfileConfigurationRequestConfiguration) GetGraphqlApiDast() GetProfile200ResponseConfigurationGraphqlApiDast { if o == nil || IsNil(o.GraphqlApiDast) { - var ret ProfileDetailedConfigurationGraphqlApiDast + var ret GetProfile200ResponseConfigurationGraphqlApiDast return ret } return *o.GraphqlApiDast @@ -550,7 +551,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetGraphqlApiDast() Pro // GetGraphqlApiDastOk returns a tuple with the GraphqlApiDast field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetGraphqlApiDastOk() (*ProfileDetailedConfigurationGraphqlApiDast, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetGraphqlApiDastOk() (*GetProfile200ResponseConfigurationGraphqlApiDast, bool) { if o == nil || IsNil(o.GraphqlApiDast) { return nil, false } @@ -566,15 +567,15 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasGraphqlApiDast() boo return false } -// SetGraphqlApiDast gets a reference to the given ProfileDetailedConfigurationGraphqlApiDast and assigns it to the GraphqlApiDast field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetGraphqlApiDast(v ProfileDetailedConfigurationGraphqlApiDast) { +// SetGraphqlApiDast gets a reference to the given GetProfile200ResponseConfigurationGraphqlApiDast and assigns it to the GraphqlApiDast field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetGraphqlApiDast(v GetProfile200ResponseConfigurationGraphqlApiDast) { o.GraphqlApiDast = &v } // GetRestApiDast returns the RestApiDast field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetRestApiDast() ProfileDetailedConfigurationRestApiDast { +func (o *UpdateProfileConfigurationRequestConfiguration) GetRestApiDast() GetProfile200ResponseConfigurationRestApiDast { if o == nil || IsNil(o.RestApiDast) { - var ret ProfileDetailedConfigurationRestApiDast + var ret GetProfile200ResponseConfigurationRestApiDast return ret } return *o.RestApiDast @@ -582,7 +583,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetRestApiDast() Profil // GetRestApiDastOk returns a tuple with the RestApiDast field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetRestApiDastOk() (*ProfileDetailedConfigurationRestApiDast, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetRestApiDastOk() (*GetProfile200ResponseConfigurationRestApiDast, bool) { if o == nil || IsNil(o.RestApiDast) { return nil, false } @@ -598,15 +599,47 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasRestApiDast() bool { return false } -// SetRestApiDast gets a reference to the given ProfileDetailedConfigurationRestApiDast and assigns it to the RestApiDast field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetRestApiDast(v ProfileDetailedConfigurationRestApiDast) { +// SetRestApiDast gets a reference to the given GetProfile200ResponseConfigurationRestApiDast and assigns it to the RestApiDast field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetRestApiDast(v GetProfile200ResponseConfigurationRestApiDast) { o.RestApiDast = &v } +// GetAutomatedPentesting returns the AutomatedPentesting field value if set, zero value otherwise. +func (o *UpdateProfileConfigurationRequestConfiguration) GetAutomatedPentesting() GetProfile200ResponseConfigurationAutomatedPentesting { + if o == nil || IsNil(o.AutomatedPentesting) { + var ret GetProfile200ResponseConfigurationAutomatedPentesting + return ret + } + return *o.AutomatedPentesting +} + +// GetAutomatedPentestingOk returns a tuple with the AutomatedPentesting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateProfileConfigurationRequestConfiguration) GetAutomatedPentestingOk() (*GetProfile200ResponseConfigurationAutomatedPentesting, bool) { + if o == nil || IsNil(o.AutomatedPentesting) { + return nil, false + } + return o.AutomatedPentesting, true +} + +// HasAutomatedPentesting returns a boolean if a field has been set. +func (o *UpdateProfileConfigurationRequestConfiguration) HasAutomatedPentesting() bool { + if o != nil && !IsNil(o.AutomatedPentesting) { + return true + } + + return false +} + +// SetAutomatedPentesting gets a reference to the given GetProfile200ResponseConfigurationAutomatedPentesting and assigns it to the AutomatedPentesting field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetAutomatedPentesting(v GetProfile200ResponseConfigurationAutomatedPentesting) { + o.AutomatedPentesting = &v +} + // GetExperimental returns the Experimental field value if set, zero value otherwise. -func (o *UpdateProfileConfigurationRequestConfiguration) GetExperimental() ProfileDetailedConfigurationExperimental { +func (o *UpdateProfileConfigurationRequestConfiguration) GetExperimental() GetProfile200ResponseConfigurationExperimental { if o == nil || IsNil(o.Experimental) { - var ret ProfileDetailedConfigurationExperimental + var ret GetProfile200ResponseConfigurationExperimental return ret } return *o.Experimental @@ -614,7 +647,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) GetExperimental() Profi // GetExperimentalOk returns a tuple with the Experimental field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateProfileConfigurationRequestConfiguration) GetExperimentalOk() (*ProfileDetailedConfigurationExperimental, bool) { +func (o *UpdateProfileConfigurationRequestConfiguration) GetExperimentalOk() (*GetProfile200ResponseConfigurationExperimental, bool) { if o == nil || IsNil(o.Experimental) { return nil, false } @@ -630,8 +663,8 @@ func (o *UpdateProfileConfigurationRequestConfiguration) HasExperimental() bool return false } -// SetExperimental gets a reference to the given ProfileDetailedConfigurationExperimental and assigns it to the Experimental field. -func (o *UpdateProfileConfigurationRequestConfiguration) SetExperimental(v ProfileDetailedConfigurationExperimental) { +// SetExperimental gets a reference to the given GetProfile200ResponseConfigurationExperimental and assigns it to the Experimental field. +func (o *UpdateProfileConfigurationRequestConfiguration) SetExperimental(v GetProfile200ResponseConfigurationExperimental) { o.Experimental = &v } @@ -696,6 +729,9 @@ func (o UpdateProfileConfigurationRequestConfiguration) ToMap() (map[string]inte if !IsNil(o.RestApiDast) { toSerialize["rest_api_dast"] = o.RestApiDast } + if !IsNil(o.AutomatedPentesting) { + toSerialize["automated_pentesting"] = o.AutomatedPentesting + } if !IsNil(o.Experimental) { toSerialize["experimental"] = o.Experimental } @@ -738,6 +774,7 @@ func (o *UpdateProfileConfigurationRequestConfiguration) UnmarshalJSON(data []by delete(additionalProperties, "frontend_dast") delete(additionalProperties, "graphql_api_dast") delete(additionalProperties, "rest_api_dast") + delete(additionalProperties, "automated_pentesting") delete(additionalProperties, "experimental") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_update_profile_request.go b/pkg/api/v3/model_update_profile_request.go index 5a15edd4..df45b2d9 100644 --- a/pkg/api/v3/model_update_profile_request.go +++ b/pkg/api/v3/model_update_profile_request.go @@ -21,8 +21,11 @@ var _ MappedNullable = &UpdateProfileRequest{} type UpdateProfileRequest struct { // The name of the profile Name *string `json:"name,omitempty"` + // The description of the profile + Description *string `json:"description,omitempty"` // The cron of the profile - Cron *string `json:"cron,omitempty"` + Cron *string `json:"cron,omitempty"` + ExtraAssetIds *UpdateProfileRequestExtraAssetIds `json:"extraAssetIds,omitempty"` AdditionalProperties map[string]interface{} } @@ -77,6 +80,38 @@ func (o *UpdateProfileRequest) SetName(v string) { o.Name = &v } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateProfileRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + 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 *UpdateProfileRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateProfileRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateProfileRequest) SetDescription(v string) { + o.Description = &v +} + // GetCron returns the Cron field value if set, zero value otherwise. func (o *UpdateProfileRequest) GetCron() string { if o == nil || IsNil(o.Cron) { @@ -109,6 +144,38 @@ func (o *UpdateProfileRequest) SetCron(v string) { o.Cron = &v } +// GetExtraAssetIds returns the ExtraAssetIds field value if set, zero value otherwise. +func (o *UpdateProfileRequest) GetExtraAssetIds() UpdateProfileRequestExtraAssetIds { + if o == nil || IsNil(o.ExtraAssetIds) { + var ret UpdateProfileRequestExtraAssetIds + return ret + } + return *o.ExtraAssetIds +} + +// GetExtraAssetIdsOk returns a tuple with the ExtraAssetIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateProfileRequest) GetExtraAssetIdsOk() (*UpdateProfileRequestExtraAssetIds, bool) { + if o == nil || IsNil(o.ExtraAssetIds) { + return nil, false + } + return o.ExtraAssetIds, true +} + +// HasExtraAssetIds returns a boolean if a field has been set. +func (o *UpdateProfileRequest) HasExtraAssetIds() bool { + if o != nil && !IsNil(o.ExtraAssetIds) { + return true + } + + return false +} + +// SetExtraAssetIds gets a reference to the given UpdateProfileRequestExtraAssetIds and assigns it to the ExtraAssetIds field. +func (o *UpdateProfileRequest) SetExtraAssetIds(v UpdateProfileRequestExtraAssetIds) { + o.ExtraAssetIds = &v +} + func (o UpdateProfileRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -122,9 +189,15 @@ func (o UpdateProfileRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Name) { toSerialize["name"] = o.Name } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } if !IsNil(o.Cron) { toSerialize["cron"] = o.Cron } + if !IsNil(o.ExtraAssetIds) { + toSerialize["extraAssetIds"] = o.ExtraAssetIds + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -148,7 +221,9 @@ func (o *UpdateProfileRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "description") delete(additionalProperties, "cron") + delete(additionalProperties, "extraAssetIds") o.AdditionalProperties = additionalProperties } diff --git a/pkg/api/v3/model_update_profile_request_extra_asset_ids.go b/pkg/api/v3/model_update_profile_request_extra_asset_ids.go new file mode 100644 index 00000000..5864c939 --- /dev/null +++ b/pkg/api/v3/model_update_profile_request_extra_asset_ids.go @@ -0,0 +1,103 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// UpdateProfileRequestExtraAssetIds The extra asset ID for the profile +type UpdateProfileRequestExtraAssetIds struct { + ArrayOfString *[]string + String *string +} + +// Unmarshal JSON data into any of the pointers in the struct +func (dst *UpdateProfileRequestExtraAssetIds) UnmarshalJSON(data []byte) error { + var err error + // try to unmarshal JSON data into ArrayOfString + err = json.Unmarshal(data, &dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + return nil // data stored in dst.ArrayOfString, return on the first match + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal JSON data into String + err = json.Unmarshal(data, &dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + return nil // data stored in dst.String, return on the first match + } + } else { + dst.String = nil + } + + return fmt.Errorf("data failed to match schemas in anyOf(UpdateProfileRequestExtraAssetIds)") +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src UpdateProfileRequestExtraAssetIds) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in anyOf schemas +} + +type NullableUpdateProfileRequestExtraAssetIds struct { + value *UpdateProfileRequestExtraAssetIds + isSet bool +} + +func (v NullableUpdateProfileRequestExtraAssetIds) Get() *UpdateProfileRequestExtraAssetIds { + return v.value +} + +func (v *NullableUpdateProfileRequestExtraAssetIds) Set(val *UpdateProfileRequestExtraAssetIds) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateProfileRequestExtraAssetIds) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateProfileRequestExtraAssetIds) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateProfileRequestExtraAssetIds(val *UpdateProfileRequestExtraAssetIds) *NullableUpdateProfileRequestExtraAssetIds { + return &NullableUpdateProfileRequestExtraAssetIds{value: val, isSet: true} +} + +func (v NullableUpdateProfileRequestExtraAssetIds) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateProfileRequestExtraAssetIds) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_updatebitbucket_repo_integration_request.go b/pkg/api/v3/model_updatebitbucket_integration_request.go similarity index 54% rename from pkg/api/v3/model_updatebitbucket_repo_integration_request.go rename to pkg/api/v3/model_updatebitbucket_integration_request.go index a92e564b..841b9aa5 100644 --- a/pkg/api/v3/model_updatebitbucket_repo_integration_request.go +++ b/pkg/api/v3/model_updatebitbucket_integration_request.go @@ -14,14 +14,14 @@ import ( "encoding/json" ) -// checks if the UpdatebitbucketRepoIntegrationRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdatebitbucketRepoIntegrationRequest{} +// checks if the UpdatebitbucketIntegrationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdatebitbucketIntegrationRequest{} -// UpdatebitbucketRepoIntegrationRequest struct for UpdatebitbucketRepoIntegrationRequest -type UpdatebitbucketRepoIntegrationRequest struct { +// UpdatebitbucketIntegrationRequest struct for UpdatebitbucketIntegrationRequest +type UpdatebitbucketIntegrationRequest struct { // The new name of the integration - Name *string `json:"name,omitempty"` - Parameters *UpdatebitbucketRepoIntegrationRequestParameters `json:"parameters,omitempty"` + Name *string `json:"name,omitempty"` + Parameters *UpdatebitbucketIntegrationRequestParameters `json:"parameters,omitempty"` // Optional proxy ID to attach to the integration ProxyId *string `json:"proxyId,omitempty"` // Optional list of project IDs to attach to the integration @@ -29,27 +29,27 @@ type UpdatebitbucketRepoIntegrationRequest struct { AdditionalProperties map[string]interface{} } -type _UpdatebitbucketRepoIntegrationRequest UpdatebitbucketRepoIntegrationRequest +type _UpdatebitbucketIntegrationRequest UpdatebitbucketIntegrationRequest -// NewUpdatebitbucketRepoIntegrationRequest instantiates a new UpdatebitbucketRepoIntegrationRequest object +// NewUpdatebitbucketIntegrationRequest instantiates a new UpdatebitbucketIntegrationRequest 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 NewUpdatebitbucketRepoIntegrationRequest() *UpdatebitbucketRepoIntegrationRequest { - this := UpdatebitbucketRepoIntegrationRequest{} +func NewUpdatebitbucketIntegrationRequest() *UpdatebitbucketIntegrationRequest { + this := UpdatebitbucketIntegrationRequest{} return &this } -// NewUpdatebitbucketRepoIntegrationRequestWithDefaults instantiates a new UpdatebitbucketRepoIntegrationRequest object +// NewUpdatebitbucketIntegrationRequestWithDefaults instantiates a new UpdatebitbucketIntegrationRequest 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 NewUpdatebitbucketRepoIntegrationRequestWithDefaults() *UpdatebitbucketRepoIntegrationRequest { - this := UpdatebitbucketRepoIntegrationRequest{} +func NewUpdatebitbucketIntegrationRequestWithDefaults() *UpdatebitbucketIntegrationRequest { + this := UpdatebitbucketIntegrationRequest{} return &this } // GetName returns the Name field value if set, zero value otherwise. -func (o *UpdatebitbucketRepoIntegrationRequest) GetName() string { +func (o *UpdatebitbucketIntegrationRequest) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -59,7 +59,7 @@ func (o *UpdatebitbucketRepoIntegrationRequest) GetName() string { // 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 *UpdatebitbucketRepoIntegrationRequest) GetNameOk() (*string, bool) { +func (o *UpdatebitbucketIntegrationRequest) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -67,7 +67,7 @@ func (o *UpdatebitbucketRepoIntegrationRequest) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *UpdatebitbucketRepoIntegrationRequest) HasName() bool { +func (o *UpdatebitbucketIntegrationRequest) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -76,14 +76,14 @@ func (o *UpdatebitbucketRepoIntegrationRequest) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *UpdatebitbucketRepoIntegrationRequest) SetName(v string) { +func (o *UpdatebitbucketIntegrationRequest) SetName(v string) { o.Name = &v } // GetParameters returns the Parameters field value if set, zero value otherwise. -func (o *UpdatebitbucketRepoIntegrationRequest) GetParameters() UpdatebitbucketRepoIntegrationRequestParameters { +func (o *UpdatebitbucketIntegrationRequest) GetParameters() UpdatebitbucketIntegrationRequestParameters { if o == nil || IsNil(o.Parameters) { - var ret UpdatebitbucketRepoIntegrationRequestParameters + var ret UpdatebitbucketIntegrationRequestParameters return ret } return *o.Parameters @@ -91,7 +91,7 @@ func (o *UpdatebitbucketRepoIntegrationRequest) GetParameters() UpdatebitbucketR // 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 *UpdatebitbucketRepoIntegrationRequest) GetParametersOk() (*UpdatebitbucketRepoIntegrationRequestParameters, bool) { +func (o *UpdatebitbucketIntegrationRequest) GetParametersOk() (*UpdatebitbucketIntegrationRequestParameters, bool) { if o == nil || IsNil(o.Parameters) { return nil, false } @@ -99,7 +99,7 @@ func (o *UpdatebitbucketRepoIntegrationRequest) GetParametersOk() (*Updatebitbuc } // HasParameters returns a boolean if a field has been set. -func (o *UpdatebitbucketRepoIntegrationRequest) HasParameters() bool { +func (o *UpdatebitbucketIntegrationRequest) HasParameters() bool { if o != nil && !IsNil(o.Parameters) { return true } @@ -107,13 +107,13 @@ func (o *UpdatebitbucketRepoIntegrationRequest) HasParameters() bool { return false } -// SetParameters gets a reference to the given UpdatebitbucketRepoIntegrationRequestParameters and assigns it to the Parameters field. -func (o *UpdatebitbucketRepoIntegrationRequest) SetParameters(v UpdatebitbucketRepoIntegrationRequestParameters) { +// SetParameters gets a reference to the given UpdatebitbucketIntegrationRequestParameters and assigns it to the Parameters field. +func (o *UpdatebitbucketIntegrationRequest) SetParameters(v UpdatebitbucketIntegrationRequestParameters) { o.Parameters = &v } // GetProxyId returns the ProxyId field value if set, zero value otherwise. -func (o *UpdatebitbucketRepoIntegrationRequest) GetProxyId() string { +func (o *UpdatebitbucketIntegrationRequest) GetProxyId() string { if o == nil || IsNil(o.ProxyId) { var ret string return ret @@ -123,7 +123,7 @@ func (o *UpdatebitbucketRepoIntegrationRequest) GetProxyId() string { // GetProxyIdOk returns a tuple with the ProxyId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdatebitbucketRepoIntegrationRequest) GetProxyIdOk() (*string, bool) { +func (o *UpdatebitbucketIntegrationRequest) GetProxyIdOk() (*string, bool) { if o == nil || IsNil(o.ProxyId) { return nil, false } @@ -131,7 +131,7 @@ func (o *UpdatebitbucketRepoIntegrationRequest) GetProxyIdOk() (*string, bool) { } // HasProxyId returns a boolean if a field has been set. -func (o *UpdatebitbucketRepoIntegrationRequest) HasProxyId() bool { +func (o *UpdatebitbucketIntegrationRequest) HasProxyId() bool { if o != nil && !IsNil(o.ProxyId) { return true } @@ -140,12 +140,12 @@ func (o *UpdatebitbucketRepoIntegrationRequest) HasProxyId() bool { } // SetProxyId gets a reference to the given string and assigns it to the ProxyId field. -func (o *UpdatebitbucketRepoIntegrationRequest) SetProxyId(v string) { +func (o *UpdatebitbucketIntegrationRequest) SetProxyId(v string) { o.ProxyId = &v } // GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *UpdatebitbucketRepoIntegrationRequest) GetProjectIds() []string { +func (o *UpdatebitbucketIntegrationRequest) GetProjectIds() []string { if o == nil || IsNil(o.ProjectIds) { var ret []string return ret @@ -155,7 +155,7 @@ func (o *UpdatebitbucketRepoIntegrationRequest) GetProjectIds() []string { // GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdatebitbucketRepoIntegrationRequest) GetProjectIdsOk() ([]string, bool) { +func (o *UpdatebitbucketIntegrationRequest) GetProjectIdsOk() ([]string, bool) { if o == nil || IsNil(o.ProjectIds) { return nil, false } @@ -163,7 +163,7 @@ func (o *UpdatebitbucketRepoIntegrationRequest) GetProjectIdsOk() ([]string, boo } // HasProjectIds returns a boolean if a field has been set. -func (o *UpdatebitbucketRepoIntegrationRequest) HasProjectIds() bool { +func (o *UpdatebitbucketIntegrationRequest) HasProjectIds() bool { if o != nil && !IsNil(o.ProjectIds) { return true } @@ -172,11 +172,11 @@ func (o *UpdatebitbucketRepoIntegrationRequest) HasProjectIds() bool { } // SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *UpdatebitbucketRepoIntegrationRequest) SetProjectIds(v []string) { +func (o *UpdatebitbucketIntegrationRequest) SetProjectIds(v []string) { o.ProjectIds = v } -func (o UpdatebitbucketRepoIntegrationRequest) MarshalJSON() ([]byte, error) { +func (o UpdatebitbucketIntegrationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -184,7 +184,7 @@ func (o UpdatebitbucketRepoIntegrationRequest) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o UpdatebitbucketRepoIntegrationRequest) ToMap() (map[string]interface{}, error) { +func (o UpdatebitbucketIntegrationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -206,16 +206,16 @@ func (o UpdatebitbucketRepoIntegrationRequest) ToMap() (map[string]interface{}, return toSerialize, nil } -func (o *UpdatebitbucketRepoIntegrationRequest) UnmarshalJSON(data []byte) (err error) { - varUpdatebitbucketRepoIntegrationRequest := _UpdatebitbucketRepoIntegrationRequest{} +func (o *UpdatebitbucketIntegrationRequest) UnmarshalJSON(data []byte) (err error) { + varUpdatebitbucketIntegrationRequest := _UpdatebitbucketIntegrationRequest{} - err = json.Unmarshal(data, &varUpdatebitbucketRepoIntegrationRequest) + err = json.Unmarshal(data, &varUpdatebitbucketIntegrationRequest) if err != nil { return err } - *o = UpdatebitbucketRepoIntegrationRequest(varUpdatebitbucketRepoIntegrationRequest) + *o = UpdatebitbucketIntegrationRequest(varUpdatebitbucketIntegrationRequest) additionalProperties := make(map[string]interface{}) @@ -230,38 +230,38 @@ func (o *UpdatebitbucketRepoIntegrationRequest) UnmarshalJSON(data []byte) (err return err } -type NullableUpdatebitbucketRepoIntegrationRequest struct { - value *UpdatebitbucketRepoIntegrationRequest +type NullableUpdatebitbucketIntegrationRequest struct { + value *UpdatebitbucketIntegrationRequest isSet bool } -func (v NullableUpdatebitbucketRepoIntegrationRequest) Get() *UpdatebitbucketRepoIntegrationRequest { +func (v NullableUpdatebitbucketIntegrationRequest) Get() *UpdatebitbucketIntegrationRequest { return v.value } -func (v *NullableUpdatebitbucketRepoIntegrationRequest) Set(val *UpdatebitbucketRepoIntegrationRequest) { +func (v *NullableUpdatebitbucketIntegrationRequest) Set(val *UpdatebitbucketIntegrationRequest) { v.value = val v.isSet = true } -func (v NullableUpdatebitbucketRepoIntegrationRequest) IsSet() bool { +func (v NullableUpdatebitbucketIntegrationRequest) IsSet() bool { return v.isSet } -func (v *NullableUpdatebitbucketRepoIntegrationRequest) Unset() { +func (v *NullableUpdatebitbucketIntegrationRequest) Unset() { v.value = nil v.isSet = false } -func NewNullableUpdatebitbucketRepoIntegrationRequest(val *UpdatebitbucketRepoIntegrationRequest) *NullableUpdatebitbucketRepoIntegrationRequest { - return &NullableUpdatebitbucketRepoIntegrationRequest{value: val, isSet: true} +func NewNullableUpdatebitbucketIntegrationRequest(val *UpdatebitbucketIntegrationRequest) *NullableUpdatebitbucketIntegrationRequest { + return &NullableUpdatebitbucketIntegrationRequest{value: val, isSet: true} } -func (v NullableUpdatebitbucketRepoIntegrationRequest) MarshalJSON() ([]byte, error) { +func (v NullableUpdatebitbucketIntegrationRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableUpdatebitbucketRepoIntegrationRequest) UnmarshalJSON(src []byte) error { +func (v *NullableUpdatebitbucketIntegrationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_updatebitbucket_integration_request_parameters.go b/pkg/api/v3/model_updatebitbucket_integration_request_parameters.go new file mode 100644 index 00000000..033c5b11 --- /dev/null +++ b/pkg/api/v3/model_updatebitbucket_integration_request_parameters.go @@ -0,0 +1,298 @@ +/* +Escape Public API + +This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). + +API version: 3.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v3 + +import ( + "encoding/json" + "fmt" +) + +// checks if the UpdatebitbucketIntegrationRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdatebitbucketIntegrationRequestParameters{} + +// UpdatebitbucketIntegrationRequestParameters The new parameters of the integration +type UpdatebitbucketIntegrationRequestParameters struct { + Email string `json:"email"` + ApiKey string `json:"api_key"` + WorkspaceSlug string `json:"workspace_slug"` + InstanceUrl *string `json:"instance_url,omitempty"` + LocationId *string `json:"location_id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdatebitbucketIntegrationRequestParameters UpdatebitbucketIntegrationRequestParameters + +// NewUpdatebitbucketIntegrationRequestParameters instantiates a new UpdatebitbucketIntegrationRequestParameters 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 NewUpdatebitbucketIntegrationRequestParameters(email string, apiKey string, workspaceSlug string) *UpdatebitbucketIntegrationRequestParameters { + this := UpdatebitbucketIntegrationRequestParameters{} + this.Email = email + this.ApiKey = apiKey + this.WorkspaceSlug = workspaceSlug + return &this +} + +// NewUpdatebitbucketIntegrationRequestParametersWithDefaults instantiates a new UpdatebitbucketIntegrationRequestParameters 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 NewUpdatebitbucketIntegrationRequestParametersWithDefaults() *UpdatebitbucketIntegrationRequestParameters { + this := UpdatebitbucketIntegrationRequestParameters{} + return &this +} + +// GetEmail returns the Email field value +func (o *UpdatebitbucketIntegrationRequestParameters) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *UpdatebitbucketIntegrationRequestParameters) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *UpdatebitbucketIntegrationRequestParameters) SetEmail(v string) { + o.Email = v +} + +// GetApiKey returns the ApiKey field value +func (o *UpdatebitbucketIntegrationRequestParameters) GetApiKey() string { + if o == nil { + var ret string + return ret + } + + return o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value +// and a boolean to check if the value has been set. +func (o *UpdatebitbucketIntegrationRequestParameters) GetApiKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiKey, true +} + +// SetApiKey sets field value +func (o *UpdatebitbucketIntegrationRequestParameters) SetApiKey(v string) { + o.ApiKey = v +} + +// GetWorkspaceSlug returns the WorkspaceSlug field value +func (o *UpdatebitbucketIntegrationRequestParameters) GetWorkspaceSlug() string { + if o == nil { + var ret string + return ret + } + + return o.WorkspaceSlug +} + +// GetWorkspaceSlugOk returns a tuple with the WorkspaceSlug field value +// and a boolean to check if the value has been set. +func (o *UpdatebitbucketIntegrationRequestParameters) GetWorkspaceSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkspaceSlug, true +} + +// SetWorkspaceSlug sets field value +func (o *UpdatebitbucketIntegrationRequestParameters) SetWorkspaceSlug(v string) { + o.WorkspaceSlug = v +} + +// GetInstanceUrl returns the InstanceUrl field value if set, zero value otherwise. +func (o *UpdatebitbucketIntegrationRequestParameters) GetInstanceUrl() string { + if o == nil || IsNil(o.InstanceUrl) { + var ret string + return ret + } + return *o.InstanceUrl +} + +// GetInstanceUrlOk returns a tuple with the InstanceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatebitbucketIntegrationRequestParameters) GetInstanceUrlOk() (*string, bool) { + if o == nil || IsNil(o.InstanceUrl) { + return nil, false + } + return o.InstanceUrl, true +} + +// HasInstanceUrl returns a boolean if a field has been set. +func (o *UpdatebitbucketIntegrationRequestParameters) HasInstanceUrl() bool { + if o != nil && !IsNil(o.InstanceUrl) { + return true + } + + return false +} + +// SetInstanceUrl gets a reference to the given string and assigns it to the InstanceUrl field. +func (o *UpdatebitbucketIntegrationRequestParameters) SetInstanceUrl(v string) { + o.InstanceUrl = &v +} + +// GetLocationId returns the LocationId field value if set, zero value otherwise. +func (o *UpdatebitbucketIntegrationRequestParameters) GetLocationId() string { + if o == nil || IsNil(o.LocationId) { + var ret string + return ret + } + return *o.LocationId +} + +// GetLocationIdOk returns a tuple with the LocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatebitbucketIntegrationRequestParameters) GetLocationIdOk() (*string, bool) { + if o == nil || IsNil(o.LocationId) { + return nil, false + } + return o.LocationId, true +} + +// HasLocationId returns a boolean if a field has been set. +func (o *UpdatebitbucketIntegrationRequestParameters) HasLocationId() bool { + if o != nil && !IsNil(o.LocationId) { + return true + } + + return false +} + +// SetLocationId gets a reference to the given string and assigns it to the LocationId field. +func (o *UpdatebitbucketIntegrationRequestParameters) SetLocationId(v string) { + o.LocationId = &v +} + +func (o UpdatebitbucketIntegrationRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdatebitbucketIntegrationRequestParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + toSerialize["api_key"] = o.ApiKey + toSerialize["workspace_slug"] = o.WorkspaceSlug + if !IsNil(o.InstanceUrl) { + toSerialize["instance_url"] = o.InstanceUrl + } + if !IsNil(o.LocationId) { + toSerialize["location_id"] = o.LocationId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdatebitbucketIntegrationRequestParameters) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "email", + "api_key", + "workspace_slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdatebitbucketIntegrationRequestParameters := _UpdatebitbucketIntegrationRequestParameters{} + + err = json.Unmarshal(data, &varUpdatebitbucketIntegrationRequestParameters) + + if err != nil { + return err + } + + *o = UpdatebitbucketIntegrationRequestParameters(varUpdatebitbucketIntegrationRequestParameters) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "email") + delete(additionalProperties, "api_key") + delete(additionalProperties, "workspace_slug") + delete(additionalProperties, "instance_url") + delete(additionalProperties, "location_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdatebitbucketIntegrationRequestParameters struct { + value *UpdatebitbucketIntegrationRequestParameters + isSet bool +} + +func (v NullableUpdatebitbucketIntegrationRequestParameters) Get() *UpdatebitbucketIntegrationRequestParameters { + return v.value +} + +func (v *NullableUpdatebitbucketIntegrationRequestParameters) Set(val *UpdatebitbucketIntegrationRequestParameters) { + v.value = val + v.isSet = true +} + +func (v NullableUpdatebitbucketIntegrationRequestParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdatebitbucketIntegrationRequestParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdatebitbucketIntegrationRequestParameters(val *UpdatebitbucketIntegrationRequestParameters) *NullableUpdatebitbucketIntegrationRequestParameters { + return &NullableUpdatebitbucketIntegrationRequestParameters{value: val, isSet: true} +} + +func (v NullableUpdatebitbucketIntegrationRequestParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdatebitbucketIntegrationRequestParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/api/v3/model_updatebitbucket_repo_integration_request_parameters.go b/pkg/api/v3/model_updatebitbucket_repo_integration_request_parameters.go deleted file mode 100644 index be859e4f..00000000 --- a/pkg/api/v3/model_updatebitbucket_repo_integration_request_parameters.go +++ /dev/null @@ -1,298 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the UpdatebitbucketRepoIntegrationRequestParameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdatebitbucketRepoIntegrationRequestParameters{} - -// UpdatebitbucketRepoIntegrationRequestParameters The new parameters of the integration -type UpdatebitbucketRepoIntegrationRequestParameters struct { - ApiKey string `json:"api_key"` - WorkspaceName string `json:"workspace_name"` - RepositoryName string `json:"repository_name"` - Username *string `json:"username,omitempty"` - InstanceUrl *string `json:"instance_url,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _UpdatebitbucketRepoIntegrationRequestParameters UpdatebitbucketRepoIntegrationRequestParameters - -// NewUpdatebitbucketRepoIntegrationRequestParameters instantiates a new UpdatebitbucketRepoIntegrationRequestParameters 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 NewUpdatebitbucketRepoIntegrationRequestParameters(apiKey string, workspaceName string, repositoryName string) *UpdatebitbucketRepoIntegrationRequestParameters { - this := UpdatebitbucketRepoIntegrationRequestParameters{} - this.ApiKey = apiKey - this.WorkspaceName = workspaceName - this.RepositoryName = repositoryName - return &this -} - -// NewUpdatebitbucketRepoIntegrationRequestParametersWithDefaults instantiates a new UpdatebitbucketRepoIntegrationRequestParameters 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 NewUpdatebitbucketRepoIntegrationRequestParametersWithDefaults() *UpdatebitbucketRepoIntegrationRequestParameters { - this := UpdatebitbucketRepoIntegrationRequestParameters{} - return &this -} - -// GetApiKey returns the ApiKey field value -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetApiKey() string { - if o == nil { - var ret string - return ret - } - - return o.ApiKey -} - -// GetApiKeyOk returns a tuple with the ApiKey field value -// and a boolean to check if the value has been set. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetApiKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ApiKey, true -} - -// SetApiKey sets field value -func (o *UpdatebitbucketRepoIntegrationRequestParameters) SetApiKey(v string) { - o.ApiKey = v -} - -// GetWorkspaceName returns the WorkspaceName field value -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetWorkspaceName() string { - if o == nil { - var ret string - return ret - } - - return o.WorkspaceName -} - -// GetWorkspaceNameOk returns a tuple with the WorkspaceName field value -// and a boolean to check if the value has been set. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetWorkspaceNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.WorkspaceName, true -} - -// SetWorkspaceName sets field value -func (o *UpdatebitbucketRepoIntegrationRequestParameters) SetWorkspaceName(v string) { - o.WorkspaceName = v -} - -// GetRepositoryName returns the RepositoryName field value -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetRepositoryName() string { - if o == nil { - var ret string - return ret - } - - return o.RepositoryName -} - -// GetRepositoryNameOk returns a tuple with the RepositoryName field value -// and a boolean to check if the value has been set. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetRepositoryNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.RepositoryName, true -} - -// SetRepositoryName sets field value -func (o *UpdatebitbucketRepoIntegrationRequestParameters) SetRepositoryName(v string) { - o.RepositoryName = v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetUsername() string { - if o == nil || IsNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetUsernameOk() (*string, bool) { - if o == nil || IsNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) HasUsername() bool { - if o != nil && !IsNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) SetUsername(v string) { - o.Username = &v -} - -// GetInstanceUrl returns the InstanceUrl field value if set, zero value otherwise. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetInstanceUrl() string { - if o == nil || IsNil(o.InstanceUrl) { - var ret string - return ret - } - return *o.InstanceUrl -} - -// GetInstanceUrlOk returns a tuple with the InstanceUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) GetInstanceUrlOk() (*string, bool) { - if o == nil || IsNil(o.InstanceUrl) { - return nil, false - } - return o.InstanceUrl, true -} - -// HasInstanceUrl returns a boolean if a field has been set. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) HasInstanceUrl() bool { - if o != nil && !IsNil(o.InstanceUrl) { - return true - } - - return false -} - -// SetInstanceUrl gets a reference to the given string and assigns it to the InstanceUrl field. -func (o *UpdatebitbucketRepoIntegrationRequestParameters) SetInstanceUrl(v string) { - o.InstanceUrl = &v -} - -func (o UpdatebitbucketRepoIntegrationRequestParameters) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o UpdatebitbucketRepoIntegrationRequestParameters) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["api_key"] = o.ApiKey - toSerialize["workspace_name"] = o.WorkspaceName - toSerialize["repository_name"] = o.RepositoryName - if !IsNil(o.Username) { - toSerialize["username"] = o.Username - } - if !IsNil(o.InstanceUrl) { - toSerialize["instance_url"] = o.InstanceUrl - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *UpdatebitbucketRepoIntegrationRequestParameters) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "api_key", - "workspace_name", - "repository_name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varUpdatebitbucketRepoIntegrationRequestParameters := _UpdatebitbucketRepoIntegrationRequestParameters{} - - err = json.Unmarshal(data, &varUpdatebitbucketRepoIntegrationRequestParameters) - - if err != nil { - return err - } - - *o = UpdatebitbucketRepoIntegrationRequestParameters(varUpdatebitbucketRepoIntegrationRequestParameters) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "api_key") - delete(additionalProperties, "workspace_name") - delete(additionalProperties, "repository_name") - delete(additionalProperties, "username") - delete(additionalProperties, "instance_url") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableUpdatebitbucketRepoIntegrationRequestParameters struct { - value *UpdatebitbucketRepoIntegrationRequestParameters - isSet bool -} - -func (v NullableUpdatebitbucketRepoIntegrationRequestParameters) Get() *UpdatebitbucketRepoIntegrationRequestParameters { - return v.value -} - -func (v *NullableUpdatebitbucketRepoIntegrationRequestParameters) Set(val *UpdatebitbucketRepoIntegrationRequestParameters) { - v.value = val - v.isSet = true -} - -func (v NullableUpdatebitbucketRepoIntegrationRequestParameters) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdatebitbucketRepoIntegrationRequestParameters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdatebitbucketRepoIntegrationRequestParameters(val *UpdatebitbucketRepoIntegrationRequestParameters) *NullableUpdatebitbucketRepoIntegrationRequestParameters { - return &NullableUpdatebitbucketRepoIntegrationRequestParameters{value: val, isSet: true} -} - -func (v NullableUpdatebitbucketRepoIntegrationRequestParameters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUpdatebitbucketRepoIntegrationRequestParameters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/api/v3/model_updateapigee_integration_request.go b/pkg/api/v3/model_updategcp_integration_request.go similarity index 57% rename from pkg/api/v3/model_updateapigee_integration_request.go rename to pkg/api/v3/model_updategcp_integration_request.go index e26ee23a..691c0cf0 100644 --- a/pkg/api/v3/model_updateapigee_integration_request.go +++ b/pkg/api/v3/model_updategcp_integration_request.go @@ -14,14 +14,14 @@ import ( "encoding/json" ) -// checks if the UpdateapigeeIntegrationRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateapigeeIntegrationRequest{} +// checks if the UpdategcpIntegrationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdategcpIntegrationRequest{} -// UpdateapigeeIntegrationRequest struct for UpdateapigeeIntegrationRequest -type UpdateapigeeIntegrationRequest struct { +// UpdategcpIntegrationRequest struct for UpdategcpIntegrationRequest +type UpdategcpIntegrationRequest struct { // The new name of the integration - Name *string `json:"name,omitempty"` - Parameters *UpdateapigeeIntegrationRequestParameters `json:"parameters,omitempty"` + Name *string `json:"name,omitempty"` + Parameters *UpdategcpIntegrationRequestParameters `json:"parameters,omitempty"` // Optional proxy ID to attach to the integration ProxyId *string `json:"proxyId,omitempty"` // Optional list of project IDs to attach to the integration @@ -29,27 +29,27 @@ type UpdateapigeeIntegrationRequest struct { AdditionalProperties map[string]interface{} } -type _UpdateapigeeIntegrationRequest UpdateapigeeIntegrationRequest +type _UpdategcpIntegrationRequest UpdategcpIntegrationRequest -// NewUpdateapigeeIntegrationRequest instantiates a new UpdateapigeeIntegrationRequest object +// NewUpdategcpIntegrationRequest instantiates a new UpdategcpIntegrationRequest 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 NewUpdateapigeeIntegrationRequest() *UpdateapigeeIntegrationRequest { - this := UpdateapigeeIntegrationRequest{} +func NewUpdategcpIntegrationRequest() *UpdategcpIntegrationRequest { + this := UpdategcpIntegrationRequest{} return &this } -// NewUpdateapigeeIntegrationRequestWithDefaults instantiates a new UpdateapigeeIntegrationRequest object +// NewUpdategcpIntegrationRequestWithDefaults instantiates a new UpdategcpIntegrationRequest 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 NewUpdateapigeeIntegrationRequestWithDefaults() *UpdateapigeeIntegrationRequest { - this := UpdateapigeeIntegrationRequest{} +func NewUpdategcpIntegrationRequestWithDefaults() *UpdategcpIntegrationRequest { + this := UpdategcpIntegrationRequest{} return &this } // GetName returns the Name field value if set, zero value otherwise. -func (o *UpdateapigeeIntegrationRequest) GetName() string { +func (o *UpdategcpIntegrationRequest) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -59,7 +59,7 @@ func (o *UpdateapigeeIntegrationRequest) GetName() string { // 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 *UpdateapigeeIntegrationRequest) GetNameOk() (*string, bool) { +func (o *UpdategcpIntegrationRequest) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -67,7 +67,7 @@ func (o *UpdateapigeeIntegrationRequest) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *UpdateapigeeIntegrationRequest) HasName() bool { +func (o *UpdategcpIntegrationRequest) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -76,14 +76,14 @@ func (o *UpdateapigeeIntegrationRequest) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *UpdateapigeeIntegrationRequest) SetName(v string) { +func (o *UpdategcpIntegrationRequest) SetName(v string) { o.Name = &v } // GetParameters returns the Parameters field value if set, zero value otherwise. -func (o *UpdateapigeeIntegrationRequest) GetParameters() UpdateapigeeIntegrationRequestParameters { +func (o *UpdategcpIntegrationRequest) GetParameters() UpdategcpIntegrationRequestParameters { if o == nil || IsNil(o.Parameters) { - var ret UpdateapigeeIntegrationRequestParameters + var ret UpdategcpIntegrationRequestParameters return ret } return *o.Parameters @@ -91,7 +91,7 @@ func (o *UpdateapigeeIntegrationRequest) GetParameters() UpdateapigeeIntegration // 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 *UpdateapigeeIntegrationRequest) GetParametersOk() (*UpdateapigeeIntegrationRequestParameters, bool) { +func (o *UpdategcpIntegrationRequest) GetParametersOk() (*UpdategcpIntegrationRequestParameters, bool) { if o == nil || IsNil(o.Parameters) { return nil, false } @@ -99,7 +99,7 @@ func (o *UpdateapigeeIntegrationRequest) GetParametersOk() (*UpdateapigeeIntegra } // HasParameters returns a boolean if a field has been set. -func (o *UpdateapigeeIntegrationRequest) HasParameters() bool { +func (o *UpdategcpIntegrationRequest) HasParameters() bool { if o != nil && !IsNil(o.Parameters) { return true } @@ -107,13 +107,13 @@ func (o *UpdateapigeeIntegrationRequest) HasParameters() bool { return false } -// SetParameters gets a reference to the given UpdateapigeeIntegrationRequestParameters and assigns it to the Parameters field. -func (o *UpdateapigeeIntegrationRequest) SetParameters(v UpdateapigeeIntegrationRequestParameters) { +// SetParameters gets a reference to the given UpdategcpIntegrationRequestParameters and assigns it to the Parameters field. +func (o *UpdategcpIntegrationRequest) SetParameters(v UpdategcpIntegrationRequestParameters) { o.Parameters = &v } // GetProxyId returns the ProxyId field value if set, zero value otherwise. -func (o *UpdateapigeeIntegrationRequest) GetProxyId() string { +func (o *UpdategcpIntegrationRequest) GetProxyId() string { if o == nil || IsNil(o.ProxyId) { var ret string return ret @@ -123,7 +123,7 @@ func (o *UpdateapigeeIntegrationRequest) GetProxyId() string { // GetProxyIdOk returns a tuple with the ProxyId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequest) GetProxyIdOk() (*string, bool) { +func (o *UpdategcpIntegrationRequest) GetProxyIdOk() (*string, bool) { if o == nil || IsNil(o.ProxyId) { return nil, false } @@ -131,7 +131,7 @@ func (o *UpdateapigeeIntegrationRequest) GetProxyIdOk() (*string, bool) { } // HasProxyId returns a boolean if a field has been set. -func (o *UpdateapigeeIntegrationRequest) HasProxyId() bool { +func (o *UpdategcpIntegrationRequest) HasProxyId() bool { if o != nil && !IsNil(o.ProxyId) { return true } @@ -140,12 +140,12 @@ func (o *UpdateapigeeIntegrationRequest) HasProxyId() bool { } // SetProxyId gets a reference to the given string and assigns it to the ProxyId field. -func (o *UpdateapigeeIntegrationRequest) SetProxyId(v string) { +func (o *UpdategcpIntegrationRequest) SetProxyId(v string) { o.ProxyId = &v } // GetProjectIds returns the ProjectIds field value if set, zero value otherwise. -func (o *UpdateapigeeIntegrationRequest) GetProjectIds() []string { +func (o *UpdategcpIntegrationRequest) GetProjectIds() []string { if o == nil || IsNil(o.ProjectIds) { var ret []string return ret @@ -155,7 +155,7 @@ func (o *UpdateapigeeIntegrationRequest) GetProjectIds() []string { // GetProjectIdsOk returns a tuple with the ProjectIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateapigeeIntegrationRequest) GetProjectIdsOk() ([]string, bool) { +func (o *UpdategcpIntegrationRequest) GetProjectIdsOk() ([]string, bool) { if o == nil || IsNil(o.ProjectIds) { return nil, false } @@ -163,7 +163,7 @@ func (o *UpdateapigeeIntegrationRequest) GetProjectIdsOk() ([]string, bool) { } // HasProjectIds returns a boolean if a field has been set. -func (o *UpdateapigeeIntegrationRequest) HasProjectIds() bool { +func (o *UpdategcpIntegrationRequest) HasProjectIds() bool { if o != nil && !IsNil(o.ProjectIds) { return true } @@ -172,11 +172,11 @@ func (o *UpdateapigeeIntegrationRequest) HasProjectIds() bool { } // SetProjectIds gets a reference to the given []string and assigns it to the ProjectIds field. -func (o *UpdateapigeeIntegrationRequest) SetProjectIds(v []string) { +func (o *UpdategcpIntegrationRequest) SetProjectIds(v []string) { o.ProjectIds = v } -func (o UpdateapigeeIntegrationRequest) MarshalJSON() ([]byte, error) { +func (o UpdategcpIntegrationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -184,7 +184,7 @@ func (o UpdateapigeeIntegrationRequest) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o UpdateapigeeIntegrationRequest) ToMap() (map[string]interface{}, error) { +func (o UpdategcpIntegrationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -206,16 +206,16 @@ func (o UpdateapigeeIntegrationRequest) ToMap() (map[string]interface{}, error) return toSerialize, nil } -func (o *UpdateapigeeIntegrationRequest) UnmarshalJSON(data []byte) (err error) { - varUpdateapigeeIntegrationRequest := _UpdateapigeeIntegrationRequest{} +func (o *UpdategcpIntegrationRequest) UnmarshalJSON(data []byte) (err error) { + varUpdategcpIntegrationRequest := _UpdategcpIntegrationRequest{} - err = json.Unmarshal(data, &varUpdateapigeeIntegrationRequest) + err = json.Unmarshal(data, &varUpdategcpIntegrationRequest) if err != nil { return err } - *o = UpdateapigeeIntegrationRequest(varUpdateapigeeIntegrationRequest) + *o = UpdategcpIntegrationRequest(varUpdategcpIntegrationRequest) additionalProperties := make(map[string]interface{}) @@ -230,38 +230,38 @@ func (o *UpdateapigeeIntegrationRequest) UnmarshalJSON(data []byte) (err error) return err } -type NullableUpdateapigeeIntegrationRequest struct { - value *UpdateapigeeIntegrationRequest +type NullableUpdategcpIntegrationRequest struct { + value *UpdategcpIntegrationRequest isSet bool } -func (v NullableUpdateapigeeIntegrationRequest) Get() *UpdateapigeeIntegrationRequest { +func (v NullableUpdategcpIntegrationRequest) Get() *UpdategcpIntegrationRequest { return v.value } -func (v *NullableUpdateapigeeIntegrationRequest) Set(val *UpdateapigeeIntegrationRequest) { +func (v *NullableUpdategcpIntegrationRequest) Set(val *UpdategcpIntegrationRequest) { v.value = val v.isSet = true } -func (v NullableUpdateapigeeIntegrationRequest) IsSet() bool { +func (v NullableUpdategcpIntegrationRequest) IsSet() bool { return v.isSet } -func (v *NullableUpdateapigeeIntegrationRequest) Unset() { +func (v *NullableUpdategcpIntegrationRequest) Unset() { v.value = nil v.isSet = false } -func NewNullableUpdateapigeeIntegrationRequest(val *UpdateapigeeIntegrationRequest) *NullableUpdateapigeeIntegrationRequest { - return &NullableUpdateapigeeIntegrationRequest{value: val, isSet: true} +func NewNullableUpdategcpIntegrationRequest(val *UpdategcpIntegrationRequest) *NullableUpdategcpIntegrationRequest { + return &NullableUpdategcpIntegrationRequest{value: val, isSet: true} } -func (v NullableUpdateapigeeIntegrationRequest) MarshalJSON() ([]byte, error) { +func (v NullableUpdategcpIntegrationRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableUpdateapigeeIntegrationRequest) UnmarshalJSON(src []byte) error { +func (v *NullableUpdategcpIntegrationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_createapigee_integration_request_parameters.go b/pkg/api/v3/model_updategcp_integration_request_parameters.go similarity index 63% rename from pkg/api/v3/model_createapigee_integration_request_parameters.go rename to pkg/api/v3/model_updategcp_integration_request_parameters.go index 62dfd23e..b954c8d7 100644 --- a/pkg/api/v3/model_createapigee_integration_request_parameters.go +++ b/pkg/api/v3/model_updategcp_integration_request_parameters.go @@ -15,11 +15,11 @@ import ( "fmt" ) -// checks if the CreateapigeeIntegrationRequestParameters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateapigeeIntegrationRequestParameters{} +// checks if the UpdategcpIntegrationRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdategcpIntegrationRequestParameters{} -// CreateapigeeIntegrationRequestParameters The parameters of the integration -type CreateapigeeIntegrationRequestParameters struct { +// UpdategcpIntegrationRequestParameters The new parameters of the integration +type UpdategcpIntegrationRequestParameters struct { AuthProviderX509CertUrl string `json:"auth_provider_x509_cert_url"` AuthUri string `json:"auth_uri"` ClientEmail string `json:"client_email"` @@ -34,14 +34,14 @@ type CreateapigeeIntegrationRequestParameters struct { AdditionalProperties map[string]interface{} } -type _CreateapigeeIntegrationRequestParameters CreateapigeeIntegrationRequestParameters +type _UpdategcpIntegrationRequestParameters UpdategcpIntegrationRequestParameters -// NewCreateapigeeIntegrationRequestParameters instantiates a new CreateapigeeIntegrationRequestParameters object +// NewUpdategcpIntegrationRequestParameters instantiates a new UpdategcpIntegrationRequestParameters 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 NewCreateapigeeIntegrationRequestParameters(authProviderX509CertUrl string, authUri string, clientEmail string, clientId string, clientX509CertUrl string, privateKey string, privateKeyId string, projectId string, tokenUri string, type_ string, universeDomain string) *CreateapigeeIntegrationRequestParameters { - this := CreateapigeeIntegrationRequestParameters{} +func NewUpdategcpIntegrationRequestParameters(authProviderX509CertUrl string, authUri string, clientEmail string, clientId string, clientX509CertUrl string, privateKey string, privateKeyId string, projectId string, tokenUri string, type_ string, universeDomain string) *UpdategcpIntegrationRequestParameters { + this := UpdategcpIntegrationRequestParameters{} this.AuthProviderX509CertUrl = authProviderX509CertUrl this.AuthUri = authUri this.ClientEmail = clientEmail @@ -56,16 +56,16 @@ func NewCreateapigeeIntegrationRequestParameters(authProviderX509CertUrl string, return &this } -// NewCreateapigeeIntegrationRequestParametersWithDefaults instantiates a new CreateapigeeIntegrationRequestParameters object +// NewUpdategcpIntegrationRequestParametersWithDefaults instantiates a new UpdategcpIntegrationRequestParameters 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 NewCreateapigeeIntegrationRequestParametersWithDefaults() *CreateapigeeIntegrationRequestParameters { - this := CreateapigeeIntegrationRequestParameters{} +func NewUpdategcpIntegrationRequestParametersWithDefaults() *UpdategcpIntegrationRequestParameters { + this := UpdategcpIntegrationRequestParameters{} return &this } // GetAuthProviderX509CertUrl returns the AuthProviderX509CertUrl field value -func (o *CreateapigeeIntegrationRequestParameters) GetAuthProviderX509CertUrl() string { +func (o *UpdategcpIntegrationRequestParameters) GetAuthProviderX509CertUrl() string { if o == nil { var ret string return ret @@ -76,7 +76,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetAuthProviderX509CertUrl() // GetAuthProviderX509CertUrlOk returns a tuple with the AuthProviderX509CertUrl field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetAuthProviderX509CertUrlOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetAuthProviderX509CertUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -84,12 +84,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetAuthProviderX509CertUrlOk( } // SetAuthProviderX509CertUrl sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetAuthProviderX509CertUrl(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetAuthProviderX509CertUrl(v string) { o.AuthProviderX509CertUrl = v } // GetAuthUri returns the AuthUri field value -func (o *CreateapigeeIntegrationRequestParameters) GetAuthUri() string { +func (o *UpdategcpIntegrationRequestParameters) GetAuthUri() string { if o == nil { var ret string return ret @@ -100,7 +100,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetAuthUri() string { // GetAuthUriOk returns a tuple with the AuthUri field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetAuthUriOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetAuthUriOk() (*string, bool) { if o == nil { return nil, false } @@ -108,12 +108,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetAuthUriOk() (*string, bool } // SetAuthUri sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetAuthUri(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetAuthUri(v string) { o.AuthUri = v } // GetClientEmail returns the ClientEmail field value -func (o *CreateapigeeIntegrationRequestParameters) GetClientEmail() string { +func (o *UpdategcpIntegrationRequestParameters) GetClientEmail() string { if o == nil { var ret string return ret @@ -124,7 +124,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetClientEmail() string { // GetClientEmailOk returns a tuple with the ClientEmail field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetClientEmailOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetClientEmailOk() (*string, bool) { if o == nil { return nil, false } @@ -132,12 +132,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetClientEmailOk() (*string, } // SetClientEmail sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetClientEmail(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetClientEmail(v string) { o.ClientEmail = v } // GetClientId returns the ClientId field value -func (o *CreateapigeeIntegrationRequestParameters) GetClientId() string { +func (o *UpdategcpIntegrationRequestParameters) GetClientId() string { if o == nil { var ret string return ret @@ -148,7 +148,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetClientId() string { // GetClientIdOk returns a tuple with the ClientId field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetClientIdOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetClientIdOk() (*string, bool) { if o == nil { return nil, false } @@ -156,12 +156,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetClientIdOk() (*string, boo } // SetClientId sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetClientId(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetClientId(v string) { o.ClientId = v } // GetClientX509CertUrl returns the ClientX509CertUrl field value -func (o *CreateapigeeIntegrationRequestParameters) GetClientX509CertUrl() string { +func (o *UpdategcpIntegrationRequestParameters) GetClientX509CertUrl() string { if o == nil { var ret string return ret @@ -172,7 +172,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetClientX509CertUrl() string // GetClientX509CertUrlOk returns a tuple with the ClientX509CertUrl field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetClientX509CertUrlOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetClientX509CertUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -180,12 +180,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetClientX509CertUrlOk() (*st } // SetClientX509CertUrl sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetClientX509CertUrl(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetClientX509CertUrl(v string) { o.ClientX509CertUrl = v } // GetPrivateKey returns the PrivateKey field value -func (o *CreateapigeeIntegrationRequestParameters) GetPrivateKey() string { +func (o *UpdategcpIntegrationRequestParameters) GetPrivateKey() string { if o == nil { var ret string return ret @@ -196,7 +196,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetPrivateKey() string { // GetPrivateKeyOk returns a tuple with the PrivateKey field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetPrivateKeyOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetPrivateKeyOk() (*string, bool) { if o == nil { return nil, false } @@ -204,12 +204,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetPrivateKeyOk() (*string, b } // SetPrivateKey sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetPrivateKey(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetPrivateKey(v string) { o.PrivateKey = v } // GetPrivateKeyId returns the PrivateKeyId field value -func (o *CreateapigeeIntegrationRequestParameters) GetPrivateKeyId() string { +func (o *UpdategcpIntegrationRequestParameters) GetPrivateKeyId() string { if o == nil { var ret string return ret @@ -220,7 +220,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetPrivateKeyId() string { // GetPrivateKeyIdOk returns a tuple with the PrivateKeyId field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetPrivateKeyIdOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetPrivateKeyIdOk() (*string, bool) { if o == nil { return nil, false } @@ -228,12 +228,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetPrivateKeyIdOk() (*string, } // SetPrivateKeyId sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetPrivateKeyId(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetPrivateKeyId(v string) { o.PrivateKeyId = v } // GetProjectId returns the ProjectId field value -func (o *CreateapigeeIntegrationRequestParameters) GetProjectId() string { +func (o *UpdategcpIntegrationRequestParameters) GetProjectId() string { if o == nil { var ret string return ret @@ -244,7 +244,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetProjectId() string { // GetProjectIdOk returns a tuple with the ProjectId field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetProjectIdOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetProjectIdOk() (*string, bool) { if o == nil { return nil, false } @@ -252,12 +252,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetProjectIdOk() (*string, bo } // SetProjectId sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetProjectId(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetProjectId(v string) { o.ProjectId = v } // GetTokenUri returns the TokenUri field value -func (o *CreateapigeeIntegrationRequestParameters) GetTokenUri() string { +func (o *UpdategcpIntegrationRequestParameters) GetTokenUri() string { if o == nil { var ret string return ret @@ -268,7 +268,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetTokenUri() string { // GetTokenUriOk returns a tuple with the TokenUri field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetTokenUriOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetTokenUriOk() (*string, bool) { if o == nil { return nil, false } @@ -276,12 +276,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetTokenUriOk() (*string, boo } // SetTokenUri sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetTokenUri(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetTokenUri(v string) { o.TokenUri = v } // GetType returns the Type field value -func (o *CreateapigeeIntegrationRequestParameters) GetType() string { +func (o *UpdategcpIntegrationRequestParameters) GetType() string { if o == nil { var ret string return ret @@ -292,7 +292,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetTypeOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -300,12 +300,12 @@ func (o *CreateapigeeIntegrationRequestParameters) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetType(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetType(v string) { o.Type = v } // GetUniverseDomain returns the UniverseDomain field value -func (o *CreateapigeeIntegrationRequestParameters) GetUniverseDomain() string { +func (o *UpdategcpIntegrationRequestParameters) GetUniverseDomain() string { if o == nil { var ret string return ret @@ -316,7 +316,7 @@ func (o *CreateapigeeIntegrationRequestParameters) GetUniverseDomain() string { // GetUniverseDomainOk returns a tuple with the UniverseDomain field value // and a boolean to check if the value has been set. -func (o *CreateapigeeIntegrationRequestParameters) GetUniverseDomainOk() (*string, bool) { +func (o *UpdategcpIntegrationRequestParameters) GetUniverseDomainOk() (*string, bool) { if o == nil { return nil, false } @@ -324,11 +324,11 @@ func (o *CreateapigeeIntegrationRequestParameters) GetUniverseDomainOk() (*strin } // SetUniverseDomain sets field value -func (o *CreateapigeeIntegrationRequestParameters) SetUniverseDomain(v string) { +func (o *UpdategcpIntegrationRequestParameters) SetUniverseDomain(v string) { o.UniverseDomain = v } -func (o CreateapigeeIntegrationRequestParameters) MarshalJSON() ([]byte, error) { +func (o UpdategcpIntegrationRequestParameters) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -336,7 +336,7 @@ func (o CreateapigeeIntegrationRequestParameters) MarshalJSON() ([]byte, error) return json.Marshal(toSerialize) } -func (o CreateapigeeIntegrationRequestParameters) ToMap() (map[string]interface{}, error) { +func (o UpdategcpIntegrationRequestParameters) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["auth_provider_x509_cert_url"] = o.AuthProviderX509CertUrl toSerialize["auth_uri"] = o.AuthUri @@ -357,7 +357,7 @@ func (o CreateapigeeIntegrationRequestParameters) ToMap() (map[string]interface{ return toSerialize, nil } -func (o *CreateapigeeIntegrationRequestParameters) UnmarshalJSON(data []byte) (err error) { +func (o *UpdategcpIntegrationRequestParameters) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -389,15 +389,15 @@ func (o *CreateapigeeIntegrationRequestParameters) UnmarshalJSON(data []byte) (e } } - varCreateapigeeIntegrationRequestParameters := _CreateapigeeIntegrationRequestParameters{} + varUpdategcpIntegrationRequestParameters := _UpdategcpIntegrationRequestParameters{} - err = json.Unmarshal(data, &varCreateapigeeIntegrationRequestParameters) + err = json.Unmarshal(data, &varUpdategcpIntegrationRequestParameters) if err != nil { return err } - *o = CreateapigeeIntegrationRequestParameters(varCreateapigeeIntegrationRequestParameters) + *o = UpdategcpIntegrationRequestParameters(varUpdategcpIntegrationRequestParameters) additionalProperties := make(map[string]interface{}) @@ -419,38 +419,38 @@ func (o *CreateapigeeIntegrationRequestParameters) UnmarshalJSON(data []byte) (e return err } -type NullableCreateapigeeIntegrationRequestParameters struct { - value *CreateapigeeIntegrationRequestParameters +type NullableUpdategcpIntegrationRequestParameters struct { + value *UpdategcpIntegrationRequestParameters isSet bool } -func (v NullableCreateapigeeIntegrationRequestParameters) Get() *CreateapigeeIntegrationRequestParameters { +func (v NullableUpdategcpIntegrationRequestParameters) Get() *UpdategcpIntegrationRequestParameters { return v.value } -func (v *NullableCreateapigeeIntegrationRequestParameters) Set(val *CreateapigeeIntegrationRequestParameters) { +func (v *NullableUpdategcpIntegrationRequestParameters) Set(val *UpdategcpIntegrationRequestParameters) { v.value = val v.isSet = true } -func (v NullableCreateapigeeIntegrationRequestParameters) IsSet() bool { +func (v NullableUpdategcpIntegrationRequestParameters) IsSet() bool { return v.isSet } -func (v *NullableCreateapigeeIntegrationRequestParameters) Unset() { +func (v *NullableUpdategcpIntegrationRequestParameters) Unset() { v.value = nil v.isSet = false } -func NewNullableCreateapigeeIntegrationRequestParameters(val *CreateapigeeIntegrationRequestParameters) *NullableCreateapigeeIntegrationRequestParameters { - return &NullableCreateapigeeIntegrationRequestParameters{value: val, isSet: true} +func NewNullableUpdategcpIntegrationRequestParameters(val *UpdategcpIntegrationRequestParameters) *NullableUpdategcpIntegrationRequestParameters { + return &NullableUpdategcpIntegrationRequestParameters{value: val, isSet: true} } -func (v NullableCreateapigeeIntegrationRequestParameters) MarshalJSON() ([]byte, error) { +func (v NullableUpdategcpIntegrationRequestParameters) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCreateapigeeIntegrationRequestParameters) UnmarshalJSON(src []byte) error { +func (v *NullableUpdategcpIntegrationRequestParameters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/api/v3/model_workflow_detailed_actions_inner.go b/pkg/api/v3/model_workflow_detailed_actions_inner.go deleted file mode 100644 index 6da181ec..00000000 --- a/pkg/api/v3/model_workflow_detailed_actions_inner.go +++ /dev/null @@ -1,270 +0,0 @@ -/* -Escape Public API - -This API enables you to operate [Escape](https://escape.tech/) programmatically. All requests must be authenticated with a valid API key, provided in the `X-ESCAPE-API-KEY` header. For example: `X-ESCAPE-API-KEY: YOUR_API_KEY`. You can find your API key in the [Escape dashboard](http://app.escape.tech/user/). - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v3 - -import ( - "encoding/json" - "fmt" -) - -// checks if the WorkflowDetailedActionsInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WorkflowDetailedActionsInner{} - -// WorkflowDetailedActionsInner struct for WorkflowDetailedActionsInner -type WorkflowDetailedActionsInner struct { - Id string `json:"id"` - Type ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE `json:"type"` - Parameters interface{} `json:"parameters,omitempty"` - Integration *WorkflowDetailedActionsInnerIntegration `json:"integration,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _WorkflowDetailedActionsInner WorkflowDetailedActionsInner - -// NewWorkflowDetailedActionsInner instantiates a new WorkflowDetailedActionsInner 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 NewWorkflowDetailedActionsInner(id string, type_ ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE) *WorkflowDetailedActionsInner { - this := WorkflowDetailedActionsInner{} - this.Id = id - this.Type = type_ - return &this -} - -// NewWorkflowDetailedActionsInnerWithDefaults instantiates a new WorkflowDetailedActionsInner 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 NewWorkflowDetailedActionsInnerWithDefaults() *WorkflowDetailedActionsInner { - this := WorkflowDetailedActionsInner{} - return &this -} - -// GetId returns the Id field value -func (o *WorkflowDetailedActionsInner) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *WorkflowDetailedActionsInner) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *WorkflowDetailedActionsInner) SetId(v string) { - o.Id = v -} - -// GetType returns the Type field value -func (o *WorkflowDetailedActionsInner) GetType() ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE { - if o == nil { - var ret ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *WorkflowDetailedActionsInner) GetTypeOk() (*ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *WorkflowDetailedActionsInner) SetType(v ENUMPROPERTIESACTIONSITEMSPROPERTIESTYPE) { - o.Type = v -} - -// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WorkflowDetailedActionsInner) GetParameters() interface{} { - if o == nil { - var ret interface{} - 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. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WorkflowDetailedActionsInner) GetParametersOk() (*interface{}, bool) { - if o == nil || IsNil(o.Parameters) { - return nil, false - } - return &o.Parameters, true -} - -// HasParameters returns a boolean if a field has been set. -func (o *WorkflowDetailedActionsInner) HasParameters() bool { - if o != nil && !IsNil(o.Parameters) { - return true - } - - return false -} - -// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field. -func (o *WorkflowDetailedActionsInner) SetParameters(v interface{}) { - o.Parameters = v -} - -// GetIntegration returns the Integration field value if set, zero value otherwise. -func (o *WorkflowDetailedActionsInner) GetIntegration() WorkflowDetailedActionsInnerIntegration { - if o == nil || IsNil(o.Integration) { - var ret WorkflowDetailedActionsInnerIntegration - return ret - } - return *o.Integration -} - -// GetIntegrationOk returns a tuple with the Integration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WorkflowDetailedActionsInner) GetIntegrationOk() (*WorkflowDetailedActionsInnerIntegration, bool) { - if o == nil || IsNil(o.Integration) { - return nil, false - } - return o.Integration, true -} - -// HasIntegration returns a boolean if a field has been set. -func (o *WorkflowDetailedActionsInner) HasIntegration() bool { - if o != nil && !IsNil(o.Integration) { - return true - } - - return false -} - -// SetIntegration gets a reference to the given WorkflowDetailedActionsInnerIntegration and assigns it to the Integration field. -func (o *WorkflowDetailedActionsInner) SetIntegration(v WorkflowDetailedActionsInnerIntegration) { - o.Integration = &v -} - -func (o WorkflowDetailedActionsInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WorkflowDetailedActionsInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["type"] = o.Type - if o.Parameters != nil { - toSerialize["parameters"] = o.Parameters - } - if !IsNil(o.Integration) { - toSerialize["integration"] = o.Integration - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *WorkflowDetailedActionsInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "id", - "type", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWorkflowDetailedActionsInner := _WorkflowDetailedActionsInner{} - - err = json.Unmarshal(data, &varWorkflowDetailedActionsInner) - - if err != nil { - return err - } - - *o = WorkflowDetailedActionsInner(varWorkflowDetailedActionsInner) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "type") - delete(additionalProperties, "parameters") - delete(additionalProperties, "integration") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableWorkflowDetailedActionsInner struct { - value *WorkflowDetailedActionsInner - isSet bool -} - -func (v NullableWorkflowDetailedActionsInner) Get() *WorkflowDetailedActionsInner { - return v.value -} - -func (v *NullableWorkflowDetailedActionsInner) Set(val *WorkflowDetailedActionsInner) { - v.value = val - v.isSet = true -} - -func (v NullableWorkflowDetailedActionsInner) IsSet() bool { - return v.isSet -} - -func (v *NullableWorkflowDetailedActionsInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWorkflowDetailedActionsInner(val *WorkflowDetailedActionsInner) *NullableWorkflowDetailedActionsInner { - return &NullableWorkflowDetailedActionsInner{value: val, isSet: true} -} - -func (v NullableWorkflowDetailedActionsInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWorkflowDetailedActionsInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/cli/cmd/scans.go b/pkg/cli/cmd/scans.go index 273add05..631a1930 100644 --- a/pkg/cli/cmd/scans.go +++ b/pkg/cli/cmd/scans.go @@ -445,7 +445,7 @@ func watchScan(ctx context.Context, scanID string) error { if err != nil { return fmt.Errorf("unable to watch scan: %w", err) } - var status *v3.ScanDetailed1 + var status *v3.StartScan200Response for event := range ch { if event == nil { continue diff --git a/scripts/convert.py b/scripts/convert.py index c6e149e2..275a679e 100644 --- a/scripts/convert.py +++ b/scripts/convert.py @@ -29,6 +29,18 @@ "framework": "ENUMPROPERTIESFRAMEWORK", } + +def _enum_sort_key(value: Any) -> str: + return json.dumps(value, sort_keys=True) + + +def _sorted_enum_values(values: list[Any]) -> list[Any]: + return sorted(values, key=_enum_sort_key) + + +def _enum_cache_key(values: list[Any]) -> str: + return "-".join(_enum_sort_key(value) for value in _sorted_enum_values(values)) + def md5(s: str) -> str: return hashlib.md5(s.encode()).hexdigest() @@ -45,7 +57,7 @@ def _enum_name(path: list[str], value: dict) -> str: except Exception: pass - cache_key = '-'.join(sorted(value["enum"])) + cache_key = _enum_cache_key(value["enum"]) if cache_key in cache: return cache[cache_key] @@ -56,7 +68,7 @@ def _enum_name(path: list[str], value: dict) -> str: raw += "_".join(path) final = re.sub(r"[^a-zA-Z0-9_]", "_", raw).upper() if len(final) > 200: - final = "Enum_" + md5("-".join(sorted(value["enum"]))) + final = "Enum_" + md5(cache_key) cache[cache_key] = final return final @@ -77,7 +89,7 @@ def _rec_extract_enums(schema: dict, path: list[str]) -> tuple[dict, dict[str, d if target in enums and 'enum' in enums[target]: existing = set(enums[target]['enum']) incoming = set(schema['enum']) - merged = sorted(existing.union(incoming)) + merged = _sorted_enum_values(list(existing.union(incoming))) schema = dict(schema) schema['enum'] = merged enums[target] = schema @@ -126,7 +138,7 @@ def _rec_extract_enums(schema: dict, path: list[str]) -> tuple[dict, dict[str, d if target in enums and 'enum' in enums[target]: existing = set(enums[target]['enum']) incoming = set(value['enum']) - merged = sorted(existing.union(incoming)) + merged = _sorted_enum_values(list(existing.union(incoming))) value = dict(value) value['enum'] = merged enums[target] = value @@ -155,6 +167,7 @@ def _rec_extract_enums(schema: dict, path: list[str]) -> tuple[dict, dict[str, d json.dumps(json.loads(f.read())) .replace("#/$defs/", "#/components/schemas/") .replace('"examples": [],', '') + .replace('"stability":', '"x-stability":') ) consts = re.findall(r'"const": "([^"]+)",', raw) for const in consts: @@ -244,7 +257,7 @@ def _rec_extract_enums(schema: dict, path: list[str]) -> tuple[dict, dict[str, d if name in data["components"]["schemas"] and 'enum' in enum_schema: existing_schema = data["components"]["schemas"][name] if 'enum' in existing_schema: - merged = sorted(set(existing_schema['enum']).union(set(enum_schema['enum']))) + merged = _sorted_enum_values(list(set(existing_schema['enum']).union(set(enum_schema['enum'])))) existing_schema['enum'] = merged data["components"]["schemas"][name] = existing_schema else: @@ -266,7 +279,7 @@ def _rec_extract_enums(schema: dict, path: list[str]) -> tuple[dict, dict[str, d if name in data["components"]["schemas"] and 'enum' in enum_schema: existing_schema = data["components"]["schemas"][name] if 'enum' in existing_schema: - merged = sorted(set(existing_schema['enum']).union(set(enum_schema['enum']))) + merged = _sorted_enum_values(list(set(existing_schema['enum']).union(set(enum_schema['enum'])))) existing_schema['enum'] = merged data["components"]["schemas"][name] = existing_schema else: @@ -300,7 +313,7 @@ def _rec_extract_enums(schema: dict, path: list[str]) -> tuple[dict, dict[str, d if enum_name in data["components"]["schemas"] and 'enum' in enum_schema: existing_schema = data["components"]["schemas"][enum_name] if 'enum' in existing_schema: - merged = sorted(set(existing_schema['enum']).union(set(enum_schema['enum']))) + merged = _sorted_enum_values(list(set(existing_schema['enum']).union(set(enum_schema['enum'])))) existing_schema['enum'] = merged data["components"]["schemas"][enum_name] = existing_schema else: @@ -326,4 +339,4 @@ def _rec_extract_enums(schema: dict, path: list[str]) -> tuple[dict, dict[str, d content["application/json"]["schema"] = {"$ref": "#/components/schemas/ListIntegrations200Response"} with open(output_file, "w") as f: - json.dump(data, f, indent=2) \ No newline at end of file + json.dump(data, f, indent=2)