From a0b5dbc668c5d08a48f9b89b9a1ee423ab47472b Mon Sep 17 00:00:00 2001 From: pipeline-anypoint-clients-generator Date: Thu, 25 Jan 2024 07:42:08 +0000 Subject: [PATCH] Generates modules from pipeline. --- ame/.openapi-generator/FILES | 1 - ame_binding/.openapi-generator/FILES | 1 - amq/.openapi-generator/FILES | 1 - apim/.openapi-generator/FILES | 1 - apim_alerts/.openapi-generator/FILES | 1 - apim_policy/.gitignore | 24 + apim_policy/.openapi-generator-ignore | 23 + apim_policy/.openapi-generator/FILES | 57 + apim_policy/.openapi-generator/VERSION | 1 + apim_policy/.travis.yml | 8 + apim_policy/README.md | 153 ++ apim_policy/api/openapi.yaml | 1349 +++++++++++++++ apim_policy/api_default.go | 1511 +++++++++++++++++ apim_policy/client.go | 661 +++++++ apim_policy/configuration.go | 226 +++ apim_policy/docs/ApimPolicy.md | 404 +++++ apim_policy/docs/ApimPolicyBody.md | 196 +++ apim_policy/docs/ApimPolicyCollection.md | 56 + apim_policy/docs/ApimPolicyFull.md | 248 +++ apim_policy/docs/ApimPolicyFullCollecion.md | 56 + apim_policy/docs/ApimPolicyFullTemplate.md | 108 ++ apim_policy/docs/Audit.md | 82 + apim_policy/docs/AuditCreated.md | 56 + apim_policy/docs/AutomatedPolicy.md | 326 ++++ apim_policy/docs/AutomatedPolicyCollection.md | 82 + .../docs/AutomatedPolicyRuleOfApplication.md | 82 + apim_policy/docs/DefaultApi.md | 885 ++++++++++ apim_policy/docs/ErrorsResponse.md | 56 + apim_policy/docs/ErrorsResponseErrorsInner.md | 186 ++ apim_policy/docs/ExchangePolicyTemplate.md | 836 +++++++++ .../ExchangePolicyTemplateAllVersionsInner.md | 108 ++ ...xchangePolicyTemplateIdentityManagement.md | 56 + .../GetOrgAutomatedPolicies404Response.md | 82 + apim_policy/docs/ImplementationAsset.md | 238 +++ apim_policy/docs/PointcutDataItem.md | 82 + apim_policy/docs/PolicyConfiguration.md | 264 +++ .../PolicyConfigurationConfigurationInner.md | 82 + apim_policy/git_push.sh | 57 + apim_policy/go.mod | 6 + apim_policy/go.sum | 11 + apim_policy/model_apim_policy.go | 595 +++++++ apim_policy/model_apim_policy_body.go | 307 ++++ apim_policy/model_apim_policy_collection.go | 148 ++ apim_policy/model_apim_policy_full.go | 379 +++++ .../model_apim_policy_full_collecion.go | 126 ++ .../model_apim_policy_full_template.go | 198 +++ apim_policy/model_audit.go | 162 ++ apim_policy/model_audit_created.go | 126 ++ apim_policy/model_automated_policy.go | 487 ++++++ .../model_automated_policy_collection.go | 162 ++ ...el_automated_policy_rule_of_application.go | 162 ++ apim_policy/model_errors_response.go | 126 ++ .../model_errors_response_errors_inner.go | 306 ++++ apim_policy/model_exchange_policy_template.go | 1206 +++++++++++++ ...ange_policy_template_all_versions_inner.go | 198 +++ ...nge_policy_template_identity_management.go | 126 ++ ...get_org_automated_policies_404_response.go | 162 ++ apim_policy/model_implementation_asset.go | 378 +++++ apim_policy/model_pointcut_data_item.go | 162 ++ apim_policy/model_policy_configuration.go | 414 +++++ ...olicy_configuration_configuration_inner.go | 162 ++ apim_policy/response.go | 47 + apim_policy/test/api_default_test.go | 199 +++ apim_policy/utils.go | 347 ++++ apim_upstream/.openapi-generator/FILES | 1 - authorization/.openapi-generator/FILES | 1 - connected_app/.openapi-generator/FILES | 1 - dlb/.openapi-generator/FILES | 1 - env/.openapi-generator/FILES | 1 - exchange_assets/.openapi-generator/FILES | 1 - flexgateway/.openapi-generator/FILES | 1 - idp/.openapi-generator/FILES | 1 - invite/.openapi-generator/FILES | 1 - org/.openapi-generator/FILES | 1 - rm_alerts/.openapi-generator/FILES | 1 - role/.openapi-generator/FILES | 1 - rolegroup/.openapi-generator/FILES | 1 - secretgroup/.openapi-generator/FILES | 2 - .../.openapi-generator/FILES | 2 - .../.openapi-generator/FILES | 2 - secretgroup_keystore/.openapi-generator/FILES | 2 - .../.openapi-generator/FILES | 2 - .../.openapi-generator/FILES | 2 - team/.openapi-generator/FILES | 1 - team_group_mappings/.openapi-generator/FILES | 1 - team_members/.openapi-generator/FILES | 1 - team_roles/.openapi-generator/FILES | 1 - user/.openapi-generator/FILES | 1 - user_rolegroups/.openapi-generator/FILES | 1 - vpc/.openapi-generator/FILES | 1 - vpn/.openapi-generator/FILES | 1 - 91 files changed, 15343 insertions(+), 38 deletions(-) create mode 100644 apim_policy/.gitignore create mode 100644 apim_policy/.openapi-generator-ignore create mode 100644 apim_policy/.openapi-generator/FILES create mode 100644 apim_policy/.openapi-generator/VERSION create mode 100644 apim_policy/.travis.yml create mode 100644 apim_policy/README.md create mode 100644 apim_policy/api/openapi.yaml create mode 100644 apim_policy/api_default.go create mode 100644 apim_policy/client.go create mode 100644 apim_policy/configuration.go create mode 100644 apim_policy/docs/ApimPolicy.md create mode 100644 apim_policy/docs/ApimPolicyBody.md create mode 100644 apim_policy/docs/ApimPolicyCollection.md create mode 100644 apim_policy/docs/ApimPolicyFull.md create mode 100644 apim_policy/docs/ApimPolicyFullCollecion.md create mode 100644 apim_policy/docs/ApimPolicyFullTemplate.md create mode 100644 apim_policy/docs/Audit.md create mode 100644 apim_policy/docs/AuditCreated.md create mode 100644 apim_policy/docs/AutomatedPolicy.md create mode 100644 apim_policy/docs/AutomatedPolicyCollection.md create mode 100644 apim_policy/docs/AutomatedPolicyRuleOfApplication.md create mode 100644 apim_policy/docs/DefaultApi.md create mode 100644 apim_policy/docs/ErrorsResponse.md create mode 100644 apim_policy/docs/ErrorsResponseErrorsInner.md create mode 100644 apim_policy/docs/ExchangePolicyTemplate.md create mode 100644 apim_policy/docs/ExchangePolicyTemplateAllVersionsInner.md create mode 100644 apim_policy/docs/ExchangePolicyTemplateIdentityManagement.md create mode 100644 apim_policy/docs/GetOrgAutomatedPolicies404Response.md create mode 100644 apim_policy/docs/ImplementationAsset.md create mode 100644 apim_policy/docs/PointcutDataItem.md create mode 100644 apim_policy/docs/PolicyConfiguration.md create mode 100644 apim_policy/docs/PolicyConfigurationConfigurationInner.md create mode 100644 apim_policy/git_push.sh create mode 100644 apim_policy/go.mod create mode 100644 apim_policy/go.sum create mode 100644 apim_policy/model_apim_policy.go create mode 100644 apim_policy/model_apim_policy_body.go create mode 100644 apim_policy/model_apim_policy_collection.go create mode 100644 apim_policy/model_apim_policy_full.go create mode 100644 apim_policy/model_apim_policy_full_collecion.go create mode 100644 apim_policy/model_apim_policy_full_template.go create mode 100644 apim_policy/model_audit.go create mode 100644 apim_policy/model_audit_created.go create mode 100644 apim_policy/model_automated_policy.go create mode 100644 apim_policy/model_automated_policy_collection.go create mode 100644 apim_policy/model_automated_policy_rule_of_application.go create mode 100644 apim_policy/model_errors_response.go create mode 100644 apim_policy/model_errors_response_errors_inner.go create mode 100644 apim_policy/model_exchange_policy_template.go create mode 100644 apim_policy/model_exchange_policy_template_all_versions_inner.go create mode 100644 apim_policy/model_exchange_policy_template_identity_management.go create mode 100644 apim_policy/model_get_org_automated_policies_404_response.go create mode 100644 apim_policy/model_implementation_asset.go create mode 100644 apim_policy/model_pointcut_data_item.go create mode 100644 apim_policy/model_policy_configuration.go create mode 100644 apim_policy/model_policy_configuration_configuration_inner.go create mode 100644 apim_policy/response.go create mode 100644 apim_policy/test/api_default_test.go create mode 100644 apim_policy/utils.go diff --git a/ame/.openapi-generator/FILES b/ame/.openapi-generator/FILES index fe63ac8..1511797 100644 --- a/ame/.openapi-generator/FILES +++ b/ame/.openapi-generator/FILES @@ -16,5 +16,4 @@ model_exchange.go model_exchange_body.go model_update_ame_404_response.go response.go -test/api_default_test.go utils.go diff --git a/ame_binding/.openapi-generator/FILES b/ame_binding/.openapi-generator/FILES index 32615a5..d1724bb 100644 --- a/ame_binding/.openapi-generator/FILES +++ b/ame_binding/.openapi-generator/FILES @@ -20,5 +20,4 @@ model_exchange_binding_rules.go model_exchange_binding_with_rules.go model_exchange_binding_with_rules_all_of.go response.go -test/api_default_test.go utils.go diff --git a/amq/.openapi-generator/FILES b/amq/.openapi-generator/FILES index 52564b3..fdbe4e5 100644 --- a/amq/.openapi-generator/FILES +++ b/amq/.openapi-generator/FILES @@ -16,5 +16,4 @@ model_queue.go model_queue_body.go model_update_amq_404_response.go response.go -test/api_default_test.go utils.go diff --git a/apim/.openapi-generator/FILES b/apim/.openapi-generator/FILES index a6d9673..315685f 100644 --- a/apim/.openapi-generator/FILES +++ b/apim/.openapi-generator/FILES @@ -62,5 +62,4 @@ model_routing_rules.go model_routing_upstreams_inner.go model_spec.go response.go -test/api_default_test.go utils.go diff --git a/apim_alerts/.openapi-generator/FILES b/apim_alerts/.openapi-generator/FILES index 5614e97..c20202c 100644 --- a/apim_alerts/.openapi-generator/FILES +++ b/apim_alerts/.openapi-generator/FILES @@ -24,5 +24,4 @@ model_duration.go model_period.go model_recipient.go response.go -test/api_default_test.go utils.go diff --git a/apim_policy/.gitignore b/apim_policy/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/apim_policy/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/apim_policy/.openapi-generator-ignore b/apim_policy/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/apim_policy/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/apim_policy/.openapi-generator/FILES b/apim_policy/.openapi-generator/FILES new file mode 100644 index 0000000..2578fa1 --- /dev/null +++ b/apim_policy/.openapi-generator/FILES @@ -0,0 +1,57 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +client.go +configuration.go +docs/ApimPolicy.md +docs/ApimPolicyBody.md +docs/ApimPolicyCollection.md +docs/ApimPolicyFull.md +docs/ApimPolicyFullCollecion.md +docs/ApimPolicyFullTemplate.md +docs/Audit.md +docs/AuditCreated.md +docs/AutomatedPolicy.md +docs/AutomatedPolicyCollection.md +docs/AutomatedPolicyRuleOfApplication.md +docs/DefaultApi.md +docs/ErrorsResponse.md +docs/ErrorsResponseErrorsInner.md +docs/ExchangePolicyTemplate.md +docs/ExchangePolicyTemplateAllVersionsInner.md +docs/ExchangePolicyTemplateIdentityManagement.md +docs/GetOrgAutomatedPolicies404Response.md +docs/ImplementationAsset.md +docs/PointcutDataItem.md +docs/PolicyConfiguration.md +docs/PolicyConfigurationConfigurationInner.md +git_push.sh +go.mod +go.sum +model_apim_policy.go +model_apim_policy_body.go +model_apim_policy_collection.go +model_apim_policy_full.go +model_apim_policy_full_collecion.go +model_apim_policy_full_template.go +model_audit.go +model_audit_created.go +model_automated_policy.go +model_automated_policy_collection.go +model_automated_policy_rule_of_application.go +model_errors_response.go +model_errors_response_errors_inner.go +model_exchange_policy_template.go +model_exchange_policy_template_all_versions_inner.go +model_exchange_policy_template_identity_management.go +model_get_org_automated_policies_404_response.go +model_implementation_asset.go +model_pointcut_data_item.go +model_policy_configuration.go +model_policy_configuration_configuration_inner.go +response.go +test/api_default_test.go +utils.go diff --git a/apim_policy/.openapi-generator/VERSION b/apim_policy/.openapi-generator/VERSION new file mode 100644 index 0000000..cd802a1 --- /dev/null +++ b/apim_policy/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/apim_policy/.travis.yml b/apim_policy/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/apim_policy/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/apim_policy/README.md b/apim_policy/README.md new file mode 100644 index 0000000..a67b767 --- /dev/null +++ b/apim_policy/README.md @@ -0,0 +1,153 @@ +# Go API client for apim_policy + +API Manager Policy API + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.0.0 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import apim_policy "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), apim_policy.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), apim_policy.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), apim_policy.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), apim_policy.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://anypoint.mulesoft.com/apimanager* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**DeleteApimPolicy**](docs/DefaultApi.md#deleteapimpolicy) | **Delete** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId} | Delete a specific api manager instance policy. +*DefaultApi* | [**DisableApimPolicy**](docs/DefaultApi.md#disableapimpolicy) | **Post** /xapi/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}/disable | Disable a specific api manager instance policy. +*DefaultApi* | [**EnableApimPolicy**](docs/DefaultApi.md#enableapimpolicy) | **Post** /xapi/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}/enable | Enable a specific api manager instance policy. +*DefaultApi* | [**GetApimPolicies**](docs/DefaultApi.md#getapimpolicies) | **Get** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies | Retrieve all of api manager instance policies. +*DefaultApi* | [**GetApimPolicy**](docs/DefaultApi.md#getapimpolicy) | **Get** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId} | Retrieve a specific api manager instance policy. +*DefaultApi* | [**GetOrgAutomatedPolicies**](docs/DefaultApi.md#getorgautomatedpolicies) | **Get** /api/v1/organizations/{orgId}/automated-policies | Retrieve all automated policies of a given organization +*DefaultApi* | [**GetOrgCustomPolicyTemplates**](docs/DefaultApi.md#getorgcustompolicytemplates) | **Get** /api/v1/organizations/{orgId}/custom-policy-templates | Retrieve all or part of custom policy templates of a given organization +*DefaultApi* | [**GetOrgExchangePolicyTemplateDetails**](docs/DefaultApi.md#getorgexchangepolicytemplatedetails) | **Get** /xapi/v1/organizations/{orgId}/exchange-policy-templates/{groupId}/{assetId}/{assetVersion} | Retrieve details of exchange policy template of a given organization +*DefaultApi* | [**GetOrgExchangePolicyTemplates**](docs/DefaultApi.md#getorgexchangepolicytemplates) | **Get** /xapi/v1/organizations/{orgId}/exchange-policy-templates | Retrieve all or part of exchange policy templates of a given organization +*DefaultApi* | [**PatchApimPolicy**](docs/DefaultApi.md#patchapimpolicy) | **Patch** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId} | Update a specific api manager instance policy. +*DefaultApi* | [**PostApimPolicy**](docs/DefaultApi.md#postapimpolicy) | **Post** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies | Create an api manager instance policy. + + +## Documentation For Models + + - [ApimPolicy](docs/ApimPolicy.md) + - [ApimPolicyBody](docs/ApimPolicyBody.md) + - [ApimPolicyCollection](docs/ApimPolicyCollection.md) + - [ApimPolicyFull](docs/ApimPolicyFull.md) + - [ApimPolicyFullCollecion](docs/ApimPolicyFullCollecion.md) + - [ApimPolicyFullTemplate](docs/ApimPolicyFullTemplate.md) + - [Audit](docs/Audit.md) + - [AuditCreated](docs/AuditCreated.md) + - [AutomatedPolicy](docs/AutomatedPolicy.md) + - [AutomatedPolicyCollection](docs/AutomatedPolicyCollection.md) + - [AutomatedPolicyRuleOfApplication](docs/AutomatedPolicyRuleOfApplication.md) + - [ErrorsResponse](docs/ErrorsResponse.md) + - [ErrorsResponseErrorsInner](docs/ErrorsResponseErrorsInner.md) + - [ExchangePolicyTemplate](docs/ExchangePolicyTemplate.md) + - [ExchangePolicyTemplateAllVersionsInner](docs/ExchangePolicyTemplateAllVersionsInner.md) + - [ExchangePolicyTemplateIdentityManagement](docs/ExchangePolicyTemplateIdentityManagement.md) + - [GetOrgAutomatedPolicies404Response](docs/GetOrgAutomatedPolicies404Response.md) + - [ImplementationAsset](docs/ImplementationAsset.md) + - [PointcutDataItem](docs/PointcutDataItem.md) + - [PolicyConfiguration](docs/PolicyConfiguration.md) + - [PolicyConfigurationConfigurationInner](docs/PolicyConfigurationConfigurationInner.md) + + +## Documentation For Authorization + + +Authentication schemes defined for the API: +### bearerAuth + +- **Type**: HTTP Bearer token authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_TOKEN_STRING") +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/apim_policy/api/openapi.yaml b/apim_policy/api/openapi.yaml new file mode 100644 index 0000000..2231937 --- /dev/null +++ b/apim_policy/api/openapi.yaml @@ -0,0 +1,1349 @@ +openapi: 3.0.3 +info: + description: API Manager Policy API + title: API Manager Policy API + version: 1.0.0 +servers: +- description: Anypoint Cloudhub + url: https://anypoint.mulesoft.com/apimanager/ +- description: Anypoint Cloudhub EU + url: https://eu1.anypoint.mulesoft.com/apimanager/ +- description: Anypoint Cloudhub GOV + url: https://gov.anypoint.mulesoft.com/apimanager/ +security: +- bearerAuth: [] +paths: + /api/v1/organizations/{orgId}/automated-policies: + get: + description: Retrieves all automated policies of a given organization and optionally + environment. + operationId: GetOrgAutomatedPolicies + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: A environment id + explode: true + in: query + name: environmentId + required: false + schema: + type: string + style: form + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AutomatedPolicyCollection' + description: collection of automated policies + summary: Retrieve all automated policies of a given organization + /api/v1/organizations/{orgId}/custom-policy-templates: + get: + description: Retrieves all or part of custom policy templates of a given organization. + operationId: GetOrgCustomPolicyTemplates + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: Search criteria. + explode: true + in: query + name: query + required: false + schema: + type: string + style: form + - description: Skip over a number of elements by specifying an offset value + for the query. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Order for sorting. + explode: true + in: query + name: ascending + required: false + schema: + type: boolean + style: form + - description: Property to sort by. + explode: true + in: query + name: sort + required: false + schema: + type: string + style: form + - description: Limit the number of elements on the response. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "200": + description: list of custom policy templates + summary: Retrieve all or part of custom policy templates of a given organization + /xapi/v1/organizations/{orgId}/exchange-policy-templates: + get: + description: Retrieves all or part of exchange policy templates of a given organization. + operationId: GetOrgExchangePolicyTemplates + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The environment id. + explode: true + in: query + name: environmentId + required: false + schema: + type: string + style: form + - description: Whether to include asset split model. + explode: true + in: query + name: splitModel + required: false + schema: + type: boolean + style: form + - description: include only latest versions. + explode: true + in: query + name: latest + required: false + schema: + type: boolean + style: form + - description: include only templates used for api instance id. + explode: true + in: query + name: apiInstanceId + required: false + schema: + type: string + style: form + - description: whether to include configuration. + explode: true + in: query + name: includeConfiguration + required: false + schema: + type: boolean + style: form + - description: whether to include automated policies only. + explode: true + in: query + name: automatedOnly + required: false + schema: + type: boolean + style: form + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ExchangePolicyTemplateCollection' + description: list of exchange policy templates + summary: Retrieve all or part of exchange policy templates of a given organization + /xapi/v1/organizations/{orgId}/exchange-policy-templates/{groupId}/{assetId}/{assetVersion}: + get: + description: Retrieve details of exchange policy template of a given organization. + operationId: GetOrgExchangePolicyTemplateDetails + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The group Id + explode: false + in: path + name: groupId + required: true + schema: + type: string + style: simple + - description: The asset Id + explode: false + in: path + name: assetId + required: true + schema: + type: string + style: simple + - description: The asset version + explode: false + in: path + name: assetVersion + required: true + schema: + type: string + style: simple + - description: Whether to include all versions of the asset. + explode: true + in: query + name: includeAllVersions + required: false + schema: + type: boolean + style: form + - description: Whether to include asset split model. + explode: true + in: query + name: splitModel + required: false + schema: + type: boolean + style: form + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ExchangePolicyTemplate' + description: exchange policy template details + summary: Retrieve details of exchange policy template of a given organization + /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies: + get: + description: Retrieve all of api manager instance policies in a given organization + and environment. + operationId: GetApimPolicies + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The environment Id + explode: false + in: path + name: envId + required: true + schema: + type: string + style: simple + - description: The api manager instance Id + explode: false + in: path + name: apiId + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: fullInfo + required: false + schema: + default: false + type: boolean + style: form + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicyCollection' + description: list api manager policies + summary: Retrieve all of api manager instance policies. + post: + description: Create an api manager instance policy in a given organization and + environment. + operationId: PostApimPolicy + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The environment Id + explode: false + in: path + name: envId + required: true + schema: + type: string + style: simple + - description: The api manager instance Id + explode: false + in: path + name: apiId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicyBody' + description: policy content + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: create api manager policy + summary: Create an api manager instance policy. + /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}: + delete: + description: Delete a specific api manager instance policy in a given organization + and environment. + operationId: DeleteApimPolicy + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The environment Id + explode: false + in: path + name: envId + required: true + schema: + type: string + style: simple + - description: The api manager instance Id + explode: false + in: path + name: apiId + required: true + schema: + type: string + style: simple + - description: The api manager instance policy Id + explode: false + in: path + name: apiPolicyId + required: true + schema: + type: string + style: simple + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "204": + description: delete specific api manager policy + summary: Delete a specific api manager instance policy. + get: + description: Retrieve a specific api manager instance policy in a given organization + and environment. + operationId: GetApimPolicy + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The environment Id + explode: false + in: path + name: envId + required: true + schema: + type: string + style: simple + - description: The api manager instance Id + explode: false + in: path + name: apiId + required: true + schema: + type: string + style: simple + - description: The api manager instance policy Id + explode: false + in: path + name: apiPolicyId + required: true + schema: + type: string + style: simple + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: get specific api manager policy + summary: Retrieve a specific api manager instance policy. + patch: + description: Update a specific api manager instance policy in a given organization + and environment. + operationId: PatchApimPolicy + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The environment Id + explode: false + in: path + name: envId + required: true + schema: + type: string + style: simple + - description: The api manager instance Id + explode: false + in: path + name: apiId + required: true + schema: + type: string + style: simple + - description: The api manager instance policy Id + explode: false + in: path + name: apiPolicyId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicyPatchBody' + description: policy content + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: patch specific api manager policy + summary: Update a specific api manager instance policy. + /xapi/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}/disable: + post: + description: Disable a specific api manager instance policy in a given organization + and environment. + operationId: DisableApimPolicy + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The environment Id + explode: false + in: path + name: envId + required: true + schema: + type: string + style: simple + - description: The api manager instance Id + explode: false + in: path + name: apiId + required: true + schema: + type: string + style: simple + - description: The api manager instance policy Id + explode: false + in: path + name: apiPolicyId + required: true + schema: + type: string + style: simple + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: disable specific api manager policy + summary: Disable a specific api manager instance policy. + /xapi/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}/enable: + post: + description: Enable a specific api manager instance policy in a given organization + and environment. + operationId: EnableApimPolicy + parameters: + - description: The organization Id + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The environment Id + explode: false + in: path + name: envId + required: true + schema: + type: string + style: simple + - description: The api manager instance Id + explode: false + in: path + name: apiId + required: true + schema: + type: string + style: simple + - description: The api manager instance policy Id + explode: false + in: path + name: apiPolicyId + required: true + schema: + type: string + style: simple + responses: + "401": + description: Access token is missing or invalid + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: enable specific api manager policy + summary: Enable a specific api manager instance policy. +components: + responses: + UnauthorizedError: + description: Access token is missing or invalid + BadRequestError: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorsResponse' + description: Bad request response + NotFoundError: + content: + application/json: + schema: + $ref: '#/components/schemas/GetOrgAutomatedPolicies_404_response' + description: resource not found + SuccessGetOrgAutomatedPolicies: + content: + application/json: + schema: + $ref: '#/components/schemas/AutomatedPolicyCollection' + description: collection of automated policies + SuccessGetOrgCustomPolicyTemplates: + description: list of custom policy templates + SuccessGetOrgExchangePolicyTemplates: + content: + application/json: + schema: + $ref: '#/components/schemas/ExchangePolicyTemplateCollection' + description: list of exchange policy templates + SuccessGetOrgExchangePolicyTemplateDetails: + content: + application/json: + schema: + $ref: '#/components/schemas/ExchangePolicyTemplate' + description: exchange policy template details + SuccessGetApimPolicies: + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicyCollection' + description: list api manager policies + SuccessPostApimPolicy: + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: create api manager policy + SuccessGetApimPolicy: + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: get specific api manager policy + SuccessPatchApimPolicy: + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: patch specific api manager policy + SuccessDeleteApimPolicy: + description: delete specific api manager policy + SuccessDisableApimPolicy: + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: disable specific api manager policy + SuccessEnableApimPolicy: + content: + application/json: + schema: + $ref: '#/components/schemas/ApimPolicy' + description: enable specific api manager policy + schemas: + ErrorsResponse: + properties: + errors: + items: + $ref: '#/components/schemas/ErrorsResponse_errors_inner' + type: array + title: errorsResponse + type: object + AutomatedPolicyCollection: + example: + automatedPolicies: + - configurationData: "{}" + audit: + created: + date: date + updated: + date: date + assetId: assetId + implementationAssets: + - organizationId: organizationId + releaseNotes: releaseNotes + assetId: assetId + groupId: groupId + name: name + minRuntimeVersion: minRuntimeVersion + technology: technology + version: version + - organizationId: organizationId + releaseNotes: releaseNotes + assetId: assetId + groupId: groupId + name: name + minRuntimeVersion: minRuntimeVersion + technology: technology + version: version + groupId: groupId + assetVersion: assetVersion + ruleOfApplication: + organizationId: organizationId + environmentId: environmentId + pointcutData: + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + disabled: true + id: 0 + order: 6 + - configurationData: "{}" + audit: + created: + date: date + updated: + date: date + assetId: assetId + implementationAssets: + - organizationId: organizationId + releaseNotes: releaseNotes + assetId: assetId + groupId: groupId + name: name + minRuntimeVersion: minRuntimeVersion + technology: technology + version: version + - organizationId: organizationId + releaseNotes: releaseNotes + assetId: assetId + groupId: groupId + name: name + minRuntimeVersion: minRuntimeVersion + technology: technology + version: version + groupId: groupId + assetVersion: assetVersion + ruleOfApplication: + organizationId: organizationId + environmentId: environmentId + pointcutData: + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + disabled: true + id: 0 + order: 6 + total: 1 + properties: + automatedPolicies: + items: + $ref: '#/components/schemas/AutomatedPolicy' + type: array + total: + type: integer + type: object + AutomatedPolicy: + example: + configurationData: "{}" + audit: + created: + date: date + updated: + date: date + assetId: assetId + implementationAssets: + - organizationId: organizationId + releaseNotes: releaseNotes + assetId: assetId + groupId: groupId + name: name + minRuntimeVersion: minRuntimeVersion + technology: technology + version: version + - organizationId: organizationId + releaseNotes: releaseNotes + assetId: assetId + groupId: groupId + name: name + minRuntimeVersion: minRuntimeVersion + technology: technology + version: version + groupId: groupId + assetVersion: assetVersion + ruleOfApplication: + organizationId: organizationId + environmentId: environmentId + pointcutData: + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + disabled: true + id: 0 + order: 6 + properties: + audit: + $ref: '#/components/schemas/Audit' + id: + type: integer + ruleOfApplication: + $ref: '#/components/schemas/AutomatedPolicy_ruleOfApplication' + groupId: + type: string + assetId: + type: string + assetVersion: + type: string + configurationData: + type: object + pointcutData: + items: + $ref: '#/components/schemas/PointcutDataItem' + nullable: true + title: PointcutDataArray + type: array + order: + type: integer + disabled: + type: boolean + implementationAssets: + items: + $ref: '#/components/schemas/ImplementationAsset' + type: array + type: object + ExchangePolicyTemplateCollection: + items: + $ref: '#/components/schemas/ExchangePolicyTemplate' + type: array + ExchangePolicyTemplate: + example: + requiredCharacteristics: + - requiredCharacteristics + - requiredCharacteristics + identityManagement: + type: type + ramlV1Snippet: ramlV1Snippet + configuration: + - allowMultiple: true + propertyName: propertyName + configuration: + - propertyName: propertyName + type: type + - propertyName: propertyName + type: type + name: name + options: + - "{}" + - "{}" + description: description + optional: true + sensitive: true + type: type + - allowMultiple: true + propertyName: propertyName + configuration: + - propertyName: propertyName + type: type + - propertyName: propertyName + type: type + name: name + options: + - "{}" + - "{}" + description: description + optional: true + sensitive: true + type: type + groupId: groupId + description: description + ramlSnippet: ramlSnippet + type: type + jarMd5: jarMd5 + orgId: orgId + resourceLevelSupported: true + audit: + created: + date: date + updated: + date: date + assetId: assetId + allVersions: + - assetId: assetId + groupId: groupId + version: version + - assetId: assetId + groupId: groupId + version: version + oasV2Snippet: oasV2Snippet + id: 0 + yamlMd5: yamlMd5 + isOOTB: true + violationCategory: violationCategory + providedCharacteristics: + - providedCharacteristics + - providedCharacteristics + oasV3Snippet: oasV3Snippet + standalone: true + encryptionSupported: true + applicable: true + version: version + stage: stage + name: name + minMuleVersion: minMuleVersion + category: category + status: status + supportedPoliciesVersions: supportedPoliciesVersions + properties: + audit: + $ref: '#/components/schemas/Audit' + id: + type: integer + groupId: + type: string + assetId: + type: string + version: + type: string + name: + type: string + description: + type: string + type: + type: string + isOOTB: + type: boolean + stage: + type: string + status: + type: string + yamlMd5: + type: string + jarMd5: + type: string + orgId: + type: string + minMuleVersion: + type: string + supportedPoliciesVersions: + type: string + category: + type: string + violationCategory: + type: string + resourceLevelSupported: + type: boolean + encryptionSupported: + type: boolean + standalone: + type: boolean + requiredCharacteristics: + items: + type: string + type: array + identityManagement: + $ref: '#/components/schemas/ExchangePolicyTemplate_identityManagement' + providedCharacteristics: + items: + type: string + type: array + ramlSnippet: + type: string + ramlV1Snippet: + type: string + oasV2Snippet: + type: string + oasV3Snippet: + type: string + applicable: + type: boolean + configuration: + items: + $ref: '#/components/schemas/PolicyConfiguration' + type: array + allVersions: + items: + $ref: '#/components/schemas/ExchangePolicyTemplate_allVersions_inner' + type: array + type: object + ApimPolicyCollection: + oneOf: + - items: + $ref: '#/components/schemas/ApimPolicy' + title: ApimPolicyCollecion + type: array + - $ref: '#/components/schemas/ApimPolicyFullCollecion' + ApimPolicy: + example: + configurationData: "{}" + groupId: groupId + type: type + masterOrganizationId: masterOrganizationId + organizationId: organizationId + audit: + created: + date: date + updated: + date: date + assetId: assetId + assetVersion: assetVersion + pointcutData: + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + disabled: true + id: 0 + policyTemplateId: policyTemplateId + apiId: 1 + order: 6 + properties: + audit: + $ref: '#/components/schemas/Audit' + masterOrganizationId: + type: string + organizationId: + type: string + id: + type: integer + policyTemplateId: + type: string + configurationData: + type: object + order: + type: integer + disabled: + type: boolean + pointcutData: + items: + $ref: '#/components/schemas/PointcutDataItem' + nullable: true + title: PointcutDataArray + type: array + groupId: + type: string + assetId: + type: string + assetVersion: + type: string + type: + type: string + apiId: + type: integer + type: object + ApimPolicyFull: + properties: + policyTemplateId: + type: string + type: + type: string + policyId: + type: integer + version: + type: integer + order: + type: integer + pointcutData: + items: + $ref: '#/components/schemas/PointcutDataItem' + nullable: true + title: PointcutDataArray + type: array + configuration: + type: object + template: + $ref: '#/components/schemas/ApimPolicyFull_template' + type: object + ApimPolicyBody: + example: + configurationData: "{}" + assetId: assetId + groupId: groupId + assetVersion: assetVersion + pointcutData: + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + - methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + order: 0 + properties: + configurationData: + type: object + groupId: + type: string + assetId: + type: string + assetVersion: + type: string + order: + type: integer + pointcutData: + items: + $ref: '#/components/schemas/PointcutDataItem' + nullable: true + title: PointcutDataArray + type: array + type: object + ApimPolicyPatchBody: + description: | + is the same as ApimPolicyBody, but since we had some issue generating a struct that puts nil to pointcutData. We chose to leave this unspecified for an optimum coverage. + type: object + PointcutData: + items: + $ref: '#/components/schemas/PointcutDataItem' + nullable: true + title: PointcutDataArray + type: array + PolicyConfiguration: + example: + allowMultiple: true + propertyName: propertyName + configuration: + - propertyName: propertyName + type: type + - propertyName: propertyName + type: type + name: name + options: + - "{}" + - "{}" + description: description + optional: true + sensitive: true + type: type + properties: + propertyName: + type: string + name: + type: string + description: + type: string + type: + type: string + options: + items: + type: object + type: array + optional: + type: boolean + sensitive: + type: boolean + allowMultiple: + type: boolean + configuration: + items: + $ref: '#/components/schemas/PolicyConfiguration_configuration_inner' + type: array + type: object + ImplementationAsset: + example: + organizationId: organizationId + releaseNotes: releaseNotes + assetId: assetId + groupId: groupId + name: name + minRuntimeVersion: minRuntimeVersion + technology: technology + version: version + properties: + name: + type: string + assetId: + type: string + groupId: + type: string + version: + type: string + technology: + type: string + releaseNotes: + type: string + organizationId: + type: string + minRuntimeVersion: + type: string + type: object + Audit: + example: + created: + date: date + updated: + date: date + properties: + created: + $ref: '#/components/schemas/Audit_created' + updated: + $ref: '#/components/schemas/Audit_created' + type: object + GetOrgAutomatedPolicies_404_response: + properties: + name: + type: string + message: + type: string + type: object + ErrorsResponse_errors_inner: + properties: + type: + title: type + type: string + dataPath: + title: dataPath + type: string + keyword: + title: keyword + type: string + schema: + title: schema + type: string + data: + title: data + type: string + message: + title: message + type: string + type: object + AutomatedPolicy_ruleOfApplication: + example: + organizationId: organizationId + environmentId: environmentId + properties: + environmentId: + type: string + organizationId: + type: string + type: object + ExchangePolicyTemplate_identityManagement: + example: + type: type + properties: + type: + type: string + type: object + ExchangePolicyTemplate_allVersions_inner: + example: + assetId: assetId + groupId: groupId + version: version + properties: + groupId: + type: string + assetId: + type: string + version: + type: string + type: object + ApimPolicyFullCollecion: + properties: + policies: + items: + $ref: '#/components/schemas/ApimPolicyFull' + type: array + title: ApimPolicyFullCollecion + type: object + ApimPolicyFull_template: + properties: + groupId: + type: string + assetId: + type: string + assetVersion: + type: string + type: object + PointcutDataItem: + example: + methodRegex: methodRegex + uriTemplateRegex: uriTemplateRegex + properties: + methodRegex: + type: string + uriTemplateRegex: + type: string + title: PointcutDataItem + type: object + PolicyConfiguration_configuration_inner: + example: + propertyName: propertyName + type: type + properties: + propertyName: + type: string + type: + type: string + type: object + Audit_created: + example: + date: date + properties: + date: + type: string + type: object + securitySchemes: + bearerAuth: + bearerFormat: JWT + scheme: bearer + type: http diff --git a/apim_policy/api_default.go b/apim_policy/api_default.go new file mode 100644 index 0000000..55c8e36 --- /dev/null +++ b/apim_policy/api_default.go @@ -0,0 +1,1511 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type DefaultApiDeleteApimPolicyRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + envId string + apiId string + apiPolicyId string +} + +func (r DefaultApiDeleteApimPolicyRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteApimPolicyExecute(r) +} + +/* +DeleteApimPolicy Delete a specific api manager instance policy. + +Delete a specific api manager instance policy in a given organization and environment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @param envId The environment Id + @param apiId The api manager instance Id + @param apiPolicyId The api manager instance policy Id + @return DefaultApiDeleteApimPolicyRequest +*/ +func (a *DefaultApiService) DeleteApimPolicy(ctx context.Context, orgId string, envId string, apiId string, apiPolicyId string) DefaultApiDeleteApimPolicyRequest { + return DefaultApiDeleteApimPolicyRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + envId: envId, + apiId: apiId, + apiPolicyId: apiPolicyId, + } +} + +// Execute executes the request +func (a *DefaultApiService) DeleteApimPolicyExecute(r DefaultApiDeleteApimPolicyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteApimPolicy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"envId"+"}", url.PathEscape(parameterValueToString(r.envId, "envId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiId"+"}", url.PathEscape(parameterValueToString(r.apiId, "apiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiPolicyId"+"}", url.PathEscape(parameterValueToString(r.apiPolicyId, "apiPolicyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v GetOrgAutomatedPolicies404Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type DefaultApiDisableApimPolicyRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + envId string + apiId string + apiPolicyId string +} + +func (r DefaultApiDisableApimPolicyRequest) Execute() (*ApimPolicy, *http.Response, error) { + return r.ApiService.DisableApimPolicyExecute(r) +} + +/* +DisableApimPolicy Disable a specific api manager instance policy. + +Disable a specific api manager instance policy in a given organization and environment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @param envId The environment Id + @param apiId The api manager instance Id + @param apiPolicyId The api manager instance policy Id + @return DefaultApiDisableApimPolicyRequest +*/ +func (a *DefaultApiService) DisableApimPolicy(ctx context.Context, orgId string, envId string, apiId string, apiPolicyId string) DefaultApiDisableApimPolicyRequest { + return DefaultApiDisableApimPolicyRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + envId: envId, + apiId: apiId, + apiPolicyId: apiPolicyId, + } +} + +// Execute executes the request +// @return ApimPolicy +func (a *DefaultApiService) DisableApimPolicyExecute(r DefaultApiDisableApimPolicyRequest) (*ApimPolicy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApimPolicy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DisableApimPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/xapi/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}/disable" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"envId"+"}", url.PathEscape(parameterValueToString(r.envId, "envId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiId"+"}", url.PathEscape(parameterValueToString(r.apiId, "apiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiPolicyId"+"}", url.PathEscape(parameterValueToString(r.apiPolicyId, "apiPolicyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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 DefaultApiEnableApimPolicyRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + envId string + apiId string + apiPolicyId string +} + +func (r DefaultApiEnableApimPolicyRequest) Execute() (*ApimPolicy, *http.Response, error) { + return r.ApiService.EnableApimPolicyExecute(r) +} + +/* +EnableApimPolicy Enable a specific api manager instance policy. + +Enable a specific api manager instance policy in a given organization and environment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @param envId The environment Id + @param apiId The api manager instance Id + @param apiPolicyId The api manager instance policy Id + @return DefaultApiEnableApimPolicyRequest +*/ +func (a *DefaultApiService) EnableApimPolicy(ctx context.Context, orgId string, envId string, apiId string, apiPolicyId string) DefaultApiEnableApimPolicyRequest { + return DefaultApiEnableApimPolicyRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + envId: envId, + apiId: apiId, + apiPolicyId: apiPolicyId, + } +} + +// Execute executes the request +// @return ApimPolicy +func (a *DefaultApiService) EnableApimPolicyExecute(r DefaultApiEnableApimPolicyRequest) (*ApimPolicy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApimPolicy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.EnableApimPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/xapi/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}/enable" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"envId"+"}", url.PathEscape(parameterValueToString(r.envId, "envId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiId"+"}", url.PathEscape(parameterValueToString(r.apiId, "apiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiPolicyId"+"}", url.PathEscape(parameterValueToString(r.apiPolicyId, "apiPolicyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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 DefaultApiGetApimPoliciesRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + envId string + apiId string + fullInfo *bool +} + +func (r DefaultApiGetApimPoliciesRequest) FullInfo(fullInfo bool) DefaultApiGetApimPoliciesRequest { + r.fullInfo = &fullInfo + return r +} + +func (r DefaultApiGetApimPoliciesRequest) Execute() (*ApimPolicyCollection, *http.Response, error) { + return r.ApiService.GetApimPoliciesExecute(r) +} + +/* +GetApimPolicies Retrieve all of api manager instance policies. + +Retrieve all of api manager instance policies in a given organization and environment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @param envId The environment Id + @param apiId The api manager instance Id + @return DefaultApiGetApimPoliciesRequest +*/ +func (a *DefaultApiService) GetApimPolicies(ctx context.Context, orgId string, envId string, apiId string) DefaultApiGetApimPoliciesRequest { + return DefaultApiGetApimPoliciesRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + envId: envId, + apiId: apiId, + } +} + +// Execute executes the request +// @return ApimPolicyCollection +func (a *DefaultApiService) GetApimPoliciesExecute(r DefaultApiGetApimPoliciesRequest) (*ApimPolicyCollection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApimPolicyCollection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetApimPolicies") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"envId"+"}", url.PathEscape(parameterValueToString(r.envId, "envId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiId"+"}", url.PathEscape(parameterValueToString(r.apiId, "apiId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fullInfo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fullInfo", r.fullInfo, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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 DefaultApiGetApimPolicyRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + envId string + apiId string + apiPolicyId string +} + +func (r DefaultApiGetApimPolicyRequest) Execute() (*ApimPolicy, *http.Response, error) { + return r.ApiService.GetApimPolicyExecute(r) +} + +/* +GetApimPolicy Retrieve a specific api manager instance policy. + +Retrieve a specific api manager instance policy in a given organization and environment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @param envId The environment Id + @param apiId The api manager instance Id + @param apiPolicyId The api manager instance policy Id + @return DefaultApiGetApimPolicyRequest +*/ +func (a *DefaultApiService) GetApimPolicy(ctx context.Context, orgId string, envId string, apiId string, apiPolicyId string) DefaultApiGetApimPolicyRequest { + return DefaultApiGetApimPolicyRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + envId: envId, + apiId: apiId, + apiPolicyId: apiPolicyId, + } +} + +// Execute executes the request +// @return ApimPolicy +func (a *DefaultApiService) GetApimPolicyExecute(r DefaultApiGetApimPolicyRequest) (*ApimPolicy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApimPolicy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetApimPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"envId"+"}", url.PathEscape(parameterValueToString(r.envId, "envId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiId"+"}", url.PathEscape(parameterValueToString(r.apiId, "apiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiPolicyId"+"}", url.PathEscape(parameterValueToString(r.apiPolicyId, "apiPolicyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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 DefaultApiGetOrgAutomatedPoliciesRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + environmentId *string +} + +// A environment id +func (r DefaultApiGetOrgAutomatedPoliciesRequest) EnvironmentId(environmentId string) DefaultApiGetOrgAutomatedPoliciesRequest { + r.environmentId = &environmentId + return r +} + +func (r DefaultApiGetOrgAutomatedPoliciesRequest) Execute() (*AutomatedPolicyCollection, *http.Response, error) { + return r.ApiService.GetOrgAutomatedPoliciesExecute(r) +} + +/* +GetOrgAutomatedPolicies Retrieve all automated policies of a given organization + +Retrieves all automated policies of a given organization and optionally environment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @return DefaultApiGetOrgAutomatedPoliciesRequest +*/ +func (a *DefaultApiService) GetOrgAutomatedPolicies(ctx context.Context, orgId string) DefaultApiGetOrgAutomatedPoliciesRequest { + return DefaultApiGetOrgAutomatedPoliciesRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +// Execute executes the request +// @return AutomatedPolicyCollection +func (a *DefaultApiService) GetOrgAutomatedPoliciesExecute(r DefaultApiGetOrgAutomatedPoliciesRequest) (*AutomatedPolicyCollection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AutomatedPolicyCollection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetOrgAutomatedPolicies") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/organizations/{orgId}/automated-policies" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.environmentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "environmentId", r.environmentId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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 DefaultApiGetOrgCustomPolicyTemplatesRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + query *string + offset *int32 + ascending *bool + sort *string + limit *int32 +} + +// Search criteria. +func (r DefaultApiGetOrgCustomPolicyTemplatesRequest) Query(query string) DefaultApiGetOrgCustomPolicyTemplatesRequest { + r.query = &query + return r +} + +// Skip over a number of elements by specifying an offset value for the query. +func (r DefaultApiGetOrgCustomPolicyTemplatesRequest) Offset(offset int32) DefaultApiGetOrgCustomPolicyTemplatesRequest { + r.offset = &offset + return r +} + +// Order for sorting. +func (r DefaultApiGetOrgCustomPolicyTemplatesRequest) Ascending(ascending bool) DefaultApiGetOrgCustomPolicyTemplatesRequest { + r.ascending = &ascending + return r +} + +// Property to sort by. +func (r DefaultApiGetOrgCustomPolicyTemplatesRequest) Sort(sort string) DefaultApiGetOrgCustomPolicyTemplatesRequest { + r.sort = &sort + return r +} + +// Limit the number of elements on the response. +func (r DefaultApiGetOrgCustomPolicyTemplatesRequest) Limit(limit int32) DefaultApiGetOrgCustomPolicyTemplatesRequest { + r.limit = &limit + return r +} + +func (r DefaultApiGetOrgCustomPolicyTemplatesRequest) Execute() (*http.Response, error) { + return r.ApiService.GetOrgCustomPolicyTemplatesExecute(r) +} + +/* +GetOrgCustomPolicyTemplates Retrieve all or part of custom policy templates of a given organization + +Retrieves all or part of custom policy templates of a given organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @return DefaultApiGetOrgCustomPolicyTemplatesRequest +*/ +func (a *DefaultApiService) GetOrgCustomPolicyTemplates(ctx context.Context, orgId string) DefaultApiGetOrgCustomPolicyTemplatesRequest { + return DefaultApiGetOrgCustomPolicyTemplatesRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +// Execute executes the request +func (a *DefaultApiService) GetOrgCustomPolicyTemplatesExecute(r DefaultApiGetOrgCustomPolicyTemplatesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetOrgCustomPolicyTemplates") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/organizations/{orgId}/custom-policy-templates" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.query != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ascending != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ascending", r.ascending, "") + } + if r.sort != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v GetOrgAutomatedPolicies404Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type DefaultApiGetOrgExchangePolicyTemplateDetailsRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + groupId string + assetId string + assetVersion string + includeAllVersions *bool + splitModel *bool +} + +// Whether to include all versions of the asset. +func (r DefaultApiGetOrgExchangePolicyTemplateDetailsRequest) IncludeAllVersions(includeAllVersions bool) DefaultApiGetOrgExchangePolicyTemplateDetailsRequest { + r.includeAllVersions = &includeAllVersions + return r +} + +// Whether to include asset split model. +func (r DefaultApiGetOrgExchangePolicyTemplateDetailsRequest) SplitModel(splitModel bool) DefaultApiGetOrgExchangePolicyTemplateDetailsRequest { + r.splitModel = &splitModel + return r +} + +func (r DefaultApiGetOrgExchangePolicyTemplateDetailsRequest) Execute() (*ExchangePolicyTemplate, *http.Response, error) { + return r.ApiService.GetOrgExchangePolicyTemplateDetailsExecute(r) +} + +/* +GetOrgExchangePolicyTemplateDetails Retrieve details of exchange policy template of a given organization + +Retrieve details of exchange policy template of a given organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @param groupId The group Id + @param assetId The asset Id + @param assetVersion The asset version + @return DefaultApiGetOrgExchangePolicyTemplateDetailsRequest +*/ +func (a *DefaultApiService) GetOrgExchangePolicyTemplateDetails(ctx context.Context, orgId string, groupId string, assetId string, assetVersion string) DefaultApiGetOrgExchangePolicyTemplateDetailsRequest { + return DefaultApiGetOrgExchangePolicyTemplateDetailsRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + groupId: groupId, + assetId: assetId, + assetVersion: assetVersion, + } +} + +// Execute executes the request +// @return ExchangePolicyTemplate +func (a *DefaultApiService) GetOrgExchangePolicyTemplateDetailsExecute(r DefaultApiGetOrgExchangePolicyTemplateDetailsRequest) (*ExchangePolicyTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExchangePolicyTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetOrgExchangePolicyTemplateDetails") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/xapi/v1/organizations/{orgId}/exchange-policy-templates/{groupId}/{assetId}/{assetVersion}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"assetId"+"}", url.PathEscape(parameterValueToString(r.assetId, "assetId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"assetVersion"+"}", url.PathEscape(parameterValueToString(r.assetVersion, "assetVersion")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.includeAllVersions != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeAllVersions", r.includeAllVersions, "") + } + if r.splitModel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "splitModel", r.splitModel, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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 DefaultApiGetOrgExchangePolicyTemplatesRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + environmentId *string + splitModel *bool + latest *bool + apiInstanceId *string + includeConfiguration *bool + automatedOnly *bool +} + +// The environment id. +func (r DefaultApiGetOrgExchangePolicyTemplatesRequest) EnvironmentId(environmentId string) DefaultApiGetOrgExchangePolicyTemplatesRequest { + r.environmentId = &environmentId + return r +} + +// Whether to include asset split model. +func (r DefaultApiGetOrgExchangePolicyTemplatesRequest) SplitModel(splitModel bool) DefaultApiGetOrgExchangePolicyTemplatesRequest { + r.splitModel = &splitModel + return r +} + +// include only latest versions. +func (r DefaultApiGetOrgExchangePolicyTemplatesRequest) Latest(latest bool) DefaultApiGetOrgExchangePolicyTemplatesRequest { + r.latest = &latest + return r +} + +// include only templates used for api instance id. +func (r DefaultApiGetOrgExchangePolicyTemplatesRequest) ApiInstanceId(apiInstanceId string) DefaultApiGetOrgExchangePolicyTemplatesRequest { + r.apiInstanceId = &apiInstanceId + return r +} + +// whether to include configuration. +func (r DefaultApiGetOrgExchangePolicyTemplatesRequest) IncludeConfiguration(includeConfiguration bool) DefaultApiGetOrgExchangePolicyTemplatesRequest { + r.includeConfiguration = &includeConfiguration + return r +} + +// whether to include automated policies only. +func (r DefaultApiGetOrgExchangePolicyTemplatesRequest) AutomatedOnly(automatedOnly bool) DefaultApiGetOrgExchangePolicyTemplatesRequest { + r.automatedOnly = &automatedOnly + return r +} + +func (r DefaultApiGetOrgExchangePolicyTemplatesRequest) Execute() ([]ExchangePolicyTemplate, *http.Response, error) { + return r.ApiService.GetOrgExchangePolicyTemplatesExecute(r) +} + +/* +GetOrgExchangePolicyTemplates Retrieve all or part of exchange policy templates of a given organization + +Retrieves all or part of exchange policy templates of a given organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @return DefaultApiGetOrgExchangePolicyTemplatesRequest +*/ +func (a *DefaultApiService) GetOrgExchangePolicyTemplates(ctx context.Context, orgId string) DefaultApiGetOrgExchangePolicyTemplatesRequest { + return DefaultApiGetOrgExchangePolicyTemplatesRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +// Execute executes the request +// @return []ExchangePolicyTemplate +func (a *DefaultApiService) GetOrgExchangePolicyTemplatesExecute(r DefaultApiGetOrgExchangePolicyTemplatesRequest) ([]ExchangePolicyTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ExchangePolicyTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetOrgExchangePolicyTemplates") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/xapi/v1/organizations/{orgId}/exchange-policy-templates" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.environmentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "environmentId", r.environmentId, "") + } + if r.splitModel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "splitModel", r.splitModel, "") + } + if r.latest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "latest", r.latest, "") + } + if r.apiInstanceId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "apiInstanceId", r.apiInstanceId, "") + } + if r.includeConfiguration != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeConfiguration", r.includeConfiguration, "") + } + if r.automatedOnly != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "automatedOnly", r.automatedOnly, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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 DefaultApiPatchApimPolicyRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + envId string + apiId string + apiPolicyId string + body *map[string]interface{} +} + +// policy content +func (r DefaultApiPatchApimPolicyRequest) Body(body map[string]interface{}) DefaultApiPatchApimPolicyRequest { + r.body = &body + return r +} + +func (r DefaultApiPatchApimPolicyRequest) Execute() (*ApimPolicy, *http.Response, error) { + return r.ApiService.PatchApimPolicyExecute(r) +} + +/* +PatchApimPolicy Update a specific api manager instance policy. + +Update a specific api manager instance policy in a given organization and environment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @param envId The environment Id + @param apiId The api manager instance Id + @param apiPolicyId The api manager instance policy Id + @return DefaultApiPatchApimPolicyRequest +*/ +func (a *DefaultApiService) PatchApimPolicy(ctx context.Context, orgId string, envId string, apiId string, apiPolicyId string) DefaultApiPatchApimPolicyRequest { + return DefaultApiPatchApimPolicyRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + envId: envId, + apiId: apiId, + apiPolicyId: apiPolicyId, + } +} + +// Execute executes the request +// @return ApimPolicy +func (a *DefaultApiService) PatchApimPolicyExecute(r DefaultApiPatchApimPolicyRequest) (*ApimPolicy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApimPolicy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.PatchApimPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"envId"+"}", url.PathEscape(parameterValueToString(r.envId, "envId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiId"+"}", url.PathEscape(parameterValueToString(r.apiId, "apiId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiPolicyId"+"}", url.PathEscape(parameterValueToString(r.apiPolicyId, "apiPolicyId")), -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.body + 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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 DefaultApiPostApimPolicyRequest struct { + ctx context.Context + ApiService *DefaultApiService + orgId string + envId string + apiId string + apimPolicyBody *ApimPolicyBody +} + +// policy content +func (r DefaultApiPostApimPolicyRequest) ApimPolicyBody(apimPolicyBody ApimPolicyBody) DefaultApiPostApimPolicyRequest { + r.apimPolicyBody = &apimPolicyBody + return r +} + +func (r DefaultApiPostApimPolicyRequest) Execute() (*ApimPolicy, *http.Response, error) { + return r.ApiService.PostApimPolicyExecute(r) +} + +/* +PostApimPolicy Create an api manager instance policy. + +Create an api manager instance policy in a given organization and environment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgId The organization Id + @param envId The environment Id + @param apiId The api manager instance Id + @return DefaultApiPostApimPolicyRequest +*/ +func (a *DefaultApiService) PostApimPolicy(ctx context.Context, orgId string, envId string, apiId string) DefaultApiPostApimPolicyRequest { + return DefaultApiPostApimPolicyRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + envId: envId, + apiId: apiId, + } +} + +// Execute executes the request +// @return ApimPolicy +func (a *DefaultApiService) PostApimPolicyExecute(r DefaultApiPostApimPolicyRequest) (*ApimPolicy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApimPolicy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.PostApimPolicy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", url.PathEscape(parameterValueToString(r.orgId, "orgId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"envId"+"}", url.PathEscape(parameterValueToString(r.envId, "envId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"apiId"+"}", url.PathEscape(parameterValueToString(r.apiId, "apiId")), -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.apimPolicyBody + 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 == 404 { + var v GetOrgAutomatedPolicies404Response + 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 + } + 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/apim_policy/client.go b/apim_policy/client.go new file mode 100644 index 0000000..1ead72e --- /dev/null +++ b/apim_policy/client.go @@ -0,0 +1,661 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the API Manager Policy API API v1.0.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/apim_policy/configuration.go b/apim_policy/configuration.go new file mode 100644 index 0000000..01cb028 --- /dev/null +++ b/apim_policy/configuration.go @@ -0,0 +1,226 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://anypoint.mulesoft.com/apimanager", + Description: "Anypoint Cloudhub", + }, + { + URL: "https://eu1.anypoint.mulesoft.com/apimanager", + Description: "Anypoint Cloudhub EU", + }, + { + URL: "https://gov.anypoint.mulesoft.com/apimanager", + Description: "Anypoint Cloudhub GOV", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/apim_policy/docs/ApimPolicy.md b/apim_policy/docs/ApimPolicy.md new file mode 100644 index 0000000..df780b4 --- /dev/null +++ b/apim_policy/docs/ApimPolicy.md @@ -0,0 +1,404 @@ +# ApimPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Audit** | Pointer to [**Audit**](Audit.md) | | [optional] +**MasterOrganizationId** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**PolicyTemplateId** | Pointer to **string** | | [optional] +**ConfigurationData** | Pointer to **map[string]interface{}** | | [optional] +**Order** | Pointer to **int32** | | [optional] +**Disabled** | Pointer to **bool** | | [optional] +**PointcutData** | Pointer to [**[]PointcutDataItem**](PointcutDataItem.md) | | [optional] +**GroupId** | Pointer to **string** | | [optional] +**AssetId** | Pointer to **string** | | [optional] +**AssetVersion** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**ApiId** | Pointer to **int32** | | [optional] + +## Methods + +### NewApimPolicy + +`func NewApimPolicy() *ApimPolicy` + +NewApimPolicy instantiates a new ApimPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApimPolicyWithDefaults + +`func NewApimPolicyWithDefaults() *ApimPolicy` + +NewApimPolicyWithDefaults instantiates a new ApimPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAudit + +`func (o *ApimPolicy) GetAudit() Audit` + +GetAudit returns the Audit field if non-nil, zero value otherwise. + +### GetAuditOk + +`func (o *ApimPolicy) GetAuditOk() (*Audit, bool)` + +GetAuditOk returns a tuple with the Audit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudit + +`func (o *ApimPolicy) SetAudit(v Audit)` + +SetAudit sets Audit field to given value. + +### HasAudit + +`func (o *ApimPolicy) HasAudit() bool` + +HasAudit returns a boolean if a field has been set. + +### GetMasterOrganizationId + +`func (o *ApimPolicy) GetMasterOrganizationId() string` + +GetMasterOrganizationId returns the MasterOrganizationId field if non-nil, zero value otherwise. + +### GetMasterOrganizationIdOk + +`func (o *ApimPolicy) GetMasterOrganizationIdOk() (*string, bool)` + +GetMasterOrganizationIdOk returns a tuple with the MasterOrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMasterOrganizationId + +`func (o *ApimPolicy) SetMasterOrganizationId(v string)` + +SetMasterOrganizationId sets MasterOrganizationId field to given value. + +### HasMasterOrganizationId + +`func (o *ApimPolicy) HasMasterOrganizationId() bool` + +HasMasterOrganizationId returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *ApimPolicy) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *ApimPolicy) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *ApimPolicy) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *ApimPolicy) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetId + +`func (o *ApimPolicy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ApimPolicy) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ApimPolicy) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ApimPolicy) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPolicyTemplateId + +`func (o *ApimPolicy) GetPolicyTemplateId() string` + +GetPolicyTemplateId returns the PolicyTemplateId field if non-nil, zero value otherwise. + +### GetPolicyTemplateIdOk + +`func (o *ApimPolicy) GetPolicyTemplateIdOk() (*string, bool)` + +GetPolicyTemplateIdOk returns a tuple with the PolicyTemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyTemplateId + +`func (o *ApimPolicy) SetPolicyTemplateId(v string)` + +SetPolicyTemplateId sets PolicyTemplateId field to given value. + +### HasPolicyTemplateId + +`func (o *ApimPolicy) HasPolicyTemplateId() bool` + +HasPolicyTemplateId returns a boolean if a field has been set. + +### GetConfigurationData + +`func (o *ApimPolicy) GetConfigurationData() map[string]interface{}` + +GetConfigurationData returns the ConfigurationData field if non-nil, zero value otherwise. + +### GetConfigurationDataOk + +`func (o *ApimPolicy) GetConfigurationDataOk() (*map[string]interface{}, bool)` + +GetConfigurationDataOk returns a tuple with the ConfigurationData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationData + +`func (o *ApimPolicy) SetConfigurationData(v map[string]interface{})` + +SetConfigurationData sets ConfigurationData field to given value. + +### HasConfigurationData + +`func (o *ApimPolicy) HasConfigurationData() bool` + +HasConfigurationData returns a boolean if a field has been set. + +### GetOrder + +`func (o *ApimPolicy) GetOrder() int32` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *ApimPolicy) GetOrderOk() (*int32, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *ApimPolicy) SetOrder(v int32)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *ApimPolicy) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetDisabled + +`func (o *ApimPolicy) GetDisabled() bool` + +GetDisabled returns the Disabled field if non-nil, zero value otherwise. + +### GetDisabledOk + +`func (o *ApimPolicy) GetDisabledOk() (*bool, bool)` + +GetDisabledOk returns a tuple with the Disabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabled + +`func (o *ApimPolicy) SetDisabled(v bool)` + +SetDisabled sets Disabled field to given value. + +### HasDisabled + +`func (o *ApimPolicy) HasDisabled() bool` + +HasDisabled returns a boolean if a field has been set. + +### GetPointcutData + +`func (o *ApimPolicy) GetPointcutData() []PointcutDataItem` + +GetPointcutData returns the PointcutData field if non-nil, zero value otherwise. + +### GetPointcutDataOk + +`func (o *ApimPolicy) GetPointcutDataOk() (*[]PointcutDataItem, bool)` + +GetPointcutDataOk returns a tuple with the PointcutData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointcutData + +`func (o *ApimPolicy) SetPointcutData(v []PointcutDataItem)` + +SetPointcutData sets PointcutData field to given value. + +### HasPointcutData + +`func (o *ApimPolicy) HasPointcutData() bool` + +HasPointcutData returns a boolean if a field has been set. + +### SetPointcutDataNil + +`func (o *ApimPolicy) SetPointcutDataNil(b bool)` + + SetPointcutDataNil sets the value for PointcutData to be an explicit nil + +### UnsetPointcutData +`func (o *ApimPolicy) UnsetPointcutData()` + +UnsetPointcutData ensures that no value is present for PointcutData, not even an explicit nil +### GetGroupId + +`func (o *ApimPolicy) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ApimPolicy) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ApimPolicy) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *ApimPolicy) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetAssetId + +`func (o *ApimPolicy) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *ApimPolicy) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *ApimPolicy) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *ApimPolicy) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetAssetVersion + +`func (o *ApimPolicy) GetAssetVersion() string` + +GetAssetVersion returns the AssetVersion field if non-nil, zero value otherwise. + +### GetAssetVersionOk + +`func (o *ApimPolicy) GetAssetVersionOk() (*string, bool)` + +GetAssetVersionOk returns a tuple with the AssetVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetVersion + +`func (o *ApimPolicy) SetAssetVersion(v string)` + +SetAssetVersion sets AssetVersion field to given value. + +### HasAssetVersion + +`func (o *ApimPolicy) HasAssetVersion() bool` + +HasAssetVersion returns a boolean if a field has been set. + +### GetType + +`func (o *ApimPolicy) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ApimPolicy) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ApimPolicy) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ApimPolicy) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetApiId + +`func (o *ApimPolicy) GetApiId() int32` + +GetApiId returns the ApiId field if non-nil, zero value otherwise. + +### GetApiIdOk + +`func (o *ApimPolicy) GetApiIdOk() (*int32, bool)` + +GetApiIdOk returns a tuple with the ApiId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiId + +`func (o *ApimPolicy) SetApiId(v int32)` + +SetApiId sets ApiId field to given value. + +### HasApiId + +`func (o *ApimPolicy) HasApiId() bool` + +HasApiId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ApimPolicyBody.md b/apim_policy/docs/ApimPolicyBody.md new file mode 100644 index 0000000..685ee90 --- /dev/null +++ b/apim_policy/docs/ApimPolicyBody.md @@ -0,0 +1,196 @@ +# ApimPolicyBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationData** | Pointer to **map[string]interface{}** | | [optional] +**GroupId** | Pointer to **string** | | [optional] +**AssetId** | Pointer to **string** | | [optional] +**AssetVersion** | Pointer to **string** | | [optional] +**Order** | Pointer to **int32** | | [optional] +**PointcutData** | Pointer to [**[]PointcutDataItem**](PointcutDataItem.md) | | [optional] + +## Methods + +### NewApimPolicyBody + +`func NewApimPolicyBody() *ApimPolicyBody` + +NewApimPolicyBody instantiates a new ApimPolicyBody object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApimPolicyBodyWithDefaults + +`func NewApimPolicyBodyWithDefaults() *ApimPolicyBody` + +NewApimPolicyBodyWithDefaults instantiates a new ApimPolicyBody object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfigurationData + +`func (o *ApimPolicyBody) GetConfigurationData() map[string]interface{}` + +GetConfigurationData returns the ConfigurationData field if non-nil, zero value otherwise. + +### GetConfigurationDataOk + +`func (o *ApimPolicyBody) GetConfigurationDataOk() (*map[string]interface{}, bool)` + +GetConfigurationDataOk returns a tuple with the ConfigurationData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationData + +`func (o *ApimPolicyBody) SetConfigurationData(v map[string]interface{})` + +SetConfigurationData sets ConfigurationData field to given value. + +### HasConfigurationData + +`func (o *ApimPolicyBody) HasConfigurationData() bool` + +HasConfigurationData returns a boolean if a field has been set. + +### GetGroupId + +`func (o *ApimPolicyBody) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ApimPolicyBody) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ApimPolicyBody) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *ApimPolicyBody) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetAssetId + +`func (o *ApimPolicyBody) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *ApimPolicyBody) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *ApimPolicyBody) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *ApimPolicyBody) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetAssetVersion + +`func (o *ApimPolicyBody) GetAssetVersion() string` + +GetAssetVersion returns the AssetVersion field if non-nil, zero value otherwise. + +### GetAssetVersionOk + +`func (o *ApimPolicyBody) GetAssetVersionOk() (*string, bool)` + +GetAssetVersionOk returns a tuple with the AssetVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetVersion + +`func (o *ApimPolicyBody) SetAssetVersion(v string)` + +SetAssetVersion sets AssetVersion field to given value. + +### HasAssetVersion + +`func (o *ApimPolicyBody) HasAssetVersion() bool` + +HasAssetVersion returns a boolean if a field has been set. + +### GetOrder + +`func (o *ApimPolicyBody) GetOrder() int32` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *ApimPolicyBody) GetOrderOk() (*int32, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *ApimPolicyBody) SetOrder(v int32)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *ApimPolicyBody) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetPointcutData + +`func (o *ApimPolicyBody) GetPointcutData() []PointcutDataItem` + +GetPointcutData returns the PointcutData field if non-nil, zero value otherwise. + +### GetPointcutDataOk + +`func (o *ApimPolicyBody) GetPointcutDataOk() (*[]PointcutDataItem, bool)` + +GetPointcutDataOk returns a tuple with the PointcutData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointcutData + +`func (o *ApimPolicyBody) SetPointcutData(v []PointcutDataItem)` + +SetPointcutData sets PointcutData field to given value. + +### HasPointcutData + +`func (o *ApimPolicyBody) HasPointcutData() bool` + +HasPointcutData returns a boolean if a field has been set. + +### SetPointcutDataNil + +`func (o *ApimPolicyBody) SetPointcutDataNil(b bool)` + + SetPointcutDataNil sets the value for PointcutData to be an explicit nil + +### UnsetPointcutData +`func (o *ApimPolicyBody) UnsetPointcutData()` + +UnsetPointcutData ensures that no value is present for PointcutData, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ApimPolicyCollection.md b/apim_policy/docs/ApimPolicyCollection.md new file mode 100644 index 0000000..35b7a7a --- /dev/null +++ b/apim_policy/docs/ApimPolicyCollection.md @@ -0,0 +1,56 @@ +# ApimPolicyCollection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policies** | Pointer to [**[]ApimPolicyFull**](ApimPolicyFull.md) | | [optional] + +## Methods + +### NewApimPolicyCollection + +`func NewApimPolicyCollection() *ApimPolicyCollection` + +NewApimPolicyCollection instantiates a new ApimPolicyCollection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApimPolicyCollectionWithDefaults + +`func NewApimPolicyCollectionWithDefaults() *ApimPolicyCollection` + +NewApimPolicyCollectionWithDefaults instantiates a new ApimPolicyCollection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicies + +`func (o *ApimPolicyCollection) GetPolicies() []ApimPolicyFull` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *ApimPolicyCollection) GetPoliciesOk() (*[]ApimPolicyFull, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *ApimPolicyCollection) SetPolicies(v []ApimPolicyFull)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *ApimPolicyCollection) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ApimPolicyFull.md b/apim_policy/docs/ApimPolicyFull.md new file mode 100644 index 0000000..3d6ae46 --- /dev/null +++ b/apim_policy/docs/ApimPolicyFull.md @@ -0,0 +1,248 @@ +# ApimPolicyFull + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PolicyTemplateId** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**PolicyId** | Pointer to **int32** | | [optional] +**Version** | Pointer to **int32** | | [optional] +**Order** | Pointer to **int32** | | [optional] +**PointcutData** | Pointer to [**[]PointcutDataItem**](PointcutDataItem.md) | | [optional] +**Configuration** | Pointer to **map[string]interface{}** | | [optional] +**Template** | Pointer to [**ApimPolicyFullTemplate**](ApimPolicyFullTemplate.md) | | [optional] + +## Methods + +### NewApimPolicyFull + +`func NewApimPolicyFull() *ApimPolicyFull` + +NewApimPolicyFull instantiates a new ApimPolicyFull object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApimPolicyFullWithDefaults + +`func NewApimPolicyFullWithDefaults() *ApimPolicyFull` + +NewApimPolicyFullWithDefaults instantiates a new ApimPolicyFull object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicyTemplateId + +`func (o *ApimPolicyFull) GetPolicyTemplateId() string` + +GetPolicyTemplateId returns the PolicyTemplateId field if non-nil, zero value otherwise. + +### GetPolicyTemplateIdOk + +`func (o *ApimPolicyFull) GetPolicyTemplateIdOk() (*string, bool)` + +GetPolicyTemplateIdOk returns a tuple with the PolicyTemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyTemplateId + +`func (o *ApimPolicyFull) SetPolicyTemplateId(v string)` + +SetPolicyTemplateId sets PolicyTemplateId field to given value. + +### HasPolicyTemplateId + +`func (o *ApimPolicyFull) HasPolicyTemplateId() bool` + +HasPolicyTemplateId returns a boolean if a field has been set. + +### GetType + +`func (o *ApimPolicyFull) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ApimPolicyFull) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ApimPolicyFull) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ApimPolicyFull) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetPolicyId + +`func (o *ApimPolicyFull) GetPolicyId() int32` + +GetPolicyId returns the PolicyId field if non-nil, zero value otherwise. + +### GetPolicyIdOk + +`func (o *ApimPolicyFull) GetPolicyIdOk() (*int32, bool)` + +GetPolicyIdOk returns a tuple with the PolicyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyId + +`func (o *ApimPolicyFull) SetPolicyId(v int32)` + +SetPolicyId sets PolicyId field to given value. + +### HasPolicyId + +`func (o *ApimPolicyFull) HasPolicyId() bool` + +HasPolicyId returns a boolean if a field has been set. + +### GetVersion + +`func (o *ApimPolicyFull) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ApimPolicyFull) GetVersionOk() (*int32, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ApimPolicyFull) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ApimPolicyFull) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetOrder + +`func (o *ApimPolicyFull) GetOrder() int32` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *ApimPolicyFull) GetOrderOk() (*int32, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *ApimPolicyFull) SetOrder(v int32)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *ApimPolicyFull) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetPointcutData + +`func (o *ApimPolicyFull) GetPointcutData() []PointcutDataItem` + +GetPointcutData returns the PointcutData field if non-nil, zero value otherwise. + +### GetPointcutDataOk + +`func (o *ApimPolicyFull) GetPointcutDataOk() (*[]PointcutDataItem, bool)` + +GetPointcutDataOk returns a tuple with the PointcutData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointcutData + +`func (o *ApimPolicyFull) SetPointcutData(v []PointcutDataItem)` + +SetPointcutData sets PointcutData field to given value. + +### HasPointcutData + +`func (o *ApimPolicyFull) HasPointcutData() bool` + +HasPointcutData returns a boolean if a field has been set. + +### SetPointcutDataNil + +`func (o *ApimPolicyFull) SetPointcutDataNil(b bool)` + + SetPointcutDataNil sets the value for PointcutData to be an explicit nil + +### UnsetPointcutData +`func (o *ApimPolicyFull) UnsetPointcutData()` + +UnsetPointcutData ensures that no value is present for PointcutData, not even an explicit nil +### GetConfiguration + +`func (o *ApimPolicyFull) GetConfiguration() map[string]interface{}` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *ApimPolicyFull) GetConfigurationOk() (*map[string]interface{}, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *ApimPolicyFull) SetConfiguration(v map[string]interface{})` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *ApimPolicyFull) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + +### GetTemplate + +`func (o *ApimPolicyFull) GetTemplate() ApimPolicyFullTemplate` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ApimPolicyFull) GetTemplateOk() (*ApimPolicyFullTemplate, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ApimPolicyFull) SetTemplate(v ApimPolicyFullTemplate)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *ApimPolicyFull) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ApimPolicyFullCollecion.md b/apim_policy/docs/ApimPolicyFullCollecion.md new file mode 100644 index 0000000..06c1f37 --- /dev/null +++ b/apim_policy/docs/ApimPolicyFullCollecion.md @@ -0,0 +1,56 @@ +# ApimPolicyFullCollecion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policies** | Pointer to [**[]ApimPolicyFull**](ApimPolicyFull.md) | | [optional] + +## Methods + +### NewApimPolicyFullCollecion + +`func NewApimPolicyFullCollecion() *ApimPolicyFullCollecion` + +NewApimPolicyFullCollecion instantiates a new ApimPolicyFullCollecion object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApimPolicyFullCollecionWithDefaults + +`func NewApimPolicyFullCollecionWithDefaults() *ApimPolicyFullCollecion` + +NewApimPolicyFullCollecionWithDefaults instantiates a new ApimPolicyFullCollecion object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicies + +`func (o *ApimPolicyFullCollecion) GetPolicies() []ApimPolicyFull` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *ApimPolicyFullCollecion) GetPoliciesOk() (*[]ApimPolicyFull, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *ApimPolicyFullCollecion) SetPolicies(v []ApimPolicyFull)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *ApimPolicyFullCollecion) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ApimPolicyFullTemplate.md b/apim_policy/docs/ApimPolicyFullTemplate.md new file mode 100644 index 0000000..fba7ea6 --- /dev/null +++ b/apim_policy/docs/ApimPolicyFullTemplate.md @@ -0,0 +1,108 @@ +# ApimPolicyFullTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | Pointer to **string** | | [optional] +**AssetId** | Pointer to **string** | | [optional] +**AssetVersion** | Pointer to **string** | | [optional] + +## Methods + +### NewApimPolicyFullTemplate + +`func NewApimPolicyFullTemplate() *ApimPolicyFullTemplate` + +NewApimPolicyFullTemplate instantiates a new ApimPolicyFullTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApimPolicyFullTemplateWithDefaults + +`func NewApimPolicyFullTemplateWithDefaults() *ApimPolicyFullTemplate` + +NewApimPolicyFullTemplateWithDefaults instantiates a new ApimPolicyFullTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupId + +`func (o *ApimPolicyFullTemplate) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ApimPolicyFullTemplate) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ApimPolicyFullTemplate) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *ApimPolicyFullTemplate) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetAssetId + +`func (o *ApimPolicyFullTemplate) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *ApimPolicyFullTemplate) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *ApimPolicyFullTemplate) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *ApimPolicyFullTemplate) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetAssetVersion + +`func (o *ApimPolicyFullTemplate) GetAssetVersion() string` + +GetAssetVersion returns the AssetVersion field if non-nil, zero value otherwise. + +### GetAssetVersionOk + +`func (o *ApimPolicyFullTemplate) GetAssetVersionOk() (*string, bool)` + +GetAssetVersionOk returns a tuple with the AssetVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetVersion + +`func (o *ApimPolicyFullTemplate) SetAssetVersion(v string)` + +SetAssetVersion sets AssetVersion field to given value. + +### HasAssetVersion + +`func (o *ApimPolicyFullTemplate) HasAssetVersion() bool` + +HasAssetVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/Audit.md b/apim_policy/docs/Audit.md new file mode 100644 index 0000000..835dca2 --- /dev/null +++ b/apim_policy/docs/Audit.md @@ -0,0 +1,82 @@ +# Audit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | Pointer to [**AuditCreated**](AuditCreated.md) | | [optional] +**Updated** | Pointer to [**AuditCreated**](AuditCreated.md) | | [optional] + +## Methods + +### NewAudit + +`func NewAudit() *Audit` + +NewAudit instantiates a new Audit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditWithDefaults + +`func NewAuditWithDefaults() *Audit` + +NewAuditWithDefaults instantiates a new Audit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreated + +`func (o *Audit) GetCreated() AuditCreated` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Audit) GetCreatedOk() (*AuditCreated, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Audit) SetCreated(v AuditCreated)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Audit) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### GetUpdated + +`func (o *Audit) GetUpdated() AuditCreated` + +GetUpdated returns the Updated field if non-nil, zero value otherwise. + +### GetUpdatedOk + +`func (o *Audit) GetUpdatedOk() (*AuditCreated, bool)` + +GetUpdatedOk returns a tuple with the Updated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdated + +`func (o *Audit) SetUpdated(v AuditCreated)` + +SetUpdated sets Updated field to given value. + +### HasUpdated + +`func (o *Audit) HasUpdated() bool` + +HasUpdated returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/AuditCreated.md b/apim_policy/docs/AuditCreated.md new file mode 100644 index 0000000..8c0f6bd --- /dev/null +++ b/apim_policy/docs/AuditCreated.md @@ -0,0 +1,56 @@ +# AuditCreated + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | Pointer to **string** | | [optional] + +## Methods + +### NewAuditCreated + +`func NewAuditCreated() *AuditCreated` + +NewAuditCreated instantiates a new AuditCreated object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditCreatedWithDefaults + +`func NewAuditCreatedWithDefaults() *AuditCreated` + +NewAuditCreatedWithDefaults instantiates a new AuditCreated object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDate + +`func (o *AuditCreated) GetDate() string` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *AuditCreated) GetDateOk() (*string, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *AuditCreated) SetDate(v string)` + +SetDate sets Date field to given value. + +### HasDate + +`func (o *AuditCreated) HasDate() bool` + +HasDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/AutomatedPolicy.md b/apim_policy/docs/AutomatedPolicy.md new file mode 100644 index 0000000..5968887 --- /dev/null +++ b/apim_policy/docs/AutomatedPolicy.md @@ -0,0 +1,326 @@ +# AutomatedPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Audit** | Pointer to [**Audit**](Audit.md) | | [optional] +**Id** | Pointer to **int32** | | [optional] +**RuleOfApplication** | Pointer to [**AutomatedPolicyRuleOfApplication**](AutomatedPolicyRuleOfApplication.md) | | [optional] +**GroupId** | Pointer to **string** | | [optional] +**AssetId** | Pointer to **string** | | [optional] +**AssetVersion** | Pointer to **string** | | [optional] +**ConfigurationData** | Pointer to **map[string]interface{}** | | [optional] +**PointcutData** | Pointer to [**[]PointcutDataItem**](PointcutDataItem.md) | | [optional] +**Order** | Pointer to **int32** | | [optional] +**Disabled** | Pointer to **bool** | | [optional] +**ImplementationAssets** | Pointer to [**[]ImplementationAsset**](ImplementationAsset.md) | | [optional] + +## Methods + +### NewAutomatedPolicy + +`func NewAutomatedPolicy() *AutomatedPolicy` + +NewAutomatedPolicy instantiates a new AutomatedPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAutomatedPolicyWithDefaults + +`func NewAutomatedPolicyWithDefaults() *AutomatedPolicy` + +NewAutomatedPolicyWithDefaults instantiates a new AutomatedPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAudit + +`func (o *AutomatedPolicy) GetAudit() Audit` + +GetAudit returns the Audit field if non-nil, zero value otherwise. + +### GetAuditOk + +`func (o *AutomatedPolicy) GetAuditOk() (*Audit, bool)` + +GetAuditOk returns a tuple with the Audit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudit + +`func (o *AutomatedPolicy) SetAudit(v Audit)` + +SetAudit sets Audit field to given value. + +### HasAudit + +`func (o *AutomatedPolicy) HasAudit() bool` + +HasAudit returns a boolean if a field has been set. + +### GetId + +`func (o *AutomatedPolicy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AutomatedPolicy) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AutomatedPolicy) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AutomatedPolicy) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetRuleOfApplication + +`func (o *AutomatedPolicy) GetRuleOfApplication() AutomatedPolicyRuleOfApplication` + +GetRuleOfApplication returns the RuleOfApplication field if non-nil, zero value otherwise. + +### GetRuleOfApplicationOk + +`func (o *AutomatedPolicy) GetRuleOfApplicationOk() (*AutomatedPolicyRuleOfApplication, bool)` + +GetRuleOfApplicationOk returns a tuple with the RuleOfApplication field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleOfApplication + +`func (o *AutomatedPolicy) SetRuleOfApplication(v AutomatedPolicyRuleOfApplication)` + +SetRuleOfApplication sets RuleOfApplication field to given value. + +### HasRuleOfApplication + +`func (o *AutomatedPolicy) HasRuleOfApplication() bool` + +HasRuleOfApplication returns a boolean if a field has been set. + +### GetGroupId + +`func (o *AutomatedPolicy) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *AutomatedPolicy) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *AutomatedPolicy) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *AutomatedPolicy) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetAssetId + +`func (o *AutomatedPolicy) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *AutomatedPolicy) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *AutomatedPolicy) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *AutomatedPolicy) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetAssetVersion + +`func (o *AutomatedPolicy) GetAssetVersion() string` + +GetAssetVersion returns the AssetVersion field if non-nil, zero value otherwise. + +### GetAssetVersionOk + +`func (o *AutomatedPolicy) GetAssetVersionOk() (*string, bool)` + +GetAssetVersionOk returns a tuple with the AssetVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetVersion + +`func (o *AutomatedPolicy) SetAssetVersion(v string)` + +SetAssetVersion sets AssetVersion field to given value. + +### HasAssetVersion + +`func (o *AutomatedPolicy) HasAssetVersion() bool` + +HasAssetVersion returns a boolean if a field has been set. + +### GetConfigurationData + +`func (o *AutomatedPolicy) GetConfigurationData() map[string]interface{}` + +GetConfigurationData returns the ConfigurationData field if non-nil, zero value otherwise. + +### GetConfigurationDataOk + +`func (o *AutomatedPolicy) GetConfigurationDataOk() (*map[string]interface{}, bool)` + +GetConfigurationDataOk returns a tuple with the ConfigurationData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationData + +`func (o *AutomatedPolicy) SetConfigurationData(v map[string]interface{})` + +SetConfigurationData sets ConfigurationData field to given value. + +### HasConfigurationData + +`func (o *AutomatedPolicy) HasConfigurationData() bool` + +HasConfigurationData returns a boolean if a field has been set. + +### GetPointcutData + +`func (o *AutomatedPolicy) GetPointcutData() []PointcutDataItem` + +GetPointcutData returns the PointcutData field if non-nil, zero value otherwise. + +### GetPointcutDataOk + +`func (o *AutomatedPolicy) GetPointcutDataOk() (*[]PointcutDataItem, bool)` + +GetPointcutDataOk returns a tuple with the PointcutData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPointcutData + +`func (o *AutomatedPolicy) SetPointcutData(v []PointcutDataItem)` + +SetPointcutData sets PointcutData field to given value. + +### HasPointcutData + +`func (o *AutomatedPolicy) HasPointcutData() bool` + +HasPointcutData returns a boolean if a field has been set. + +### SetPointcutDataNil + +`func (o *AutomatedPolicy) SetPointcutDataNil(b bool)` + + SetPointcutDataNil sets the value for PointcutData to be an explicit nil + +### UnsetPointcutData +`func (o *AutomatedPolicy) UnsetPointcutData()` + +UnsetPointcutData ensures that no value is present for PointcutData, not even an explicit nil +### GetOrder + +`func (o *AutomatedPolicy) GetOrder() int32` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *AutomatedPolicy) GetOrderOk() (*int32, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *AutomatedPolicy) SetOrder(v int32)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *AutomatedPolicy) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetDisabled + +`func (o *AutomatedPolicy) GetDisabled() bool` + +GetDisabled returns the Disabled field if non-nil, zero value otherwise. + +### GetDisabledOk + +`func (o *AutomatedPolicy) GetDisabledOk() (*bool, bool)` + +GetDisabledOk returns a tuple with the Disabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabled + +`func (o *AutomatedPolicy) SetDisabled(v bool)` + +SetDisabled sets Disabled field to given value. + +### HasDisabled + +`func (o *AutomatedPolicy) HasDisabled() bool` + +HasDisabled returns a boolean if a field has been set. + +### GetImplementationAssets + +`func (o *AutomatedPolicy) GetImplementationAssets() []ImplementationAsset` + +GetImplementationAssets returns the ImplementationAssets field if non-nil, zero value otherwise. + +### GetImplementationAssetsOk + +`func (o *AutomatedPolicy) GetImplementationAssetsOk() (*[]ImplementationAsset, bool)` + +GetImplementationAssetsOk returns a tuple with the ImplementationAssets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImplementationAssets + +`func (o *AutomatedPolicy) SetImplementationAssets(v []ImplementationAsset)` + +SetImplementationAssets sets ImplementationAssets field to given value. + +### HasImplementationAssets + +`func (o *AutomatedPolicy) HasImplementationAssets() bool` + +HasImplementationAssets returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/AutomatedPolicyCollection.md b/apim_policy/docs/AutomatedPolicyCollection.md new file mode 100644 index 0000000..29f5402 --- /dev/null +++ b/apim_policy/docs/AutomatedPolicyCollection.md @@ -0,0 +1,82 @@ +# AutomatedPolicyCollection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutomatedPolicies** | Pointer to [**[]AutomatedPolicy**](AutomatedPolicy.md) | | [optional] +**Total** | Pointer to **int32** | | [optional] + +## Methods + +### NewAutomatedPolicyCollection + +`func NewAutomatedPolicyCollection() *AutomatedPolicyCollection` + +NewAutomatedPolicyCollection instantiates a new AutomatedPolicyCollection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAutomatedPolicyCollectionWithDefaults + +`func NewAutomatedPolicyCollectionWithDefaults() *AutomatedPolicyCollection` + +NewAutomatedPolicyCollectionWithDefaults instantiates a new AutomatedPolicyCollection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAutomatedPolicies + +`func (o *AutomatedPolicyCollection) GetAutomatedPolicies() []AutomatedPolicy` + +GetAutomatedPolicies returns the AutomatedPolicies field if non-nil, zero value otherwise. + +### GetAutomatedPoliciesOk + +`func (o *AutomatedPolicyCollection) GetAutomatedPoliciesOk() (*[]AutomatedPolicy, bool)` + +GetAutomatedPoliciesOk returns a tuple with the AutomatedPolicies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutomatedPolicies + +`func (o *AutomatedPolicyCollection) SetAutomatedPolicies(v []AutomatedPolicy)` + +SetAutomatedPolicies sets AutomatedPolicies field to given value. + +### HasAutomatedPolicies + +`func (o *AutomatedPolicyCollection) HasAutomatedPolicies() bool` + +HasAutomatedPolicies returns a boolean if a field has been set. + +### GetTotal + +`func (o *AutomatedPolicyCollection) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *AutomatedPolicyCollection) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *AutomatedPolicyCollection) SetTotal(v int32)` + +SetTotal sets Total field to given value. + +### HasTotal + +`func (o *AutomatedPolicyCollection) HasTotal() bool` + +HasTotal returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/AutomatedPolicyRuleOfApplication.md b/apim_policy/docs/AutomatedPolicyRuleOfApplication.md new file mode 100644 index 0000000..9126f48 --- /dev/null +++ b/apim_policy/docs/AutomatedPolicyRuleOfApplication.md @@ -0,0 +1,82 @@ +# AutomatedPolicyRuleOfApplication + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnvironmentId** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] + +## Methods + +### NewAutomatedPolicyRuleOfApplication + +`func NewAutomatedPolicyRuleOfApplication() *AutomatedPolicyRuleOfApplication` + +NewAutomatedPolicyRuleOfApplication instantiates a new AutomatedPolicyRuleOfApplication object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAutomatedPolicyRuleOfApplicationWithDefaults + +`func NewAutomatedPolicyRuleOfApplicationWithDefaults() *AutomatedPolicyRuleOfApplication` + +NewAutomatedPolicyRuleOfApplicationWithDefaults instantiates a new AutomatedPolicyRuleOfApplication object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnvironmentId + +`func (o *AutomatedPolicyRuleOfApplication) GetEnvironmentId() string` + +GetEnvironmentId returns the EnvironmentId field if non-nil, zero value otherwise. + +### GetEnvironmentIdOk + +`func (o *AutomatedPolicyRuleOfApplication) GetEnvironmentIdOk() (*string, bool)` + +GetEnvironmentIdOk returns a tuple with the EnvironmentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentId + +`func (o *AutomatedPolicyRuleOfApplication) SetEnvironmentId(v string)` + +SetEnvironmentId sets EnvironmentId field to given value. + +### HasEnvironmentId + +`func (o *AutomatedPolicyRuleOfApplication) HasEnvironmentId() bool` + +HasEnvironmentId returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *AutomatedPolicyRuleOfApplication) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *AutomatedPolicyRuleOfApplication) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *AutomatedPolicyRuleOfApplication) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *AutomatedPolicyRuleOfApplication) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/DefaultApi.md b/apim_policy/docs/DefaultApi.md new file mode 100644 index 0000000..b64c982 --- /dev/null +++ b/apim_policy/docs/DefaultApi.md @@ -0,0 +1,885 @@ +# \DefaultApi + +All URIs are relative to *https://anypoint.mulesoft.com/apimanager* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteApimPolicy**](DefaultApi.md#DeleteApimPolicy) | **Delete** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId} | Delete a specific api manager instance policy. +[**DisableApimPolicy**](DefaultApi.md#DisableApimPolicy) | **Post** /xapi/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}/disable | Disable a specific api manager instance policy. +[**EnableApimPolicy**](DefaultApi.md#EnableApimPolicy) | **Post** /xapi/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId}/enable | Enable a specific api manager instance policy. +[**GetApimPolicies**](DefaultApi.md#GetApimPolicies) | **Get** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies | Retrieve all of api manager instance policies. +[**GetApimPolicy**](DefaultApi.md#GetApimPolicy) | **Get** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId} | Retrieve a specific api manager instance policy. +[**GetOrgAutomatedPolicies**](DefaultApi.md#GetOrgAutomatedPolicies) | **Get** /api/v1/organizations/{orgId}/automated-policies | Retrieve all automated policies of a given organization +[**GetOrgCustomPolicyTemplates**](DefaultApi.md#GetOrgCustomPolicyTemplates) | **Get** /api/v1/organizations/{orgId}/custom-policy-templates | Retrieve all or part of custom policy templates of a given organization +[**GetOrgExchangePolicyTemplateDetails**](DefaultApi.md#GetOrgExchangePolicyTemplateDetails) | **Get** /xapi/v1/organizations/{orgId}/exchange-policy-templates/{groupId}/{assetId}/{assetVersion} | Retrieve details of exchange policy template of a given organization +[**GetOrgExchangePolicyTemplates**](DefaultApi.md#GetOrgExchangePolicyTemplates) | **Get** /xapi/v1/organizations/{orgId}/exchange-policy-templates | Retrieve all or part of exchange policy templates of a given organization +[**PatchApimPolicy**](DefaultApi.md#PatchApimPolicy) | **Patch** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies/{apiPolicyId} | Update a specific api manager instance policy. +[**PostApimPolicy**](DefaultApi.md#PostApimPolicy) | **Post** /api/v1/organizations/{orgId}/environments/{envId}/apis/{apiId}/policies | Create an api manager instance policy. + + + +## DeleteApimPolicy + +> DeleteApimPolicy(ctx, orgId, envId, apiId, apiPolicyId).Execute() + +Delete a specific api manager instance policy. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + envId := "envId_example" // string | The environment Id + apiId := "apiId_example" // string | The api manager instance Id + apiPolicyId := "apiPolicyId_example" // string | The api manager instance policy Id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.DeleteApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteApimPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | +**envId** | **string** | The environment Id | +**apiId** | **string** | The api manager instance Id | +**apiPolicyId** | **string** | The api manager instance policy Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteApimPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DisableApimPolicy + +> ApimPolicy DisableApimPolicy(ctx, orgId, envId, apiId, apiPolicyId).Execute() + +Disable a specific api manager instance policy. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + envId := "envId_example" // string | The environment Id + apiId := "apiId_example" // string | The api manager instance Id + apiPolicyId := "apiPolicyId_example" // string | The api manager instance policy Id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.DisableApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DisableApimPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableApimPolicy`: ApimPolicy + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DisableApimPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | +**envId** | **string** | The environment Id | +**apiId** | **string** | The api manager instance Id | +**apiPolicyId** | **string** | The api manager instance policy Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDisableApimPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + +[**ApimPolicy**](ApimPolicy.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnableApimPolicy + +> ApimPolicy EnableApimPolicy(ctx, orgId, envId, apiId, apiPolicyId).Execute() + +Enable a specific api manager instance policy. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + envId := "envId_example" // string | The environment Id + apiId := "apiId_example" // string | The api manager instance Id + apiPolicyId := "apiPolicyId_example" // string | The api manager instance policy Id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.EnableApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.EnableApimPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableApimPolicy`: ApimPolicy + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.EnableApimPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | +**envId** | **string** | The environment Id | +**apiId** | **string** | The api manager instance Id | +**apiPolicyId** | **string** | The api manager instance policy Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnableApimPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + +[**ApimPolicy**](ApimPolicy.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetApimPolicies + +> ApimPolicyCollection GetApimPolicies(ctx, orgId, envId, apiId).FullInfo(fullInfo).Execute() + +Retrieve all of api manager instance policies. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + envId := "envId_example" // string | The environment Id + apiId := "apiId_example" // string | The api manager instance Id + fullInfo := true // bool | (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetApimPolicies(context.Background(), orgId, envId, apiId).FullInfo(fullInfo).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetApimPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApimPolicies`: ApimPolicyCollection + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetApimPolicies`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | +**envId** | **string** | The environment Id | +**apiId** | **string** | The api manager instance Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetApimPoliciesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **fullInfo** | **bool** | | [default to false] + +### Return type + +[**ApimPolicyCollection**](ApimPolicyCollection.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetApimPolicy + +> ApimPolicy GetApimPolicy(ctx, orgId, envId, apiId, apiPolicyId).Execute() + +Retrieve a specific api manager instance policy. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + envId := "envId_example" // string | The environment Id + apiId := "apiId_example" // string | The api manager instance Id + apiPolicyId := "apiPolicyId_example" // string | The api manager instance policy Id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetApimPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApimPolicy`: ApimPolicy + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetApimPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | +**envId** | **string** | The environment Id | +**apiId** | **string** | The api manager instance Id | +**apiPolicyId** | **string** | The api manager instance policy Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetApimPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + +[**ApimPolicy**](ApimPolicy.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrgAutomatedPolicies + +> AutomatedPolicyCollection GetOrgAutomatedPolicies(ctx, orgId).EnvironmentId(environmentId).Execute() + +Retrieve all automated policies of a given organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + environmentId := "environmentId_example" // string | A environment id (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetOrgAutomatedPolicies(context.Background(), orgId).EnvironmentId(environmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetOrgAutomatedPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrgAutomatedPolicies`: AutomatedPolicyCollection + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetOrgAutomatedPolicies`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrgAutomatedPoliciesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **environmentId** | **string** | A environment id | + +### Return type + +[**AutomatedPolicyCollection**](AutomatedPolicyCollection.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrgCustomPolicyTemplates + +> GetOrgCustomPolicyTemplates(ctx, orgId).Query(query).Offset(offset).Ascending(ascending).Sort(sort).Limit(limit).Execute() + +Retrieve all or part of custom policy templates of a given organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + query := "query_example" // string | Search criteria. (optional) + offset := int32(56) // int32 | Skip over a number of elements by specifying an offset value for the query. (optional) + ascending := true // bool | Order for sorting. (optional) + sort := "sort_example" // string | Property to sort by. (optional) + limit := int32(56) // int32 | Limit the number of elements on the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.GetOrgCustomPolicyTemplates(context.Background(), orgId).Query(query).Offset(offset).Ascending(ascending).Sort(sort).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetOrgCustomPolicyTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrgCustomPolicyTemplatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **query** | **string** | Search criteria. | + **offset** | **int32** | Skip over a number of elements by specifying an offset value for the query. | + **ascending** | **bool** | Order for sorting. | + **sort** | **string** | Property to sort by. | + **limit** | **int32** | Limit the number of elements on the response. | + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrgExchangePolicyTemplateDetails + +> ExchangePolicyTemplate GetOrgExchangePolicyTemplateDetails(ctx, orgId, groupId, assetId, assetVersion).IncludeAllVersions(includeAllVersions).SplitModel(splitModel).Execute() + +Retrieve details of exchange policy template of a given organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + groupId := "groupId_example" // string | The group Id + assetId := "assetId_example" // string | The asset Id + assetVersion := "assetVersion_example" // string | The asset version + includeAllVersions := true // bool | Whether to include all versions of the asset. (optional) + splitModel := true // bool | Whether to include asset split model. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetOrgExchangePolicyTemplateDetails(context.Background(), orgId, groupId, assetId, assetVersion).IncludeAllVersions(includeAllVersions).SplitModel(splitModel).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetOrgExchangePolicyTemplateDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrgExchangePolicyTemplateDetails`: ExchangePolicyTemplate + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetOrgExchangePolicyTemplateDetails`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | +**groupId** | **string** | The group Id | +**assetId** | **string** | The asset Id | +**assetVersion** | **string** | The asset version | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrgExchangePolicyTemplateDetailsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **includeAllVersions** | **bool** | Whether to include all versions of the asset. | + **splitModel** | **bool** | Whether to include asset split model. | + +### Return type + +[**ExchangePolicyTemplate**](ExchangePolicyTemplate.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrgExchangePolicyTemplates + +> []ExchangePolicyTemplate GetOrgExchangePolicyTemplates(ctx, orgId).EnvironmentId(environmentId).SplitModel(splitModel).Latest(latest).ApiInstanceId(apiInstanceId).IncludeConfiguration(includeConfiguration).AutomatedOnly(automatedOnly).Execute() + +Retrieve all or part of exchange policy templates of a given organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + environmentId := "environmentId_example" // string | The environment id. (optional) + splitModel := true // bool | Whether to include asset split model. (optional) + latest := true // bool | include only latest versions. (optional) + apiInstanceId := "apiInstanceId_example" // string | include only templates used for api instance id. (optional) + includeConfiguration := true // bool | whether to include configuration. (optional) + automatedOnly := true // bool | whether to include automated policies only. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetOrgExchangePolicyTemplates(context.Background(), orgId).EnvironmentId(environmentId).SplitModel(splitModel).Latest(latest).ApiInstanceId(apiInstanceId).IncludeConfiguration(includeConfiguration).AutomatedOnly(automatedOnly).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetOrgExchangePolicyTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrgExchangePolicyTemplates`: []ExchangePolicyTemplate + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetOrgExchangePolicyTemplates`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrgExchangePolicyTemplatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **environmentId** | **string** | The environment id. | + **splitModel** | **bool** | Whether to include asset split model. | + **latest** | **bool** | include only latest versions. | + **apiInstanceId** | **string** | include only templates used for api instance id. | + **includeConfiguration** | **bool** | whether to include configuration. | + **automatedOnly** | **bool** | whether to include automated policies only. | + +### Return type + +[**[]ExchangePolicyTemplate**](ExchangePolicyTemplate.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchApimPolicy + +> ApimPolicy PatchApimPolicy(ctx, orgId, envId, apiId, apiPolicyId).Body(body).Execute() + +Update a specific api manager instance policy. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + envId := "envId_example" // string | The environment Id + apiId := "apiId_example" // string | The api manager instance Id + apiPolicyId := "apiPolicyId_example" // string | The api manager instance policy Id + body := map[string]interface{}{ ... } // map[string]interface{} | policy content (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.PatchApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.PatchApimPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchApimPolicy`: ApimPolicy + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.PatchApimPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | +**envId** | **string** | The environment Id | +**apiId** | **string** | The api manager instance Id | +**apiPolicyId** | **string** | The api manager instance policy Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchApimPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **body** | **map[string]interface{}** | policy content | + +### Return type + +[**ApimPolicy**](ApimPolicy.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PostApimPolicy + +> ApimPolicy PostApimPolicy(ctx, orgId, envId, apiId).ApimPolicyBody(apimPolicyBody).Execute() + +Create an api manager instance policy. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func main() { + orgId := "orgId_example" // string | The organization Id + envId := "envId_example" // string | The environment Id + apiId := "apiId_example" // string | The api manager instance Id + apimPolicyBody := *openapiclient.NewApimPolicyBody() // ApimPolicyBody | policy content (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.PostApimPolicy(context.Background(), orgId, envId, apiId).ApimPolicyBody(apimPolicyBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.PostApimPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostApimPolicy`: ApimPolicy + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.PostApimPolicy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The organization Id | +**envId** | **string** | The environment Id | +**apiId** | **string** | The api manager instance Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostApimPolicyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **apimPolicyBody** | [**ApimPolicyBody**](ApimPolicyBody.md) | policy content | + +### Return type + +[**ApimPolicy**](ApimPolicy.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/apim_policy/docs/ErrorsResponse.md b/apim_policy/docs/ErrorsResponse.md new file mode 100644 index 0000000..3c2386a --- /dev/null +++ b/apim_policy/docs/ErrorsResponse.md @@ -0,0 +1,56 @@ +# ErrorsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errors** | Pointer to [**[]ErrorsResponseErrorsInner**](ErrorsResponseErrorsInner.md) | | [optional] + +## Methods + +### NewErrorsResponse + +`func NewErrorsResponse() *ErrorsResponse` + +NewErrorsResponse instantiates a new ErrorsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorsResponseWithDefaults + +`func NewErrorsResponseWithDefaults() *ErrorsResponse` + +NewErrorsResponseWithDefaults instantiates a new ErrorsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrors + +`func (o *ErrorsResponse) GetErrors() []ErrorsResponseErrorsInner` + +GetErrors returns the Errors field if non-nil, zero value otherwise. + +### GetErrorsOk + +`func (o *ErrorsResponse) GetErrorsOk() (*[]ErrorsResponseErrorsInner, bool)` + +GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrors + +`func (o *ErrorsResponse) SetErrors(v []ErrorsResponseErrorsInner)` + +SetErrors sets Errors field to given value. + +### HasErrors + +`func (o *ErrorsResponse) HasErrors() bool` + +HasErrors returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ErrorsResponseErrorsInner.md b/apim_policy/docs/ErrorsResponseErrorsInner.md new file mode 100644 index 0000000..ad9c021 --- /dev/null +++ b/apim_policy/docs/ErrorsResponseErrorsInner.md @@ -0,0 +1,186 @@ +# ErrorsResponseErrorsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**DataPath** | Pointer to **string** | | [optional] +**Keyword** | Pointer to **string** | | [optional] +**Schema** | Pointer to **string** | | [optional] +**Data** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewErrorsResponseErrorsInner + +`func NewErrorsResponseErrorsInner() *ErrorsResponseErrorsInner` + +NewErrorsResponseErrorsInner instantiates a new ErrorsResponseErrorsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorsResponseErrorsInnerWithDefaults + +`func NewErrorsResponseErrorsInnerWithDefaults() *ErrorsResponseErrorsInner` + +NewErrorsResponseErrorsInnerWithDefaults instantiates a new ErrorsResponseErrorsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ErrorsResponseErrorsInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ErrorsResponseErrorsInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ErrorsResponseErrorsInner) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ErrorsResponseErrorsInner) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDataPath + +`func (o *ErrorsResponseErrorsInner) GetDataPath() string` + +GetDataPath returns the DataPath field if non-nil, zero value otherwise. + +### GetDataPathOk + +`func (o *ErrorsResponseErrorsInner) GetDataPathOk() (*string, bool)` + +GetDataPathOk returns a tuple with the DataPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataPath + +`func (o *ErrorsResponseErrorsInner) SetDataPath(v string)` + +SetDataPath sets DataPath field to given value. + +### HasDataPath + +`func (o *ErrorsResponseErrorsInner) HasDataPath() bool` + +HasDataPath returns a boolean if a field has been set. + +### GetKeyword + +`func (o *ErrorsResponseErrorsInner) GetKeyword() string` + +GetKeyword returns the Keyword field if non-nil, zero value otherwise. + +### GetKeywordOk + +`func (o *ErrorsResponseErrorsInner) GetKeywordOk() (*string, bool)` + +GetKeywordOk returns a tuple with the Keyword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyword + +`func (o *ErrorsResponseErrorsInner) SetKeyword(v string)` + +SetKeyword sets Keyword field to given value. + +### HasKeyword + +`func (o *ErrorsResponseErrorsInner) HasKeyword() bool` + +HasKeyword returns a boolean if a field has been set. + +### GetSchema + +`func (o *ErrorsResponseErrorsInner) GetSchema() string` + +GetSchema returns the Schema field if non-nil, zero value otherwise. + +### GetSchemaOk + +`func (o *ErrorsResponseErrorsInner) GetSchemaOk() (*string, bool)` + +GetSchemaOk returns a tuple with the Schema field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchema + +`func (o *ErrorsResponseErrorsInner) SetSchema(v string)` + +SetSchema sets Schema field to given value. + +### HasSchema + +`func (o *ErrorsResponseErrorsInner) HasSchema() bool` + +HasSchema returns a boolean if a field has been set. + +### GetData + +`func (o *ErrorsResponseErrorsInner) GetData() string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ErrorsResponseErrorsInner) GetDataOk() (*string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ErrorsResponseErrorsInner) SetData(v string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ErrorsResponseErrorsInner) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetMessage + +`func (o *ErrorsResponseErrorsInner) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorsResponseErrorsInner) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorsResponseErrorsInner) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ErrorsResponseErrorsInner) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ExchangePolicyTemplate.md b/apim_policy/docs/ExchangePolicyTemplate.md new file mode 100644 index 0000000..aaad4a5 --- /dev/null +++ b/apim_policy/docs/ExchangePolicyTemplate.md @@ -0,0 +1,836 @@ +# ExchangePolicyTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Audit** | Pointer to [**Audit**](Audit.md) | | [optional] +**Id** | Pointer to **int32** | | [optional] +**GroupId** | Pointer to **string** | | [optional] +**AssetId** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**IsOOTB** | Pointer to **bool** | | [optional] +**Stage** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**YamlMd5** | Pointer to **string** | | [optional] +**JarMd5** | Pointer to **string** | | [optional] +**OrgId** | Pointer to **string** | | [optional] +**MinMuleVersion** | Pointer to **string** | | [optional] +**SupportedPoliciesVersions** | Pointer to **string** | | [optional] +**Category** | Pointer to **string** | | [optional] +**ViolationCategory** | Pointer to **string** | | [optional] +**ResourceLevelSupported** | Pointer to **bool** | | [optional] +**EncryptionSupported** | Pointer to **bool** | | [optional] +**Standalone** | Pointer to **bool** | | [optional] +**RequiredCharacteristics** | Pointer to **[]string** | | [optional] +**IdentityManagement** | Pointer to [**ExchangePolicyTemplateIdentityManagement**](ExchangePolicyTemplateIdentityManagement.md) | | [optional] +**ProvidedCharacteristics** | Pointer to **[]string** | | [optional] +**RamlSnippet** | Pointer to **string** | | [optional] +**RamlV1Snippet** | Pointer to **string** | | [optional] +**OasV2Snippet** | Pointer to **string** | | [optional] +**OasV3Snippet** | Pointer to **string** | | [optional] +**Applicable** | Pointer to **bool** | | [optional] +**Configuration** | Pointer to [**[]PolicyConfiguration**](PolicyConfiguration.md) | | [optional] +**AllVersions** | Pointer to [**[]ExchangePolicyTemplateAllVersionsInner**](ExchangePolicyTemplateAllVersionsInner.md) | | [optional] + +## Methods + +### NewExchangePolicyTemplate + +`func NewExchangePolicyTemplate() *ExchangePolicyTemplate` + +NewExchangePolicyTemplate instantiates a new ExchangePolicyTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewExchangePolicyTemplateWithDefaults + +`func NewExchangePolicyTemplateWithDefaults() *ExchangePolicyTemplate` + +NewExchangePolicyTemplateWithDefaults instantiates a new ExchangePolicyTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAudit + +`func (o *ExchangePolicyTemplate) GetAudit() Audit` + +GetAudit returns the Audit field if non-nil, zero value otherwise. + +### GetAuditOk + +`func (o *ExchangePolicyTemplate) GetAuditOk() (*Audit, bool)` + +GetAuditOk returns a tuple with the Audit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudit + +`func (o *ExchangePolicyTemplate) SetAudit(v Audit)` + +SetAudit sets Audit field to given value. + +### HasAudit + +`func (o *ExchangePolicyTemplate) HasAudit() bool` + +HasAudit returns a boolean if a field has been set. + +### GetId + +`func (o *ExchangePolicyTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ExchangePolicyTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ExchangePolicyTemplate) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ExchangePolicyTemplate) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetGroupId + +`func (o *ExchangePolicyTemplate) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ExchangePolicyTemplate) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ExchangePolicyTemplate) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *ExchangePolicyTemplate) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetAssetId + +`func (o *ExchangePolicyTemplate) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *ExchangePolicyTemplate) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *ExchangePolicyTemplate) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *ExchangePolicyTemplate) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetVersion + +`func (o *ExchangePolicyTemplate) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ExchangePolicyTemplate) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ExchangePolicyTemplate) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ExchangePolicyTemplate) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetName + +`func (o *ExchangePolicyTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ExchangePolicyTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ExchangePolicyTemplate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ExchangePolicyTemplate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ExchangePolicyTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ExchangePolicyTemplate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ExchangePolicyTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ExchangePolicyTemplate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *ExchangePolicyTemplate) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ExchangePolicyTemplate) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ExchangePolicyTemplate) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ExchangePolicyTemplate) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetIsOOTB + +`func (o *ExchangePolicyTemplate) GetIsOOTB() bool` + +GetIsOOTB returns the IsOOTB field if non-nil, zero value otherwise. + +### GetIsOOTBOk + +`func (o *ExchangePolicyTemplate) GetIsOOTBOk() (*bool, bool)` + +GetIsOOTBOk returns a tuple with the IsOOTB field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsOOTB + +`func (o *ExchangePolicyTemplate) SetIsOOTB(v bool)` + +SetIsOOTB sets IsOOTB field to given value. + +### HasIsOOTB + +`func (o *ExchangePolicyTemplate) HasIsOOTB() bool` + +HasIsOOTB returns a boolean if a field has been set. + +### GetStage + +`func (o *ExchangePolicyTemplate) GetStage() string` + +GetStage returns the Stage field if non-nil, zero value otherwise. + +### GetStageOk + +`func (o *ExchangePolicyTemplate) GetStageOk() (*string, bool)` + +GetStageOk returns a tuple with the Stage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStage + +`func (o *ExchangePolicyTemplate) SetStage(v string)` + +SetStage sets Stage field to given value. + +### HasStage + +`func (o *ExchangePolicyTemplate) HasStage() bool` + +HasStage returns a boolean if a field has been set. + +### GetStatus + +`func (o *ExchangePolicyTemplate) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ExchangePolicyTemplate) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ExchangePolicyTemplate) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ExchangePolicyTemplate) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetYamlMd5 + +`func (o *ExchangePolicyTemplate) GetYamlMd5() string` + +GetYamlMd5 returns the YamlMd5 field if non-nil, zero value otherwise. + +### GetYamlMd5Ok + +`func (o *ExchangePolicyTemplate) GetYamlMd5Ok() (*string, bool)` + +GetYamlMd5Ok returns a tuple with the YamlMd5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetYamlMd5 + +`func (o *ExchangePolicyTemplate) SetYamlMd5(v string)` + +SetYamlMd5 sets YamlMd5 field to given value. + +### HasYamlMd5 + +`func (o *ExchangePolicyTemplate) HasYamlMd5() bool` + +HasYamlMd5 returns a boolean if a field has been set. + +### GetJarMd5 + +`func (o *ExchangePolicyTemplate) GetJarMd5() string` + +GetJarMd5 returns the JarMd5 field if non-nil, zero value otherwise. + +### GetJarMd5Ok + +`func (o *ExchangePolicyTemplate) GetJarMd5Ok() (*string, bool)` + +GetJarMd5Ok returns a tuple with the JarMd5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJarMd5 + +`func (o *ExchangePolicyTemplate) SetJarMd5(v string)` + +SetJarMd5 sets JarMd5 field to given value. + +### HasJarMd5 + +`func (o *ExchangePolicyTemplate) HasJarMd5() bool` + +HasJarMd5 returns a boolean if a field has been set. + +### GetOrgId + +`func (o *ExchangePolicyTemplate) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *ExchangePolicyTemplate) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *ExchangePolicyTemplate) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + +### HasOrgId + +`func (o *ExchangePolicyTemplate) HasOrgId() bool` + +HasOrgId returns a boolean if a field has been set. + +### GetMinMuleVersion + +`func (o *ExchangePolicyTemplate) GetMinMuleVersion() string` + +GetMinMuleVersion returns the MinMuleVersion field if non-nil, zero value otherwise. + +### GetMinMuleVersionOk + +`func (o *ExchangePolicyTemplate) GetMinMuleVersionOk() (*string, bool)` + +GetMinMuleVersionOk returns a tuple with the MinMuleVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinMuleVersion + +`func (o *ExchangePolicyTemplate) SetMinMuleVersion(v string)` + +SetMinMuleVersion sets MinMuleVersion field to given value. + +### HasMinMuleVersion + +`func (o *ExchangePolicyTemplate) HasMinMuleVersion() bool` + +HasMinMuleVersion returns a boolean if a field has been set. + +### GetSupportedPoliciesVersions + +`func (o *ExchangePolicyTemplate) GetSupportedPoliciesVersions() string` + +GetSupportedPoliciesVersions returns the SupportedPoliciesVersions field if non-nil, zero value otherwise. + +### GetSupportedPoliciesVersionsOk + +`func (o *ExchangePolicyTemplate) GetSupportedPoliciesVersionsOk() (*string, bool)` + +GetSupportedPoliciesVersionsOk returns a tuple with the SupportedPoliciesVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedPoliciesVersions + +`func (o *ExchangePolicyTemplate) SetSupportedPoliciesVersions(v string)` + +SetSupportedPoliciesVersions sets SupportedPoliciesVersions field to given value. + +### HasSupportedPoliciesVersions + +`func (o *ExchangePolicyTemplate) HasSupportedPoliciesVersions() bool` + +HasSupportedPoliciesVersions returns a boolean if a field has been set. + +### GetCategory + +`func (o *ExchangePolicyTemplate) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *ExchangePolicyTemplate) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *ExchangePolicyTemplate) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *ExchangePolicyTemplate) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetViolationCategory + +`func (o *ExchangePolicyTemplate) GetViolationCategory() string` + +GetViolationCategory returns the ViolationCategory field if non-nil, zero value otherwise. + +### GetViolationCategoryOk + +`func (o *ExchangePolicyTemplate) GetViolationCategoryOk() (*string, bool)` + +GetViolationCategoryOk returns a tuple with the ViolationCategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViolationCategory + +`func (o *ExchangePolicyTemplate) SetViolationCategory(v string)` + +SetViolationCategory sets ViolationCategory field to given value. + +### HasViolationCategory + +`func (o *ExchangePolicyTemplate) HasViolationCategory() bool` + +HasViolationCategory returns a boolean if a field has been set. + +### GetResourceLevelSupported + +`func (o *ExchangePolicyTemplate) GetResourceLevelSupported() bool` + +GetResourceLevelSupported returns the ResourceLevelSupported field if non-nil, zero value otherwise. + +### GetResourceLevelSupportedOk + +`func (o *ExchangePolicyTemplate) GetResourceLevelSupportedOk() (*bool, bool)` + +GetResourceLevelSupportedOk returns a tuple with the ResourceLevelSupported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceLevelSupported + +`func (o *ExchangePolicyTemplate) SetResourceLevelSupported(v bool)` + +SetResourceLevelSupported sets ResourceLevelSupported field to given value. + +### HasResourceLevelSupported + +`func (o *ExchangePolicyTemplate) HasResourceLevelSupported() bool` + +HasResourceLevelSupported returns a boolean if a field has been set. + +### GetEncryptionSupported + +`func (o *ExchangePolicyTemplate) GetEncryptionSupported() bool` + +GetEncryptionSupported returns the EncryptionSupported field if non-nil, zero value otherwise. + +### GetEncryptionSupportedOk + +`func (o *ExchangePolicyTemplate) GetEncryptionSupportedOk() (*bool, bool)` + +GetEncryptionSupportedOk returns a tuple with the EncryptionSupported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncryptionSupported + +`func (o *ExchangePolicyTemplate) SetEncryptionSupported(v bool)` + +SetEncryptionSupported sets EncryptionSupported field to given value. + +### HasEncryptionSupported + +`func (o *ExchangePolicyTemplate) HasEncryptionSupported() bool` + +HasEncryptionSupported returns a boolean if a field has been set. + +### GetStandalone + +`func (o *ExchangePolicyTemplate) GetStandalone() bool` + +GetStandalone returns the Standalone field if non-nil, zero value otherwise. + +### GetStandaloneOk + +`func (o *ExchangePolicyTemplate) GetStandaloneOk() (*bool, bool)` + +GetStandaloneOk returns a tuple with the Standalone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandalone + +`func (o *ExchangePolicyTemplate) SetStandalone(v bool)` + +SetStandalone sets Standalone field to given value. + +### HasStandalone + +`func (o *ExchangePolicyTemplate) HasStandalone() bool` + +HasStandalone returns a boolean if a field has been set. + +### GetRequiredCharacteristics + +`func (o *ExchangePolicyTemplate) GetRequiredCharacteristics() []string` + +GetRequiredCharacteristics returns the RequiredCharacteristics field if non-nil, zero value otherwise. + +### GetRequiredCharacteristicsOk + +`func (o *ExchangePolicyTemplate) GetRequiredCharacteristicsOk() (*[]string, bool)` + +GetRequiredCharacteristicsOk returns a tuple with the RequiredCharacteristics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredCharacteristics + +`func (o *ExchangePolicyTemplate) SetRequiredCharacteristics(v []string)` + +SetRequiredCharacteristics sets RequiredCharacteristics field to given value. + +### HasRequiredCharacteristics + +`func (o *ExchangePolicyTemplate) HasRequiredCharacteristics() bool` + +HasRequiredCharacteristics returns a boolean if a field has been set. + +### GetIdentityManagement + +`func (o *ExchangePolicyTemplate) GetIdentityManagement() ExchangePolicyTemplateIdentityManagement` + +GetIdentityManagement returns the IdentityManagement field if non-nil, zero value otherwise. + +### GetIdentityManagementOk + +`func (o *ExchangePolicyTemplate) GetIdentityManagementOk() (*ExchangePolicyTemplateIdentityManagement, bool)` + +GetIdentityManagementOk returns a tuple with the IdentityManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityManagement + +`func (o *ExchangePolicyTemplate) SetIdentityManagement(v ExchangePolicyTemplateIdentityManagement)` + +SetIdentityManagement sets IdentityManagement field to given value. + +### HasIdentityManagement + +`func (o *ExchangePolicyTemplate) HasIdentityManagement() bool` + +HasIdentityManagement returns a boolean if a field has been set. + +### GetProvidedCharacteristics + +`func (o *ExchangePolicyTemplate) GetProvidedCharacteristics() []string` + +GetProvidedCharacteristics returns the ProvidedCharacteristics field if non-nil, zero value otherwise. + +### GetProvidedCharacteristicsOk + +`func (o *ExchangePolicyTemplate) GetProvidedCharacteristicsOk() (*[]string, bool)` + +GetProvidedCharacteristicsOk returns a tuple with the ProvidedCharacteristics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvidedCharacteristics + +`func (o *ExchangePolicyTemplate) SetProvidedCharacteristics(v []string)` + +SetProvidedCharacteristics sets ProvidedCharacteristics field to given value. + +### HasProvidedCharacteristics + +`func (o *ExchangePolicyTemplate) HasProvidedCharacteristics() bool` + +HasProvidedCharacteristics returns a boolean if a field has been set. + +### GetRamlSnippet + +`func (o *ExchangePolicyTemplate) GetRamlSnippet() string` + +GetRamlSnippet returns the RamlSnippet field if non-nil, zero value otherwise. + +### GetRamlSnippetOk + +`func (o *ExchangePolicyTemplate) GetRamlSnippetOk() (*string, bool)` + +GetRamlSnippetOk returns a tuple with the RamlSnippet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRamlSnippet + +`func (o *ExchangePolicyTemplate) SetRamlSnippet(v string)` + +SetRamlSnippet sets RamlSnippet field to given value. + +### HasRamlSnippet + +`func (o *ExchangePolicyTemplate) HasRamlSnippet() bool` + +HasRamlSnippet returns a boolean if a field has been set. + +### GetRamlV1Snippet + +`func (o *ExchangePolicyTemplate) GetRamlV1Snippet() string` + +GetRamlV1Snippet returns the RamlV1Snippet field if non-nil, zero value otherwise. + +### GetRamlV1SnippetOk + +`func (o *ExchangePolicyTemplate) GetRamlV1SnippetOk() (*string, bool)` + +GetRamlV1SnippetOk returns a tuple with the RamlV1Snippet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRamlV1Snippet + +`func (o *ExchangePolicyTemplate) SetRamlV1Snippet(v string)` + +SetRamlV1Snippet sets RamlV1Snippet field to given value. + +### HasRamlV1Snippet + +`func (o *ExchangePolicyTemplate) HasRamlV1Snippet() bool` + +HasRamlV1Snippet returns a boolean if a field has been set. + +### GetOasV2Snippet + +`func (o *ExchangePolicyTemplate) GetOasV2Snippet() string` + +GetOasV2Snippet returns the OasV2Snippet field if non-nil, zero value otherwise. + +### GetOasV2SnippetOk + +`func (o *ExchangePolicyTemplate) GetOasV2SnippetOk() (*string, bool)` + +GetOasV2SnippetOk returns a tuple with the OasV2Snippet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOasV2Snippet + +`func (o *ExchangePolicyTemplate) SetOasV2Snippet(v string)` + +SetOasV2Snippet sets OasV2Snippet field to given value. + +### HasOasV2Snippet + +`func (o *ExchangePolicyTemplate) HasOasV2Snippet() bool` + +HasOasV2Snippet returns a boolean if a field has been set. + +### GetOasV3Snippet + +`func (o *ExchangePolicyTemplate) GetOasV3Snippet() string` + +GetOasV3Snippet returns the OasV3Snippet field if non-nil, zero value otherwise. + +### GetOasV3SnippetOk + +`func (o *ExchangePolicyTemplate) GetOasV3SnippetOk() (*string, bool)` + +GetOasV3SnippetOk returns a tuple with the OasV3Snippet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOasV3Snippet + +`func (o *ExchangePolicyTemplate) SetOasV3Snippet(v string)` + +SetOasV3Snippet sets OasV3Snippet field to given value. + +### HasOasV3Snippet + +`func (o *ExchangePolicyTemplate) HasOasV3Snippet() bool` + +HasOasV3Snippet returns a boolean if a field has been set. + +### GetApplicable + +`func (o *ExchangePolicyTemplate) GetApplicable() bool` + +GetApplicable returns the Applicable field if non-nil, zero value otherwise. + +### GetApplicableOk + +`func (o *ExchangePolicyTemplate) GetApplicableOk() (*bool, bool)` + +GetApplicableOk returns a tuple with the Applicable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicable + +`func (o *ExchangePolicyTemplate) SetApplicable(v bool)` + +SetApplicable sets Applicable field to given value. + +### HasApplicable + +`func (o *ExchangePolicyTemplate) HasApplicable() bool` + +HasApplicable returns a boolean if a field has been set. + +### GetConfiguration + +`func (o *ExchangePolicyTemplate) GetConfiguration() []PolicyConfiguration` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *ExchangePolicyTemplate) GetConfigurationOk() (*[]PolicyConfiguration, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *ExchangePolicyTemplate) SetConfiguration(v []PolicyConfiguration)` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *ExchangePolicyTemplate) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + +### GetAllVersions + +`func (o *ExchangePolicyTemplate) GetAllVersions() []ExchangePolicyTemplateAllVersionsInner` + +GetAllVersions returns the AllVersions field if non-nil, zero value otherwise. + +### GetAllVersionsOk + +`func (o *ExchangePolicyTemplate) GetAllVersionsOk() (*[]ExchangePolicyTemplateAllVersionsInner, bool)` + +GetAllVersionsOk returns a tuple with the AllVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllVersions + +`func (o *ExchangePolicyTemplate) SetAllVersions(v []ExchangePolicyTemplateAllVersionsInner)` + +SetAllVersions sets AllVersions field to given value. + +### HasAllVersions + +`func (o *ExchangePolicyTemplate) HasAllVersions() bool` + +HasAllVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ExchangePolicyTemplateAllVersionsInner.md b/apim_policy/docs/ExchangePolicyTemplateAllVersionsInner.md new file mode 100644 index 0000000..d06f46d --- /dev/null +++ b/apim_policy/docs/ExchangePolicyTemplateAllVersionsInner.md @@ -0,0 +1,108 @@ +# ExchangePolicyTemplateAllVersionsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | Pointer to **string** | | [optional] +**AssetId** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewExchangePolicyTemplateAllVersionsInner + +`func NewExchangePolicyTemplateAllVersionsInner() *ExchangePolicyTemplateAllVersionsInner` + +NewExchangePolicyTemplateAllVersionsInner instantiates a new ExchangePolicyTemplateAllVersionsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewExchangePolicyTemplateAllVersionsInnerWithDefaults + +`func NewExchangePolicyTemplateAllVersionsInnerWithDefaults() *ExchangePolicyTemplateAllVersionsInner` + +NewExchangePolicyTemplateAllVersionsInnerWithDefaults instantiates a new ExchangePolicyTemplateAllVersionsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupId + +`func (o *ExchangePolicyTemplateAllVersionsInner) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ExchangePolicyTemplateAllVersionsInner) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ExchangePolicyTemplateAllVersionsInner) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *ExchangePolicyTemplateAllVersionsInner) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetAssetId + +`func (o *ExchangePolicyTemplateAllVersionsInner) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *ExchangePolicyTemplateAllVersionsInner) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *ExchangePolicyTemplateAllVersionsInner) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *ExchangePolicyTemplateAllVersionsInner) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetVersion + +`func (o *ExchangePolicyTemplateAllVersionsInner) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ExchangePolicyTemplateAllVersionsInner) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ExchangePolicyTemplateAllVersionsInner) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ExchangePolicyTemplateAllVersionsInner) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ExchangePolicyTemplateIdentityManagement.md b/apim_policy/docs/ExchangePolicyTemplateIdentityManagement.md new file mode 100644 index 0000000..ee3452e --- /dev/null +++ b/apim_policy/docs/ExchangePolicyTemplateIdentityManagement.md @@ -0,0 +1,56 @@ +# ExchangePolicyTemplateIdentityManagement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewExchangePolicyTemplateIdentityManagement + +`func NewExchangePolicyTemplateIdentityManagement() *ExchangePolicyTemplateIdentityManagement` + +NewExchangePolicyTemplateIdentityManagement instantiates a new ExchangePolicyTemplateIdentityManagement object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewExchangePolicyTemplateIdentityManagementWithDefaults + +`func NewExchangePolicyTemplateIdentityManagementWithDefaults() *ExchangePolicyTemplateIdentityManagement` + +NewExchangePolicyTemplateIdentityManagementWithDefaults instantiates a new ExchangePolicyTemplateIdentityManagement object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ExchangePolicyTemplateIdentityManagement) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ExchangePolicyTemplateIdentityManagement) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ExchangePolicyTemplateIdentityManagement) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ExchangePolicyTemplateIdentityManagement) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/GetOrgAutomatedPolicies404Response.md b/apim_policy/docs/GetOrgAutomatedPolicies404Response.md new file mode 100644 index 0000000..c510d45 --- /dev/null +++ b/apim_policy/docs/GetOrgAutomatedPolicies404Response.md @@ -0,0 +1,82 @@ +# GetOrgAutomatedPolicies404Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewGetOrgAutomatedPolicies404Response + +`func NewGetOrgAutomatedPolicies404Response() *GetOrgAutomatedPolicies404Response` + +NewGetOrgAutomatedPolicies404Response instantiates a new GetOrgAutomatedPolicies404Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetOrgAutomatedPolicies404ResponseWithDefaults + +`func NewGetOrgAutomatedPolicies404ResponseWithDefaults() *GetOrgAutomatedPolicies404Response` + +NewGetOrgAutomatedPolicies404ResponseWithDefaults instantiates a new GetOrgAutomatedPolicies404Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GetOrgAutomatedPolicies404Response) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetOrgAutomatedPolicies404Response) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GetOrgAutomatedPolicies404Response) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GetOrgAutomatedPolicies404Response) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetMessage + +`func (o *GetOrgAutomatedPolicies404Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *GetOrgAutomatedPolicies404Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *GetOrgAutomatedPolicies404Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *GetOrgAutomatedPolicies404Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/ImplementationAsset.md b/apim_policy/docs/ImplementationAsset.md new file mode 100644 index 0000000..a08f31f --- /dev/null +++ b/apim_policy/docs/ImplementationAsset.md @@ -0,0 +1,238 @@ +# ImplementationAsset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**AssetId** | Pointer to **string** | | [optional] +**GroupId** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] +**Technology** | Pointer to **string** | | [optional] +**ReleaseNotes** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**MinRuntimeVersion** | Pointer to **string** | | [optional] + +## Methods + +### NewImplementationAsset + +`func NewImplementationAsset() *ImplementationAsset` + +NewImplementationAsset instantiates a new ImplementationAsset object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewImplementationAssetWithDefaults + +`func NewImplementationAssetWithDefaults() *ImplementationAsset` + +NewImplementationAssetWithDefaults instantiates a new ImplementationAsset object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ImplementationAsset) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ImplementationAsset) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ImplementationAsset) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ImplementationAsset) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAssetId + +`func (o *ImplementationAsset) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *ImplementationAsset) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *ImplementationAsset) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *ImplementationAsset) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetGroupId + +`func (o *ImplementationAsset) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ImplementationAsset) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ImplementationAsset) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *ImplementationAsset) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetVersion + +`func (o *ImplementationAsset) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ImplementationAsset) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ImplementationAsset) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ImplementationAsset) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetTechnology + +`func (o *ImplementationAsset) GetTechnology() string` + +GetTechnology returns the Technology field if non-nil, zero value otherwise. + +### GetTechnologyOk + +`func (o *ImplementationAsset) GetTechnologyOk() (*string, bool)` + +GetTechnologyOk returns a tuple with the Technology field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTechnology + +`func (o *ImplementationAsset) SetTechnology(v string)` + +SetTechnology sets Technology field to given value. + +### HasTechnology + +`func (o *ImplementationAsset) HasTechnology() bool` + +HasTechnology returns a boolean if a field has been set. + +### GetReleaseNotes + +`func (o *ImplementationAsset) GetReleaseNotes() string` + +GetReleaseNotes returns the ReleaseNotes field if non-nil, zero value otherwise. + +### GetReleaseNotesOk + +`func (o *ImplementationAsset) GetReleaseNotesOk() (*string, bool)` + +GetReleaseNotesOk returns a tuple with the ReleaseNotes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseNotes + +`func (o *ImplementationAsset) SetReleaseNotes(v string)` + +SetReleaseNotes sets ReleaseNotes field to given value. + +### HasReleaseNotes + +`func (o *ImplementationAsset) HasReleaseNotes() bool` + +HasReleaseNotes returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *ImplementationAsset) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *ImplementationAsset) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *ImplementationAsset) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *ImplementationAsset) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetMinRuntimeVersion + +`func (o *ImplementationAsset) GetMinRuntimeVersion() string` + +GetMinRuntimeVersion returns the MinRuntimeVersion field if non-nil, zero value otherwise. + +### GetMinRuntimeVersionOk + +`func (o *ImplementationAsset) GetMinRuntimeVersionOk() (*string, bool)` + +GetMinRuntimeVersionOk returns a tuple with the MinRuntimeVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinRuntimeVersion + +`func (o *ImplementationAsset) SetMinRuntimeVersion(v string)` + +SetMinRuntimeVersion sets MinRuntimeVersion field to given value. + +### HasMinRuntimeVersion + +`func (o *ImplementationAsset) HasMinRuntimeVersion() bool` + +HasMinRuntimeVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/PointcutDataItem.md b/apim_policy/docs/PointcutDataItem.md new file mode 100644 index 0000000..3606baf --- /dev/null +++ b/apim_policy/docs/PointcutDataItem.md @@ -0,0 +1,82 @@ +# PointcutDataItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MethodRegex** | Pointer to **string** | | [optional] +**UriTemplateRegex** | Pointer to **string** | | [optional] + +## Methods + +### NewPointcutDataItem + +`func NewPointcutDataItem() *PointcutDataItem` + +NewPointcutDataItem instantiates a new PointcutDataItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPointcutDataItemWithDefaults + +`func NewPointcutDataItemWithDefaults() *PointcutDataItem` + +NewPointcutDataItemWithDefaults instantiates a new PointcutDataItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMethodRegex + +`func (o *PointcutDataItem) GetMethodRegex() string` + +GetMethodRegex returns the MethodRegex field if non-nil, zero value otherwise. + +### GetMethodRegexOk + +`func (o *PointcutDataItem) GetMethodRegexOk() (*string, bool)` + +GetMethodRegexOk returns a tuple with the MethodRegex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethodRegex + +`func (o *PointcutDataItem) SetMethodRegex(v string)` + +SetMethodRegex sets MethodRegex field to given value. + +### HasMethodRegex + +`func (o *PointcutDataItem) HasMethodRegex() bool` + +HasMethodRegex returns a boolean if a field has been set. + +### GetUriTemplateRegex + +`func (o *PointcutDataItem) GetUriTemplateRegex() string` + +GetUriTemplateRegex returns the UriTemplateRegex field if non-nil, zero value otherwise. + +### GetUriTemplateRegexOk + +`func (o *PointcutDataItem) GetUriTemplateRegexOk() (*string, bool)` + +GetUriTemplateRegexOk returns a tuple with the UriTemplateRegex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUriTemplateRegex + +`func (o *PointcutDataItem) SetUriTemplateRegex(v string)` + +SetUriTemplateRegex sets UriTemplateRegex field to given value. + +### HasUriTemplateRegex + +`func (o *PointcutDataItem) HasUriTemplateRegex() bool` + +HasUriTemplateRegex returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/PolicyConfiguration.md b/apim_policy/docs/PolicyConfiguration.md new file mode 100644 index 0000000..df8dc55 --- /dev/null +++ b/apim_policy/docs/PolicyConfiguration.md @@ -0,0 +1,264 @@ +# PolicyConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PropertyName** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Options** | Pointer to **[]map[string]interface{}** | | [optional] +**Optional** | Pointer to **bool** | | [optional] +**Sensitive** | Pointer to **bool** | | [optional] +**AllowMultiple** | Pointer to **bool** | | [optional] +**Configuration** | Pointer to [**[]PolicyConfigurationConfigurationInner**](PolicyConfigurationConfigurationInner.md) | | [optional] + +## Methods + +### NewPolicyConfiguration + +`func NewPolicyConfiguration() *PolicyConfiguration` + +NewPolicyConfiguration instantiates a new PolicyConfiguration object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyConfigurationWithDefaults + +`func NewPolicyConfigurationWithDefaults() *PolicyConfiguration` + +NewPolicyConfigurationWithDefaults instantiates a new PolicyConfiguration object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPropertyName + +`func (o *PolicyConfiguration) GetPropertyName() string` + +GetPropertyName returns the PropertyName field if non-nil, zero value otherwise. + +### GetPropertyNameOk + +`func (o *PolicyConfiguration) GetPropertyNameOk() (*string, bool)` + +GetPropertyNameOk returns a tuple with the PropertyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPropertyName + +`func (o *PolicyConfiguration) SetPropertyName(v string)` + +SetPropertyName sets PropertyName field to given value. + +### HasPropertyName + +`func (o *PolicyConfiguration) HasPropertyName() bool` + +HasPropertyName returns a boolean if a field has been set. + +### GetName + +`func (o *PolicyConfiguration) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PolicyConfiguration) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PolicyConfiguration) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PolicyConfiguration) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PolicyConfiguration) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PolicyConfiguration) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PolicyConfiguration) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PolicyConfiguration) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *PolicyConfiguration) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PolicyConfiguration) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PolicyConfiguration) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PolicyConfiguration) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetOptions + +`func (o *PolicyConfiguration) GetOptions() []map[string]interface{}` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *PolicyConfiguration) GetOptionsOk() (*[]map[string]interface{}, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *PolicyConfiguration) SetOptions(v []map[string]interface{})` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *PolicyConfiguration) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetOptional + +`func (o *PolicyConfiguration) GetOptional() bool` + +GetOptional returns the Optional field if non-nil, zero value otherwise. + +### GetOptionalOk + +`func (o *PolicyConfiguration) GetOptionalOk() (*bool, bool)` + +GetOptionalOk returns a tuple with the Optional field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptional + +`func (o *PolicyConfiguration) SetOptional(v bool)` + +SetOptional sets Optional field to given value. + +### HasOptional + +`func (o *PolicyConfiguration) HasOptional() bool` + +HasOptional returns a boolean if a field has been set. + +### GetSensitive + +`func (o *PolicyConfiguration) GetSensitive() bool` + +GetSensitive returns the Sensitive field if non-nil, zero value otherwise. + +### GetSensitiveOk + +`func (o *PolicyConfiguration) GetSensitiveOk() (*bool, bool)` + +GetSensitiveOk returns a tuple with the Sensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSensitive + +`func (o *PolicyConfiguration) SetSensitive(v bool)` + +SetSensitive sets Sensitive field to given value. + +### HasSensitive + +`func (o *PolicyConfiguration) HasSensitive() bool` + +HasSensitive returns a boolean if a field has been set. + +### GetAllowMultiple + +`func (o *PolicyConfiguration) GetAllowMultiple() bool` + +GetAllowMultiple returns the AllowMultiple field if non-nil, zero value otherwise. + +### GetAllowMultipleOk + +`func (o *PolicyConfiguration) GetAllowMultipleOk() (*bool, bool)` + +GetAllowMultipleOk returns a tuple with the AllowMultiple field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowMultiple + +`func (o *PolicyConfiguration) SetAllowMultiple(v bool)` + +SetAllowMultiple sets AllowMultiple field to given value. + +### HasAllowMultiple + +`func (o *PolicyConfiguration) HasAllowMultiple() bool` + +HasAllowMultiple returns a boolean if a field has been set. + +### GetConfiguration + +`func (o *PolicyConfiguration) GetConfiguration() []PolicyConfigurationConfigurationInner` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *PolicyConfiguration) GetConfigurationOk() (*[]PolicyConfigurationConfigurationInner, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *PolicyConfiguration) SetConfiguration(v []PolicyConfigurationConfigurationInner)` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *PolicyConfiguration) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/docs/PolicyConfigurationConfigurationInner.md b/apim_policy/docs/PolicyConfigurationConfigurationInner.md new file mode 100644 index 0000000..4f31e31 --- /dev/null +++ b/apim_policy/docs/PolicyConfigurationConfigurationInner.md @@ -0,0 +1,82 @@ +# PolicyConfigurationConfigurationInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PropertyName** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewPolicyConfigurationConfigurationInner + +`func NewPolicyConfigurationConfigurationInner() *PolicyConfigurationConfigurationInner` + +NewPolicyConfigurationConfigurationInner instantiates a new PolicyConfigurationConfigurationInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPolicyConfigurationConfigurationInnerWithDefaults + +`func NewPolicyConfigurationConfigurationInnerWithDefaults() *PolicyConfigurationConfigurationInner` + +NewPolicyConfigurationConfigurationInnerWithDefaults instantiates a new PolicyConfigurationConfigurationInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPropertyName + +`func (o *PolicyConfigurationConfigurationInner) GetPropertyName() string` + +GetPropertyName returns the PropertyName field if non-nil, zero value otherwise. + +### GetPropertyNameOk + +`func (o *PolicyConfigurationConfigurationInner) GetPropertyNameOk() (*string, bool)` + +GetPropertyNameOk returns a tuple with the PropertyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPropertyName + +`func (o *PolicyConfigurationConfigurationInner) SetPropertyName(v string)` + +SetPropertyName sets PropertyName field to given value. + +### HasPropertyName + +`func (o *PolicyConfigurationConfigurationInner) HasPropertyName() bool` + +HasPropertyName returns a boolean if a field has been set. + +### GetType + +`func (o *PolicyConfigurationConfigurationInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PolicyConfigurationConfigurationInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PolicyConfigurationConfigurationInner) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PolicyConfigurationConfigurationInner) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/apim_policy/git_push.sh b/apim_policy/git_push.sh new file mode 100644 index 0000000..913c473 --- /dev/null +++ b/apim_policy/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="mulesoft-anypoint" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="anypoint-client-go" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/apim_policy/go.mod b/apim_policy/go.mod new file mode 100644 index 0000000..597219d --- /dev/null +++ b/apim_policy/go.mod @@ -0,0 +1,6 @@ +module github.com/mulesoft-anypoint/anypoint-client-go/apim_policy + +go 1.18 + +require ( +) diff --git a/apim_policy/go.sum b/apim_policy/go.sum new file mode 100644 index 0000000..c966c8d --- /dev/null +++ b/apim_policy/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/apim_policy/model_apim_policy.go b/apim_policy/model_apim_policy.go new file mode 100644 index 0000000..b5732c3 --- /dev/null +++ b/apim_policy/model_apim_policy.go @@ -0,0 +1,595 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ApimPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApimPolicy{} + +// ApimPolicy struct for ApimPolicy +type ApimPolicy struct { + Audit *Audit `json:"audit,omitempty"` + MasterOrganizationId *string `json:"masterOrganizationId,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` + Id *int32 `json:"id,omitempty"` + PolicyTemplateId *string `json:"policyTemplateId,omitempty"` + ConfigurationData map[string]interface{} `json:"configurationData,omitempty"` + Order *int32 `json:"order,omitempty"` + Disabled *bool `json:"disabled,omitempty"` + PointcutData []PointcutDataItem `json:"pointcutData,omitempty"` + GroupId *string `json:"groupId,omitempty"` + AssetId *string `json:"assetId,omitempty"` + AssetVersion *string `json:"assetVersion,omitempty"` + Type *string `json:"type,omitempty"` + ApiId *int32 `json:"apiId,omitempty"` +} + +// NewApimPolicy instantiates a new ApimPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApimPolicy() *ApimPolicy { + this := ApimPolicy{} + return &this +} + +// NewApimPolicyWithDefaults instantiates a new ApimPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApimPolicyWithDefaults() *ApimPolicy { + this := ApimPolicy{} + return &this +} + +// GetAudit returns the Audit field value if set, zero value otherwise. +func (o *ApimPolicy) GetAudit() Audit { + if o == nil || IsNil(o.Audit) { + var ret Audit + return ret + } + return *o.Audit +} + +// GetAuditOk returns a tuple with the Audit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetAuditOk() (*Audit, bool) { + if o == nil || IsNil(o.Audit) { + return nil, false + } + return o.Audit, true +} + +// HasAudit returns a boolean if a field has been set. +func (o *ApimPolicy) HasAudit() bool { + if o != nil && !IsNil(o.Audit) { + return true + } + + return false +} + +// SetAudit gets a reference to the given Audit and assigns it to the Audit field. +func (o *ApimPolicy) SetAudit(v Audit) { + o.Audit = &v +} + +// GetMasterOrganizationId returns the MasterOrganizationId field value if set, zero value otherwise. +func (o *ApimPolicy) GetMasterOrganizationId() string { + if o == nil || IsNil(o.MasterOrganizationId) { + var ret string + return ret + } + return *o.MasterOrganizationId +} + +// GetMasterOrganizationIdOk returns a tuple with the MasterOrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetMasterOrganizationIdOk() (*string, bool) { + if o == nil || IsNil(o.MasterOrganizationId) { + return nil, false + } + return o.MasterOrganizationId, true +} + +// HasMasterOrganizationId returns a boolean if a field has been set. +func (o *ApimPolicy) HasMasterOrganizationId() bool { + if o != nil && !IsNil(o.MasterOrganizationId) { + return true + } + + return false +} + +// SetMasterOrganizationId gets a reference to the given string and assigns it to the MasterOrganizationId field. +func (o *ApimPolicy) SetMasterOrganizationId(v string) { + o.MasterOrganizationId = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *ApimPolicy) GetOrganizationId() string { + if o == nil || IsNil(o.OrganizationId) { + var ret string + return ret + } + return *o.OrganizationId +} + +// 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 *ApimPolicy) GetOrganizationIdOk() (*string, bool) { + if o == nil || IsNil(o.OrganizationId) { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *ApimPolicy) HasOrganizationId() bool { + if o != nil && !IsNil(o.OrganizationId) { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *ApimPolicy) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ApimPolicy) GetId() int32 { + if o == nil || IsNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetIdOk() (*int32, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ApimPolicy) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ApimPolicy) SetId(v int32) { + o.Id = &v +} + +// GetPolicyTemplateId returns the PolicyTemplateId field value if set, zero value otherwise. +func (o *ApimPolicy) GetPolicyTemplateId() string { + if o == nil || IsNil(o.PolicyTemplateId) { + var ret string + return ret + } + return *o.PolicyTemplateId +} + +// GetPolicyTemplateIdOk returns a tuple with the PolicyTemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetPolicyTemplateIdOk() (*string, bool) { + if o == nil || IsNil(o.PolicyTemplateId) { + return nil, false + } + return o.PolicyTemplateId, true +} + +// HasPolicyTemplateId returns a boolean if a field has been set. +func (o *ApimPolicy) HasPolicyTemplateId() bool { + if o != nil && !IsNil(o.PolicyTemplateId) { + return true + } + + return false +} + +// SetPolicyTemplateId gets a reference to the given string and assigns it to the PolicyTemplateId field. +func (o *ApimPolicy) SetPolicyTemplateId(v string) { + o.PolicyTemplateId = &v +} + +// GetConfigurationData returns the ConfigurationData field value if set, zero value otherwise. +func (o *ApimPolicy) GetConfigurationData() map[string]interface{} { + if o == nil || IsNil(o.ConfigurationData) { + var ret map[string]interface{} + return ret + } + return o.ConfigurationData +} + +// GetConfigurationDataOk returns a tuple with the ConfigurationData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetConfigurationDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ConfigurationData) { + return map[string]interface{}{}, false + } + return o.ConfigurationData, true +} + +// HasConfigurationData returns a boolean if a field has been set. +func (o *ApimPolicy) HasConfigurationData() bool { + if o != nil && !IsNil(o.ConfigurationData) { + return true + } + + return false +} + +// SetConfigurationData gets a reference to the given map[string]interface{} and assigns it to the ConfigurationData field. +func (o *ApimPolicy) SetConfigurationData(v map[string]interface{}) { + o.ConfigurationData = v +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *ApimPolicy) GetOrder() int32 { + if o == nil || IsNil(o.Order) { + var ret int32 + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetOrderOk() (*int32, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *ApimPolicy) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given int32 and assigns it to the Order field. +func (o *ApimPolicy) SetOrder(v int32) { + o.Order = &v +} + +// GetDisabled returns the Disabled field value if set, zero value otherwise. +func (o *ApimPolicy) GetDisabled() bool { + if o == nil || IsNil(o.Disabled) { + var ret bool + return ret + } + return *o.Disabled +} + +// GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.Disabled) { + return nil, false + } + return o.Disabled, true +} + +// HasDisabled returns a boolean if a field has been set. +func (o *ApimPolicy) HasDisabled() bool { + if o != nil && !IsNil(o.Disabled) { + return true + } + + return false +} + +// SetDisabled gets a reference to the given bool and assigns it to the Disabled field. +func (o *ApimPolicy) SetDisabled(v bool) { + o.Disabled = &v +} + +// GetPointcutData returns the PointcutData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ApimPolicy) GetPointcutData() []PointcutDataItem { + if o == nil { + var ret []PointcutDataItem + return ret + } + return o.PointcutData +} + +// GetPointcutDataOk returns a tuple with the PointcutData 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 *ApimPolicy) GetPointcutDataOk() ([]PointcutDataItem, bool) { + if o == nil || IsNil(o.PointcutData) { + return nil, false + } + return o.PointcutData, true +} + +// HasPointcutData returns a boolean if a field has been set. +func (o *ApimPolicy) HasPointcutData() bool { + if o != nil && IsNil(o.PointcutData) { + return true + } + + return false +} + +// SetPointcutData gets a reference to the given []PointcutDataItem and assigns it to the PointcutData field. +func (o *ApimPolicy) SetPointcutData(v []PointcutDataItem) { + o.PointcutData = v +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *ApimPolicy) GetGroupId() string { + if o == nil || IsNil(o.GroupId) { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetGroupIdOk() (*string, bool) { + if o == nil || IsNil(o.GroupId) { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *ApimPolicy) HasGroupId() bool { + if o != nil && !IsNil(o.GroupId) { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *ApimPolicy) SetGroupId(v string) { + o.GroupId = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *ApimPolicy) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *ApimPolicy) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *ApimPolicy) SetAssetId(v string) { + o.AssetId = &v +} + +// GetAssetVersion returns the AssetVersion field value if set, zero value otherwise. +func (o *ApimPolicy) GetAssetVersion() string { + if o == nil || IsNil(o.AssetVersion) { + var ret string + return ret + } + return *o.AssetVersion +} + +// GetAssetVersionOk returns a tuple with the AssetVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetAssetVersionOk() (*string, bool) { + if o == nil || IsNil(o.AssetVersion) { + return nil, false + } + return o.AssetVersion, true +} + +// HasAssetVersion returns a boolean if a field has been set. +func (o *ApimPolicy) HasAssetVersion() bool { + if o != nil && !IsNil(o.AssetVersion) { + return true + } + + return false +} + +// SetAssetVersion gets a reference to the given string and assigns it to the AssetVersion field. +func (o *ApimPolicy) SetAssetVersion(v string) { + o.AssetVersion = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ApimPolicy) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ApimPolicy) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ApimPolicy) SetType(v string) { + o.Type = &v +} + +// GetApiId returns the ApiId field value if set, zero value otherwise. +func (o *ApimPolicy) GetApiId() int32 { + if o == nil || IsNil(o.ApiId) { + var ret int32 + return ret + } + return *o.ApiId +} + +// GetApiIdOk returns a tuple with the ApiId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicy) GetApiIdOk() (*int32, bool) { + if o == nil || IsNil(o.ApiId) { + return nil, false + } + return o.ApiId, true +} + +// HasApiId returns a boolean if a field has been set. +func (o *ApimPolicy) HasApiId() bool { + if o != nil && !IsNil(o.ApiId) { + return true + } + + return false +} + +// SetApiId gets a reference to the given int32 and assigns it to the ApiId field. +func (o *ApimPolicy) SetApiId(v int32) { + o.ApiId = &v +} + +func (o ApimPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApimPolicy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Audit) { + toSerialize["audit"] = o.Audit + } + if !IsNil(o.MasterOrganizationId) { + toSerialize["masterOrganizationId"] = o.MasterOrganizationId + } + if !IsNil(o.OrganizationId) { + toSerialize["organizationId"] = o.OrganizationId + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.PolicyTemplateId) { + toSerialize["policyTemplateId"] = o.PolicyTemplateId + } + if !IsNil(o.ConfigurationData) { + toSerialize["configurationData"] = o.ConfigurationData + } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.Disabled) { + toSerialize["disabled"] = o.Disabled + } + if o.PointcutData != nil { + toSerialize["pointcutData"] = o.PointcutData + } + if !IsNil(o.GroupId) { + toSerialize["groupId"] = o.GroupId + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.AssetVersion) { + toSerialize["assetVersion"] = o.AssetVersion + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.ApiId) { + toSerialize["apiId"] = o.ApiId + } + return toSerialize, nil +} + +type NullableApimPolicy struct { + value *ApimPolicy + isSet bool +} + +func (v NullableApimPolicy) Get() *ApimPolicy { + return v.value +} + +func (v *NullableApimPolicy) Set(val *ApimPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableApimPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableApimPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApimPolicy(val *ApimPolicy) *NullableApimPolicy { + return &NullableApimPolicy{value: val, isSet: true} +} + +func (v NullableApimPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApimPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_apim_policy_body.go b/apim_policy/model_apim_policy_body.go new file mode 100644 index 0000000..93137b9 --- /dev/null +++ b/apim_policy/model_apim_policy_body.go @@ -0,0 +1,307 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ApimPolicyBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApimPolicyBody{} + +// ApimPolicyBody struct for ApimPolicyBody +type ApimPolicyBody struct { + ConfigurationData map[string]interface{} `json:"configurationData,omitempty"` + GroupId *string `json:"groupId,omitempty"` + AssetId *string `json:"assetId,omitempty"` + AssetVersion *string `json:"assetVersion,omitempty"` + Order *int32 `json:"order,omitempty"` + PointcutData []PointcutDataItem `json:"pointcutData,omitempty"` +} + +// NewApimPolicyBody instantiates a new ApimPolicyBody object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApimPolicyBody() *ApimPolicyBody { + this := ApimPolicyBody{} + return &this +} + +// NewApimPolicyBodyWithDefaults instantiates a new ApimPolicyBody object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApimPolicyBodyWithDefaults() *ApimPolicyBody { + this := ApimPolicyBody{} + return &this +} + +// GetConfigurationData returns the ConfigurationData field value if set, zero value otherwise. +func (o *ApimPolicyBody) GetConfigurationData() map[string]interface{} { + if o == nil || IsNil(o.ConfigurationData) { + var ret map[string]interface{} + return ret + } + return o.ConfigurationData +} + +// GetConfigurationDataOk returns a tuple with the ConfigurationData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyBody) GetConfigurationDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ConfigurationData) { + return map[string]interface{}{}, false + } + return o.ConfigurationData, true +} + +// HasConfigurationData returns a boolean if a field has been set. +func (o *ApimPolicyBody) HasConfigurationData() bool { + if o != nil && !IsNil(o.ConfigurationData) { + return true + } + + return false +} + +// SetConfigurationData gets a reference to the given map[string]interface{} and assigns it to the ConfigurationData field. +func (o *ApimPolicyBody) SetConfigurationData(v map[string]interface{}) { + o.ConfigurationData = v +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *ApimPolicyBody) GetGroupId() string { + if o == nil || IsNil(o.GroupId) { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyBody) GetGroupIdOk() (*string, bool) { + if o == nil || IsNil(o.GroupId) { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *ApimPolicyBody) HasGroupId() bool { + if o != nil && !IsNil(o.GroupId) { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *ApimPolicyBody) SetGroupId(v string) { + o.GroupId = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *ApimPolicyBody) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyBody) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *ApimPolicyBody) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *ApimPolicyBody) SetAssetId(v string) { + o.AssetId = &v +} + +// GetAssetVersion returns the AssetVersion field value if set, zero value otherwise. +func (o *ApimPolicyBody) GetAssetVersion() string { + if o == nil || IsNil(o.AssetVersion) { + var ret string + return ret + } + return *o.AssetVersion +} + +// GetAssetVersionOk returns a tuple with the AssetVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyBody) GetAssetVersionOk() (*string, bool) { + if o == nil || IsNil(o.AssetVersion) { + return nil, false + } + return o.AssetVersion, true +} + +// HasAssetVersion returns a boolean if a field has been set. +func (o *ApimPolicyBody) HasAssetVersion() bool { + if o != nil && !IsNil(o.AssetVersion) { + return true + } + + return false +} + +// SetAssetVersion gets a reference to the given string and assigns it to the AssetVersion field. +func (o *ApimPolicyBody) SetAssetVersion(v string) { + o.AssetVersion = &v +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *ApimPolicyBody) GetOrder() int32 { + if o == nil || IsNil(o.Order) { + var ret int32 + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyBody) GetOrderOk() (*int32, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *ApimPolicyBody) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given int32 and assigns it to the Order field. +func (o *ApimPolicyBody) SetOrder(v int32) { + o.Order = &v +} + +// GetPointcutData returns the PointcutData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ApimPolicyBody) GetPointcutData() []PointcutDataItem { + if o == nil { + var ret []PointcutDataItem + return ret + } + return o.PointcutData +} + +// GetPointcutDataOk returns a tuple with the PointcutData 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 *ApimPolicyBody) GetPointcutDataOk() ([]PointcutDataItem, bool) { + if o == nil || IsNil(o.PointcutData) { + return nil, false + } + return o.PointcutData, true +} + +// HasPointcutData returns a boolean if a field has been set. +func (o *ApimPolicyBody) HasPointcutData() bool { + if o != nil && IsNil(o.PointcutData) { + return true + } + + return false +} + +// SetPointcutData gets a reference to the given []PointcutDataItem and assigns it to the PointcutData field. +func (o *ApimPolicyBody) SetPointcutData(v []PointcutDataItem) { + o.PointcutData = v +} + +func (o ApimPolicyBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApimPolicyBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConfigurationData) { + toSerialize["configurationData"] = o.ConfigurationData + } + if !IsNil(o.GroupId) { + toSerialize["groupId"] = o.GroupId + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.AssetVersion) { + toSerialize["assetVersion"] = o.AssetVersion + } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if o.PointcutData != nil { + toSerialize["pointcutData"] = o.PointcutData + } + return toSerialize, nil +} + +type NullableApimPolicyBody struct { + value *ApimPolicyBody + isSet bool +} + +func (v NullableApimPolicyBody) Get() *ApimPolicyBody { + return v.value +} + +func (v *NullableApimPolicyBody) Set(val *ApimPolicyBody) { + v.value = val + v.isSet = true +} + +func (v NullableApimPolicyBody) IsSet() bool { + return v.isSet +} + +func (v *NullableApimPolicyBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApimPolicyBody(val *ApimPolicyBody) *NullableApimPolicyBody { + return &NullableApimPolicyBody{value: val, isSet: true} +} + +func (v NullableApimPolicyBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApimPolicyBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_apim_policy_collection.go b/apim_policy/model_apim_policy_collection.go new file mode 100644 index 0000000..7927346 --- /dev/null +++ b/apim_policy/model_apim_policy_collection.go @@ -0,0 +1,148 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" + "fmt" +) + +// ApimPolicyCollection - struct for ApimPolicyCollection +type ApimPolicyCollection struct { + ApimPolicyFullCollecion *ApimPolicyFullCollecion + ArrayOfApimPolicy *[]ApimPolicy +} + +// ApimPolicyFullCollecionAsApimPolicyCollection is a convenience function that returns ApimPolicyFullCollecion wrapped in ApimPolicyCollection +func ApimPolicyFullCollecionAsApimPolicyCollection(v *ApimPolicyFullCollecion) ApimPolicyCollection { + return ApimPolicyCollection{ + ApimPolicyFullCollecion: v, + } +} + +// []ApimPolicyAsApimPolicyCollection is a convenience function that returns []ApimPolicy wrapped in ApimPolicyCollection +func ArrayOfApimPolicyAsApimPolicyCollection(v *[]ApimPolicy) ApimPolicyCollection { + return ApimPolicyCollection{ + ArrayOfApimPolicy: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ApimPolicyCollection) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ApimPolicyFullCollecion + err = newStrictDecoder(data).Decode(&dst.ApimPolicyFullCollecion) + if err == nil { + jsonApimPolicyFullCollecion, _ := json.Marshal(dst.ApimPolicyFullCollecion) + if string(jsonApimPolicyFullCollecion) == "{}" { // empty struct + dst.ApimPolicyFullCollecion = nil + } else { + match++ + } + } else { + dst.ApimPolicyFullCollecion = nil + } + + // try to unmarshal data into ArrayOfApimPolicy + err = newStrictDecoder(data).Decode(&dst.ArrayOfApimPolicy) + if err == nil { + jsonArrayOfApimPolicy, _ := json.Marshal(dst.ArrayOfApimPolicy) + if string(jsonArrayOfApimPolicy) == "{}" { // empty struct + dst.ArrayOfApimPolicy = nil + } else { + match++ + } + } else { + dst.ArrayOfApimPolicy = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ApimPolicyFullCollecion = nil + dst.ArrayOfApimPolicy = nil + + return fmt.Errorf("data matches more than one schema in oneOf(ApimPolicyCollection)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(ApimPolicyCollection)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ApimPolicyCollection) MarshalJSON() ([]byte, error) { + if src.ApimPolicyFullCollecion != nil { + return json.Marshal(&src.ApimPolicyFullCollecion) + } + + if src.ArrayOfApimPolicy != nil { + return json.Marshal(&src.ArrayOfApimPolicy) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ApimPolicyCollection) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.ApimPolicyFullCollecion != nil { + return obj.ApimPolicyFullCollecion + } + + if obj.ArrayOfApimPolicy != nil { + return obj.ArrayOfApimPolicy + } + + // all schemas are nil + return nil +} + +type NullableApimPolicyCollection struct { + value *ApimPolicyCollection + isSet bool +} + +func (v NullableApimPolicyCollection) Get() *ApimPolicyCollection { + return v.value +} + +func (v *NullableApimPolicyCollection) Set(val *ApimPolicyCollection) { + v.value = val + v.isSet = true +} + +func (v NullableApimPolicyCollection) IsSet() bool { + return v.isSet +} + +func (v *NullableApimPolicyCollection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApimPolicyCollection(val *ApimPolicyCollection) *NullableApimPolicyCollection { + return &NullableApimPolicyCollection{value: val, isSet: true} +} + +func (v NullableApimPolicyCollection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApimPolicyCollection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_apim_policy_full.go b/apim_policy/model_apim_policy_full.go new file mode 100644 index 0000000..069dbbf --- /dev/null +++ b/apim_policy/model_apim_policy_full.go @@ -0,0 +1,379 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ApimPolicyFull type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApimPolicyFull{} + +// ApimPolicyFull struct for ApimPolicyFull +type ApimPolicyFull struct { + PolicyTemplateId *string `json:"policyTemplateId,omitempty"` + Type *string `json:"type,omitempty"` + PolicyId *int32 `json:"policyId,omitempty"` + Version *int32 `json:"version,omitempty"` + Order *int32 `json:"order,omitempty"` + PointcutData []PointcutDataItem `json:"pointcutData,omitempty"` + Configuration map[string]interface{} `json:"configuration,omitempty"` + Template *ApimPolicyFullTemplate `json:"template,omitempty"` +} + +// NewApimPolicyFull instantiates a new ApimPolicyFull object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApimPolicyFull() *ApimPolicyFull { + this := ApimPolicyFull{} + return &this +} + +// NewApimPolicyFullWithDefaults instantiates a new ApimPolicyFull object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApimPolicyFullWithDefaults() *ApimPolicyFull { + this := ApimPolicyFull{} + return &this +} + +// GetPolicyTemplateId returns the PolicyTemplateId field value if set, zero value otherwise. +func (o *ApimPolicyFull) GetPolicyTemplateId() string { + if o == nil || IsNil(o.PolicyTemplateId) { + var ret string + return ret + } + return *o.PolicyTemplateId +} + +// GetPolicyTemplateIdOk returns a tuple with the PolicyTemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFull) GetPolicyTemplateIdOk() (*string, bool) { + if o == nil || IsNil(o.PolicyTemplateId) { + return nil, false + } + return o.PolicyTemplateId, true +} + +// HasPolicyTemplateId returns a boolean if a field has been set. +func (o *ApimPolicyFull) HasPolicyTemplateId() bool { + if o != nil && !IsNil(o.PolicyTemplateId) { + return true + } + + return false +} + +// SetPolicyTemplateId gets a reference to the given string and assigns it to the PolicyTemplateId field. +func (o *ApimPolicyFull) SetPolicyTemplateId(v string) { + o.PolicyTemplateId = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ApimPolicyFull) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFull) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ApimPolicyFull) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ApimPolicyFull) SetType(v string) { + o.Type = &v +} + +// GetPolicyId returns the PolicyId field value if set, zero value otherwise. +func (o *ApimPolicyFull) GetPolicyId() int32 { + if o == nil || IsNil(o.PolicyId) { + var ret int32 + return ret + } + return *o.PolicyId +} + +// GetPolicyIdOk returns a tuple with the PolicyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFull) GetPolicyIdOk() (*int32, bool) { + if o == nil || IsNil(o.PolicyId) { + return nil, false + } + return o.PolicyId, true +} + +// HasPolicyId returns a boolean if a field has been set. +func (o *ApimPolicyFull) HasPolicyId() bool { + if o != nil && !IsNil(o.PolicyId) { + return true + } + + return false +} + +// SetPolicyId gets a reference to the given int32 and assigns it to the PolicyId field. +func (o *ApimPolicyFull) SetPolicyId(v int32) { + o.PolicyId = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ApimPolicyFull) GetVersion() int32 { + if o == nil || IsNil(o.Version) { + var ret int32 + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFull) GetVersionOk() (*int32, 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 *ApimPolicyFull) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *ApimPolicyFull) SetVersion(v int32) { + o.Version = &v +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *ApimPolicyFull) GetOrder() int32 { + if o == nil || IsNil(o.Order) { + var ret int32 + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFull) GetOrderOk() (*int32, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *ApimPolicyFull) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given int32 and assigns it to the Order field. +func (o *ApimPolicyFull) SetOrder(v int32) { + o.Order = &v +} + +// GetPointcutData returns the PointcutData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ApimPolicyFull) GetPointcutData() []PointcutDataItem { + if o == nil { + var ret []PointcutDataItem + return ret + } + return o.PointcutData +} + +// GetPointcutDataOk returns a tuple with the PointcutData 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 *ApimPolicyFull) GetPointcutDataOk() ([]PointcutDataItem, bool) { + if o == nil || IsNil(o.PointcutData) { + return nil, false + } + return o.PointcutData, true +} + +// HasPointcutData returns a boolean if a field has been set. +func (o *ApimPolicyFull) HasPointcutData() bool { + if o != nil && IsNil(o.PointcutData) { + return true + } + + return false +} + +// SetPointcutData gets a reference to the given []PointcutDataItem and assigns it to the PointcutData field. +func (o *ApimPolicyFull) SetPointcutData(v []PointcutDataItem) { + o.PointcutData = v +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *ApimPolicyFull) GetConfiguration() map[string]interface{} { + if o == nil || IsNil(o.Configuration) { + var ret map[string]interface{} + 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 *ApimPolicyFull) GetConfigurationOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Configuration) { + return map[string]interface{}{}, false + } + return o.Configuration, true +} + +// HasConfiguration returns a boolean if a field has been set. +func (o *ApimPolicyFull) HasConfiguration() bool { + if o != nil && !IsNil(o.Configuration) { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given map[string]interface{} and assigns it to the Configuration field. +func (o *ApimPolicyFull) SetConfiguration(v map[string]interface{}) { + o.Configuration = v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *ApimPolicyFull) GetTemplate() ApimPolicyFullTemplate { + if o == nil || IsNil(o.Template) { + var ret ApimPolicyFullTemplate + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFull) GetTemplateOk() (*ApimPolicyFullTemplate, bool) { + if o == nil || IsNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *ApimPolicyFull) HasTemplate() bool { + if o != nil && !IsNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given ApimPolicyFullTemplate and assigns it to the Template field. +func (o *ApimPolicyFull) SetTemplate(v ApimPolicyFullTemplate) { + o.Template = &v +} + +func (o ApimPolicyFull) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApimPolicyFull) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PolicyTemplateId) { + toSerialize["policyTemplateId"] = o.PolicyTemplateId + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.PolicyId) { + toSerialize["policyId"] = o.PolicyId + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if o.PointcutData != nil { + toSerialize["pointcutData"] = o.PointcutData + } + if !IsNil(o.Configuration) { + toSerialize["configuration"] = o.Configuration + } + if !IsNil(o.Template) { + toSerialize["template"] = o.Template + } + return toSerialize, nil +} + +type NullableApimPolicyFull struct { + value *ApimPolicyFull + isSet bool +} + +func (v NullableApimPolicyFull) Get() *ApimPolicyFull { + return v.value +} + +func (v *NullableApimPolicyFull) Set(val *ApimPolicyFull) { + v.value = val + v.isSet = true +} + +func (v NullableApimPolicyFull) IsSet() bool { + return v.isSet +} + +func (v *NullableApimPolicyFull) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApimPolicyFull(val *ApimPolicyFull) *NullableApimPolicyFull { + return &NullableApimPolicyFull{value: val, isSet: true} +} + +func (v NullableApimPolicyFull) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApimPolicyFull) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_apim_policy_full_collecion.go b/apim_policy/model_apim_policy_full_collecion.go new file mode 100644 index 0000000..1bebe9a --- /dev/null +++ b/apim_policy/model_apim_policy_full_collecion.go @@ -0,0 +1,126 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ApimPolicyFullCollecion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApimPolicyFullCollecion{} + +// ApimPolicyFullCollecion struct for ApimPolicyFullCollecion +type ApimPolicyFullCollecion struct { + Policies []ApimPolicyFull `json:"policies,omitempty"` +} + +// NewApimPolicyFullCollecion instantiates a new ApimPolicyFullCollecion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApimPolicyFullCollecion() *ApimPolicyFullCollecion { + this := ApimPolicyFullCollecion{} + return &this +} + +// NewApimPolicyFullCollecionWithDefaults instantiates a new ApimPolicyFullCollecion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApimPolicyFullCollecionWithDefaults() *ApimPolicyFullCollecion { + this := ApimPolicyFullCollecion{} + return &this +} + +// GetPolicies returns the Policies field value if set, zero value otherwise. +func (o *ApimPolicyFullCollecion) GetPolicies() []ApimPolicyFull { + if o == nil || IsNil(o.Policies) { + var ret []ApimPolicyFull + return ret + } + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFullCollecion) GetPoliciesOk() ([]ApimPolicyFull, bool) { + if o == nil || IsNil(o.Policies) { + return nil, false + } + return o.Policies, true +} + +// HasPolicies returns a boolean if a field has been set. +func (o *ApimPolicyFullCollecion) HasPolicies() bool { + if o != nil && !IsNil(o.Policies) { + return true + } + + return false +} + +// SetPolicies gets a reference to the given []ApimPolicyFull and assigns it to the Policies field. +func (o *ApimPolicyFullCollecion) SetPolicies(v []ApimPolicyFull) { + o.Policies = v +} + +func (o ApimPolicyFullCollecion) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApimPolicyFullCollecion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Policies) { + toSerialize["policies"] = o.Policies + } + return toSerialize, nil +} + +type NullableApimPolicyFullCollecion struct { + value *ApimPolicyFullCollecion + isSet bool +} + +func (v NullableApimPolicyFullCollecion) Get() *ApimPolicyFullCollecion { + return v.value +} + +func (v *NullableApimPolicyFullCollecion) Set(val *ApimPolicyFullCollecion) { + v.value = val + v.isSet = true +} + +func (v NullableApimPolicyFullCollecion) IsSet() bool { + return v.isSet +} + +func (v *NullableApimPolicyFullCollecion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApimPolicyFullCollecion(val *ApimPolicyFullCollecion) *NullableApimPolicyFullCollecion { + return &NullableApimPolicyFullCollecion{value: val, isSet: true} +} + +func (v NullableApimPolicyFullCollecion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApimPolicyFullCollecion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_apim_policy_full_template.go b/apim_policy/model_apim_policy_full_template.go new file mode 100644 index 0000000..29e2110 --- /dev/null +++ b/apim_policy/model_apim_policy_full_template.go @@ -0,0 +1,198 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ApimPolicyFullTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApimPolicyFullTemplate{} + +// ApimPolicyFullTemplate struct for ApimPolicyFullTemplate +type ApimPolicyFullTemplate struct { + GroupId *string `json:"groupId,omitempty"` + AssetId *string `json:"assetId,omitempty"` + AssetVersion *string `json:"assetVersion,omitempty"` +} + +// NewApimPolicyFullTemplate instantiates a new ApimPolicyFullTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApimPolicyFullTemplate() *ApimPolicyFullTemplate { + this := ApimPolicyFullTemplate{} + return &this +} + +// NewApimPolicyFullTemplateWithDefaults instantiates a new ApimPolicyFullTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApimPolicyFullTemplateWithDefaults() *ApimPolicyFullTemplate { + this := ApimPolicyFullTemplate{} + return &this +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *ApimPolicyFullTemplate) GetGroupId() string { + if o == nil || IsNil(o.GroupId) { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFullTemplate) GetGroupIdOk() (*string, bool) { + if o == nil || IsNil(o.GroupId) { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *ApimPolicyFullTemplate) HasGroupId() bool { + if o != nil && !IsNil(o.GroupId) { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *ApimPolicyFullTemplate) SetGroupId(v string) { + o.GroupId = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *ApimPolicyFullTemplate) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFullTemplate) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *ApimPolicyFullTemplate) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *ApimPolicyFullTemplate) SetAssetId(v string) { + o.AssetId = &v +} + +// GetAssetVersion returns the AssetVersion field value if set, zero value otherwise. +func (o *ApimPolicyFullTemplate) GetAssetVersion() string { + if o == nil || IsNil(o.AssetVersion) { + var ret string + return ret + } + return *o.AssetVersion +} + +// GetAssetVersionOk returns a tuple with the AssetVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApimPolicyFullTemplate) GetAssetVersionOk() (*string, bool) { + if o == nil || IsNil(o.AssetVersion) { + return nil, false + } + return o.AssetVersion, true +} + +// HasAssetVersion returns a boolean if a field has been set. +func (o *ApimPolicyFullTemplate) HasAssetVersion() bool { + if o != nil && !IsNil(o.AssetVersion) { + return true + } + + return false +} + +// SetAssetVersion gets a reference to the given string and assigns it to the AssetVersion field. +func (o *ApimPolicyFullTemplate) SetAssetVersion(v string) { + o.AssetVersion = &v +} + +func (o ApimPolicyFullTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApimPolicyFullTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GroupId) { + toSerialize["groupId"] = o.GroupId + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.AssetVersion) { + toSerialize["assetVersion"] = o.AssetVersion + } + return toSerialize, nil +} + +type NullableApimPolicyFullTemplate struct { + value *ApimPolicyFullTemplate + isSet bool +} + +func (v NullableApimPolicyFullTemplate) Get() *ApimPolicyFullTemplate { + return v.value +} + +func (v *NullableApimPolicyFullTemplate) Set(val *ApimPolicyFullTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableApimPolicyFullTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableApimPolicyFullTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApimPolicyFullTemplate(val *ApimPolicyFullTemplate) *NullableApimPolicyFullTemplate { + return &NullableApimPolicyFullTemplate{value: val, isSet: true} +} + +func (v NullableApimPolicyFullTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApimPolicyFullTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_audit.go b/apim_policy/model_audit.go new file mode 100644 index 0000000..9421038 --- /dev/null +++ b/apim_policy/model_audit.go @@ -0,0 +1,162 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the Audit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Audit{} + +// Audit struct for Audit +type Audit struct { + Created *AuditCreated `json:"created,omitempty"` + Updated *AuditCreated `json:"updated,omitempty"` +} + +// NewAudit instantiates a new Audit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAudit() *Audit { + this := Audit{} + return &this +} + +// NewAuditWithDefaults instantiates a new Audit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditWithDefaults() *Audit { + this := Audit{} + return &this +} + +// GetCreated returns the Created field value if set, zero value otherwise. +func (o *Audit) GetCreated() AuditCreated { + if o == nil || IsNil(o.Created) { + var ret AuditCreated + return ret + } + return *o.Created +} + +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Audit) GetCreatedOk() (*AuditCreated, bool) { + if o == nil || IsNil(o.Created) { + return nil, false + } + return o.Created, true +} + +// HasCreated returns a boolean if a field has been set. +func (o *Audit) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false +} + +// SetCreated gets a reference to the given AuditCreated and assigns it to the Created field. +func (o *Audit) SetCreated(v AuditCreated) { + o.Created = &v +} + +// GetUpdated returns the Updated field value if set, zero value otherwise. +func (o *Audit) GetUpdated() AuditCreated { + if o == nil || IsNil(o.Updated) { + var ret AuditCreated + return ret + } + return *o.Updated +} + +// GetUpdatedOk returns a tuple with the Updated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Audit) GetUpdatedOk() (*AuditCreated, bool) { + if o == nil || IsNil(o.Updated) { + return nil, false + } + return o.Updated, true +} + +// HasUpdated returns a boolean if a field has been set. +func (o *Audit) HasUpdated() bool { + if o != nil && !IsNil(o.Updated) { + return true + } + + return false +} + +// SetUpdated gets a reference to the given AuditCreated and assigns it to the Updated field. +func (o *Audit) SetUpdated(v AuditCreated) { + o.Updated = &v +} + +func (o Audit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Audit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if !IsNil(o.Updated) { + toSerialize["updated"] = o.Updated + } + return toSerialize, nil +} + +type NullableAudit struct { + value *Audit + isSet bool +} + +func (v NullableAudit) Get() *Audit { + return v.value +} + +func (v *NullableAudit) Set(val *Audit) { + v.value = val + v.isSet = true +} + +func (v NullableAudit) IsSet() bool { + return v.isSet +} + +func (v *NullableAudit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAudit(val *Audit) *NullableAudit { + return &NullableAudit{value: val, isSet: true} +} + +func (v NullableAudit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAudit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_audit_created.go b/apim_policy/model_audit_created.go new file mode 100644 index 0000000..fc328cc --- /dev/null +++ b/apim_policy/model_audit_created.go @@ -0,0 +1,126 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the AuditCreated type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditCreated{} + +// AuditCreated struct for AuditCreated +type AuditCreated struct { + Date *string `json:"date,omitempty"` +} + +// NewAuditCreated instantiates a new AuditCreated object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditCreated() *AuditCreated { + this := AuditCreated{} + return &this +} + +// NewAuditCreatedWithDefaults instantiates a new AuditCreated object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditCreatedWithDefaults() *AuditCreated { + this := AuditCreated{} + return &this +} + +// GetDate returns the Date field value if set, zero value otherwise. +func (o *AuditCreated) GetDate() string { + if o == nil || IsNil(o.Date) { + var ret string + return ret + } + return *o.Date +} + +// GetDateOk returns a tuple with the Date field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditCreated) GetDateOk() (*string, bool) { + if o == nil || IsNil(o.Date) { + return nil, false + } + return o.Date, true +} + +// HasDate returns a boolean if a field has been set. +func (o *AuditCreated) HasDate() bool { + if o != nil && !IsNil(o.Date) { + return true + } + + return false +} + +// SetDate gets a reference to the given string and assigns it to the Date field. +func (o *AuditCreated) SetDate(v string) { + o.Date = &v +} + +func (o AuditCreated) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditCreated) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Date) { + toSerialize["date"] = o.Date + } + return toSerialize, nil +} + +type NullableAuditCreated struct { + value *AuditCreated + isSet bool +} + +func (v NullableAuditCreated) Get() *AuditCreated { + return v.value +} + +func (v *NullableAuditCreated) Set(val *AuditCreated) { + v.value = val + v.isSet = true +} + +func (v NullableAuditCreated) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditCreated) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditCreated(val *AuditCreated) *NullableAuditCreated { + return &NullableAuditCreated{value: val, isSet: true} +} + +func (v NullableAuditCreated) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditCreated) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_automated_policy.go b/apim_policy/model_automated_policy.go new file mode 100644 index 0000000..273a0df --- /dev/null +++ b/apim_policy/model_automated_policy.go @@ -0,0 +1,487 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the AutomatedPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutomatedPolicy{} + +// AutomatedPolicy struct for AutomatedPolicy +type AutomatedPolicy struct { + Audit *Audit `json:"audit,omitempty"` + Id *int32 `json:"id,omitempty"` + RuleOfApplication *AutomatedPolicyRuleOfApplication `json:"ruleOfApplication,omitempty"` + GroupId *string `json:"groupId,omitempty"` + AssetId *string `json:"assetId,omitempty"` + AssetVersion *string `json:"assetVersion,omitempty"` + ConfigurationData map[string]interface{} `json:"configurationData,omitempty"` + PointcutData []PointcutDataItem `json:"pointcutData,omitempty"` + Order *int32 `json:"order,omitempty"` + Disabled *bool `json:"disabled,omitempty"` + ImplementationAssets []ImplementationAsset `json:"implementationAssets,omitempty"` +} + +// NewAutomatedPolicy instantiates a new AutomatedPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAutomatedPolicy() *AutomatedPolicy { + this := AutomatedPolicy{} + return &this +} + +// NewAutomatedPolicyWithDefaults instantiates a new AutomatedPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAutomatedPolicyWithDefaults() *AutomatedPolicy { + this := AutomatedPolicy{} + return &this +} + +// GetAudit returns the Audit field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetAudit() Audit { + if o == nil || IsNil(o.Audit) { + var ret Audit + return ret + } + return *o.Audit +} + +// GetAuditOk returns a tuple with the Audit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetAuditOk() (*Audit, bool) { + if o == nil || IsNil(o.Audit) { + return nil, false + } + return o.Audit, true +} + +// HasAudit returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasAudit() bool { + if o != nil && !IsNil(o.Audit) { + return true + } + + return false +} + +// SetAudit gets a reference to the given Audit and assigns it to the Audit field. +func (o *AutomatedPolicy) SetAudit(v Audit) { + o.Audit = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetId() int32 { + if o == nil || IsNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetIdOk() (*int32, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AutomatedPolicy) SetId(v int32) { + o.Id = &v +} + +// GetRuleOfApplication returns the RuleOfApplication field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetRuleOfApplication() AutomatedPolicyRuleOfApplication { + if o == nil || IsNil(o.RuleOfApplication) { + var ret AutomatedPolicyRuleOfApplication + return ret + } + return *o.RuleOfApplication +} + +// GetRuleOfApplicationOk returns a tuple with the RuleOfApplication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetRuleOfApplicationOk() (*AutomatedPolicyRuleOfApplication, bool) { + if o == nil || IsNil(o.RuleOfApplication) { + return nil, false + } + return o.RuleOfApplication, true +} + +// HasRuleOfApplication returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasRuleOfApplication() bool { + if o != nil && !IsNil(o.RuleOfApplication) { + return true + } + + return false +} + +// SetRuleOfApplication gets a reference to the given AutomatedPolicyRuleOfApplication and assigns it to the RuleOfApplication field. +func (o *AutomatedPolicy) SetRuleOfApplication(v AutomatedPolicyRuleOfApplication) { + o.RuleOfApplication = &v +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetGroupId() string { + if o == nil || IsNil(o.GroupId) { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetGroupIdOk() (*string, bool) { + if o == nil || IsNil(o.GroupId) { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasGroupId() bool { + if o != nil && !IsNil(o.GroupId) { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *AutomatedPolicy) SetGroupId(v string) { + o.GroupId = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *AutomatedPolicy) SetAssetId(v string) { + o.AssetId = &v +} + +// GetAssetVersion returns the AssetVersion field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetAssetVersion() string { + if o == nil || IsNil(o.AssetVersion) { + var ret string + return ret + } + return *o.AssetVersion +} + +// GetAssetVersionOk returns a tuple with the AssetVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetAssetVersionOk() (*string, bool) { + if o == nil || IsNil(o.AssetVersion) { + return nil, false + } + return o.AssetVersion, true +} + +// HasAssetVersion returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasAssetVersion() bool { + if o != nil && !IsNil(o.AssetVersion) { + return true + } + + return false +} + +// SetAssetVersion gets a reference to the given string and assigns it to the AssetVersion field. +func (o *AutomatedPolicy) SetAssetVersion(v string) { + o.AssetVersion = &v +} + +// GetConfigurationData returns the ConfigurationData field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetConfigurationData() map[string]interface{} { + if o == nil || IsNil(o.ConfigurationData) { + var ret map[string]interface{} + return ret + } + return o.ConfigurationData +} + +// GetConfigurationDataOk returns a tuple with the ConfigurationData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetConfigurationDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ConfigurationData) { + return map[string]interface{}{}, false + } + return o.ConfigurationData, true +} + +// HasConfigurationData returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasConfigurationData() bool { + if o != nil && !IsNil(o.ConfigurationData) { + return true + } + + return false +} + +// SetConfigurationData gets a reference to the given map[string]interface{} and assigns it to the ConfigurationData field. +func (o *AutomatedPolicy) SetConfigurationData(v map[string]interface{}) { + o.ConfigurationData = v +} + +// GetPointcutData returns the PointcutData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AutomatedPolicy) GetPointcutData() []PointcutDataItem { + if o == nil { + var ret []PointcutDataItem + return ret + } + return o.PointcutData +} + +// GetPointcutDataOk returns a tuple with the PointcutData 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 *AutomatedPolicy) GetPointcutDataOk() ([]PointcutDataItem, bool) { + if o == nil || IsNil(o.PointcutData) { + return nil, false + } + return o.PointcutData, true +} + +// HasPointcutData returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasPointcutData() bool { + if o != nil && IsNil(o.PointcutData) { + return true + } + + return false +} + +// SetPointcutData gets a reference to the given []PointcutDataItem and assigns it to the PointcutData field. +func (o *AutomatedPolicy) SetPointcutData(v []PointcutDataItem) { + o.PointcutData = v +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetOrder() int32 { + if o == nil || IsNil(o.Order) { + var ret int32 + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetOrderOk() (*int32, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given int32 and assigns it to the Order field. +func (o *AutomatedPolicy) SetOrder(v int32) { + o.Order = &v +} + +// GetDisabled returns the Disabled field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetDisabled() bool { + if o == nil || IsNil(o.Disabled) { + var ret bool + return ret + } + return *o.Disabled +} + +// GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.Disabled) { + return nil, false + } + return o.Disabled, true +} + +// HasDisabled returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasDisabled() bool { + if o != nil && !IsNil(o.Disabled) { + return true + } + + return false +} + +// SetDisabled gets a reference to the given bool and assigns it to the Disabled field. +func (o *AutomatedPolicy) SetDisabled(v bool) { + o.Disabled = &v +} + +// GetImplementationAssets returns the ImplementationAssets field value if set, zero value otherwise. +func (o *AutomatedPolicy) GetImplementationAssets() []ImplementationAsset { + if o == nil || IsNil(o.ImplementationAssets) { + var ret []ImplementationAsset + return ret + } + return o.ImplementationAssets +} + +// GetImplementationAssetsOk returns a tuple with the ImplementationAssets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicy) GetImplementationAssetsOk() ([]ImplementationAsset, bool) { + if o == nil || IsNil(o.ImplementationAssets) { + return nil, false + } + return o.ImplementationAssets, true +} + +// HasImplementationAssets returns a boolean if a field has been set. +func (o *AutomatedPolicy) HasImplementationAssets() bool { + if o != nil && !IsNil(o.ImplementationAssets) { + return true + } + + return false +} + +// SetImplementationAssets gets a reference to the given []ImplementationAsset and assigns it to the ImplementationAssets field. +func (o *AutomatedPolicy) SetImplementationAssets(v []ImplementationAsset) { + o.ImplementationAssets = v +} + +func (o AutomatedPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AutomatedPolicy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Audit) { + toSerialize["audit"] = o.Audit + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.RuleOfApplication) { + toSerialize["ruleOfApplication"] = o.RuleOfApplication + } + if !IsNil(o.GroupId) { + toSerialize["groupId"] = o.GroupId + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.AssetVersion) { + toSerialize["assetVersion"] = o.AssetVersion + } + if !IsNil(o.ConfigurationData) { + toSerialize["configurationData"] = o.ConfigurationData + } + if o.PointcutData != nil { + toSerialize["pointcutData"] = o.PointcutData + } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.Disabled) { + toSerialize["disabled"] = o.Disabled + } + if !IsNil(o.ImplementationAssets) { + toSerialize["implementationAssets"] = o.ImplementationAssets + } + return toSerialize, nil +} + +type NullableAutomatedPolicy struct { + value *AutomatedPolicy + isSet bool +} + +func (v NullableAutomatedPolicy) Get() *AutomatedPolicy { + return v.value +} + +func (v *NullableAutomatedPolicy) Set(val *AutomatedPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableAutomatedPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableAutomatedPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutomatedPolicy(val *AutomatedPolicy) *NullableAutomatedPolicy { + return &NullableAutomatedPolicy{value: val, isSet: true} +} + +func (v NullableAutomatedPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutomatedPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_automated_policy_collection.go b/apim_policy/model_automated_policy_collection.go new file mode 100644 index 0000000..6d3b5bc --- /dev/null +++ b/apim_policy/model_automated_policy_collection.go @@ -0,0 +1,162 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the AutomatedPolicyCollection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutomatedPolicyCollection{} + +// AutomatedPolicyCollection struct for AutomatedPolicyCollection +type AutomatedPolicyCollection struct { + AutomatedPolicies []AutomatedPolicy `json:"automatedPolicies,omitempty"` + Total *int32 `json:"total,omitempty"` +} + +// NewAutomatedPolicyCollection instantiates a new AutomatedPolicyCollection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAutomatedPolicyCollection() *AutomatedPolicyCollection { + this := AutomatedPolicyCollection{} + return &this +} + +// NewAutomatedPolicyCollectionWithDefaults instantiates a new AutomatedPolicyCollection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAutomatedPolicyCollectionWithDefaults() *AutomatedPolicyCollection { + this := AutomatedPolicyCollection{} + return &this +} + +// GetAutomatedPolicies returns the AutomatedPolicies field value if set, zero value otherwise. +func (o *AutomatedPolicyCollection) GetAutomatedPolicies() []AutomatedPolicy { + if o == nil || IsNil(o.AutomatedPolicies) { + var ret []AutomatedPolicy + return ret + } + return o.AutomatedPolicies +} + +// GetAutomatedPoliciesOk returns a tuple with the AutomatedPolicies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicyCollection) GetAutomatedPoliciesOk() ([]AutomatedPolicy, bool) { + if o == nil || IsNil(o.AutomatedPolicies) { + return nil, false + } + return o.AutomatedPolicies, true +} + +// HasAutomatedPolicies returns a boolean if a field has been set. +func (o *AutomatedPolicyCollection) HasAutomatedPolicies() bool { + if o != nil && !IsNil(o.AutomatedPolicies) { + return true + } + + return false +} + +// SetAutomatedPolicies gets a reference to the given []AutomatedPolicy and assigns it to the AutomatedPolicies field. +func (o *AutomatedPolicyCollection) SetAutomatedPolicies(v []AutomatedPolicy) { + o.AutomatedPolicies = v +} + +// GetTotal returns the Total field value if set, zero value otherwise. +func (o *AutomatedPolicyCollection) GetTotal() int32 { + if o == nil || IsNil(o.Total) { + var ret int32 + return ret + } + return *o.Total +} + +// GetTotalOk returns a tuple with the Total field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicyCollection) GetTotalOk() (*int32, bool) { + if o == nil || IsNil(o.Total) { + return nil, false + } + return o.Total, true +} + +// HasTotal returns a boolean if a field has been set. +func (o *AutomatedPolicyCollection) HasTotal() bool { + if o != nil && !IsNil(o.Total) { + return true + } + + return false +} + +// SetTotal gets a reference to the given int32 and assigns it to the Total field. +func (o *AutomatedPolicyCollection) SetTotal(v int32) { + o.Total = &v +} + +func (o AutomatedPolicyCollection) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AutomatedPolicyCollection) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AutomatedPolicies) { + toSerialize["automatedPolicies"] = o.AutomatedPolicies + } + if !IsNil(o.Total) { + toSerialize["total"] = o.Total + } + return toSerialize, nil +} + +type NullableAutomatedPolicyCollection struct { + value *AutomatedPolicyCollection + isSet bool +} + +func (v NullableAutomatedPolicyCollection) Get() *AutomatedPolicyCollection { + return v.value +} + +func (v *NullableAutomatedPolicyCollection) Set(val *AutomatedPolicyCollection) { + v.value = val + v.isSet = true +} + +func (v NullableAutomatedPolicyCollection) IsSet() bool { + return v.isSet +} + +func (v *NullableAutomatedPolicyCollection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutomatedPolicyCollection(val *AutomatedPolicyCollection) *NullableAutomatedPolicyCollection { + return &NullableAutomatedPolicyCollection{value: val, isSet: true} +} + +func (v NullableAutomatedPolicyCollection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutomatedPolicyCollection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_automated_policy_rule_of_application.go b/apim_policy/model_automated_policy_rule_of_application.go new file mode 100644 index 0000000..59f4c7a --- /dev/null +++ b/apim_policy/model_automated_policy_rule_of_application.go @@ -0,0 +1,162 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the AutomatedPolicyRuleOfApplication type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AutomatedPolicyRuleOfApplication{} + +// AutomatedPolicyRuleOfApplication struct for AutomatedPolicyRuleOfApplication +type AutomatedPolicyRuleOfApplication struct { + EnvironmentId *string `json:"environmentId,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` +} + +// NewAutomatedPolicyRuleOfApplication instantiates a new AutomatedPolicyRuleOfApplication object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAutomatedPolicyRuleOfApplication() *AutomatedPolicyRuleOfApplication { + this := AutomatedPolicyRuleOfApplication{} + return &this +} + +// NewAutomatedPolicyRuleOfApplicationWithDefaults instantiates a new AutomatedPolicyRuleOfApplication object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAutomatedPolicyRuleOfApplicationWithDefaults() *AutomatedPolicyRuleOfApplication { + this := AutomatedPolicyRuleOfApplication{} + return &this +} + +// GetEnvironmentId returns the EnvironmentId field value if set, zero value otherwise. +func (o *AutomatedPolicyRuleOfApplication) GetEnvironmentId() string { + if o == nil || IsNil(o.EnvironmentId) { + var ret string + return ret + } + return *o.EnvironmentId +} + +// GetEnvironmentIdOk returns a tuple with the EnvironmentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutomatedPolicyRuleOfApplication) GetEnvironmentIdOk() (*string, bool) { + if o == nil || IsNil(o.EnvironmentId) { + return nil, false + } + return o.EnvironmentId, true +} + +// HasEnvironmentId returns a boolean if a field has been set. +func (o *AutomatedPolicyRuleOfApplication) HasEnvironmentId() bool { + if o != nil && !IsNil(o.EnvironmentId) { + return true + } + + return false +} + +// SetEnvironmentId gets a reference to the given string and assigns it to the EnvironmentId field. +func (o *AutomatedPolicyRuleOfApplication) SetEnvironmentId(v string) { + o.EnvironmentId = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *AutomatedPolicyRuleOfApplication) GetOrganizationId() string { + if o == nil || IsNil(o.OrganizationId) { + var ret string + return ret + } + return *o.OrganizationId +} + +// 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 *AutomatedPolicyRuleOfApplication) GetOrganizationIdOk() (*string, bool) { + if o == nil || IsNil(o.OrganizationId) { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *AutomatedPolicyRuleOfApplication) HasOrganizationId() bool { + if o != nil && !IsNil(o.OrganizationId) { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *AutomatedPolicyRuleOfApplication) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +func (o AutomatedPolicyRuleOfApplication) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AutomatedPolicyRuleOfApplication) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EnvironmentId) { + toSerialize["environmentId"] = o.EnvironmentId + } + if !IsNil(o.OrganizationId) { + toSerialize["organizationId"] = o.OrganizationId + } + return toSerialize, nil +} + +type NullableAutomatedPolicyRuleOfApplication struct { + value *AutomatedPolicyRuleOfApplication + isSet bool +} + +func (v NullableAutomatedPolicyRuleOfApplication) Get() *AutomatedPolicyRuleOfApplication { + return v.value +} + +func (v *NullableAutomatedPolicyRuleOfApplication) Set(val *AutomatedPolicyRuleOfApplication) { + v.value = val + v.isSet = true +} + +func (v NullableAutomatedPolicyRuleOfApplication) IsSet() bool { + return v.isSet +} + +func (v *NullableAutomatedPolicyRuleOfApplication) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutomatedPolicyRuleOfApplication(val *AutomatedPolicyRuleOfApplication) *NullableAutomatedPolicyRuleOfApplication { + return &NullableAutomatedPolicyRuleOfApplication{value: val, isSet: true} +} + +func (v NullableAutomatedPolicyRuleOfApplication) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutomatedPolicyRuleOfApplication) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_errors_response.go b/apim_policy/model_errors_response.go new file mode 100644 index 0000000..6a11091 --- /dev/null +++ b/apim_policy/model_errors_response.go @@ -0,0 +1,126 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ErrorsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorsResponse{} + +// ErrorsResponse struct for ErrorsResponse +type ErrorsResponse struct { + Errors []ErrorsResponseErrorsInner `json:"errors,omitempty"` +} + +// NewErrorsResponse instantiates a new ErrorsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorsResponse() *ErrorsResponse { + this := ErrorsResponse{} + return &this +} + +// NewErrorsResponseWithDefaults instantiates a new ErrorsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorsResponseWithDefaults() *ErrorsResponse { + this := ErrorsResponse{} + return &this +} + +// GetErrors returns the Errors field value if set, zero value otherwise. +func (o *ErrorsResponse) GetErrors() []ErrorsResponseErrorsInner { + if o == nil || IsNil(o.Errors) { + var ret []ErrorsResponseErrorsInner + return ret + } + return o.Errors +} + +// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorsResponse) GetErrorsOk() ([]ErrorsResponseErrorsInner, bool) { + if o == nil || IsNil(o.Errors) { + return nil, false + } + return o.Errors, true +} + +// HasErrors returns a boolean if a field has been set. +func (o *ErrorsResponse) HasErrors() bool { + if o != nil && !IsNil(o.Errors) { + return true + } + + return false +} + +// SetErrors gets a reference to the given []ErrorsResponseErrorsInner and assigns it to the Errors field. +func (o *ErrorsResponse) SetErrors(v []ErrorsResponseErrorsInner) { + o.Errors = v +} + +func (o ErrorsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Errors) { + toSerialize["errors"] = o.Errors + } + return toSerialize, nil +} + +type NullableErrorsResponse struct { + value *ErrorsResponse + isSet bool +} + +func (v NullableErrorsResponse) Get() *ErrorsResponse { + return v.value +} + +func (v *NullableErrorsResponse) Set(val *ErrorsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableErrorsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorsResponse(val *ErrorsResponse) *NullableErrorsResponse { + return &NullableErrorsResponse{value: val, isSet: true} +} + +func (v NullableErrorsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_errors_response_errors_inner.go b/apim_policy/model_errors_response_errors_inner.go new file mode 100644 index 0000000..7d465e5 --- /dev/null +++ b/apim_policy/model_errors_response_errors_inner.go @@ -0,0 +1,306 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ErrorsResponseErrorsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorsResponseErrorsInner{} + +// ErrorsResponseErrorsInner struct for ErrorsResponseErrorsInner +type ErrorsResponseErrorsInner struct { + Type *string `json:"type,omitempty"` + DataPath *string `json:"dataPath,omitempty"` + Keyword *string `json:"keyword,omitempty"` + Schema *string `json:"schema,omitempty"` + Data *string `json:"data,omitempty"` + Message *string `json:"message,omitempty"` +} + +// NewErrorsResponseErrorsInner instantiates a new ErrorsResponseErrorsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorsResponseErrorsInner() *ErrorsResponseErrorsInner { + this := ErrorsResponseErrorsInner{} + return &this +} + +// NewErrorsResponseErrorsInnerWithDefaults instantiates a new ErrorsResponseErrorsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorsResponseErrorsInnerWithDefaults() *ErrorsResponseErrorsInner { + this := ErrorsResponseErrorsInner{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ErrorsResponseErrorsInner) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorsResponseErrorsInner) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ErrorsResponseErrorsInner) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ErrorsResponseErrorsInner) SetType(v string) { + o.Type = &v +} + +// GetDataPath returns the DataPath field value if set, zero value otherwise. +func (o *ErrorsResponseErrorsInner) GetDataPath() string { + if o == nil || IsNil(o.DataPath) { + var ret string + return ret + } + return *o.DataPath +} + +// GetDataPathOk returns a tuple with the DataPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorsResponseErrorsInner) GetDataPathOk() (*string, bool) { + if o == nil || IsNil(o.DataPath) { + return nil, false + } + return o.DataPath, true +} + +// HasDataPath returns a boolean if a field has been set. +func (o *ErrorsResponseErrorsInner) HasDataPath() bool { + if o != nil && !IsNil(o.DataPath) { + return true + } + + return false +} + +// SetDataPath gets a reference to the given string and assigns it to the DataPath field. +func (o *ErrorsResponseErrorsInner) SetDataPath(v string) { + o.DataPath = &v +} + +// GetKeyword returns the Keyword field value if set, zero value otherwise. +func (o *ErrorsResponseErrorsInner) GetKeyword() string { + if o == nil || IsNil(o.Keyword) { + var ret string + return ret + } + return *o.Keyword +} + +// GetKeywordOk returns a tuple with the Keyword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorsResponseErrorsInner) GetKeywordOk() (*string, bool) { + if o == nil || IsNil(o.Keyword) { + return nil, false + } + return o.Keyword, true +} + +// HasKeyword returns a boolean if a field has been set. +func (o *ErrorsResponseErrorsInner) HasKeyword() bool { + if o != nil && !IsNil(o.Keyword) { + return true + } + + return false +} + +// SetKeyword gets a reference to the given string and assigns it to the Keyword field. +func (o *ErrorsResponseErrorsInner) SetKeyword(v string) { + o.Keyword = &v +} + +// GetSchema returns the Schema field value if set, zero value otherwise. +func (o *ErrorsResponseErrorsInner) GetSchema() string { + if o == nil || IsNil(o.Schema) { + var ret string + return ret + } + return *o.Schema +} + +// 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 *ErrorsResponseErrorsInner) GetSchemaOk() (*string, bool) { + if o == nil || IsNil(o.Schema) { + return nil, false + } + return o.Schema, true +} + +// HasSchema returns a boolean if a field has been set. +func (o *ErrorsResponseErrorsInner) HasSchema() bool { + if o != nil && !IsNil(o.Schema) { + return true + } + + return false +} + +// SetSchema gets a reference to the given string and assigns it to the Schema field. +func (o *ErrorsResponseErrorsInner) SetSchema(v string) { + o.Schema = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ErrorsResponseErrorsInner) GetData() string { + if o == nil || IsNil(o.Data) { + var ret string + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorsResponseErrorsInner) GetDataOk() (*string, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ErrorsResponseErrorsInner) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given string and assigns it to the Data field. +func (o *ErrorsResponseErrorsInner) SetData(v string) { + o.Data = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ErrorsResponseErrorsInner) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorsResponseErrorsInner) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ErrorsResponseErrorsInner) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ErrorsResponseErrorsInner) SetMessage(v string) { + o.Message = &v +} + +func (o ErrorsResponseErrorsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorsResponseErrorsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.DataPath) { + toSerialize["dataPath"] = o.DataPath + } + if !IsNil(o.Keyword) { + toSerialize["keyword"] = o.Keyword + } + if !IsNil(o.Schema) { + toSerialize["schema"] = o.Schema + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + +type NullableErrorsResponseErrorsInner struct { + value *ErrorsResponseErrorsInner + isSet bool +} + +func (v NullableErrorsResponseErrorsInner) Get() *ErrorsResponseErrorsInner { + return v.value +} + +func (v *NullableErrorsResponseErrorsInner) Set(val *ErrorsResponseErrorsInner) { + v.value = val + v.isSet = true +} + +func (v NullableErrorsResponseErrorsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorsResponseErrorsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorsResponseErrorsInner(val *ErrorsResponseErrorsInner) *NullableErrorsResponseErrorsInner { + return &NullableErrorsResponseErrorsInner{value: val, isSet: true} +} + +func (v NullableErrorsResponseErrorsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorsResponseErrorsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_exchange_policy_template.go b/apim_policy/model_exchange_policy_template.go new file mode 100644 index 0000000..2b51ae1 --- /dev/null +++ b/apim_policy/model_exchange_policy_template.go @@ -0,0 +1,1206 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ExchangePolicyTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExchangePolicyTemplate{} + +// ExchangePolicyTemplate struct for ExchangePolicyTemplate +type ExchangePolicyTemplate struct { + Audit *Audit `json:"audit,omitempty"` + Id *int32 `json:"id,omitempty"` + GroupId *string `json:"groupId,omitempty"` + AssetId *string `json:"assetId,omitempty"` + Version *string `json:"version,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + IsOOTB *bool `json:"isOOTB,omitempty"` + Stage *string `json:"stage,omitempty"` + Status *string `json:"status,omitempty"` + YamlMd5 *string `json:"yamlMd5,omitempty"` + JarMd5 *string `json:"jarMd5,omitempty"` + OrgId *string `json:"orgId,omitempty"` + MinMuleVersion *string `json:"minMuleVersion,omitempty"` + SupportedPoliciesVersions *string `json:"supportedPoliciesVersions,omitempty"` + Category *string `json:"category,omitempty"` + ViolationCategory *string `json:"violationCategory,omitempty"` + ResourceLevelSupported *bool `json:"resourceLevelSupported,omitempty"` + EncryptionSupported *bool `json:"encryptionSupported,omitempty"` + Standalone *bool `json:"standalone,omitempty"` + RequiredCharacteristics []string `json:"requiredCharacteristics,omitempty"` + IdentityManagement *ExchangePolicyTemplateIdentityManagement `json:"identityManagement,omitempty"` + ProvidedCharacteristics []string `json:"providedCharacteristics,omitempty"` + RamlSnippet *string `json:"ramlSnippet,omitempty"` + RamlV1Snippet *string `json:"ramlV1Snippet,omitempty"` + OasV2Snippet *string `json:"oasV2Snippet,omitempty"` + OasV3Snippet *string `json:"oasV3Snippet,omitempty"` + Applicable *bool `json:"applicable,omitempty"` + Configuration []PolicyConfiguration `json:"configuration,omitempty"` + AllVersions []ExchangePolicyTemplateAllVersionsInner `json:"allVersions,omitempty"` +} + +// NewExchangePolicyTemplate instantiates a new ExchangePolicyTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewExchangePolicyTemplate() *ExchangePolicyTemplate { + this := ExchangePolicyTemplate{} + return &this +} + +// NewExchangePolicyTemplateWithDefaults instantiates a new ExchangePolicyTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewExchangePolicyTemplateWithDefaults() *ExchangePolicyTemplate { + this := ExchangePolicyTemplate{} + return &this +} + +// GetAudit returns the Audit field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetAudit() Audit { + if o == nil || IsNil(o.Audit) { + var ret Audit + return ret + } + return *o.Audit +} + +// GetAuditOk returns a tuple with the Audit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetAuditOk() (*Audit, bool) { + if o == nil || IsNil(o.Audit) { + return nil, false + } + return o.Audit, true +} + +// HasAudit returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasAudit() bool { + if o != nil && !IsNil(o.Audit) { + return true + } + + return false +} + +// SetAudit gets a reference to the given Audit and assigns it to the Audit field. +func (o *ExchangePolicyTemplate) SetAudit(v Audit) { + o.Audit = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetId() int32 { + if o == nil || IsNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetIdOk() (*int32, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ExchangePolicyTemplate) SetId(v int32) { + o.Id = &v +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetGroupId() string { + if o == nil || IsNil(o.GroupId) { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetGroupIdOk() (*string, bool) { + if o == nil || IsNil(o.GroupId) { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasGroupId() bool { + if o != nil && !IsNil(o.GroupId) { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *ExchangePolicyTemplate) SetGroupId(v string) { + o.GroupId = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *ExchangePolicyTemplate) SetAssetId(v string) { + o.AssetId = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) SetVersion(v string) { + o.Version = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) 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 *ExchangePolicyTemplate) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ExchangePolicyTemplate) SetType(v string) { + o.Type = &v +} + +// GetIsOOTB returns the IsOOTB field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetIsOOTB() bool { + if o == nil || IsNil(o.IsOOTB) { + var ret bool + return ret + } + return *o.IsOOTB +} + +// GetIsOOTBOk returns a tuple with the IsOOTB field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetIsOOTBOk() (*bool, bool) { + if o == nil || IsNil(o.IsOOTB) { + return nil, false + } + return o.IsOOTB, true +} + +// HasIsOOTB returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasIsOOTB() bool { + if o != nil && !IsNil(o.IsOOTB) { + return true + } + + return false +} + +// SetIsOOTB gets a reference to the given bool and assigns it to the IsOOTB field. +func (o *ExchangePolicyTemplate) SetIsOOTB(v bool) { + o.IsOOTB = &v +} + +// GetStage returns the Stage field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetStage() string { + if o == nil || IsNil(o.Stage) { + var ret string + return ret + } + return *o.Stage +} + +// GetStageOk returns a tuple with the Stage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetStageOk() (*string, bool) { + if o == nil || IsNil(o.Stage) { + return nil, false + } + return o.Stage, true +} + +// HasStage returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasStage() bool { + if o != nil && !IsNil(o.Stage) { + return true + } + + return false +} + +// SetStage gets a reference to the given string and assigns it to the Stage field. +func (o *ExchangePolicyTemplate) SetStage(v string) { + o.Stage = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *ExchangePolicyTemplate) SetStatus(v string) { + o.Status = &v +} + +// GetYamlMd5 returns the YamlMd5 field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetYamlMd5() string { + if o == nil || IsNil(o.YamlMd5) { + var ret string + return ret + } + return *o.YamlMd5 +} + +// GetYamlMd5Ok returns a tuple with the YamlMd5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetYamlMd5Ok() (*string, bool) { + if o == nil || IsNil(o.YamlMd5) { + return nil, false + } + return o.YamlMd5, true +} + +// HasYamlMd5 returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasYamlMd5() bool { + if o != nil && !IsNil(o.YamlMd5) { + return true + } + + return false +} + +// SetYamlMd5 gets a reference to the given string and assigns it to the YamlMd5 field. +func (o *ExchangePolicyTemplate) SetYamlMd5(v string) { + o.YamlMd5 = &v +} + +// GetJarMd5 returns the JarMd5 field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetJarMd5() string { + if o == nil || IsNil(o.JarMd5) { + var ret string + return ret + } + return *o.JarMd5 +} + +// GetJarMd5Ok returns a tuple with the JarMd5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetJarMd5Ok() (*string, bool) { + if o == nil || IsNil(o.JarMd5) { + return nil, false + } + return o.JarMd5, true +} + +// HasJarMd5 returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasJarMd5() bool { + if o != nil && !IsNil(o.JarMd5) { + return true + } + + return false +} + +// SetJarMd5 gets a reference to the given string and assigns it to the JarMd5 field. +func (o *ExchangePolicyTemplate) SetJarMd5(v string) { + o.JarMd5 = &v +} + +// GetOrgId returns the OrgId field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetOrgId() string { + if o == nil || IsNil(o.OrgId) { + var ret string + return ret + } + return *o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetOrgIdOk() (*string, bool) { + if o == nil || IsNil(o.OrgId) { + return nil, false + } + return o.OrgId, true +} + +// HasOrgId returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasOrgId() bool { + if o != nil && !IsNil(o.OrgId) { + return true + } + + return false +} + +// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +func (o *ExchangePolicyTemplate) SetOrgId(v string) { + o.OrgId = &v +} + +// GetMinMuleVersion returns the MinMuleVersion field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetMinMuleVersion() string { + if o == nil || IsNil(o.MinMuleVersion) { + var ret string + return ret + } + return *o.MinMuleVersion +} + +// GetMinMuleVersionOk returns a tuple with the MinMuleVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetMinMuleVersionOk() (*string, bool) { + if o == nil || IsNil(o.MinMuleVersion) { + return nil, false + } + return o.MinMuleVersion, true +} + +// HasMinMuleVersion returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasMinMuleVersion() bool { + if o != nil && !IsNil(o.MinMuleVersion) { + return true + } + + return false +} + +// SetMinMuleVersion gets a reference to the given string and assigns it to the MinMuleVersion field. +func (o *ExchangePolicyTemplate) SetMinMuleVersion(v string) { + o.MinMuleVersion = &v +} + +// GetSupportedPoliciesVersions returns the SupportedPoliciesVersions field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetSupportedPoliciesVersions() string { + if o == nil || IsNil(o.SupportedPoliciesVersions) { + var ret string + return ret + } + return *o.SupportedPoliciesVersions +} + +// GetSupportedPoliciesVersionsOk returns a tuple with the SupportedPoliciesVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetSupportedPoliciesVersionsOk() (*string, bool) { + if o == nil || IsNil(o.SupportedPoliciesVersions) { + return nil, false + } + return o.SupportedPoliciesVersions, true +} + +// HasSupportedPoliciesVersions returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasSupportedPoliciesVersions() bool { + if o != nil && !IsNil(o.SupportedPoliciesVersions) { + return true + } + + return false +} + +// SetSupportedPoliciesVersions gets a reference to the given string and assigns it to the SupportedPoliciesVersions field. +func (o *ExchangePolicyTemplate) SetSupportedPoliciesVersions(v string) { + o.SupportedPoliciesVersions = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetCategory() string { + if o == nil || IsNil(o.Category) { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetCategoryOk() (*string, bool) { + if o == nil || IsNil(o.Category) { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasCategory() bool { + if o != nil && !IsNil(o.Category) { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *ExchangePolicyTemplate) SetCategory(v string) { + o.Category = &v +} + +// GetViolationCategory returns the ViolationCategory field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetViolationCategory() string { + if o == nil || IsNil(o.ViolationCategory) { + var ret string + return ret + } + return *o.ViolationCategory +} + +// GetViolationCategoryOk returns a tuple with the ViolationCategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetViolationCategoryOk() (*string, bool) { + if o == nil || IsNil(o.ViolationCategory) { + return nil, false + } + return o.ViolationCategory, true +} + +// HasViolationCategory returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasViolationCategory() bool { + if o != nil && !IsNil(o.ViolationCategory) { + return true + } + + return false +} + +// SetViolationCategory gets a reference to the given string and assigns it to the ViolationCategory field. +func (o *ExchangePolicyTemplate) SetViolationCategory(v string) { + o.ViolationCategory = &v +} + +// GetResourceLevelSupported returns the ResourceLevelSupported field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetResourceLevelSupported() bool { + if o == nil || IsNil(o.ResourceLevelSupported) { + var ret bool + return ret + } + return *o.ResourceLevelSupported +} + +// GetResourceLevelSupportedOk returns a tuple with the ResourceLevelSupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetResourceLevelSupportedOk() (*bool, bool) { + if o == nil || IsNil(o.ResourceLevelSupported) { + return nil, false + } + return o.ResourceLevelSupported, true +} + +// HasResourceLevelSupported returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasResourceLevelSupported() bool { + if o != nil && !IsNil(o.ResourceLevelSupported) { + return true + } + + return false +} + +// SetResourceLevelSupported gets a reference to the given bool and assigns it to the ResourceLevelSupported field. +func (o *ExchangePolicyTemplate) SetResourceLevelSupported(v bool) { + o.ResourceLevelSupported = &v +} + +// GetEncryptionSupported returns the EncryptionSupported field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetEncryptionSupported() bool { + if o == nil || IsNil(o.EncryptionSupported) { + var ret bool + return ret + } + return *o.EncryptionSupported +} + +// GetEncryptionSupportedOk returns a tuple with the EncryptionSupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetEncryptionSupportedOk() (*bool, bool) { + if o == nil || IsNil(o.EncryptionSupported) { + return nil, false + } + return o.EncryptionSupported, true +} + +// HasEncryptionSupported returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasEncryptionSupported() bool { + if o != nil && !IsNil(o.EncryptionSupported) { + return true + } + + return false +} + +// SetEncryptionSupported gets a reference to the given bool and assigns it to the EncryptionSupported field. +func (o *ExchangePolicyTemplate) SetEncryptionSupported(v bool) { + o.EncryptionSupported = &v +} + +// GetStandalone returns the Standalone field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetStandalone() bool { + if o == nil || IsNil(o.Standalone) { + var ret bool + return ret + } + return *o.Standalone +} + +// GetStandaloneOk returns a tuple with the Standalone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetStandaloneOk() (*bool, bool) { + if o == nil || IsNil(o.Standalone) { + return nil, false + } + return o.Standalone, true +} + +// HasStandalone returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasStandalone() bool { + if o != nil && !IsNil(o.Standalone) { + return true + } + + return false +} + +// SetStandalone gets a reference to the given bool and assigns it to the Standalone field. +func (o *ExchangePolicyTemplate) SetStandalone(v bool) { + o.Standalone = &v +} + +// GetRequiredCharacteristics returns the RequiredCharacteristics field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetRequiredCharacteristics() []string { + if o == nil || IsNil(o.RequiredCharacteristics) { + var ret []string + return ret + } + return o.RequiredCharacteristics +} + +// GetRequiredCharacteristicsOk returns a tuple with the RequiredCharacteristics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetRequiredCharacteristicsOk() ([]string, bool) { + if o == nil || IsNil(o.RequiredCharacteristics) { + return nil, false + } + return o.RequiredCharacteristics, true +} + +// HasRequiredCharacteristics returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasRequiredCharacteristics() bool { + if o != nil && !IsNil(o.RequiredCharacteristics) { + return true + } + + return false +} + +// SetRequiredCharacteristics gets a reference to the given []string and assigns it to the RequiredCharacteristics field. +func (o *ExchangePolicyTemplate) SetRequiredCharacteristics(v []string) { + o.RequiredCharacteristics = v +} + +// GetIdentityManagement returns the IdentityManagement field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetIdentityManagement() ExchangePolicyTemplateIdentityManagement { + if o == nil || IsNil(o.IdentityManagement) { + var ret ExchangePolicyTemplateIdentityManagement + return ret + } + return *o.IdentityManagement +} + +// GetIdentityManagementOk returns a tuple with the IdentityManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetIdentityManagementOk() (*ExchangePolicyTemplateIdentityManagement, bool) { + if o == nil || IsNil(o.IdentityManagement) { + return nil, false + } + return o.IdentityManagement, true +} + +// HasIdentityManagement returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasIdentityManagement() bool { + if o != nil && !IsNil(o.IdentityManagement) { + return true + } + + return false +} + +// SetIdentityManagement gets a reference to the given ExchangePolicyTemplateIdentityManagement and assigns it to the IdentityManagement field. +func (o *ExchangePolicyTemplate) SetIdentityManagement(v ExchangePolicyTemplateIdentityManagement) { + o.IdentityManagement = &v +} + +// GetProvidedCharacteristics returns the ProvidedCharacteristics field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetProvidedCharacteristics() []string { + if o == nil || IsNil(o.ProvidedCharacteristics) { + var ret []string + return ret + } + return o.ProvidedCharacteristics +} + +// GetProvidedCharacteristicsOk returns a tuple with the ProvidedCharacteristics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetProvidedCharacteristicsOk() ([]string, bool) { + if o == nil || IsNil(o.ProvidedCharacteristics) { + return nil, false + } + return o.ProvidedCharacteristics, true +} + +// HasProvidedCharacteristics returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasProvidedCharacteristics() bool { + if o != nil && !IsNil(o.ProvidedCharacteristics) { + return true + } + + return false +} + +// SetProvidedCharacteristics gets a reference to the given []string and assigns it to the ProvidedCharacteristics field. +func (o *ExchangePolicyTemplate) SetProvidedCharacteristics(v []string) { + o.ProvidedCharacteristics = v +} + +// GetRamlSnippet returns the RamlSnippet field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetRamlSnippet() string { + if o == nil || IsNil(o.RamlSnippet) { + var ret string + return ret + } + return *o.RamlSnippet +} + +// GetRamlSnippetOk returns a tuple with the RamlSnippet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetRamlSnippetOk() (*string, bool) { + if o == nil || IsNil(o.RamlSnippet) { + return nil, false + } + return o.RamlSnippet, true +} + +// HasRamlSnippet returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasRamlSnippet() bool { + if o != nil && !IsNil(o.RamlSnippet) { + return true + } + + return false +} + +// SetRamlSnippet gets a reference to the given string and assigns it to the RamlSnippet field. +func (o *ExchangePolicyTemplate) SetRamlSnippet(v string) { + o.RamlSnippet = &v +} + +// GetRamlV1Snippet returns the RamlV1Snippet field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetRamlV1Snippet() string { + if o == nil || IsNil(o.RamlV1Snippet) { + var ret string + return ret + } + return *o.RamlV1Snippet +} + +// GetRamlV1SnippetOk returns a tuple with the RamlV1Snippet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetRamlV1SnippetOk() (*string, bool) { + if o == nil || IsNil(o.RamlV1Snippet) { + return nil, false + } + return o.RamlV1Snippet, true +} + +// HasRamlV1Snippet returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasRamlV1Snippet() bool { + if o != nil && !IsNil(o.RamlV1Snippet) { + return true + } + + return false +} + +// SetRamlV1Snippet gets a reference to the given string and assigns it to the RamlV1Snippet field. +func (o *ExchangePolicyTemplate) SetRamlV1Snippet(v string) { + o.RamlV1Snippet = &v +} + +// GetOasV2Snippet returns the OasV2Snippet field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetOasV2Snippet() string { + if o == nil || IsNil(o.OasV2Snippet) { + var ret string + return ret + } + return *o.OasV2Snippet +} + +// GetOasV2SnippetOk returns a tuple with the OasV2Snippet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetOasV2SnippetOk() (*string, bool) { + if o == nil || IsNil(o.OasV2Snippet) { + return nil, false + } + return o.OasV2Snippet, true +} + +// HasOasV2Snippet returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasOasV2Snippet() bool { + if o != nil && !IsNil(o.OasV2Snippet) { + return true + } + + return false +} + +// SetOasV2Snippet gets a reference to the given string and assigns it to the OasV2Snippet field. +func (o *ExchangePolicyTemplate) SetOasV2Snippet(v string) { + o.OasV2Snippet = &v +} + +// GetOasV3Snippet returns the OasV3Snippet field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetOasV3Snippet() string { + if o == nil || IsNil(o.OasV3Snippet) { + var ret string + return ret + } + return *o.OasV3Snippet +} + +// GetOasV3SnippetOk returns a tuple with the OasV3Snippet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetOasV3SnippetOk() (*string, bool) { + if o == nil || IsNil(o.OasV3Snippet) { + return nil, false + } + return o.OasV3Snippet, true +} + +// HasOasV3Snippet returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasOasV3Snippet() bool { + if o != nil && !IsNil(o.OasV3Snippet) { + return true + } + + return false +} + +// SetOasV3Snippet gets a reference to the given string and assigns it to the OasV3Snippet field. +func (o *ExchangePolicyTemplate) SetOasV3Snippet(v string) { + o.OasV3Snippet = &v +} + +// GetApplicable returns the Applicable field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetApplicable() bool { + if o == nil || IsNil(o.Applicable) { + var ret bool + return ret + } + return *o.Applicable +} + +// GetApplicableOk returns a tuple with the Applicable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetApplicableOk() (*bool, bool) { + if o == nil || IsNil(o.Applicable) { + return nil, false + } + return o.Applicable, true +} + +// HasApplicable returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasApplicable() bool { + if o != nil && !IsNil(o.Applicable) { + return true + } + + return false +} + +// SetApplicable gets a reference to the given bool and assigns it to the Applicable field. +func (o *ExchangePolicyTemplate) SetApplicable(v bool) { + o.Applicable = &v +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetConfiguration() []PolicyConfiguration { + if o == nil || IsNil(o.Configuration) { + var ret []PolicyConfiguration + 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 *ExchangePolicyTemplate) GetConfigurationOk() ([]PolicyConfiguration, 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 *ExchangePolicyTemplate) HasConfiguration() bool { + if o != nil && !IsNil(o.Configuration) { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given []PolicyConfiguration and assigns it to the Configuration field. +func (o *ExchangePolicyTemplate) SetConfiguration(v []PolicyConfiguration) { + o.Configuration = v +} + +// GetAllVersions returns the AllVersions field value if set, zero value otherwise. +func (o *ExchangePolicyTemplate) GetAllVersions() []ExchangePolicyTemplateAllVersionsInner { + if o == nil || IsNil(o.AllVersions) { + var ret []ExchangePolicyTemplateAllVersionsInner + return ret + } + return o.AllVersions +} + +// GetAllVersionsOk returns a tuple with the AllVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplate) GetAllVersionsOk() ([]ExchangePolicyTemplateAllVersionsInner, bool) { + if o == nil || IsNil(o.AllVersions) { + return nil, false + } + return o.AllVersions, true +} + +// HasAllVersions returns a boolean if a field has been set. +func (o *ExchangePolicyTemplate) HasAllVersions() bool { + if o != nil && !IsNil(o.AllVersions) { + return true + } + + return false +} + +// SetAllVersions gets a reference to the given []ExchangePolicyTemplateAllVersionsInner and assigns it to the AllVersions field. +func (o *ExchangePolicyTemplate) SetAllVersions(v []ExchangePolicyTemplateAllVersionsInner) { + o.AllVersions = v +} + +func (o ExchangePolicyTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExchangePolicyTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Audit) { + toSerialize["audit"] = o.Audit + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.GroupId) { + toSerialize["groupId"] = o.GroupId + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.IsOOTB) { + toSerialize["isOOTB"] = o.IsOOTB + } + if !IsNil(o.Stage) { + toSerialize["stage"] = o.Stage + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.YamlMd5) { + toSerialize["yamlMd5"] = o.YamlMd5 + } + if !IsNil(o.JarMd5) { + toSerialize["jarMd5"] = o.JarMd5 + } + if !IsNil(o.OrgId) { + toSerialize["orgId"] = o.OrgId + } + if !IsNil(o.MinMuleVersion) { + toSerialize["minMuleVersion"] = o.MinMuleVersion + } + if !IsNil(o.SupportedPoliciesVersions) { + toSerialize["supportedPoliciesVersions"] = o.SupportedPoliciesVersions + } + if !IsNil(o.Category) { + toSerialize["category"] = o.Category + } + if !IsNil(o.ViolationCategory) { + toSerialize["violationCategory"] = o.ViolationCategory + } + if !IsNil(o.ResourceLevelSupported) { + toSerialize["resourceLevelSupported"] = o.ResourceLevelSupported + } + if !IsNil(o.EncryptionSupported) { + toSerialize["encryptionSupported"] = o.EncryptionSupported + } + if !IsNil(o.Standalone) { + toSerialize["standalone"] = o.Standalone + } + if !IsNil(o.RequiredCharacteristics) { + toSerialize["requiredCharacteristics"] = o.RequiredCharacteristics + } + if !IsNil(o.IdentityManagement) { + toSerialize["identityManagement"] = o.IdentityManagement + } + if !IsNil(o.ProvidedCharacteristics) { + toSerialize["providedCharacteristics"] = o.ProvidedCharacteristics + } + if !IsNil(o.RamlSnippet) { + toSerialize["ramlSnippet"] = o.RamlSnippet + } + if !IsNil(o.RamlV1Snippet) { + toSerialize["ramlV1Snippet"] = o.RamlV1Snippet + } + if !IsNil(o.OasV2Snippet) { + toSerialize["oasV2Snippet"] = o.OasV2Snippet + } + if !IsNil(o.OasV3Snippet) { + toSerialize["oasV3Snippet"] = o.OasV3Snippet + } + if !IsNil(o.Applicable) { + toSerialize["applicable"] = o.Applicable + } + if !IsNil(o.Configuration) { + toSerialize["configuration"] = o.Configuration + } + if !IsNil(o.AllVersions) { + toSerialize["allVersions"] = o.AllVersions + } + return toSerialize, nil +} + +type NullableExchangePolicyTemplate struct { + value *ExchangePolicyTemplate + isSet bool +} + +func (v NullableExchangePolicyTemplate) Get() *ExchangePolicyTemplate { + return v.value +} + +func (v *NullableExchangePolicyTemplate) Set(val *ExchangePolicyTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableExchangePolicyTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableExchangePolicyTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExchangePolicyTemplate(val *ExchangePolicyTemplate) *NullableExchangePolicyTemplate { + return &NullableExchangePolicyTemplate{value: val, isSet: true} +} + +func (v NullableExchangePolicyTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExchangePolicyTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_exchange_policy_template_all_versions_inner.go b/apim_policy/model_exchange_policy_template_all_versions_inner.go new file mode 100644 index 0000000..9155fbf --- /dev/null +++ b/apim_policy/model_exchange_policy_template_all_versions_inner.go @@ -0,0 +1,198 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ExchangePolicyTemplateAllVersionsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExchangePolicyTemplateAllVersionsInner{} + +// ExchangePolicyTemplateAllVersionsInner struct for ExchangePolicyTemplateAllVersionsInner +type ExchangePolicyTemplateAllVersionsInner struct { + GroupId *string `json:"groupId,omitempty"` + AssetId *string `json:"assetId,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewExchangePolicyTemplateAllVersionsInner instantiates a new ExchangePolicyTemplateAllVersionsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewExchangePolicyTemplateAllVersionsInner() *ExchangePolicyTemplateAllVersionsInner { + this := ExchangePolicyTemplateAllVersionsInner{} + return &this +} + +// NewExchangePolicyTemplateAllVersionsInnerWithDefaults instantiates a new ExchangePolicyTemplateAllVersionsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewExchangePolicyTemplateAllVersionsInnerWithDefaults() *ExchangePolicyTemplateAllVersionsInner { + this := ExchangePolicyTemplateAllVersionsInner{} + return &this +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *ExchangePolicyTemplateAllVersionsInner) GetGroupId() string { + if o == nil || IsNil(o.GroupId) { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplateAllVersionsInner) GetGroupIdOk() (*string, bool) { + if o == nil || IsNil(o.GroupId) { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *ExchangePolicyTemplateAllVersionsInner) HasGroupId() bool { + if o != nil && !IsNil(o.GroupId) { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *ExchangePolicyTemplateAllVersionsInner) SetGroupId(v string) { + o.GroupId = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *ExchangePolicyTemplateAllVersionsInner) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplateAllVersionsInner) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *ExchangePolicyTemplateAllVersionsInner) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *ExchangePolicyTemplateAllVersionsInner) SetAssetId(v string) { + o.AssetId = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ExchangePolicyTemplateAllVersionsInner) 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 *ExchangePolicyTemplateAllVersionsInner) 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 *ExchangePolicyTemplateAllVersionsInner) 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 *ExchangePolicyTemplateAllVersionsInner) SetVersion(v string) { + o.Version = &v +} + +func (o ExchangePolicyTemplateAllVersionsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExchangePolicyTemplateAllVersionsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GroupId) { + toSerialize["groupId"] = o.GroupId + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableExchangePolicyTemplateAllVersionsInner struct { + value *ExchangePolicyTemplateAllVersionsInner + isSet bool +} + +func (v NullableExchangePolicyTemplateAllVersionsInner) Get() *ExchangePolicyTemplateAllVersionsInner { + return v.value +} + +func (v *NullableExchangePolicyTemplateAllVersionsInner) Set(val *ExchangePolicyTemplateAllVersionsInner) { + v.value = val + v.isSet = true +} + +func (v NullableExchangePolicyTemplateAllVersionsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableExchangePolicyTemplateAllVersionsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExchangePolicyTemplateAllVersionsInner(val *ExchangePolicyTemplateAllVersionsInner) *NullableExchangePolicyTemplateAllVersionsInner { + return &NullableExchangePolicyTemplateAllVersionsInner{value: val, isSet: true} +} + +func (v NullableExchangePolicyTemplateAllVersionsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExchangePolicyTemplateAllVersionsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_exchange_policy_template_identity_management.go b/apim_policy/model_exchange_policy_template_identity_management.go new file mode 100644 index 0000000..07880cd --- /dev/null +++ b/apim_policy/model_exchange_policy_template_identity_management.go @@ -0,0 +1,126 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ExchangePolicyTemplateIdentityManagement type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExchangePolicyTemplateIdentityManagement{} + +// ExchangePolicyTemplateIdentityManagement struct for ExchangePolicyTemplateIdentityManagement +type ExchangePolicyTemplateIdentityManagement struct { + Type *string `json:"type,omitempty"` +} + +// NewExchangePolicyTemplateIdentityManagement instantiates a new ExchangePolicyTemplateIdentityManagement object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewExchangePolicyTemplateIdentityManagement() *ExchangePolicyTemplateIdentityManagement { + this := ExchangePolicyTemplateIdentityManagement{} + return &this +} + +// NewExchangePolicyTemplateIdentityManagementWithDefaults instantiates a new ExchangePolicyTemplateIdentityManagement object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewExchangePolicyTemplateIdentityManagementWithDefaults() *ExchangePolicyTemplateIdentityManagement { + this := ExchangePolicyTemplateIdentityManagement{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ExchangePolicyTemplateIdentityManagement) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExchangePolicyTemplateIdentityManagement) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ExchangePolicyTemplateIdentityManagement) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ExchangePolicyTemplateIdentityManagement) SetType(v string) { + o.Type = &v +} + +func (o ExchangePolicyTemplateIdentityManagement) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExchangePolicyTemplateIdentityManagement) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableExchangePolicyTemplateIdentityManagement struct { + value *ExchangePolicyTemplateIdentityManagement + isSet bool +} + +func (v NullableExchangePolicyTemplateIdentityManagement) Get() *ExchangePolicyTemplateIdentityManagement { + return v.value +} + +func (v *NullableExchangePolicyTemplateIdentityManagement) Set(val *ExchangePolicyTemplateIdentityManagement) { + v.value = val + v.isSet = true +} + +func (v NullableExchangePolicyTemplateIdentityManagement) IsSet() bool { + return v.isSet +} + +func (v *NullableExchangePolicyTemplateIdentityManagement) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExchangePolicyTemplateIdentityManagement(val *ExchangePolicyTemplateIdentityManagement) *NullableExchangePolicyTemplateIdentityManagement { + return &NullableExchangePolicyTemplateIdentityManagement{value: val, isSet: true} +} + +func (v NullableExchangePolicyTemplateIdentityManagement) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExchangePolicyTemplateIdentityManagement) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_get_org_automated_policies_404_response.go b/apim_policy/model_get_org_automated_policies_404_response.go new file mode 100644 index 0000000..4eeeff0 --- /dev/null +++ b/apim_policy/model_get_org_automated_policies_404_response.go @@ -0,0 +1,162 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the GetOrgAutomatedPolicies404Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetOrgAutomatedPolicies404Response{} + +// GetOrgAutomatedPolicies404Response struct for GetOrgAutomatedPolicies404Response +type GetOrgAutomatedPolicies404Response struct { + Name *string `json:"name,omitempty"` + Message *string `json:"message,omitempty"` +} + +// NewGetOrgAutomatedPolicies404Response instantiates a new GetOrgAutomatedPolicies404Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetOrgAutomatedPolicies404Response() *GetOrgAutomatedPolicies404Response { + this := GetOrgAutomatedPolicies404Response{} + return &this +} + +// NewGetOrgAutomatedPolicies404ResponseWithDefaults instantiates a new GetOrgAutomatedPolicies404Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetOrgAutomatedPolicies404ResponseWithDefaults() *GetOrgAutomatedPolicies404Response { + this := GetOrgAutomatedPolicies404Response{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GetOrgAutomatedPolicies404Response) 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 *GetOrgAutomatedPolicies404Response) 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 *GetOrgAutomatedPolicies404Response) 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 *GetOrgAutomatedPolicies404Response) SetName(v string) { + o.Name = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *GetOrgAutomatedPolicies404Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetOrgAutomatedPolicies404Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *GetOrgAutomatedPolicies404Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *GetOrgAutomatedPolicies404Response) SetMessage(v string) { + o.Message = &v +} + +func (o GetOrgAutomatedPolicies404Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetOrgAutomatedPolicies404Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + +type NullableGetOrgAutomatedPolicies404Response struct { + value *GetOrgAutomatedPolicies404Response + isSet bool +} + +func (v NullableGetOrgAutomatedPolicies404Response) Get() *GetOrgAutomatedPolicies404Response { + return v.value +} + +func (v *NullableGetOrgAutomatedPolicies404Response) Set(val *GetOrgAutomatedPolicies404Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetOrgAutomatedPolicies404Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetOrgAutomatedPolicies404Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetOrgAutomatedPolicies404Response(val *GetOrgAutomatedPolicies404Response) *NullableGetOrgAutomatedPolicies404Response { + return &NullableGetOrgAutomatedPolicies404Response{value: val, isSet: true} +} + +func (v NullableGetOrgAutomatedPolicies404Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetOrgAutomatedPolicies404Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_implementation_asset.go b/apim_policy/model_implementation_asset.go new file mode 100644 index 0000000..958f621 --- /dev/null +++ b/apim_policy/model_implementation_asset.go @@ -0,0 +1,378 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the ImplementationAsset type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImplementationAsset{} + +// ImplementationAsset struct for ImplementationAsset +type ImplementationAsset struct { + Name *string `json:"name,omitempty"` + AssetId *string `json:"assetId,omitempty"` + GroupId *string `json:"groupId,omitempty"` + Version *string `json:"version,omitempty"` + Technology *string `json:"technology,omitempty"` + ReleaseNotes *string `json:"releaseNotes,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` + MinRuntimeVersion *string `json:"minRuntimeVersion,omitempty"` +} + +// NewImplementationAsset instantiates a new ImplementationAsset object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewImplementationAsset() *ImplementationAsset { + this := ImplementationAsset{} + return &this +} + +// NewImplementationAssetWithDefaults instantiates a new ImplementationAsset object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewImplementationAssetWithDefaults() *ImplementationAsset { + this := ImplementationAsset{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ImplementationAsset) 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 *ImplementationAsset) 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 *ImplementationAsset) 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 *ImplementationAsset) SetName(v string) { + o.Name = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *ImplementationAsset) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImplementationAsset) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *ImplementationAsset) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *ImplementationAsset) SetAssetId(v string) { + o.AssetId = &v +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *ImplementationAsset) GetGroupId() string { + if o == nil || IsNil(o.GroupId) { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImplementationAsset) GetGroupIdOk() (*string, bool) { + if o == nil || IsNil(o.GroupId) { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *ImplementationAsset) HasGroupId() bool { + if o != nil && !IsNil(o.GroupId) { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *ImplementationAsset) SetGroupId(v string) { + o.GroupId = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ImplementationAsset) 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 *ImplementationAsset) 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 *ImplementationAsset) 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 *ImplementationAsset) SetVersion(v string) { + o.Version = &v +} + +// GetTechnology returns the Technology field value if set, zero value otherwise. +func (o *ImplementationAsset) GetTechnology() string { + if o == nil || IsNil(o.Technology) { + var ret string + return ret + } + return *o.Technology +} + +// GetTechnologyOk returns a tuple with the Technology field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImplementationAsset) GetTechnologyOk() (*string, bool) { + if o == nil || IsNil(o.Technology) { + return nil, false + } + return o.Technology, true +} + +// HasTechnology returns a boolean if a field has been set. +func (o *ImplementationAsset) HasTechnology() bool { + if o != nil && !IsNil(o.Technology) { + return true + } + + return false +} + +// SetTechnology gets a reference to the given string and assigns it to the Technology field. +func (o *ImplementationAsset) SetTechnology(v string) { + o.Technology = &v +} + +// GetReleaseNotes returns the ReleaseNotes field value if set, zero value otherwise. +func (o *ImplementationAsset) GetReleaseNotes() string { + if o == nil || IsNil(o.ReleaseNotes) { + var ret string + return ret + } + return *o.ReleaseNotes +} + +// GetReleaseNotesOk returns a tuple with the ReleaseNotes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImplementationAsset) GetReleaseNotesOk() (*string, bool) { + if o == nil || IsNil(o.ReleaseNotes) { + return nil, false + } + return o.ReleaseNotes, true +} + +// HasReleaseNotes returns a boolean if a field has been set. +func (o *ImplementationAsset) HasReleaseNotes() bool { + if o != nil && !IsNil(o.ReleaseNotes) { + return true + } + + return false +} + +// SetReleaseNotes gets a reference to the given string and assigns it to the ReleaseNotes field. +func (o *ImplementationAsset) SetReleaseNotes(v string) { + o.ReleaseNotes = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *ImplementationAsset) GetOrganizationId() string { + if o == nil || IsNil(o.OrganizationId) { + var ret string + return ret + } + return *o.OrganizationId +} + +// 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 *ImplementationAsset) GetOrganizationIdOk() (*string, bool) { + if o == nil || IsNil(o.OrganizationId) { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *ImplementationAsset) HasOrganizationId() bool { + if o != nil && !IsNil(o.OrganizationId) { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *ImplementationAsset) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetMinRuntimeVersion returns the MinRuntimeVersion field value if set, zero value otherwise. +func (o *ImplementationAsset) GetMinRuntimeVersion() string { + if o == nil || IsNil(o.MinRuntimeVersion) { + var ret string + return ret + } + return *o.MinRuntimeVersion +} + +// GetMinRuntimeVersionOk returns a tuple with the MinRuntimeVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ImplementationAsset) GetMinRuntimeVersionOk() (*string, bool) { + if o == nil || IsNil(o.MinRuntimeVersion) { + return nil, false + } + return o.MinRuntimeVersion, true +} + +// HasMinRuntimeVersion returns a boolean if a field has been set. +func (o *ImplementationAsset) HasMinRuntimeVersion() bool { + if o != nil && !IsNil(o.MinRuntimeVersion) { + return true + } + + return false +} + +// SetMinRuntimeVersion gets a reference to the given string and assigns it to the MinRuntimeVersion field. +func (o *ImplementationAsset) SetMinRuntimeVersion(v string) { + o.MinRuntimeVersion = &v +} + +func (o ImplementationAsset) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImplementationAsset) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.GroupId) { + toSerialize["groupId"] = o.GroupId + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + if !IsNil(o.Technology) { + toSerialize["technology"] = o.Technology + } + if !IsNil(o.ReleaseNotes) { + toSerialize["releaseNotes"] = o.ReleaseNotes + } + if !IsNil(o.OrganizationId) { + toSerialize["organizationId"] = o.OrganizationId + } + if !IsNil(o.MinRuntimeVersion) { + toSerialize["minRuntimeVersion"] = o.MinRuntimeVersion + } + return toSerialize, nil +} + +type NullableImplementationAsset struct { + value *ImplementationAsset + isSet bool +} + +func (v NullableImplementationAsset) Get() *ImplementationAsset { + return v.value +} + +func (v *NullableImplementationAsset) Set(val *ImplementationAsset) { + v.value = val + v.isSet = true +} + +func (v NullableImplementationAsset) IsSet() bool { + return v.isSet +} + +func (v *NullableImplementationAsset) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImplementationAsset(val *ImplementationAsset) *NullableImplementationAsset { + return &NullableImplementationAsset{value: val, isSet: true} +} + +func (v NullableImplementationAsset) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImplementationAsset) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_pointcut_data_item.go b/apim_policy/model_pointcut_data_item.go new file mode 100644 index 0000000..07337b9 --- /dev/null +++ b/apim_policy/model_pointcut_data_item.go @@ -0,0 +1,162 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the PointcutDataItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PointcutDataItem{} + +// PointcutDataItem struct for PointcutDataItem +type PointcutDataItem struct { + MethodRegex *string `json:"methodRegex,omitempty"` + UriTemplateRegex *string `json:"uriTemplateRegex,omitempty"` +} + +// NewPointcutDataItem instantiates a new PointcutDataItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPointcutDataItem() *PointcutDataItem { + this := PointcutDataItem{} + return &this +} + +// NewPointcutDataItemWithDefaults instantiates a new PointcutDataItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPointcutDataItemWithDefaults() *PointcutDataItem { + this := PointcutDataItem{} + return &this +} + +// GetMethodRegex returns the MethodRegex field value if set, zero value otherwise. +func (o *PointcutDataItem) GetMethodRegex() string { + if o == nil || IsNil(o.MethodRegex) { + var ret string + return ret + } + return *o.MethodRegex +} + +// GetMethodRegexOk returns a tuple with the MethodRegex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PointcutDataItem) GetMethodRegexOk() (*string, bool) { + if o == nil || IsNil(o.MethodRegex) { + return nil, false + } + return o.MethodRegex, true +} + +// HasMethodRegex returns a boolean if a field has been set. +func (o *PointcutDataItem) HasMethodRegex() bool { + if o != nil && !IsNil(o.MethodRegex) { + return true + } + + return false +} + +// SetMethodRegex gets a reference to the given string and assigns it to the MethodRegex field. +func (o *PointcutDataItem) SetMethodRegex(v string) { + o.MethodRegex = &v +} + +// GetUriTemplateRegex returns the UriTemplateRegex field value if set, zero value otherwise. +func (o *PointcutDataItem) GetUriTemplateRegex() string { + if o == nil || IsNil(o.UriTemplateRegex) { + var ret string + return ret + } + return *o.UriTemplateRegex +} + +// GetUriTemplateRegexOk returns a tuple with the UriTemplateRegex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PointcutDataItem) GetUriTemplateRegexOk() (*string, bool) { + if o == nil || IsNil(o.UriTemplateRegex) { + return nil, false + } + return o.UriTemplateRegex, true +} + +// HasUriTemplateRegex returns a boolean if a field has been set. +func (o *PointcutDataItem) HasUriTemplateRegex() bool { + if o != nil && !IsNil(o.UriTemplateRegex) { + return true + } + + return false +} + +// SetUriTemplateRegex gets a reference to the given string and assigns it to the UriTemplateRegex field. +func (o *PointcutDataItem) SetUriTemplateRegex(v string) { + o.UriTemplateRegex = &v +} + +func (o PointcutDataItem) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PointcutDataItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MethodRegex) { + toSerialize["methodRegex"] = o.MethodRegex + } + if !IsNil(o.UriTemplateRegex) { + toSerialize["uriTemplateRegex"] = o.UriTemplateRegex + } + return toSerialize, nil +} + +type NullablePointcutDataItem struct { + value *PointcutDataItem + isSet bool +} + +func (v NullablePointcutDataItem) Get() *PointcutDataItem { + return v.value +} + +func (v *NullablePointcutDataItem) Set(val *PointcutDataItem) { + v.value = val + v.isSet = true +} + +func (v NullablePointcutDataItem) IsSet() bool { + return v.isSet +} + +func (v *NullablePointcutDataItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePointcutDataItem(val *PointcutDataItem) *NullablePointcutDataItem { + return &NullablePointcutDataItem{value: val, isSet: true} +} + +func (v NullablePointcutDataItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePointcutDataItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_policy_configuration.go b/apim_policy/model_policy_configuration.go new file mode 100644 index 0000000..75f8937 --- /dev/null +++ b/apim_policy/model_policy_configuration.go @@ -0,0 +1,414 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the PolicyConfiguration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyConfiguration{} + +// PolicyConfiguration struct for PolicyConfiguration +type PolicyConfiguration struct { + PropertyName *string `json:"propertyName,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Options []map[string]interface{} `json:"options,omitempty"` + Optional *bool `json:"optional,omitempty"` + Sensitive *bool `json:"sensitive,omitempty"` + AllowMultiple *bool `json:"allowMultiple,omitempty"` + Configuration []PolicyConfigurationConfigurationInner `json:"configuration,omitempty"` +} + +// NewPolicyConfiguration instantiates a new PolicyConfiguration object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyConfiguration() *PolicyConfiguration { + this := PolicyConfiguration{} + return &this +} + +// NewPolicyConfigurationWithDefaults instantiates a new PolicyConfiguration object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyConfigurationWithDefaults() *PolicyConfiguration { + this := PolicyConfiguration{} + return &this +} + +// GetPropertyName returns the PropertyName field value if set, zero value otherwise. +func (o *PolicyConfiguration) GetPropertyName() string { + if o == nil || IsNil(o.PropertyName) { + var ret string + return ret + } + return *o.PropertyName +} + +// GetPropertyNameOk returns a tuple with the PropertyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyConfiguration) GetPropertyNameOk() (*string, bool) { + if o == nil || IsNil(o.PropertyName) { + return nil, false + } + return o.PropertyName, true +} + +// HasPropertyName returns a boolean if a field has been set. +func (o *PolicyConfiguration) HasPropertyName() bool { + if o != nil && !IsNil(o.PropertyName) { + return true + } + + return false +} + +// SetPropertyName gets a reference to the given string and assigns it to the PropertyName field. +func (o *PolicyConfiguration) SetPropertyName(v string) { + o.PropertyName = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PolicyConfiguration) 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 *PolicyConfiguration) 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 *PolicyConfiguration) 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 *PolicyConfiguration) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PolicyConfiguration) 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 *PolicyConfiguration) 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 *PolicyConfiguration) 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 *PolicyConfiguration) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PolicyConfiguration) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyConfiguration) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PolicyConfiguration) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *PolicyConfiguration) SetType(v string) { + o.Type = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *PolicyConfiguration) GetOptions() []map[string]interface{} { + if o == nil || IsNil(o.Options) { + var ret []map[string]interface{} + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyConfiguration) GetOptionsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *PolicyConfiguration) HasOptions() bool { + if o != nil && !IsNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []map[string]interface{} and assigns it to the Options field. +func (o *PolicyConfiguration) SetOptions(v []map[string]interface{}) { + o.Options = v +} + +// GetOptional returns the Optional field value if set, zero value otherwise. +func (o *PolicyConfiguration) GetOptional() bool { + if o == nil || IsNil(o.Optional) { + var ret bool + return ret + } + return *o.Optional +} + +// GetOptionalOk returns a tuple with the Optional field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyConfiguration) GetOptionalOk() (*bool, bool) { + if o == nil || IsNil(o.Optional) { + return nil, false + } + return o.Optional, true +} + +// HasOptional returns a boolean if a field has been set. +func (o *PolicyConfiguration) HasOptional() bool { + if o != nil && !IsNil(o.Optional) { + return true + } + + return false +} + +// SetOptional gets a reference to the given bool and assigns it to the Optional field. +func (o *PolicyConfiguration) SetOptional(v bool) { + o.Optional = &v +} + +// GetSensitive returns the Sensitive field value if set, zero value otherwise. +func (o *PolicyConfiguration) GetSensitive() bool { + if o == nil || IsNil(o.Sensitive) { + var ret bool + return ret + } + return *o.Sensitive +} + +// GetSensitiveOk returns a tuple with the Sensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyConfiguration) GetSensitiveOk() (*bool, bool) { + if o == nil || IsNil(o.Sensitive) { + return nil, false + } + return o.Sensitive, true +} + +// HasSensitive returns a boolean if a field has been set. +func (o *PolicyConfiguration) HasSensitive() bool { + if o != nil && !IsNil(o.Sensitive) { + return true + } + + return false +} + +// SetSensitive gets a reference to the given bool and assigns it to the Sensitive field. +func (o *PolicyConfiguration) SetSensitive(v bool) { + o.Sensitive = &v +} + +// GetAllowMultiple returns the AllowMultiple field value if set, zero value otherwise. +func (o *PolicyConfiguration) GetAllowMultiple() bool { + if o == nil || IsNil(o.AllowMultiple) { + var ret bool + return ret + } + return *o.AllowMultiple +} + +// GetAllowMultipleOk returns a tuple with the AllowMultiple field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyConfiguration) GetAllowMultipleOk() (*bool, bool) { + if o == nil || IsNil(o.AllowMultiple) { + return nil, false + } + return o.AllowMultiple, true +} + +// HasAllowMultiple returns a boolean if a field has been set. +func (o *PolicyConfiguration) HasAllowMultiple() bool { + if o != nil && !IsNil(o.AllowMultiple) { + return true + } + + return false +} + +// SetAllowMultiple gets a reference to the given bool and assigns it to the AllowMultiple field. +func (o *PolicyConfiguration) SetAllowMultiple(v bool) { + o.AllowMultiple = &v +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *PolicyConfiguration) GetConfiguration() []PolicyConfigurationConfigurationInner { + if o == nil || IsNil(o.Configuration) { + var ret []PolicyConfigurationConfigurationInner + 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 *PolicyConfiguration) GetConfigurationOk() ([]PolicyConfigurationConfigurationInner, 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 *PolicyConfiguration) HasConfiguration() bool { + if o != nil && !IsNil(o.Configuration) { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given []PolicyConfigurationConfigurationInner and assigns it to the Configuration field. +func (o *PolicyConfiguration) SetConfiguration(v []PolicyConfigurationConfigurationInner) { + o.Configuration = v +} + +func (o PolicyConfiguration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PropertyName) { + toSerialize["propertyName"] = o.PropertyName + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Options) { + toSerialize["options"] = o.Options + } + if !IsNil(o.Optional) { + toSerialize["optional"] = o.Optional + } + if !IsNil(o.Sensitive) { + toSerialize["sensitive"] = o.Sensitive + } + if !IsNil(o.AllowMultiple) { + toSerialize["allowMultiple"] = o.AllowMultiple + } + if !IsNil(o.Configuration) { + toSerialize["configuration"] = o.Configuration + } + return toSerialize, nil +} + +type NullablePolicyConfiguration struct { + value *PolicyConfiguration + isSet bool +} + +func (v NullablePolicyConfiguration) Get() *PolicyConfiguration { + return v.value +} + +func (v *NullablePolicyConfiguration) Set(val *PolicyConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyConfiguration(val *PolicyConfiguration) *NullablePolicyConfiguration { + return &NullablePolicyConfiguration{value: val, isSet: true} +} + +func (v NullablePolicyConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/model_policy_configuration_configuration_inner.go b/apim_policy/model_policy_configuration_configuration_inner.go new file mode 100644 index 0000000..b190ec6 --- /dev/null +++ b/apim_policy/model_policy_configuration_configuration_inner.go @@ -0,0 +1,162 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" +) + +// checks if the PolicyConfigurationConfigurationInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PolicyConfigurationConfigurationInner{} + +// PolicyConfigurationConfigurationInner struct for PolicyConfigurationConfigurationInner +type PolicyConfigurationConfigurationInner struct { + PropertyName *string `json:"propertyName,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewPolicyConfigurationConfigurationInner instantiates a new PolicyConfigurationConfigurationInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPolicyConfigurationConfigurationInner() *PolicyConfigurationConfigurationInner { + this := PolicyConfigurationConfigurationInner{} + return &this +} + +// NewPolicyConfigurationConfigurationInnerWithDefaults instantiates a new PolicyConfigurationConfigurationInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPolicyConfigurationConfigurationInnerWithDefaults() *PolicyConfigurationConfigurationInner { + this := PolicyConfigurationConfigurationInner{} + return &this +} + +// GetPropertyName returns the PropertyName field value if set, zero value otherwise. +func (o *PolicyConfigurationConfigurationInner) GetPropertyName() string { + if o == nil || IsNil(o.PropertyName) { + var ret string + return ret + } + return *o.PropertyName +} + +// GetPropertyNameOk returns a tuple with the PropertyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyConfigurationConfigurationInner) GetPropertyNameOk() (*string, bool) { + if o == nil || IsNil(o.PropertyName) { + return nil, false + } + return o.PropertyName, true +} + +// HasPropertyName returns a boolean if a field has been set. +func (o *PolicyConfigurationConfigurationInner) HasPropertyName() bool { + if o != nil && !IsNil(o.PropertyName) { + return true + } + + return false +} + +// SetPropertyName gets a reference to the given string and assigns it to the PropertyName field. +func (o *PolicyConfigurationConfigurationInner) SetPropertyName(v string) { + o.PropertyName = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PolicyConfigurationConfigurationInner) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PolicyConfigurationConfigurationInner) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PolicyConfigurationConfigurationInner) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *PolicyConfigurationConfigurationInner) SetType(v string) { + o.Type = &v +} + +func (o PolicyConfigurationConfigurationInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PolicyConfigurationConfigurationInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PropertyName) { + toSerialize["propertyName"] = o.PropertyName + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullablePolicyConfigurationConfigurationInner struct { + value *PolicyConfigurationConfigurationInner + isSet bool +} + +func (v NullablePolicyConfigurationConfigurationInner) Get() *PolicyConfigurationConfigurationInner { + return v.value +} + +func (v *NullablePolicyConfigurationConfigurationInner) Set(val *PolicyConfigurationConfigurationInner) { + v.value = val + v.isSet = true +} + +func (v NullablePolicyConfigurationConfigurationInner) IsSet() bool { + return v.isSet +} + +func (v *NullablePolicyConfigurationConfigurationInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePolicyConfigurationConfigurationInner(val *PolicyConfigurationConfigurationInner) *NullablePolicyConfigurationConfigurationInner { + return &NullablePolicyConfigurationConfigurationInner{value: val, isSet: true} +} + +func (v NullablePolicyConfigurationConfigurationInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePolicyConfigurationConfigurationInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/apim_policy/response.go b/apim_policy/response.go new file mode 100644 index 0000000..ad8b4b1 --- /dev/null +++ b/apim_policy/response.go @@ -0,0 +1,47 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/apim_policy/test/api_default_test.go b/apim_policy/test/api_default_test.go new file mode 100644 index 0000000..b743119 --- /dev/null +++ b/apim_policy/test/api_default_test.go @@ -0,0 +1,199 @@ +/* +API Manager Policy API + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package apim_policy + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/apim_policy" +) + +func Test_apim_policy_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService DeleteApimPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + var envId string + var apiId string + var apiPolicyId string + + httpRes, err := apiClient.DefaultApi.DeleteApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService DisableApimPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + var envId string + var apiId string + var apiPolicyId string + + resp, httpRes, err := apiClient.DefaultApi.DisableApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService EnableApimPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + var envId string + var apiId string + var apiPolicyId string + + resp, httpRes, err := apiClient.DefaultApi.EnableApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetApimPolicies", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + var envId string + var apiId string + + resp, httpRes, err := apiClient.DefaultApi.GetApimPolicies(context.Background(), orgId, envId, apiId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetApimPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + var envId string + var apiId string + var apiPolicyId string + + resp, httpRes, err := apiClient.DefaultApi.GetApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetOrgAutomatedPolicies", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + + resp, httpRes, err := apiClient.DefaultApi.GetOrgAutomatedPolicies(context.Background(), orgId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetOrgCustomPolicyTemplates", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + + httpRes, err := apiClient.DefaultApi.GetOrgCustomPolicyTemplates(context.Background(), orgId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetOrgExchangePolicyTemplateDetails", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + var groupId string + var assetId string + var assetVersion string + + resp, httpRes, err := apiClient.DefaultApi.GetOrgExchangePolicyTemplateDetails(context.Background(), orgId, groupId, assetId, assetVersion).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService GetOrgExchangePolicyTemplates", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + + resp, httpRes, err := apiClient.DefaultApi.GetOrgExchangePolicyTemplates(context.Background(), orgId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService PatchApimPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + var envId string + var apiId string + var apiPolicyId string + + resp, httpRes, err := apiClient.DefaultApi.PatchApimPolicy(context.Background(), orgId, envId, apiId, apiPolicyId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultApiService PostApimPolicy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgId string + var envId string + var apiId string + + resp, httpRes, err := apiClient.DefaultApi.PostApimPolicy(context.Background(), orgId, envId, apiId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/apim_policy/utils.go b/apim_policy/utils.go new file mode 100644 index 0000000..ca156b6 --- /dev/null +++ b/apim_policy/utils.go @@ -0,0 +1,347 @@ +/* +API Manager Policy API + +API Manager Policy API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package apim_policy + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/apim_upstream/.openapi-generator/FILES b/apim_upstream/.openapi-generator/FILES index 2ae4c3b..5841b74 100644 --- a/apim_upstream/.openapi-generator/FILES +++ b/apim_upstream/.openapi-generator/FILES @@ -36,5 +36,4 @@ model_upstream_post_body.go model_upstream_post_body_tls_context.go model_upstream_tls_context.go response.go -test/api_default_test.go utils.go diff --git a/authorization/.openapi-generator/FILES b/authorization/.openapi-generator/FILES index 06b0bc8..a21c75d 100644 --- a/authorization/.openapi-generator/FILES +++ b/authorization/.openapi-generator/FILES @@ -18,5 +18,4 @@ model__login_post_200_response.go model_credentials.go model_user_pwd_credentials.go response.go -test/api_default_test.go utils.go diff --git a/connected_app/.openapi-generator/FILES b/connected_app/.openapi-generator/FILES index c2785c5..2980689 100644 --- a/connected_app/.openapi-generator/FILES +++ b/connected_app/.openapi-generator/FILES @@ -32,5 +32,4 @@ model_connected_app_scopes_put_body.go model_context_params.go model_scope_core.go response.go -test/api_default_test.go utils.go diff --git a/dlb/.openapi-generator/FILES b/dlb/.openapi-generator/FILES index be496f1..63e1825 100644 --- a/dlb/.openapi-generator/FILES +++ b/dlb/.openapi-generator/FILES @@ -36,5 +36,4 @@ model_dlb_post_body_ssl_endpoints_inner_mappings_inner.go model_instance_config.go model_update_object.go response.go -test/api_default_test.go utils.go diff --git a/env/.openapi-generator/FILES b/env/.openapi-generator/FILES index e5f3602..2bcb3f6 100644 --- a/env/.openapi-generator/FILES +++ b/env/.openapi-generator/FILES @@ -20,5 +20,4 @@ model_env.go model_env_core.go model_env_id.go response.go -test/api_default_test.go utils.go diff --git a/exchange_assets/.openapi-generator/FILES b/exchange_assets/.openapi-generator/FILES index e3c3d1f..fd46a9f 100644 --- a/exchange_assets/.openapi-generator/FILES +++ b/exchange_assets/.openapi-generator/FILES @@ -38,5 +38,4 @@ model_organization.go model_patch_asset_name_and_descr.go model_post_asset_response.go response.go -test/api_default_test.go utils.go diff --git a/flexgateway/.openapi-generator/FILES b/flexgateway/.openapi-generator/FILES index 2d7977e..087e204 100644 --- a/flexgateway/.openapi-generator/FILES +++ b/flexgateway/.openapi-generator/FILES @@ -24,5 +24,4 @@ model_flex_gateway_target_details_replicas_inner.go model_flex_gateway_target_summary.go model_flex_gateway_target_summary_replicas.go response.go -test/api_default_test.go utils.go diff --git a/idp/.openapi-generator/FILES b/idp/.openapi-generator/FILES index 2dede11..5042e18 100644 --- a/idp/.openapi-generator/FILES +++ b/idp/.openapi-generator/FILES @@ -72,5 +72,4 @@ model_urls_2.go model_urls_3.go model_urls_4.go response.go -test/api_default_test.go utils.go diff --git a/invite/.openapi-generator/FILES b/invite/.openapi-generator/FILES index 6905019..08790a7 100644 --- a/invite/.openapi-generator/FILES +++ b/invite/.openapi-generator/FILES @@ -26,5 +26,4 @@ model_invite_obj_id.go model_invite_post_body.go model_role_groups.go response.go -test/api_default_test.go utils.go diff --git a/org/.openapi-generator/FILES b/org/.openapi-generator/FILES index 8389159..a2443b2 100644 --- a/org/.openapi-generator/FILES +++ b/org/.openapi-generator/FILES @@ -106,5 +106,4 @@ model_vpns.go model_worker_clouds.go model_worker_logging_override.go response.go -test/api_default_test.go utils.go diff --git a/rm_alerts/.openapi-generator/FILES b/rm_alerts/.openapi-generator/FILES index d9b68b3..afdb424 100644 --- a/rm_alerts/.openapi-generator/FILES +++ b/rm_alerts/.openapi-generator/FILES @@ -18,5 +18,4 @@ model_alert.go model_alert_body.go model_condition.go response.go -test/api_default_test.go utils.go diff --git a/role/.openapi-generator/FILES b/role/.openapi-generator/FILES index cf3c6bc..0645853 100644 --- a/role/.openapi-generator/FILES +++ b/role/.openapi-generator/FILES @@ -30,5 +30,4 @@ model_role_post_response_item.go model_role_to_assign.go model_role_to_delete.go response.go -test/api_default_test.go utils.go diff --git a/rolegroup/.openapi-generator/FILES b/rolegroup/.openapi-generator/FILES index 6475f86..d35edc2 100644 --- a/rolegroup/.openapi-generator/FILES +++ b/rolegroup/.openapi-generator/FILES @@ -20,5 +20,4 @@ model_rolegroup.go model_rolegroup_post_body.go model_rolegroup_put_body.go response.go -test/api_default_test.go utils.go diff --git a/secretgroup/.openapi-generator/FILES b/secretgroup/.openapi-generator/FILES index 0867459..c8a5894 100644 --- a/secretgroup/.openapi-generator/FILES +++ b/secretgroup/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -29,5 +28,4 @@ model_secret_group_patch_response.go model_secret_group_post_body.go model_secret_group_post_response.go response.go -test/api_default_test.go utils.go diff --git a/secretgroup_certificate/.openapi-generator/FILES b/secretgroup_certificate/.openapi-generator/FILES index dbcfce7..a2c208b 100644 --- a/secretgroup_certificate/.openapi-generator/FILES +++ b/secretgroup_certificate/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -35,5 +34,4 @@ model_meta.go model_post_secret_group_certificate_201_response.go model_put_secret_group_certificate_200_response.go response.go -test/api_default_test.go utils.go diff --git a/secretgroup_crl_distributor_configs/.openapi-generator/FILES b/secretgroup_crl_distributor_configs/.openapi-generator/FILES index 548f889..f7d059d 100644 --- a/secretgroup_crl_distributor_configs/.openapi-generator/FILES +++ b/secretgroup_crl_distributor_configs/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -31,5 +30,4 @@ model_post_secret_group_crl_distrib_cfgs_201_response.go model_put_secret_group_tls_context_200_response.go model_secret_path.go response.go -test/api_default_test.go utils.go diff --git a/secretgroup_keystore/.openapi-generator/FILES b/secretgroup_keystore/.openapi-generator/FILES index 36a2782..25490e1 100644 --- a/secretgroup_keystore/.openapi-generator/FILES +++ b/secretgroup_keystore/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -37,5 +36,4 @@ model_meta.go model_post_secret_group_keystores_201_response.go model_put_secret_group_keystore_200_response.go response.go -test/api_default_test.go utils.go diff --git a/secretgroup_tlscontext/.openapi-generator/FILES b/secretgroup_tlscontext/.openapi-generator/FILES index 5b906d5..f6687c1 100644 --- a/secretgroup_tlscontext/.openapi-generator/FILES +++ b/secretgroup_tlscontext/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -57,5 +56,4 @@ model_tls_context_put_body.go model_tls_context_sf_body.go model_tls_context_summary.go response.go -test/api_default_test.go utils.go diff --git a/secretgroup_truststore/.openapi-generator/FILES b/secretgroup_truststore/.openapi-generator/FILES index 38315e8..5f262c7 100644 --- a/secretgroup_truststore/.openapi-generator/FILES +++ b/secretgroup_truststore/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -39,5 +38,4 @@ model_truststore.go model_truststore_details.go model_truststore_summary.go response.go -test/api_default_test.go utils.go diff --git a/team/.openapi-generator/FILES b/team/.openapi-generator/FILES index c78ff98..4a2e8b3 100644 --- a/team/.openapi-generator/FILES +++ b/team/.openapi-generator/FILES @@ -28,5 +28,4 @@ model_team_patch_body.go model_team_post_body.go model_team_put_body.go response.go -test/api_default_test.go utils.go diff --git a/team_group_mappings/.openapi-generator/FILES b/team_group_mappings/.openapi-generator/FILES index 5d4a9dc..cbbe2d7 100644 --- a/team_group_mappings/.openapi-generator/FILES +++ b/team_group_mappings/.openapi-generator/FILES @@ -20,5 +20,4 @@ model_team_group_mapping.go model_team_group_mapping_put_body.go model_team_group_mappings_collection.go response.go -test/api_default_test.go utils.go diff --git a/team_members/.openapi-generator/FILES b/team_members/.openapi-generator/FILES index 5874daf..d471ef6 100644 --- a/team_members/.openapi-generator/FILES +++ b/team_members/.openapi-generator/FILES @@ -20,5 +20,4 @@ model_team_member.go model_team_member_collection.go model_team_member_put_body.go response.go -test/api_default_test.go utils.go diff --git a/team_roles/.openapi-generator/FILES b/team_roles/.openapi-generator/FILES index c21d0e5..a967352 100644 --- a/team_roles/.openapi-generator/FILES +++ b/team_roles/.openapi-generator/FILES @@ -24,5 +24,4 @@ model_team_role_collection.go model_team_role_delete_body.go model_team_role_post_body.go response.go -test/api_default_test.go utils.go diff --git a/user/.openapi-generator/FILES b/user/.openapi-generator/FILES index 78788c1..c7e8d7f 100644 --- a/user/.openapi-generator/FILES +++ b/user/.openapi-generator/FILES @@ -34,5 +34,4 @@ model_user_id.go model_user_post_body.go model_user_put_body.go response.go -test/api_default_test.go utils.go diff --git a/user_rolegroups/.openapi-generator/FILES b/user_rolegroups/.openapi-generator/FILES index 8b53625..5fa9c37 100644 --- a/user_rolegroups/.openapi-generator/FILES +++ b/user_rolegroups/.openapi-generator/FILES @@ -14,5 +14,4 @@ go.sum model__organizations__org_id__users__user_id__rolegroups_get_200_response.go model_rolegroup.go response.go -test/api_default_test.go utils.go diff --git a/vpc/.openapi-generator/FILES b/vpc/.openapi-generator/FILES index 211d03c..8a7c38a 100644 --- a/vpc/.openapi-generator/FILES +++ b/vpc/.openapi-generator/FILES @@ -26,5 +26,4 @@ model_vpc_core.go model_vpc_id.go model_vpc_route.go response.go -test/api_default_test.go utils.go diff --git a/vpn/.openapi-generator/FILES b/vpn/.openapi-generator/FILES index 01c08fc..26e8c25 100644 --- a/vpn/.openapi-generator/FILES +++ b/vpn/.openapi-generator/FILES @@ -38,5 +38,4 @@ model_vpn_post.go model_vpn_post_req_body.go model_vpn_tunnel.go response.go -test/api_default_test.go utils.go