diff --git a/dfp/.openapi-generator/FILES b/dfp/.openapi-generator/FILES index 7986f44..a761d48 100644 --- a/dfp/.openapi-generator/FILES +++ b/dfp/.openapi-generator/FILES @@ -1,41 +1,41 @@ README.md api/openapi.yaml api_accounts.go -api_dfp.go +api_infra_services.go client.go docs/AccountsAPI.md docs/DNSProtocol.md docs/Dfp.md -docs/DfpAPI.md -docs/DfpCreateOrUpdateDfp400Response.md -docs/DfpCreateOrUpdateDfp400ResponseError.md docs/DfpCreateOrUpdatePayload.md docs/DfpCreateOrUpdateResponse.md docs/DfpHost.md -docs/DfpListDfp500Response.md -docs/DfpListDfp500ResponseError.md docs/DfpListResponse.md -docs/DfpReadDfp404Response.md -docs/DfpReadDfp404ResponseError.md docs/DfpReadResponse.md +docs/InfraServicesAPI.md +docs/InfraServicesCreateOrUpdateDfpService400Response.md +docs/InfraServicesCreateOrUpdateDfpService400ResponseError.md +docs/InfraServicesCreateOrUpdateDfpService404Response.md +docs/InfraServicesCreateOrUpdateDfpService404ResponseError.md +docs/InfraServicesListDfpServices500Response.md +docs/InfraServicesListDfpServices500ResponseError.md docs/NetAddrPolicyAssignment.md docs/Resolver.md docs/TypesConfigCheckRequest.md docs/TypesConfigCheckResponse.md docs/TypesConfigCheckResult.md model_dfp.go -model_dfp_create_or_update_dfp_400_response.go -model_dfp_create_or_update_dfp_400_response_error.go model_dfp_create_or_update_payload.go model_dfp_create_or_update_response.go model_dfp_host.go -model_dfp_list_dfp_500_response.go -model_dfp_list_dfp_500_response_error.go model_dfp_list_response.go -model_dfp_read_dfp_404_response.go -model_dfp_read_dfp_404_response_error.go model_dfp_read_response.go model_dns_protocol.go +model_infra_services_create_or_update_dfp_service_400_response.go +model_infra_services_create_or_update_dfp_service_400_response_error.go +model_infra_services_create_or_update_dfp_service_404_response.go +model_infra_services_create_or_update_dfp_service_404_response_error.go +model_infra_services_list_dfp_services_500_response.go +model_infra_services_list_dfp_services_500_response_error.go model_net_addr_policy_assignment.go model_resolver.go model_types_config_check_request.go diff --git a/dfp/README.md b/dfp/README.md index 4b37f0c..5d26453 100644 --- a/dfp/README.md +++ b/dfp/README.md @@ -92,26 +92,26 @@ All URIs are relative to *https://csp.infoblox.com/api/atcdfp/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AccountsAPI* | [**CheckConfig**](docs/AccountsAPI.md#checkconfig) | **Post** /config/check | Check Config. -*DfpAPI* | [**CreateOrUpdateDfp**](docs/DfpAPI.md#createorupdatedfp) | **Put** /dfps/{id} | Update DNS Forwarding Proxy resolvers. -*DfpAPI* | [**ListDfp**](docs/DfpAPI.md#listdfp) | **Get** /dfp_services | List DNS Forwarding Proxies. -*DfpAPI* | [**ReadDfp**](docs/DfpAPI.md#readdfp) | **Get** /dfps/{id} | Read DNS Forwarding Proxy. +*InfraServicesAPI* | [**CreateOrUpdateDfpService**](docs/InfraServicesAPI.md#createorupdatedfpservice) | **Put** /dfp_services/{payload.service_id} | Update DNS Forwarding Proxy services. +*InfraServicesAPI* | [**ListDfpServices**](docs/InfraServicesAPI.md#listdfpservices) | **Get** /dfp_services | List DNS Forwarding Proxy services. +*InfraServicesAPI* | [**ReadDfpService**](docs/InfraServicesAPI.md#readdfpservice) | **Get** /dfp_services/{service_id} | Read DNS Forwarding Proxy services. ## Documentation For Models - [DNSProtocol](docs/DNSProtocol.md) - [Dfp](docs/Dfp.md) - - [DfpCreateOrUpdateDfp400Response](docs/DfpCreateOrUpdateDfp400Response.md) - - [DfpCreateOrUpdateDfp400ResponseError](docs/DfpCreateOrUpdateDfp400ResponseError.md) - [DfpCreateOrUpdatePayload](docs/DfpCreateOrUpdatePayload.md) - [DfpCreateOrUpdateResponse](docs/DfpCreateOrUpdateResponse.md) - [DfpHost](docs/DfpHost.md) - - [DfpListDfp500Response](docs/DfpListDfp500Response.md) - - [DfpListDfp500ResponseError](docs/DfpListDfp500ResponseError.md) - [DfpListResponse](docs/DfpListResponse.md) - - [DfpReadDfp404Response](docs/DfpReadDfp404Response.md) - - [DfpReadDfp404ResponseError](docs/DfpReadDfp404ResponseError.md) - [DfpReadResponse](docs/DfpReadResponse.md) + - [InfraServicesCreateOrUpdateDfpService400Response](docs/InfraServicesCreateOrUpdateDfpService400Response.md) + - [InfraServicesCreateOrUpdateDfpService400ResponseError](docs/InfraServicesCreateOrUpdateDfpService400ResponseError.md) + - [InfraServicesCreateOrUpdateDfpService404Response](docs/InfraServicesCreateOrUpdateDfpService404Response.md) + - [InfraServicesCreateOrUpdateDfpService404ResponseError](docs/InfraServicesCreateOrUpdateDfpService404ResponseError.md) + - [InfraServicesListDfpServices500Response](docs/InfraServicesListDfpServices500Response.md) + - [InfraServicesListDfpServices500ResponseError](docs/InfraServicesListDfpServices500ResponseError.md) - [NetAddrPolicyAssignment](docs/NetAddrPolicyAssignment.md) - [Resolver](docs/Resolver.md) - [TypesConfigCheckRequest](docs/TypesConfigCheckRequest.md) diff --git a/dfp/api/openapi.yaml b/dfp/api/openapi.yaml index 9baef92..c81fb20 100644 --- a/dfp/api/openapi.yaml +++ b/dfp/api/openapi.yaml @@ -13,7 +13,7 @@ servers: paths: /config/check: post: - description: Use this method to check config + description: Use this method to check configuration operationId: accountsCheckConfig requestBody: content: @@ -35,11 +35,9 @@ paths: /dfp_services: get: description: |+ - Use this method to retrieve information on all DNS Forwarding Proxy objects for the account. + Use this method to retrieve information on all DNS Forwarding Proxy services. - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. - - operationId: dfpListDfp + operationId: infra_servicesListDfpServices parameters: - description: | A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. @@ -48,13 +46,13 @@ paths: You can filter by following fields: - | Name | type | Supported Op | - | ----------------------- | ------ | --------------------------- | - | name | string | !=, ==, ~, !~, >, <, <=, >= | - | site_id | string | !=, ==, ~, !~, >, <, <=, >= | - | ophid | string | !=, ==, ~, !~, >, <, <=, >= | - | policy_id | int32 | !=, ==, >, <, <=, >= | - | default_security_policy | bool | !=, == | + | Name | type | Supported Op | + | ----------------------- | -------- | --------------------------- | + | service_name | string | !=, ==, ~, !~, >, <, <=, >= | + | internal_domain_lists | [int32] | !=, ==, ~, !~, >, <, <=, >= | + | policy_id | int32 | !=, ==, >, <, <=, >= | + | default_security_policy | bool | !=, == | + In addition groupping operators are supported: @@ -67,7 +65,7 @@ paths: Example: ``` - ?_filter="((name=='dfp1')or(ophid~'oph'))and(default_security_policy!='true')" + ?_filter="((service_name=='dfp1')or(policy_id~'oph'))and(default_security_policy!='true')" ``` in: query name: _filter @@ -116,69 +114,52 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/dfpListDfp_500_response' + $ref: '#/components/schemas/infra_servicesListDfpServices_500_response' description: |2- - Internal server error occurred - summary: List DNS Forwarding Proxies. + summary: List DNS Forwarding Proxy services. tags: - - dfp - x-tf-resource: dfp_service - x-tf-datasource: dfp_services - /dfps/{id}: - get: + - infra_services + /dfp_services/{payload.service_id}: + put: description: | - Use this method to retrieve information on the specified DNS Forwarding Proxy object. - - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. - - Note that DNS Forwarding Proxy cannot be created (all information regarding DFP is synchronized from hostapp service). - operationId: dfpReadDfp + Use this method to update resolvers for the specified DNS Forwarding Proxy Service. + operationId: infra_servicesCreateOrUpdateDfpService parameters: - - description: The DNS Forwarding Proxy object identifier. + - description: The DNS Forwarding Proxy Service ID object identifier. in: path - name: id + name: payload.service_id required: true - schema: - format: int32 - type: integer - - description: "\n\nA collection of response resources can be transformed by\ - \ specifying a set of JSON tags to be returned. For a “flat” resource, the\ - \ tag name is straightforward. If field selection is allowed on non-flat\ - \ hierarchical resources, the service should implement a qualified naming\ - \ scheme such as dot-qualification to reference data down the hierarchy.\ - \ If a resource does not have the specified tag, the tag does not appear\ - \ in the output resource.\n\nSpecify this parameter as a comma-separated\ - \ list of JSON tag names.\n\n\t\t\t\t\t\t" - in: query - name: _fields - schema: - type: string - - description: |- - The name of the DNS Forwarding Proxy. - Used only if the 'id' field is empty. - in: query - name: name - schema: - type: string - - description: The On-Prem Application Service identifier. For internal Use - only. - in: query - name: service_id schema: type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/atcdfpDfpCreateOrUpdatePayload' + description: The DNS Forwarding Proxy object. + required: true responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/atcdfpDfpReadResponse' - description: GET operation response + $ref: '#/components/schemas/atcdfpDfpCreateOrUpdateResponse' + description: PUT operation response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/infra_servicesCreateOrUpdateDfpService_400_response' + description: |2- + + - 'id' value must be greater than or equal to zero "404": content: application/json: schema: - $ref: '#/components/schemas/dfpReadDfp_404_response' + $ref: '#/components/schemas/infra_servicesCreateOrUpdateDfpService_404_response' description: |2- - 'id' value must contain existing DFP identifier @@ -186,58 +167,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/dfpListDfp_500_response' + $ref: '#/components/schemas/infra_servicesListDfpServices_500_response' description: |2- - Internal server error occurred - summary: Read DNS Forwarding Proxy. + summary: Update DNS Forwarding Proxy services. tags: - - dfp - put: + - infra_services + x-codegen-request-body-name: body + /dfp_services/{service_id}: + get: description: | - Use this method to update resolvers for the specified DNS Forwarding Proxy. - - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. There is a possibility to set default resolver(s) depending on the license class. DNS forwarding proxy would fallback to the default resolvers when BloxOne Cloud is unreachable. - operationId: dfpCreateOrUpdateDfp + Use this method to retrieve information on the specified DNS Forwarding Proxy service. + operationId: infra_servicesReadDfpService parameters: - - description: The DNS Forwarding Proxy object identifier. + - description: The On-Prem Application Service identifier. For internal Use + only in: path - name: id + name: service_id required: true + schema: + type: string + - description: The DNS Forwarding Proxy object identifier. + in: query + name: id schema: format: int32 type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/atcdfpDfpCreateOrUpdatePayload' - description: The DNS Forwarding Proxy object. - required: true + - description: "\n\nA collection of response resources can be transformed by\ + \ specifying a set of JSON tags to be returned. For a “flat” resource, the\ + \ tag name is straightforward. If field selection is allowed on non-flat\ + \ hierarchical resources, the service should implement a qualified naming\ + \ scheme such as dot-qualification to reference data down the hierarchy.\ + \ If a resource does not have the specified tag, the tag does not appear\ + \ in the output resource.\n\nSpecify this parameter as a comma-separated\ + \ list of JSON tag names.\n\n\t\t\t\t\t\t" + in: query + name: _fields + schema: + type: string + - description: |- + The name of the DNS Forwarding Proxy. + Used only if the 'id' field is empty. + in: query + name: name + schema: + type: string responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/atcdfpDfpCreateOrUpdateResponse' - description: PUT operation response - "400": + "200": content: application/json: schema: - $ref: '#/components/schemas/dfpCreateOrUpdateDfp_400_response' - description: |2- - - - 'id' value must be greater than or equal to zero - - 'resolvers' value must contain values that are valid IPv4 or IPv6 addresses - - 'resolvers' value must contain unique elements - - 'default_resolvers' value must contain values that are valid IPv4 or IPv6 addresses - - 'default_resolvers' value must contain unique elements + $ref: '#/components/schemas/atcdfpDfpReadResponse' + description: GET operation response "404": content: application/json: schema: - $ref: '#/components/schemas/dfpReadDfp_404_response' + $ref: '#/components/schemas/infra_servicesCreateOrUpdateDfpService_404_response' description: |2- - 'id' value must contain existing DFP identifier @@ -245,14 +232,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/dfpListDfp_500_response' + $ref: '#/components/schemas/infra_servicesListDfpServices_500_response' description: |2- - Internal server error occurred - summary: Update DNS Forwarding Proxy resolvers. + summary: Read DNS Forwarding Proxy services. tags: - - dfp - x-codegen-request-body-name: body + - infra_services components: schemas: atcdfpDNSProtocol: @@ -268,9 +254,6 @@ components: - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff created_time: 2000-01-23T04:56:07.000+00:00 updated_time: 2000-01-23T04:56:07.000+00:00 - resolvers: - - 1.1.1.1 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff resolvers_all: - address: address is_fallback: true @@ -290,9 +273,6 @@ components: - 1 - 1 service_name: dfp_service_1 - default_resolvers: - - 4.4.4.4 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff pop_region_id: 5 ophid: aed8263b8900bfb178e0bb7c57ba5af8 service_id: u2y3w3fuhhtx7aykfkuergkuboc33wyqrrmjnr5tyrlyredwow374gu5uwzqnsb6 @@ -319,16 +299,6 @@ components: format: date-time readOnly: true type: string - default_resolvers: - description: The list of default DNS resolvers that will be used in case - if the BloxOne Cloud is unreachable. Deprecated DO NOT USE. Use resolvers_all. - example: - - 4.4.4.4 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff - items: - type: string - readOnly: true - type: array elb_ip_list: description: The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as ELB IPs. @@ -385,16 +355,6 @@ components: format: int32 readOnly: true type: integer - resolvers: - description: The list of internal or local DNS servers' IPv4 or IPv6 addresses - that are used as DNS resolvers. Deprecated DO NOT USE. Use resolvers_all. - example: - - 1.1.1.1 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff - items: - type: string - readOnly: true - type: array resolvers_all: items: $ref: '#/components/schemas/atcdfpResolver' @@ -431,15 +391,6 @@ components: Note that DNS Forwarding Proxy cannot be created (all information regarding DFP is synchronized from hostapp service). properties: - default_resolvers: - description: The list of default DNS resolvers that will be used in case - if the BloxOne Cloud is unreachable. Deprecated DO NOT USE. Use resolvers_all. - example: - - 4.4.4.4 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff - items: - type: string - type: array forwarding_policy: description: |- The type of DNS resolver as Forwarding Policy. It can hold values as ib_cloud_first, external_first or external_only @@ -471,15 +422,6 @@ components: description: Point of Presence (PoP) region format: int32 type: integer - resolvers: - description: The list of internal or local DNS servers' IPv4 or IPv6 addresses - that are used as DNS resolvers. Deprecated DO NOT USE. Use resolvers_all. - example: - - 1.1.1.1 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff - items: - type: string - type: array resolvers_all: description: "The DNS forwarding proxy additional resolvers used for fallback\ \ and local resolution. This field replaces resolvers and default_resolvers\ @@ -518,9 +460,6 @@ components: - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff created_time: 2000-01-23T04:56:07.000+00:00 updated_time: 2000-01-23T04:56:07.000+00:00 - resolvers: - - 1.1.1.1 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff resolvers_all: - address: address is_fallback: true @@ -540,9 +479,6 @@ components: - 1 - 1 service_name: dfp_service_1 - default_resolvers: - - 4.4.4.4 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff pop_region_id: 5 ophid: aed8263b8900bfb178e0bb7c57ba5af8 service_id: u2y3w3fuhhtx7aykfkuergkuboc33wyqrrmjnr5tyrlyredwow374gu5uwzqnsb6 @@ -605,9 +541,6 @@ components: - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff created_time: 2000-01-23T04:56:07.000+00:00 updated_time: 2000-01-23T04:56:07.000+00:00 - resolvers: - - 1.1.1.1 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff resolvers_all: - address: address is_fallback: true @@ -627,9 +560,6 @@ components: - 1 - 1 service_name: dfp_service_1 - default_resolvers: - - 4.4.4.4 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff pop_region_id: 5 ophid: aed8263b8900bfb178e0bb7c57ba5af8 service_id: u2y3w3fuhhtx7aykfkuergkuboc33wyqrrmjnr5tyrlyredwow374gu5uwzqnsb6 @@ -655,9 +585,6 @@ components: - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff created_time: 2000-01-23T04:56:07.000+00:00 updated_time: 2000-01-23T04:56:07.000+00:00 - resolvers: - - 1.1.1.1 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff resolvers_all: - address: address is_fallback: true @@ -677,9 +604,6 @@ components: - 1 - 1 service_name: dfp_service_1 - default_resolvers: - - 4.4.4.4 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff pop_region_id: 5 ophid: aed8263b8900bfb178e0bb7c57ba5af8 service_id: u2y3w3fuhhtx7aykfkuergkuboc33wyqrrmjnr5tyrlyredwow374gu5uwzqnsb6 @@ -716,9 +640,6 @@ components: - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff created_time: 2000-01-23T04:56:07.000+00:00 updated_time: 2000-01-23T04:56:07.000+00:00 - resolvers: - - 1.1.1.1 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff resolvers_all: - address: address is_fallback: true @@ -738,9 +659,6 @@ components: - 1 - 1 service_name: dfp_service_1 - default_resolvers: - - 4.4.4.4 - - 2001:cdba:9abc:5678:ffff:ffff:ffff:ffff pop_region_id: 5 ophid: aed8263b8900bfb178e0bb7c57ba5af8 service_id: u2y3w3fuhhtx7aykfkuergkuboc33wyqrrmjnr5tyrlyredwow374gu5uwzqnsb6 @@ -865,7 +783,7 @@ components: description: The check result. type: string type: object - dfpListDfp_500_response_error: + infra_servicesListDfpServices_500_response_error: example: code: INTERNAL message: Internal Server Error @@ -881,7 +799,7 @@ components: example: "500" type: string type: object - dfpListDfp_500_response: + infra_servicesListDfpServices_500_response: example: error: code: INTERNAL @@ -889,61 +807,61 @@ components: status: "500" properties: error: - $ref: '#/components/schemas/dfpListDfp_500_response_error' + $ref: '#/components/schemas/infra_servicesListDfpServices_500_response_error' type: object - dfpReadDfp_404_response_error: + infra_servicesCreateOrUpdateDfpService_400_response_error: example: - code: NOT_FOUND - message: Dfp does not exist - status: "404" + code: INVALID_ARGUMENT + message: "invalid 'by': invalid DfpCreateOrUpdatePayload.Id: value must be\ + \ greater than or equal to 0" + status: "400" properties: code: - example: NOT_FOUND + example: INVALID_ARGUMENT type: string message: - example: Dfp does not exist + example: "invalid 'by': invalid DfpCreateOrUpdatePayload.Id: value must\ + \ be greater than or equal to 0" type: string status: - example: "404" + example: "400" type: string type: object - dfpReadDfp_404_response: + infra_servicesCreateOrUpdateDfpService_400_response: example: error: - code: NOT_FOUND - message: Dfp does not exist - status: "404" + code: INVALID_ARGUMENT + message: "invalid 'by': invalid DfpCreateOrUpdatePayload.Id: value must\ + \ be greater than or equal to 0" + status: "400" properties: error: - $ref: '#/components/schemas/dfpReadDfp_404_response_error' + $ref: '#/components/schemas/infra_servicesCreateOrUpdateDfpService_400_response_error' type: object - dfpCreateOrUpdateDfp_400_response_error: + infra_servicesCreateOrUpdateDfpService_404_response_error: example: - code: INVALID_ARGUMENT - message: "invalid 'by': invalid DfpCreateOrUpdatePayload.Id: value must be\ - \ greater than or equal to 0" - status: "400" + code: NOT_FOUND + message: Dfp does not exist + status: "404" properties: code: - example: INVALID_ARGUMENT + example: NOT_FOUND type: string message: - example: "invalid 'by': invalid DfpCreateOrUpdatePayload.Id: value must\ - \ be greater than or equal to 0" + example: Dfp does not exist type: string status: - example: "400" + example: "404" type: string type: object - dfpCreateOrUpdateDfp_400_response: + infra_servicesCreateOrUpdateDfpService_404_response: example: error: - code: INVALID_ARGUMENT - message: "invalid 'by': invalid DfpCreateOrUpdatePayload.Id: value must\ - \ be greater than or equal to 0" - status: "400" + code: NOT_FOUND + message: Dfp does not exist + status: "404" properties: error: - $ref: '#/components/schemas/dfpCreateOrUpdateDfp_400_response_error' + $ref: '#/components/schemas/infra_servicesCreateOrUpdateDfpService_404_response_error' type: object x-original-swagger-version: "2.0" diff --git a/dfp/api_accounts.go b/dfp/api_accounts.go index 532545b..4513ce2 100644 --- a/dfp/api_accounts.go +++ b/dfp/api_accounts.go @@ -24,7 +24,7 @@ type AccountsAPI interface { /* CheckConfig Check Config. - Use this method to check config + Use this method to check configuration @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return AccountsAPICheckConfigRequest @@ -57,7 +57,7 @@ func (r AccountsAPICheckConfigRequest) Execute() (*TypesConfigCheckResponse, *ht /* CheckConfig Check Config. -Use this method to check config +Use this method to check configuration @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return AccountsAPICheckConfigRequest diff --git a/dfp/api_dfp.go b/dfp/api_infra_services.go similarity index 59% rename from dfp/api_dfp.go rename to dfp/api_infra_services.go index 9510b39..1953dda 100644 --- a/dfp/api_dfp.go +++ b/dfp/api_infra_services.go @@ -21,105 +21,95 @@ import ( "github.com/infobloxopen/bloxone-go-client/internal" ) -type DfpAPI interface { +type InfraServicesAPI interface { /* - CreateOrUpdateDfp Update DNS Forwarding Proxy resolvers. + CreateOrUpdateDfpService Update DNS Forwarding Proxy services. - Use this method to update resolvers for the specified DNS Forwarding Proxy. + Use this method to update resolvers for the specified DNS Forwarding Proxy Service. - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. There is a possibility to set default resolver(s) depending on the license class. DNS forwarding proxy would fallback to the default resolvers when BloxOne Cloud is unreachable. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The DNS Forwarding Proxy object identifier. - @return DfpAPICreateOrUpdateDfpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param payloadServiceId The DNS Forwarding Proxy Service ID object identifier. + @return InfraServicesAPICreateOrUpdateDfpServiceRequest */ - CreateOrUpdateDfp(ctx context.Context, id int32) DfpAPICreateOrUpdateDfpRequest + CreateOrUpdateDfpService(ctx context.Context, payloadServiceId string) InfraServicesAPICreateOrUpdateDfpServiceRequest - // CreateOrUpdateDfpExecute executes the request + // CreateOrUpdateDfpServiceExecute executes the request // @return DfpCreateOrUpdateResponse - CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpRequest) (*DfpCreateOrUpdateResponse, *http.Response, error) + CreateOrUpdateDfpServiceExecute(r InfraServicesAPICreateOrUpdateDfpServiceRequest) (*DfpCreateOrUpdateResponse, *http.Response, error) /* - ListDfp List DNS Forwarding Proxies. - - Use this method to retrieve information on all DNS Forwarding Proxy objects for the account. + ListDfpServices List DNS Forwarding Proxy services. - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. + Use this method to retrieve information on all DNS Forwarding Proxy services. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return DfpAPIListDfpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return InfraServicesAPIListDfpServicesRequest */ - ListDfp(ctx context.Context) DfpAPIListDfpRequest + ListDfpServices(ctx context.Context) InfraServicesAPIListDfpServicesRequest - // ListDfpExecute executes the request + // ListDfpServicesExecute executes the request // @return DfpListResponse - ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse, *http.Response, error) + ListDfpServicesExecute(r InfraServicesAPIListDfpServicesRequest) (*DfpListResponse, *http.Response, error) /* - ReadDfp Read DNS Forwarding Proxy. - - Use this method to retrieve information on the specified DNS Forwarding Proxy object. + ReadDfpService Read DNS Forwarding Proxy services. - For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. + Use this method to retrieve information on the specified DNS Forwarding Proxy service. - Note that DNS Forwarding Proxy cannot be created (all information regarding DFP is synchronized from hostapp service). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The DNS Forwarding Proxy object identifier. - @return DfpAPIReadDfpRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceId The On-Prem Application Service identifier. For internal Use only + @return InfraServicesAPIReadDfpServiceRequest */ - ReadDfp(ctx context.Context, id int32) DfpAPIReadDfpRequest + ReadDfpService(ctx context.Context, serviceId string) InfraServicesAPIReadDfpServiceRequest - // ReadDfpExecute executes the request + // ReadDfpServiceExecute executes the request // @return DfpReadResponse - ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse, *http.Response, error) + ReadDfpServiceExecute(r InfraServicesAPIReadDfpServiceRequest) (*DfpReadResponse, *http.Response, error) } -// DfpAPIService DfpAPI service -type DfpAPIService internal.Service +// InfraServicesAPIService InfraServicesAPI service +type InfraServicesAPIService internal.Service -type DfpAPICreateOrUpdateDfpRequest struct { - ctx context.Context - ApiService DfpAPI - id int32 - body *DfpCreateOrUpdatePayload +type InfraServicesAPICreateOrUpdateDfpServiceRequest struct { + ctx context.Context + ApiService InfraServicesAPI + payloadServiceId string + body *DfpCreateOrUpdatePayload } // The DNS Forwarding Proxy object. -func (r DfpAPICreateOrUpdateDfpRequest) Body(body DfpCreateOrUpdatePayload) DfpAPICreateOrUpdateDfpRequest { +func (r InfraServicesAPICreateOrUpdateDfpServiceRequest) Body(body DfpCreateOrUpdatePayload) InfraServicesAPICreateOrUpdateDfpServiceRequest { r.body = &body return r } -func (r DfpAPICreateOrUpdateDfpRequest) Execute() (*DfpCreateOrUpdateResponse, *http.Response, error) { - return r.ApiService.CreateOrUpdateDfpExecute(r) +func (r InfraServicesAPICreateOrUpdateDfpServiceRequest) Execute() (*DfpCreateOrUpdateResponse, *http.Response, error) { + return r.ApiService.CreateOrUpdateDfpServiceExecute(r) } /* -CreateOrUpdateDfp Update DNS Forwarding Proxy resolvers. +CreateOrUpdateDfpService Update DNS Forwarding Proxy services. -Use this method to update resolvers for the specified DNS Forwarding Proxy. - -For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. There is a possibility to set default resolver(s) depending on the license class. DNS forwarding proxy would fallback to the default resolvers when BloxOne Cloud is unreachable. +Use this method to update resolvers for the specified DNS Forwarding Proxy Service. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The DNS Forwarding Proxy object identifier. - @return DfpAPICreateOrUpdateDfpRequest + @param payloadServiceId The DNS Forwarding Proxy Service ID object identifier. + @return InfraServicesAPICreateOrUpdateDfpServiceRequest */ -func (a *DfpAPIService) CreateOrUpdateDfp(ctx context.Context, id int32) DfpAPICreateOrUpdateDfpRequest { - return DfpAPICreateOrUpdateDfpRequest{ - ApiService: a, - ctx: ctx, - id: id, +func (a *InfraServicesAPIService) CreateOrUpdateDfpService(ctx context.Context, payloadServiceId string) InfraServicesAPICreateOrUpdateDfpServiceRequest { + return InfraServicesAPICreateOrUpdateDfpServiceRequest{ + ApiService: a, + ctx: ctx, + payloadServiceId: payloadServiceId, } } // Execute executes the request // // @return DfpCreateOrUpdateResponse -func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpRequest) (*DfpCreateOrUpdateResponse, *http.Response, error) { +func (a *InfraServicesAPIService) CreateOrUpdateDfpServiceExecute(r InfraServicesAPICreateOrUpdateDfpServiceRequest) (*DfpCreateOrUpdateResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -127,13 +117,13 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques localVarReturnValue *DfpCreateOrUpdateResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DfpAPIService.CreateOrUpdateDfp") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "InfraServicesAPIService.CreateOrUpdateDfpService") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } - localVarPath := localBasePath + "/dfps/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(internal.ParameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/dfp_services/{payload.service_id}" + localVarPath = strings.Replace(localVarPath, "{"+"payload.service_id"+"}", url.PathEscape(internal.ParameterValueToString(r.payloadServiceId, "payloadServiceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -181,7 +171,7 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques if localVarHTTPResponse.StatusCode >= 300 { newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) if localVarHTTPResponse.StatusCode == 400 { - var v DfpCreateOrUpdateDfp400Response + var v InfraServicesCreateOrUpdateDfpService400Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -191,7 +181,7 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { - var v DfpReadDfp404Response + var v InfraServicesCreateOrUpdateDfpService404Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -201,7 +191,7 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 500 { - var v DfpListDfp500Response + var v InfraServicesListDfpServices500Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -220,9 +210,9 @@ func (a *DfpAPIService) CreateOrUpdateDfpExecute(r DfpAPICreateOrUpdateDfpReques return localVarReturnValue, localVarHTTPResponse, nil } -type DfpAPIListDfpRequest struct { +type InfraServicesAPIListDfpServicesRequest struct { ctx context.Context - ApiService DfpAPI + ApiService InfraServicesAPI filter *string fields *string offset *int32 @@ -230,52 +220,50 @@ type DfpAPIListDfpRequest struct { pageToken *string } -// A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. You can filter by following fields: | Name | type | Supported Op | | ----------------------- | ------ | --------------------------- | | name | string | !=, ==, ~, !~, >, <, <=, >= | | site_id | string | !=, ==, ~, !~, >, <, <=, >= | | ophid | string | !=, ==, ~, !~, >, <, <=, >= | | policy_id | int32 | !=, ==, >, <, <=, >= | | default_security_policy | bool | !=, == | In addition groupping operators are supported: | Op | Description | | --- | -------------------- | | and | Logical AND | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | Example: ``` ?_filter=\"((name=='dfp1')or(ophid~'oph'))and(default_security_policy!='true')\" ``` -func (r DfpAPIListDfpRequest) Filter(filter string) DfpAPIListDfpRequest { +// A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. You can filter by following fields: | Name | type | Supported Op | | ----------------------- | -------- | --------------------------- | | service_name | string | !=, ==, ~, !~, >, <, <=, >= | | internal_domain_lists | [int32] | !=, ==, ~, !~, >, <, <=, >= | | policy_id | int32 | !=, ==, >, <, <=, >= | | default_security_policy | bool | !=, == | In addition groupping operators are supported: | Op | Description | | --- | -------------------- | | and | Logical AND | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | Example: ``` ?_filter=\"((service_name=='dfp1')or(policy_id~'oph'))and(default_security_policy!='true')\" ``` +func (r InfraServicesAPIListDfpServicesRequest) Filter(filter string) InfraServicesAPIListDfpServicesRequest { r.filter = &filter return r } // A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. -func (r DfpAPIListDfpRequest) Fields(fields string) DfpAPIListDfpRequest { +func (r InfraServicesAPIListDfpServicesRequest) Fields(fields string) InfraServicesAPIListDfpServicesRequest { r.fields = &fields return r } // The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. -func (r DfpAPIListDfpRequest) Offset(offset int32) DfpAPIListDfpRequest { +func (r InfraServicesAPIListDfpServicesRequest) Offset(offset int32) InfraServicesAPIListDfpServicesRequest { r.offset = &offset return r } // The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. -func (r DfpAPIListDfpRequest) Limit(limit int32) DfpAPIListDfpRequest { +func (r InfraServicesAPIListDfpServicesRequest) Limit(limit int32) InfraServicesAPIListDfpServicesRequest { r.limit = &limit return r } // The service-defined string used to identify a page of resources. A null value indicates the first page. -func (r DfpAPIListDfpRequest) PageToken(pageToken string) DfpAPIListDfpRequest { +func (r InfraServicesAPIListDfpServicesRequest) PageToken(pageToken string) InfraServicesAPIListDfpServicesRequest { r.pageToken = &pageToken return r } -func (r DfpAPIListDfpRequest) Execute() (*DfpListResponse, *http.Response, error) { - return r.ApiService.ListDfpExecute(r) +func (r InfraServicesAPIListDfpServicesRequest) Execute() (*DfpListResponse, *http.Response, error) { + return r.ApiService.ListDfpServicesExecute(r) } /* -ListDfp List DNS Forwarding Proxies. +ListDfpServices List DNS Forwarding Proxy services. -Use this method to retrieve information on all DNS Forwarding Proxy objects for the account. - -For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. +Use this method to retrieve information on all DNS Forwarding Proxy services. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return DfpAPIListDfpRequest + @return InfraServicesAPIListDfpServicesRequest */ -func (a *DfpAPIService) ListDfp(ctx context.Context) DfpAPIListDfpRequest { - return DfpAPIListDfpRequest{ +func (a *InfraServicesAPIService) ListDfpServices(ctx context.Context) InfraServicesAPIListDfpServicesRequest { + return InfraServicesAPIListDfpServicesRequest{ ApiService: a, ctx: ctx, } @@ -284,7 +272,7 @@ func (a *DfpAPIService) ListDfp(ctx context.Context) DfpAPIListDfpRequest { // Execute executes the request // // @return DfpListResponse -func (a *DfpAPIService) ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse, *http.Response, error) { +func (a *InfraServicesAPIService) ListDfpServicesExecute(r InfraServicesAPIListDfpServicesRequest) (*DfpListResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -292,7 +280,7 @@ func (a *DfpAPIService) ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse localVarReturnValue *DfpListResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DfpAPIService.ListDfp") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "InfraServicesAPIService.ListDfpServices") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } @@ -355,7 +343,7 @@ func (a *DfpAPIService) ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse if localVarHTTPResponse.StatusCode >= 300 { newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) if localVarHTTPResponse.StatusCode == 500 { - var v DfpListDfp500Response + var v InfraServicesListDfpServices500Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -374,62 +362,58 @@ func (a *DfpAPIService) ListDfpExecute(r DfpAPIListDfpRequest) (*DfpListResponse return localVarReturnValue, localVarHTTPResponse, nil } -type DfpAPIReadDfpRequest struct { +type InfraServicesAPIReadDfpServiceRequest struct { ctx context.Context - ApiService DfpAPI - id int32 + ApiService InfraServicesAPI + serviceId string + id *int32 fields *string name *string - serviceId *string +} + +// The DNS Forwarding Proxy object identifier. +func (r InfraServicesAPIReadDfpServiceRequest) Id(id int32) InfraServicesAPIReadDfpServiceRequest { + r.id = &id + return r } // A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. -func (r DfpAPIReadDfpRequest) Fields(fields string) DfpAPIReadDfpRequest { +func (r InfraServicesAPIReadDfpServiceRequest) Fields(fields string) InfraServicesAPIReadDfpServiceRequest { r.fields = &fields return r } // The name of the DNS Forwarding Proxy. Used only if the 'id' field is empty. -func (r DfpAPIReadDfpRequest) Name(name string) DfpAPIReadDfpRequest { +func (r InfraServicesAPIReadDfpServiceRequest) Name(name string) InfraServicesAPIReadDfpServiceRequest { r.name = &name return r } -// The On-Prem Application Service identifier. For internal Use only. -func (r DfpAPIReadDfpRequest) ServiceId(serviceId string) DfpAPIReadDfpRequest { - r.serviceId = &serviceId - return r -} - -func (r DfpAPIReadDfpRequest) Execute() (*DfpReadResponse, *http.Response, error) { - return r.ApiService.ReadDfpExecute(r) +func (r InfraServicesAPIReadDfpServiceRequest) Execute() (*DfpReadResponse, *http.Response, error) { + return r.ApiService.ReadDfpServiceExecute(r) } /* -ReadDfp Read DNS Forwarding Proxy. +ReadDfpService Read DNS Forwarding Proxy services. -Use this method to retrieve information on the specified DNS Forwarding Proxy object. - -For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. - -Note that DNS Forwarding Proxy cannot be created (all information regarding DFP is synchronized from hostapp service). +Use this method to retrieve information on the specified DNS Forwarding Proxy service. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The DNS Forwarding Proxy object identifier. - @return DfpAPIReadDfpRequest + @param serviceId The On-Prem Application Service identifier. For internal Use only + @return InfraServicesAPIReadDfpServiceRequest */ -func (a *DfpAPIService) ReadDfp(ctx context.Context, id int32) DfpAPIReadDfpRequest { - return DfpAPIReadDfpRequest{ +func (a *InfraServicesAPIService) ReadDfpService(ctx context.Context, serviceId string) InfraServicesAPIReadDfpServiceRequest { + return InfraServicesAPIReadDfpServiceRequest{ ApiService: a, ctx: ctx, - id: id, + serviceId: serviceId, } } // Execute executes the request // // @return DfpReadResponse -func (a *DfpAPIService) ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse, *http.Response, error) { +func (a *InfraServicesAPIService) ReadDfpServiceExecute(r InfraServicesAPIReadDfpServiceRequest) (*DfpReadResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -437,27 +421,27 @@ func (a *DfpAPIService) ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse localVarReturnValue *DfpReadResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DfpAPIService.ReadDfp") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "InfraServicesAPIService.ReadDfpService") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } - localVarPath := localBasePath + "/dfps/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(internal.ParameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/dfp_services/{service_id}" + localVarPath = strings.Replace(localVarPath, "{"+"service_id"+"}", url.PathEscape(internal.ParameterValueToString(r.serviceId, "serviceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.id != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + } if r.fields != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") } if r.name != nil { internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") } - if r.serviceId != nil { - internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "service_id", r.serviceId, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -495,7 +479,7 @@ func (a *DfpAPIService) ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse if localVarHTTPResponse.StatusCode >= 300 { newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) if localVarHTTPResponse.StatusCode == 404 { - var v DfpReadDfp404Response + var v InfraServicesCreateOrUpdateDfpService404Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) @@ -505,7 +489,7 @@ func (a *DfpAPIService) ReadDfpExecute(r DfpAPIReadDfpRequest) (*DfpReadResponse return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 500 { - var v DfpListDfp500Response + var v InfraServicesListDfpServices500Response err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr = internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) diff --git a/dfp/client.go b/dfp/client.go index b6ea815..aaff02a 100644 --- a/dfp/client.go +++ b/dfp/client.go @@ -23,8 +23,8 @@ type APIClient struct { *internal.APIClient // API Services - AccountsAPI AccountsAPI - DfpAPI DfpAPI + AccountsAPI AccountsAPI + InfraServicesAPI InfraServicesAPI } // NewAPIClient creates a new API client. @@ -46,7 +46,7 @@ func NewAPIClient(options ...option.ClientOption) *APIClient { // API Services c.AccountsAPI = (*AccountsAPIService)(&c.Common) - c.DfpAPI = (*DfpAPIService)(&c.Common) + c.InfraServicesAPI = (*InfraServicesAPIService)(&c.Common) return c } diff --git a/dfp/docs/Dfp.md b/dfp/docs/Dfp.md index f228a24..85c0043 100644 --- a/dfp/docs/Dfp.md +++ b/dfp/docs/Dfp.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedTime** | Pointer to **time.Time** | The time when this DNS Forwarding Proxy object was created. | [optional] [readonly] -**DefaultResolvers** | Pointer to **[]string** | The list of default DNS resolvers that will be used in case if the BloxOne Cloud is unreachable. Deprecated DO NOT USE. Use resolvers_all. | [optional] [readonly] **ElbIpList** | Pointer to **[]string** | The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as ELB IPs. | [optional] [readonly] **ForwardingPolicy** | Pointer to **string** | | [optional] **Host** | Pointer to [**[]DfpHost**](DfpHost.md) | host information. For internal Use only. | [optional] @@ -16,7 +15,6 @@ Name | Type | Description | Notes **Ophid** | Pointer to **string** | The On-Prem Host identifier. | [optional] [readonly] **PolicyId** | Pointer to **int32** | The identifier of the security policy with which the DNS Forwarding Proxy is associated. | [optional] [readonly] **PopRegionId** | Pointer to **int32** | Point of Presence (PoP) region | [optional] [readonly] -**Resolvers** | Pointer to **[]string** | The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as DNS resolvers. Deprecated DO NOT USE. Use resolvers_all. | [optional] [readonly] **ResolversAll** | Pointer to [**[]Resolver**](Resolver.md) | | [optional] **ServiceId** | Pointer to **string** | The On-Prem Application Service identifier. For internal Use only | [optional] [readonly] **ServiceName** | Pointer to **string** | The On-Prem Application Service name. For internal Use only | [optional] [readonly] @@ -67,31 +65,6 @@ SetCreatedTime sets CreatedTime field to given value. HasCreatedTime returns a boolean if a field has been set. -### GetDefaultResolvers - -`func (o *Dfp) GetDefaultResolvers() []string` - -GetDefaultResolvers returns the DefaultResolvers field if non-nil, zero value otherwise. - -### GetDefaultResolversOk - -`func (o *Dfp) GetDefaultResolversOk() (*[]string, bool)` - -GetDefaultResolversOk returns a tuple with the DefaultResolvers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultResolvers - -`func (o *Dfp) SetDefaultResolvers(v []string)` - -SetDefaultResolvers sets DefaultResolvers field to given value. - -### HasDefaultResolvers - -`func (o *Dfp) HasDefaultResolvers() bool` - -HasDefaultResolvers returns a boolean if a field has been set. - ### GetElbIpList `func (o *Dfp) GetElbIpList() []string` @@ -342,31 +315,6 @@ SetPopRegionId sets PopRegionId field to given value. HasPopRegionId returns a boolean if a field has been set. -### GetResolvers - -`func (o *Dfp) GetResolvers() []string` - -GetResolvers returns the Resolvers field if non-nil, zero value otherwise. - -### GetResolversOk - -`func (o *Dfp) GetResolversOk() (*[]string, bool)` - -GetResolversOk returns a tuple with the Resolvers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResolvers - -`func (o *Dfp) SetResolvers(v []string)` - -SetResolvers sets Resolvers field to given value. - -### HasResolvers - -`func (o *Dfp) HasResolvers() bool` - -HasResolvers returns a boolean if a field has been set. - ### GetResolversAll `func (o *Dfp) GetResolversAll() []Resolver` diff --git a/dfp/docs/DfpCreateOrUpdateDfp400Response.md b/dfp/docs/DfpCreateOrUpdateDfp400Response.md deleted file mode 100644 index a1fbe7e..0000000 --- a/dfp/docs/DfpCreateOrUpdateDfp400Response.md +++ /dev/null @@ -1,56 +0,0 @@ -# DfpCreateOrUpdateDfp400Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Error** | Pointer to [**DfpCreateOrUpdateDfp400ResponseError**](DfpCreateOrUpdateDfp400ResponseError.md) | | [optional] - -## Methods - -### NewDfpCreateOrUpdateDfp400Response - -`func NewDfpCreateOrUpdateDfp400Response() *DfpCreateOrUpdateDfp400Response` - -NewDfpCreateOrUpdateDfp400Response instantiates a new DfpCreateOrUpdateDfp400Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDfpCreateOrUpdateDfp400ResponseWithDefaults - -`func NewDfpCreateOrUpdateDfp400ResponseWithDefaults() *DfpCreateOrUpdateDfp400Response` - -NewDfpCreateOrUpdateDfp400ResponseWithDefaults instantiates a new DfpCreateOrUpdateDfp400Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetError - -`func (o *DfpCreateOrUpdateDfp400Response) GetError() DfpCreateOrUpdateDfp400ResponseError` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *DfpCreateOrUpdateDfp400Response) GetErrorOk() (*DfpCreateOrUpdateDfp400ResponseError, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *DfpCreateOrUpdateDfp400Response) SetError(v DfpCreateOrUpdateDfp400ResponseError)` - -SetError sets Error field to given value. - -### HasError - -`func (o *DfpCreateOrUpdateDfp400Response) HasError() bool` - -HasError 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/dfp/docs/DfpCreateOrUpdatePayload.md b/dfp/docs/DfpCreateOrUpdatePayload.md index 63a3a03..362a04f 100644 --- a/dfp/docs/DfpCreateOrUpdatePayload.md +++ b/dfp/docs/DfpCreateOrUpdatePayload.md @@ -4,14 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DefaultResolvers** | Pointer to **[]string** | The list of default DNS resolvers that will be used in case if the BloxOne Cloud is unreachable. Deprecated DO NOT USE. Use resolvers_all. | [optional] **ForwardingPolicy** | Pointer to **string** | The type of DNS resolver as Forwarding Policy. It can hold values as ib_cloud_first, external_first or external_only The default value is ib_cloud_first. If empty string is sent then ib_cloud_first will be considered. | [optional] **Host** | Pointer to [**[]DfpHost**](DfpHost.md) | host information. For internal Use only. | [optional] **Id** | Pointer to **int32** | The DNS Forwarding Proxy object identifier. | [optional] [readonly] **InternalDomainLists** | Pointer to **[]int32** | The list of internal domain list ids associated with this DFP (or resolvers) | [optional] **Name** | Pointer to **string** | The name of the DNS Forwarding Proxy. | [optional] **PopRegionId** | Pointer to **int32** | Point of Presence (PoP) region | [optional] -**Resolvers** | Pointer to **[]string** | The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as DNS resolvers. Deprecated DO NOT USE. Use resolvers_all. | [optional] **ResolversAll** | Pointer to [**[]Resolver**](Resolver.md) | The DNS forwarding proxy additional resolvers used for fallback and local resolution. This field replaces resolvers and default_resolvers fields which are deprecated. Either deprecated fields or new field can be used, both can not be used at same time. | [optional] **ServiceId** | Pointer to **string** | The DNS Forwarding Proxy Service ID object identifier. | [optional] **ServiceName** | Pointer to **string** | The name of the DNS Forwarding Proxy Service. | [optional] @@ -36,31 +34,6 @@ NewDfpCreateOrUpdatePayloadWithDefaults instantiates a new DfpCreateOrUpdatePayl This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetDefaultResolvers - -`func (o *DfpCreateOrUpdatePayload) GetDefaultResolvers() []string` - -GetDefaultResolvers returns the DefaultResolvers field if non-nil, zero value otherwise. - -### GetDefaultResolversOk - -`func (o *DfpCreateOrUpdatePayload) GetDefaultResolversOk() (*[]string, bool)` - -GetDefaultResolversOk returns a tuple with the DefaultResolvers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultResolvers - -`func (o *DfpCreateOrUpdatePayload) SetDefaultResolvers(v []string)` - -SetDefaultResolvers sets DefaultResolvers field to given value. - -### HasDefaultResolvers - -`func (o *DfpCreateOrUpdatePayload) HasDefaultResolvers() bool` - -HasDefaultResolvers returns a boolean if a field has been set. - ### GetForwardingPolicy `func (o *DfpCreateOrUpdatePayload) GetForwardingPolicy() string` @@ -211,31 +184,6 @@ SetPopRegionId sets PopRegionId field to given value. HasPopRegionId returns a boolean if a field has been set. -### GetResolvers - -`func (o *DfpCreateOrUpdatePayload) GetResolvers() []string` - -GetResolvers returns the Resolvers field if non-nil, zero value otherwise. - -### GetResolversOk - -`func (o *DfpCreateOrUpdatePayload) GetResolversOk() (*[]string, bool)` - -GetResolversOk returns a tuple with the Resolvers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResolvers - -`func (o *DfpCreateOrUpdatePayload) SetResolvers(v []string)` - -SetResolvers sets Resolvers field to given value. - -### HasResolvers - -`func (o *DfpCreateOrUpdatePayload) HasResolvers() bool` - -HasResolvers returns a boolean if a field has been set. - ### GetResolversAll `func (o *DfpCreateOrUpdatePayload) GetResolversAll() []Resolver` diff --git a/dfp/docs/DfpListDfp500Response.md b/dfp/docs/DfpListDfp500Response.md deleted file mode 100644 index 7f8a5ef..0000000 --- a/dfp/docs/DfpListDfp500Response.md +++ /dev/null @@ -1,56 +0,0 @@ -# DfpListDfp500Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Error** | Pointer to [**DfpListDfp500ResponseError**](DfpListDfp500ResponseError.md) | | [optional] - -## Methods - -### NewDfpListDfp500Response - -`func NewDfpListDfp500Response() *DfpListDfp500Response` - -NewDfpListDfp500Response instantiates a new DfpListDfp500Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDfpListDfp500ResponseWithDefaults - -`func NewDfpListDfp500ResponseWithDefaults() *DfpListDfp500Response` - -NewDfpListDfp500ResponseWithDefaults instantiates a new DfpListDfp500Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetError - -`func (o *DfpListDfp500Response) GetError() DfpListDfp500ResponseError` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *DfpListDfp500Response) GetErrorOk() (*DfpListDfp500ResponseError, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *DfpListDfp500Response) SetError(v DfpListDfp500ResponseError)` - -SetError sets Error field to given value. - -### HasError - -`func (o *DfpListDfp500Response) HasError() bool` - -HasError 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/dfp/docs/DfpReadDfp404Response.md b/dfp/docs/DfpReadDfp404Response.md deleted file mode 100644 index 5fcaf8a..0000000 --- a/dfp/docs/DfpReadDfp404Response.md +++ /dev/null @@ -1,56 +0,0 @@ -# DfpReadDfp404Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Error** | Pointer to [**DfpReadDfp404ResponseError**](DfpReadDfp404ResponseError.md) | | [optional] - -## Methods - -### NewDfpReadDfp404Response - -`func NewDfpReadDfp404Response() *DfpReadDfp404Response` - -NewDfpReadDfp404Response instantiates a new DfpReadDfp404Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDfpReadDfp404ResponseWithDefaults - -`func NewDfpReadDfp404ResponseWithDefaults() *DfpReadDfp404Response` - -NewDfpReadDfp404ResponseWithDefaults instantiates a new DfpReadDfp404Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetError - -`func (o *DfpReadDfp404Response) GetError() DfpReadDfp404ResponseError` - -GetError returns the Error field if non-nil, zero value otherwise. - -### GetErrorOk - -`func (o *DfpReadDfp404Response) GetErrorOk() (*DfpReadDfp404ResponseError, bool)` - -GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetError - -`func (o *DfpReadDfp404Response) SetError(v DfpReadDfp404ResponseError)` - -SetError sets Error field to given value. - -### HasError - -`func (o *DfpReadDfp404Response) HasError() bool` - -HasError 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/dfp/docs/DfpAPI.md b/dfp/docs/InfraServicesAPI.md similarity index 62% rename from dfp/docs/DfpAPI.md rename to dfp/docs/InfraServicesAPI.md index 9ca2b49..0e9e4a6 100644 --- a/dfp/docs/DfpAPI.md +++ b/dfp/docs/InfraServicesAPI.md @@ -1,20 +1,20 @@ -# DfpAPI +# InfraServicesAPI All URIs are relative to *https://csp.infoblox.com/api/atcdfp/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateOrUpdateDfp**](DfpAPI.md#CreateOrUpdateDfp) | **Put** /dfps/{id} | Update DNS Forwarding Proxy resolvers. -[**ListDfp**](DfpAPI.md#ListDfp) | **Get** /dfp_services | List DNS Forwarding Proxies. -[**ReadDfp**](DfpAPI.md#ReadDfp) | **Get** /dfps/{id} | Read DNS Forwarding Proxy. +[**CreateOrUpdateDfpService**](InfraServicesAPI.md#CreateOrUpdateDfpService) | **Put** /dfp_services/{payload.service_id} | Update DNS Forwarding Proxy services. +[**ListDfpServices**](InfraServicesAPI.md#ListDfpServices) | **Get** /dfp_services | List DNS Forwarding Proxy services. +[**ReadDfpService**](InfraServicesAPI.md#ReadDfpService) | **Get** /dfp_services/{service_id} | Read DNS Forwarding Proxy services. -## CreateOrUpdateDfp +## CreateOrUpdateDfpService -> DfpCreateOrUpdateResponse CreateOrUpdateDfp(ctx, id).Body(body).Execute() +> DfpCreateOrUpdateResponse CreateOrUpdateDfpService(ctx, payloadServiceId).Body(body).Execute() -Update DNS Forwarding Proxy resolvers. +Update DNS Forwarding Proxy services. @@ -32,17 +32,17 @@ import ( ) func main() { - id := int32(56) // int32 | The DNS Forwarding Proxy object identifier. + payloadServiceId := "payloadServiceId_example" // string | The DNS Forwarding Proxy Service ID object identifier. body := *dfp.NewDfpCreateOrUpdatePayload() // DfpCreateOrUpdatePayload | The DNS Forwarding Proxy object. apiClient := dfp.NewAPIClient() - resp, r, err := apiClient.DfpAPI.CreateOrUpdateDfp(context.Background(), id).Body(body).Execute() + resp, r, err := apiClient.InfraServicesAPI.CreateOrUpdateDfpService(context.Background(), payloadServiceId).Body(body).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DfpAPI.CreateOrUpdateDfp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `InfraServicesAPI.CreateOrUpdateDfpService``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateOrUpdateDfp`: DfpCreateOrUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `DfpAPI.CreateOrUpdateDfp`: %v\n", resp) + // response from `CreateOrUpdateDfpService`: DfpCreateOrUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `InfraServicesAPI.CreateOrUpdateDfpService`: %v\n", resp) } ``` @@ -52,11 +52,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | The DNS Forwarding Proxy object identifier. | +**payloadServiceId** | **string** | The DNS Forwarding Proxy Service ID object identifier. | ### Other Parameters -Other parameters are passed through a pointer to a apiCreateOrUpdateDfpRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCreateOrUpdateDfpServiceRequest struct via the builder pattern Name | Type | Description | Notes @@ -82,11 +82,11 @@ No authorization required [[Back to README]](../README.md) -## ListDfp +## ListDfpServices -> DfpListResponse ListDfp(ctx).Filter(filter).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).Execute() +> DfpListResponse ListDfpServices(ctx).Filter(filter).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).Execute() -List DNS Forwarding Proxies. +List DNS Forwarding Proxy services. @@ -104,20 +104,20 @@ import ( ) func main() { - filter := "filter_example" // string | A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. You can filter by following fields: | Name | type | Supported Op | | ----------------------- | ------ | --------------------------- | | name | string | !=, ==, ~, !~, >, <, <=, >= | | site_id | string | !=, ==, ~, !~, >, <, <=, >= | | ophid | string | !=, ==, ~, !~, >, <, <=, >= | | policy_id | int32 | !=, ==, >, <, <=, >= | | default_security_policy | bool | !=, == | In addition groupping operators are supported: | Op | Description | | --- | -------------------- | | and | Logical AND | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | Example: ``` ?_filter=\"((name=='dfp1')or(ophid~'oph'))and(default_security_policy!='true')\" ``` (optional) + filter := "filter_example" // string | A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. You can filter by following fields: | Name | type | Supported Op | | ----------------------- | -------- | --------------------------- | | service_name | string | !=, ==, ~, !~, >, <, <=, >= | | internal_domain_lists | [int32] | !=, ==, ~, !~, >, <, <=, >= | | policy_id | int32 | !=, ==, >, <, <=, >= | | default_security_policy | bool | !=, == | In addition groupping operators are supported: | Op | Description | | --- | -------------------- | | and | Logical AND | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | Example: ``` ?_filter=\"((service_name=='dfp1')or(policy_id~'oph'))and(default_security_policy!='true')\" ``` (optional) fields := "fields_example" // string | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. (optional) offset := int32(56) // int32 | The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. (optional) limit := int32(56) // int32 | The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. (optional) pageToken := "pageToken_example" // string | The service-defined string used to identify a page of resources. A null value indicates the first page. (optional) apiClient := dfp.NewAPIClient() - resp, r, err := apiClient.DfpAPI.ListDfp(context.Background()).Filter(filter).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).Execute() + resp, r, err := apiClient.InfraServicesAPI.ListDfpServices(context.Background()).Filter(filter).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DfpAPI.ListDfp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `InfraServicesAPI.ListDfpServices``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ListDfp`: DfpListResponse - fmt.Fprintf(os.Stdout, "Response from `DfpAPI.ListDfp`: %v\n", resp) + // response from `ListDfpServices`: DfpListResponse + fmt.Fprintf(os.Stdout, "Response from `InfraServicesAPI.ListDfpServices`: %v\n", resp) } ``` @@ -127,12 +127,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiListDfpRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiListDfpServicesRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filter** | **string** | A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. You can filter by following fields: | Name | type | Supported Op | | ----------------------- | ------ | --------------------------- | | name | string | !=, ==, ~, !~, >, <, <=, >= | | site_id | string | !=, ==, ~, !~, >, <, <=, >= | | ophid | string | !=, ==, ~, !~, >, <, <=, >= | | policy_id | int32 | !=, ==, >, <, <=, >= | | default_security_policy | bool | !=, == | In addition groupping operators are supported: | Op | Description | | --- | -------------------- | | and | Logical AND | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | Example: ``` ?_filter=\"((name=='dfp1')or(ophid~'oph'))and(default_security_policy!='true')\" ``` | + **filter** | **string** | A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. You can filter by following fields: | Name | type | Supported Op | | ----------------------- | -------- | --------------------------- | | service_name | string | !=, ==, ~, !~, >, <, <=, >= | | internal_domain_lists | [int32] | !=, ==, ~, !~, >, <, <=, >= | | policy_id | int32 | !=, ==, >, <, <=, >= | | default_security_policy | bool | !=, == | In addition groupping operators are supported: | Op | Description | | --- | -------------------- | | and | Logical AND | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | Example: ``` ?_filter=\"((service_name=='dfp1')or(policy_id~'oph'))and(default_security_policy!='true')\" ``` | **fields** | **string** | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. | **offset** | **int32** | The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. | **limit** | **int32** | The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. | @@ -156,11 +156,11 @@ No authorization required [[Back to README]](../README.md) -## ReadDfp +## ReadDfpService -> DfpReadResponse ReadDfp(ctx, id).Fields(fields).Name(name).ServiceId(serviceId).Execute() +> DfpReadResponse ReadDfpService(ctx, serviceId).Id(id).Fields(fields).Name(name).Execute() -Read DNS Forwarding Proxy. +Read DNS Forwarding Proxy services. @@ -178,19 +178,19 @@ import ( ) func main() { - id := int32(56) // int32 | The DNS Forwarding Proxy object identifier. + serviceId := "serviceId_example" // string | The On-Prem Application Service identifier. For internal Use only + id := int32(56) // int32 | The DNS Forwarding Proxy object identifier. (optional) fields := "fields_example" // string | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. (optional) name := "name_example" // string | The name of the DNS Forwarding Proxy. Used only if the 'id' field is empty. (optional) - serviceId := "serviceId_example" // string | The On-Prem Application Service identifier. For internal Use only. (optional) apiClient := dfp.NewAPIClient() - resp, r, err := apiClient.DfpAPI.ReadDfp(context.Background(), id).Fields(fields).Name(name).ServiceId(serviceId).Execute() + resp, r, err := apiClient.InfraServicesAPI.ReadDfpService(context.Background(), serviceId).Id(id).Fields(fields).Name(name).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DfpAPI.ReadDfp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `InfraServicesAPI.ReadDfpService``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ReadDfp`: DfpReadResponse - fmt.Fprintf(os.Stdout, "Response from `DfpAPI.ReadDfp`: %v\n", resp) + // response from `ReadDfpService`: DfpReadResponse + fmt.Fprintf(os.Stdout, "Response from `InfraServicesAPI.ReadDfpService`: %v\n", resp) } ``` @@ -200,19 +200,19 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | The DNS Forwarding Proxy object identifier. | +**serviceId** | **string** | The On-Prem Application Service identifier. For internal Use only | ### Other Parameters -Other parameters are passed through a pointer to a apiReadDfpRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiReadDfpServiceRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **id** | **int32** | The DNS Forwarding Proxy object identifier. | **fields** | **string** | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. | **name** | **string** | The name of the DNS Forwarding Proxy. Used only if the 'id' field is empty. | - **serviceId** | **string** | The On-Prem Application Service identifier. For internal Use only. | ### Return type diff --git a/dfp/docs/InfraServicesCreateOrUpdateDfpService400Response.md b/dfp/docs/InfraServicesCreateOrUpdateDfpService400Response.md new file mode 100644 index 0000000..09a1037 --- /dev/null +++ b/dfp/docs/InfraServicesCreateOrUpdateDfpService400Response.md @@ -0,0 +1,56 @@ +# InfraServicesCreateOrUpdateDfpService400Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to [**InfraServicesCreateOrUpdateDfpService400ResponseError**](InfraServicesCreateOrUpdateDfpService400ResponseError.md) | | [optional] + +## Methods + +### NewInfraServicesCreateOrUpdateDfpService400Response + +`func NewInfraServicesCreateOrUpdateDfpService400Response() *InfraServicesCreateOrUpdateDfpService400Response` + +NewInfraServicesCreateOrUpdateDfpService400Response instantiates a new InfraServicesCreateOrUpdateDfpService400Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInfraServicesCreateOrUpdateDfpService400ResponseWithDefaults + +`func NewInfraServicesCreateOrUpdateDfpService400ResponseWithDefaults() *InfraServicesCreateOrUpdateDfpService400Response` + +NewInfraServicesCreateOrUpdateDfpService400ResponseWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService400Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *InfraServicesCreateOrUpdateDfpService400Response) GetError() InfraServicesCreateOrUpdateDfpService400ResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *InfraServicesCreateOrUpdateDfpService400Response) GetErrorOk() (*InfraServicesCreateOrUpdateDfpService400ResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *InfraServicesCreateOrUpdateDfpService400Response) SetError(v InfraServicesCreateOrUpdateDfpService400ResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *InfraServicesCreateOrUpdateDfpService400Response) HasError() bool` + +HasError 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/dfp/docs/DfpListDfp500ResponseError.md b/dfp/docs/InfraServicesCreateOrUpdateDfpService400ResponseError.md similarity index 52% rename from dfp/docs/DfpListDfp500ResponseError.md rename to dfp/docs/InfraServicesCreateOrUpdateDfpService400ResponseError.md index a4c237d..dbb843f 100644 --- a/dfp/docs/DfpListDfp500ResponseError.md +++ b/dfp/docs/InfraServicesCreateOrUpdateDfpService400ResponseError.md @@ -1,4 +1,4 @@ -# DfpListDfp500ResponseError +# InfraServicesCreateOrUpdateDfpService400ResponseError ## Properties @@ -10,95 +10,95 @@ Name | Type | Description | Notes ## Methods -### NewDfpListDfp500ResponseError +### NewInfraServicesCreateOrUpdateDfpService400ResponseError -`func NewDfpListDfp500ResponseError() *DfpListDfp500ResponseError` +`func NewInfraServicesCreateOrUpdateDfpService400ResponseError() *InfraServicesCreateOrUpdateDfpService400ResponseError` -NewDfpListDfp500ResponseError instantiates a new DfpListDfp500ResponseError object +NewInfraServicesCreateOrUpdateDfpService400ResponseError instantiates a new InfraServicesCreateOrUpdateDfpService400ResponseError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewDfpListDfp500ResponseErrorWithDefaults +### NewInfraServicesCreateOrUpdateDfpService400ResponseErrorWithDefaults -`func NewDfpListDfp500ResponseErrorWithDefaults() *DfpListDfp500ResponseError` +`func NewInfraServicesCreateOrUpdateDfpService400ResponseErrorWithDefaults() *InfraServicesCreateOrUpdateDfpService400ResponseError` -NewDfpListDfp500ResponseErrorWithDefaults instantiates a new DfpListDfp500ResponseError object +NewInfraServicesCreateOrUpdateDfpService400ResponseErrorWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService400ResponseError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCode -`func (o *DfpListDfp500ResponseError) GetCode() string` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *DfpListDfp500ResponseError) GetCodeOk() (*string, bool)` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *DfpListDfp500ResponseError) SetCode(v string)` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) SetCode(v string)` SetCode sets Code field to given value. ### HasCode -`func (o *DfpListDfp500ResponseError) HasCode() bool` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) HasCode() bool` HasCode returns a boolean if a field has been set. ### GetMessage -`func (o *DfpListDfp500ResponseError) GetMessage() string` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetMessage() string` GetMessage returns the Message field if non-nil, zero value otherwise. ### GetMessageOk -`func (o *DfpListDfp500ResponseError) GetMessageOk() (*string, bool)` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *DfpListDfp500ResponseError) SetMessage(v string)` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) SetMessage(v string)` SetMessage sets Message field to given value. ### HasMessage -`func (o *DfpListDfp500ResponseError) HasMessage() bool` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) HasMessage() bool` HasMessage returns a boolean if a field has been set. ### GetStatus -`func (o *DfpListDfp500ResponseError) GetStatus() string` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetStatus() string` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DfpListDfp500ResponseError) GetStatusOk() (*string, bool)` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) 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 *DfpListDfp500ResponseError) SetStatus(v string)` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) SetStatus(v string)` SetStatus sets Status field to given value. ### HasStatus -`func (o *DfpListDfp500ResponseError) HasStatus() bool` +`func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) HasStatus() bool` HasStatus returns a boolean if a field has been set. diff --git a/dfp/docs/InfraServicesCreateOrUpdateDfpService404Response.md b/dfp/docs/InfraServicesCreateOrUpdateDfpService404Response.md new file mode 100644 index 0000000..460b7e8 --- /dev/null +++ b/dfp/docs/InfraServicesCreateOrUpdateDfpService404Response.md @@ -0,0 +1,56 @@ +# InfraServicesCreateOrUpdateDfpService404Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to [**InfraServicesCreateOrUpdateDfpService404ResponseError**](InfraServicesCreateOrUpdateDfpService404ResponseError.md) | | [optional] + +## Methods + +### NewInfraServicesCreateOrUpdateDfpService404Response + +`func NewInfraServicesCreateOrUpdateDfpService404Response() *InfraServicesCreateOrUpdateDfpService404Response` + +NewInfraServicesCreateOrUpdateDfpService404Response instantiates a new InfraServicesCreateOrUpdateDfpService404Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInfraServicesCreateOrUpdateDfpService404ResponseWithDefaults + +`func NewInfraServicesCreateOrUpdateDfpService404ResponseWithDefaults() *InfraServicesCreateOrUpdateDfpService404Response` + +NewInfraServicesCreateOrUpdateDfpService404ResponseWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService404Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *InfraServicesCreateOrUpdateDfpService404Response) GetError() InfraServicesCreateOrUpdateDfpService404ResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *InfraServicesCreateOrUpdateDfpService404Response) GetErrorOk() (*InfraServicesCreateOrUpdateDfpService404ResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *InfraServicesCreateOrUpdateDfpService404Response) SetError(v InfraServicesCreateOrUpdateDfpService404ResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *InfraServicesCreateOrUpdateDfpService404Response) HasError() bool` + +HasError 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/dfp/docs/DfpCreateOrUpdateDfp400ResponseError.md b/dfp/docs/InfraServicesCreateOrUpdateDfpService404ResponseError.md similarity index 52% rename from dfp/docs/DfpCreateOrUpdateDfp400ResponseError.md rename to dfp/docs/InfraServicesCreateOrUpdateDfpService404ResponseError.md index c55a315..2859ce9 100644 --- a/dfp/docs/DfpCreateOrUpdateDfp400ResponseError.md +++ b/dfp/docs/InfraServicesCreateOrUpdateDfpService404ResponseError.md @@ -1,4 +1,4 @@ -# DfpCreateOrUpdateDfp400ResponseError +# InfraServicesCreateOrUpdateDfpService404ResponseError ## Properties @@ -10,95 +10,95 @@ Name | Type | Description | Notes ## Methods -### NewDfpCreateOrUpdateDfp400ResponseError +### NewInfraServicesCreateOrUpdateDfpService404ResponseError -`func NewDfpCreateOrUpdateDfp400ResponseError() *DfpCreateOrUpdateDfp400ResponseError` +`func NewInfraServicesCreateOrUpdateDfpService404ResponseError() *InfraServicesCreateOrUpdateDfpService404ResponseError` -NewDfpCreateOrUpdateDfp400ResponseError instantiates a new DfpCreateOrUpdateDfp400ResponseError object +NewInfraServicesCreateOrUpdateDfpService404ResponseError instantiates a new InfraServicesCreateOrUpdateDfpService404ResponseError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewDfpCreateOrUpdateDfp400ResponseErrorWithDefaults +### NewInfraServicesCreateOrUpdateDfpService404ResponseErrorWithDefaults -`func NewDfpCreateOrUpdateDfp400ResponseErrorWithDefaults() *DfpCreateOrUpdateDfp400ResponseError` +`func NewInfraServicesCreateOrUpdateDfpService404ResponseErrorWithDefaults() *InfraServicesCreateOrUpdateDfpService404ResponseError` -NewDfpCreateOrUpdateDfp400ResponseErrorWithDefaults instantiates a new DfpCreateOrUpdateDfp400ResponseError object +NewInfraServicesCreateOrUpdateDfpService404ResponseErrorWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService404ResponseError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCode -`func (o *DfpCreateOrUpdateDfp400ResponseError) GetCode() string` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *DfpCreateOrUpdateDfp400ResponseError) GetCodeOk() (*string, bool)` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *DfpCreateOrUpdateDfp400ResponseError) SetCode(v string)` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) SetCode(v string)` SetCode sets Code field to given value. ### HasCode -`func (o *DfpCreateOrUpdateDfp400ResponseError) HasCode() bool` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) HasCode() bool` HasCode returns a boolean if a field has been set. ### GetMessage -`func (o *DfpCreateOrUpdateDfp400ResponseError) GetMessage() string` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetMessage() string` GetMessage returns the Message field if non-nil, zero value otherwise. ### GetMessageOk -`func (o *DfpCreateOrUpdateDfp400ResponseError) GetMessageOk() (*string, bool)` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *DfpCreateOrUpdateDfp400ResponseError) SetMessage(v string)` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) SetMessage(v string)` SetMessage sets Message field to given value. ### HasMessage -`func (o *DfpCreateOrUpdateDfp400ResponseError) HasMessage() bool` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) HasMessage() bool` HasMessage returns a boolean if a field has been set. ### GetStatus -`func (o *DfpCreateOrUpdateDfp400ResponseError) GetStatus() string` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetStatus() string` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DfpCreateOrUpdateDfp400ResponseError) GetStatusOk() (*string, bool)` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) 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 *DfpCreateOrUpdateDfp400ResponseError) SetStatus(v string)` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) SetStatus(v string)` SetStatus sets Status field to given value. ### HasStatus -`func (o *DfpCreateOrUpdateDfp400ResponseError) HasStatus() bool` +`func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) HasStatus() bool` HasStatus returns a boolean if a field has been set. diff --git a/dfp/docs/InfraServicesListDfpServices500Response.md b/dfp/docs/InfraServicesListDfpServices500Response.md new file mode 100644 index 0000000..71409b6 --- /dev/null +++ b/dfp/docs/InfraServicesListDfpServices500Response.md @@ -0,0 +1,56 @@ +# InfraServicesListDfpServices500Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to [**InfraServicesListDfpServices500ResponseError**](InfraServicesListDfpServices500ResponseError.md) | | [optional] + +## Methods + +### NewInfraServicesListDfpServices500Response + +`func NewInfraServicesListDfpServices500Response() *InfraServicesListDfpServices500Response` + +NewInfraServicesListDfpServices500Response instantiates a new InfraServicesListDfpServices500Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInfraServicesListDfpServices500ResponseWithDefaults + +`func NewInfraServicesListDfpServices500ResponseWithDefaults() *InfraServicesListDfpServices500Response` + +NewInfraServicesListDfpServices500ResponseWithDefaults instantiates a new InfraServicesListDfpServices500Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *InfraServicesListDfpServices500Response) GetError() InfraServicesListDfpServices500ResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *InfraServicesListDfpServices500Response) GetErrorOk() (*InfraServicesListDfpServices500ResponseError, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *InfraServicesListDfpServices500Response) SetError(v InfraServicesListDfpServices500ResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *InfraServicesListDfpServices500Response) HasError() bool` + +HasError 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/dfp/docs/DfpReadDfp404ResponseError.md b/dfp/docs/InfraServicesListDfpServices500ResponseError.md similarity index 55% rename from dfp/docs/DfpReadDfp404ResponseError.md rename to dfp/docs/InfraServicesListDfpServices500ResponseError.md index 52280b7..085a35e 100644 --- a/dfp/docs/DfpReadDfp404ResponseError.md +++ b/dfp/docs/InfraServicesListDfpServices500ResponseError.md @@ -1,4 +1,4 @@ -# DfpReadDfp404ResponseError +# InfraServicesListDfpServices500ResponseError ## Properties @@ -10,95 +10,95 @@ Name | Type | Description | Notes ## Methods -### NewDfpReadDfp404ResponseError +### NewInfraServicesListDfpServices500ResponseError -`func NewDfpReadDfp404ResponseError() *DfpReadDfp404ResponseError` +`func NewInfraServicesListDfpServices500ResponseError() *InfraServicesListDfpServices500ResponseError` -NewDfpReadDfp404ResponseError instantiates a new DfpReadDfp404ResponseError object +NewInfraServicesListDfpServices500ResponseError instantiates a new InfraServicesListDfpServices500ResponseError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewDfpReadDfp404ResponseErrorWithDefaults +### NewInfraServicesListDfpServices500ResponseErrorWithDefaults -`func NewDfpReadDfp404ResponseErrorWithDefaults() *DfpReadDfp404ResponseError` +`func NewInfraServicesListDfpServices500ResponseErrorWithDefaults() *InfraServicesListDfpServices500ResponseError` -NewDfpReadDfp404ResponseErrorWithDefaults instantiates a new DfpReadDfp404ResponseError object +NewInfraServicesListDfpServices500ResponseErrorWithDefaults instantiates a new InfraServicesListDfpServices500ResponseError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCode -`func (o *DfpReadDfp404ResponseError) GetCode() string` +`func (o *InfraServicesListDfpServices500ResponseError) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *DfpReadDfp404ResponseError) GetCodeOk() (*string, bool)` +`func (o *InfraServicesListDfpServices500ResponseError) GetCodeOk() (*string, bool)` GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCode -`func (o *DfpReadDfp404ResponseError) SetCode(v string)` +`func (o *InfraServicesListDfpServices500ResponseError) SetCode(v string)` SetCode sets Code field to given value. ### HasCode -`func (o *DfpReadDfp404ResponseError) HasCode() bool` +`func (o *InfraServicesListDfpServices500ResponseError) HasCode() bool` HasCode returns a boolean if a field has been set. ### GetMessage -`func (o *DfpReadDfp404ResponseError) GetMessage() string` +`func (o *InfraServicesListDfpServices500ResponseError) GetMessage() string` GetMessage returns the Message field if non-nil, zero value otherwise. ### GetMessageOk -`func (o *DfpReadDfp404ResponseError) GetMessageOk() (*string, bool)` +`func (o *InfraServicesListDfpServices500ResponseError) 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 *DfpReadDfp404ResponseError) SetMessage(v string)` +`func (o *InfraServicesListDfpServices500ResponseError) SetMessage(v string)` SetMessage sets Message field to given value. ### HasMessage -`func (o *DfpReadDfp404ResponseError) HasMessage() bool` +`func (o *InfraServicesListDfpServices500ResponseError) HasMessage() bool` HasMessage returns a boolean if a field has been set. ### GetStatus -`func (o *DfpReadDfp404ResponseError) GetStatus() string` +`func (o *InfraServicesListDfpServices500ResponseError) GetStatus() string` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DfpReadDfp404ResponseError) GetStatusOk() (*string, bool)` +`func (o *InfraServicesListDfpServices500ResponseError) 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 *DfpReadDfp404ResponseError) SetStatus(v string)` +`func (o *InfraServicesListDfpServices500ResponseError) SetStatus(v string)` SetStatus sets Status field to given value. ### HasStatus -`func (o *DfpReadDfp404ResponseError) HasStatus() bool` +`func (o *InfraServicesListDfpServices500ResponseError) HasStatus() bool` HasStatus returns a boolean if a field has been set. diff --git a/dfp/model_dfp.go b/dfp/model_dfp.go index 185609d..8305e1d 100644 --- a/dfp/model_dfp.go +++ b/dfp/model_dfp.go @@ -22,8 +22,6 @@ var _ MappedNullable = &Dfp{} type Dfp struct { // The time when this DNS Forwarding Proxy object was created. CreatedTime *time.Time `json:"created_time,omitempty"` - // The list of default DNS resolvers that will be used in case if the BloxOne Cloud is unreachable. Deprecated DO NOT USE. Use resolvers_all. - DefaultResolvers []string `json:"default_resolvers,omitempty"` // The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as ELB IPs. ElbIpList []string `json:"elb_ip_list,omitempty"` ForwardingPolicy *string `json:"forwarding_policy,omitempty"` @@ -42,9 +40,7 @@ type Dfp struct { // The identifier of the security policy with which the DNS Forwarding Proxy is associated. PolicyId *int32 `json:"policy_id,omitempty"` // Point of Presence (PoP) region - PopRegionId *int32 `json:"pop_region_id,omitempty"` - // The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as DNS resolvers. Deprecated DO NOT USE. Use resolvers_all. - Resolvers []string `json:"resolvers,omitempty"` + PopRegionId *int32 `json:"pop_region_id,omitempty"` ResolversAll []Resolver `json:"resolvers_all,omitempty"` // The On-Prem Application Service identifier. For internal Use only ServiceId *string `json:"service_id,omitempty"` @@ -105,38 +101,6 @@ func (o *Dfp) SetCreatedTime(v time.Time) { o.CreatedTime = &v } -// GetDefaultResolvers returns the DefaultResolvers field value if set, zero value otherwise. -func (o *Dfp) GetDefaultResolvers() []string { - if o == nil || IsNil(o.DefaultResolvers) { - var ret []string - return ret - } - return o.DefaultResolvers -} - -// GetDefaultResolversOk returns a tuple with the DefaultResolvers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Dfp) GetDefaultResolversOk() ([]string, bool) { - if o == nil || IsNil(o.DefaultResolvers) { - return nil, false - } - return o.DefaultResolvers, true -} - -// HasDefaultResolvers returns a boolean if a field has been set. -func (o *Dfp) HasDefaultResolvers() bool { - if o != nil && !IsNil(o.DefaultResolvers) { - return true - } - - return false -} - -// SetDefaultResolvers gets a reference to the given []string and assigns it to the DefaultResolvers field. -func (o *Dfp) SetDefaultResolvers(v []string) { - o.DefaultResolvers = v -} - // GetElbIpList returns the ElbIpList field value if set, zero value otherwise. func (o *Dfp) GetElbIpList() []string { if o == nil || IsNil(o.ElbIpList) { @@ -457,38 +421,6 @@ func (o *Dfp) SetPopRegionId(v int32) { o.PopRegionId = &v } -// GetResolvers returns the Resolvers field value if set, zero value otherwise. -func (o *Dfp) GetResolvers() []string { - if o == nil || IsNil(o.Resolvers) { - var ret []string - return ret - } - return o.Resolvers -} - -// GetResolversOk returns a tuple with the Resolvers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Dfp) GetResolversOk() ([]string, bool) { - if o == nil || IsNil(o.Resolvers) { - return nil, false - } - return o.Resolvers, true -} - -// HasResolvers returns a boolean if a field has been set. -func (o *Dfp) HasResolvers() bool { - if o != nil && !IsNil(o.Resolvers) { - return true - } - - return false -} - -// SetResolvers gets a reference to the given []string and assigns it to the Resolvers field. -func (o *Dfp) SetResolvers(v []string) { - o.Resolvers = v -} - // GetResolversAll returns the ResolversAll field value if set, zero value otherwise. func (o *Dfp) GetResolversAll() []Resolver { if o == nil || IsNil(o.ResolversAll) { @@ -662,9 +594,6 @@ func (o Dfp) ToMap() (map[string]interface{}, error) { if !IsNil(o.CreatedTime) { toSerialize["created_time"] = o.CreatedTime } - if !IsNil(o.DefaultResolvers) { - toSerialize["default_resolvers"] = o.DefaultResolvers - } if !IsNil(o.ElbIpList) { toSerialize["elb_ip_list"] = o.ElbIpList } @@ -695,9 +624,6 @@ func (o Dfp) ToMap() (map[string]interface{}, error) { if !IsNil(o.PopRegionId) { toSerialize["pop_region_id"] = o.PopRegionId } - if !IsNil(o.Resolvers) { - toSerialize["resolvers"] = o.Resolvers - } if !IsNil(o.ResolversAll) { toSerialize["resolvers_all"] = o.ResolversAll } diff --git a/dfp/model_dfp_create_or_update_payload.go b/dfp/model_dfp_create_or_update_payload.go index e2e0179..f61c533 100644 --- a/dfp/model_dfp_create_or_update_payload.go +++ b/dfp/model_dfp_create_or_update_payload.go @@ -19,8 +19,6 @@ var _ MappedNullable = &DfpCreateOrUpdatePayload{} // DfpCreateOrUpdatePayload DNS Forwarding Proxy object. For remote office deployments or in cases where installing an endpoint agent is not desirable or possible, you can use the DNS forwarding proxy. It is a software that runs on bare-metal, VM infrastructures, or Infoblox NIOS appliances; and it embeds the client IPs in DNS queries before forwarding them to BloxOne Cloud. The communications are encrypted and client visibility is maintained. The proxy also provides DNS resolution to local DNS zones when you configure local resolvers. Once you set up a DNS forwarding proxy, it becomes the main DNS server for your remote site. It will also cache responses to speed resolution of future queries. Note that DNS Forwarding Proxy cannot be created (all information regarding DFP is synchronized from hostapp service). type DfpCreateOrUpdatePayload struct { - // The list of default DNS resolvers that will be used in case if the BloxOne Cloud is unreachable. Deprecated DO NOT USE. Use resolvers_all. - DefaultResolvers []string `json:"default_resolvers,omitempty"` // The type of DNS resolver as Forwarding Policy. It can hold values as ib_cloud_first, external_first or external_only The default value is ib_cloud_first. If empty string is sent then ib_cloud_first will be considered. ForwardingPolicy *string `json:"forwarding_policy,omitempty"` // host information. For internal Use only. @@ -33,8 +31,6 @@ type DfpCreateOrUpdatePayload struct { Name *string `json:"name,omitempty"` // Point of Presence (PoP) region PopRegionId *int32 `json:"pop_region_id,omitempty"` - // The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as DNS resolvers. Deprecated DO NOT USE. Use resolvers_all. - Resolvers []string `json:"resolvers,omitempty"` // The DNS forwarding proxy additional resolvers used for fallback and local resolution. This field replaces resolvers and default_resolvers fields which are deprecated. Either deprecated fields or new field can be used, both can not be used at same time. ResolversAll []Resolver `json:"resolvers_all,omitempty"` // The DNS Forwarding Proxy Service ID object identifier. @@ -62,38 +58,6 @@ func NewDfpCreateOrUpdatePayloadWithDefaults() *DfpCreateOrUpdatePayload { return &this } -// GetDefaultResolvers returns the DefaultResolvers field value if set, zero value otherwise. -func (o *DfpCreateOrUpdatePayload) GetDefaultResolvers() []string { - if o == nil || IsNil(o.DefaultResolvers) { - var ret []string - return ret - } - return o.DefaultResolvers -} - -// GetDefaultResolversOk returns a tuple with the DefaultResolvers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DfpCreateOrUpdatePayload) GetDefaultResolversOk() ([]string, bool) { - if o == nil || IsNil(o.DefaultResolvers) { - return nil, false - } - return o.DefaultResolvers, true -} - -// HasDefaultResolvers returns a boolean if a field has been set. -func (o *DfpCreateOrUpdatePayload) HasDefaultResolvers() bool { - if o != nil && !IsNil(o.DefaultResolvers) { - return true - } - - return false -} - -// SetDefaultResolvers gets a reference to the given []string and assigns it to the DefaultResolvers field. -func (o *DfpCreateOrUpdatePayload) SetDefaultResolvers(v []string) { - o.DefaultResolvers = v -} - // GetForwardingPolicy returns the ForwardingPolicy field value if set, zero value otherwise. func (o *DfpCreateOrUpdatePayload) GetForwardingPolicy() string { if o == nil || IsNil(o.ForwardingPolicy) { @@ -286,38 +250,6 @@ func (o *DfpCreateOrUpdatePayload) SetPopRegionId(v int32) { o.PopRegionId = &v } -// GetResolvers returns the Resolvers field value if set, zero value otherwise. -func (o *DfpCreateOrUpdatePayload) GetResolvers() []string { - if o == nil || IsNil(o.Resolvers) { - var ret []string - return ret - } - return o.Resolvers -} - -// GetResolversOk returns a tuple with the Resolvers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DfpCreateOrUpdatePayload) GetResolversOk() ([]string, bool) { - if o == nil || IsNil(o.Resolvers) { - return nil, false - } - return o.Resolvers, true -} - -// HasResolvers returns a boolean if a field has been set. -func (o *DfpCreateOrUpdatePayload) HasResolvers() bool { - if o != nil && !IsNil(o.Resolvers) { - return true - } - - return false -} - -// SetResolvers gets a reference to the given []string and assigns it to the Resolvers field. -func (o *DfpCreateOrUpdatePayload) SetResolvers(v []string) { - o.Resolvers = v -} - // GetResolversAll returns the ResolversAll field value if set, zero value otherwise. func (o *DfpCreateOrUpdatePayload) GetResolversAll() []Resolver { if o == nil || IsNil(o.ResolversAll) { @@ -456,9 +388,6 @@ func (o DfpCreateOrUpdatePayload) MarshalJSON() ([]byte, error) { func (o DfpCreateOrUpdatePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.DefaultResolvers) { - toSerialize["default_resolvers"] = o.DefaultResolvers - } if !IsNil(o.ForwardingPolicy) { toSerialize["forwarding_policy"] = o.ForwardingPolicy } @@ -477,9 +406,6 @@ func (o DfpCreateOrUpdatePayload) ToMap() (map[string]interface{}, error) { if !IsNil(o.PopRegionId) { toSerialize["pop_region_id"] = o.PopRegionId } - if !IsNil(o.Resolvers) { - toSerialize["resolvers"] = o.Resolvers - } if !IsNil(o.ResolversAll) { toSerialize["resolvers_all"] = o.ResolversAll } diff --git a/dfp/model_dfp_list_dfp_500_response.go b/dfp/model_infra_services_create_or_update_dfp_service_400_response.go similarity index 51% rename from dfp/model_dfp_list_dfp_500_response.go rename to dfp/model_infra_services_create_or_update_dfp_service_400_response.go index fdaab0d..c26e98b 100644 --- a/dfp/model_dfp_list_dfp_500_response.go +++ b/dfp/model_infra_services_create_or_update_dfp_service_400_response.go @@ -14,35 +14,35 @@ import ( "encoding/json" ) -// checks if the DfpListDfp500Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpListDfp500Response{} +// checks if the InfraServicesCreateOrUpdateDfpService400Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesCreateOrUpdateDfpService400Response{} -// DfpListDfp500Response struct for DfpListDfp500Response -type DfpListDfp500Response struct { - Error *DfpListDfp500ResponseError `json:"error,omitempty"` +// InfraServicesCreateOrUpdateDfpService400Response struct for InfraServicesCreateOrUpdateDfpService400Response +type InfraServicesCreateOrUpdateDfpService400Response struct { + Error *InfraServicesCreateOrUpdateDfpService400ResponseError `json:"error,omitempty"` } -// NewDfpListDfp500Response instantiates a new DfpListDfp500Response object +// NewInfraServicesCreateOrUpdateDfpService400Response instantiates a new InfraServicesCreateOrUpdateDfpService400Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDfpListDfp500Response() *DfpListDfp500Response { - this := DfpListDfp500Response{} +func NewInfraServicesCreateOrUpdateDfpService400Response() *InfraServicesCreateOrUpdateDfpService400Response { + this := InfraServicesCreateOrUpdateDfpService400Response{} return &this } -// NewDfpListDfp500ResponseWithDefaults instantiates a new DfpListDfp500Response object +// NewInfraServicesCreateOrUpdateDfpService400ResponseWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService400Response object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDfpListDfp500ResponseWithDefaults() *DfpListDfp500Response { - this := DfpListDfp500Response{} +func NewInfraServicesCreateOrUpdateDfpService400ResponseWithDefaults() *InfraServicesCreateOrUpdateDfpService400Response { + this := InfraServicesCreateOrUpdateDfpService400Response{} return &this } // GetError returns the Error field value if set, zero value otherwise. -func (o *DfpListDfp500Response) GetError() DfpListDfp500ResponseError { +func (o *InfraServicesCreateOrUpdateDfpService400Response) GetError() InfraServicesCreateOrUpdateDfpService400ResponseError { if o == nil || IsNil(o.Error) { - var ret DfpListDfp500ResponseError + var ret InfraServicesCreateOrUpdateDfpService400ResponseError return ret } return *o.Error @@ -50,7 +50,7 @@ func (o *DfpListDfp500Response) GetError() DfpListDfp500ResponseError { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DfpListDfp500Response) GetErrorOk() (*DfpListDfp500ResponseError, bool) { +func (o *InfraServicesCreateOrUpdateDfpService400Response) GetErrorOk() (*InfraServicesCreateOrUpdateDfpService400ResponseError, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -58,7 +58,7 @@ func (o *DfpListDfp500Response) GetErrorOk() (*DfpListDfp500ResponseError, bool) } // HasError returns a boolean if a field has been set. -func (o *DfpListDfp500Response) HasError() bool { +func (o *InfraServicesCreateOrUpdateDfpService400Response) HasError() bool { if o != nil && !IsNil(o.Error) { return true } @@ -66,12 +66,12 @@ func (o *DfpListDfp500Response) HasError() bool { return false } -// SetError gets a reference to the given DfpListDfp500ResponseError and assigns it to the Error field. -func (o *DfpListDfp500Response) SetError(v DfpListDfp500ResponseError) { +// SetError gets a reference to the given InfraServicesCreateOrUpdateDfpService400ResponseError and assigns it to the Error field. +func (o *InfraServicesCreateOrUpdateDfpService400Response) SetError(v InfraServicesCreateOrUpdateDfpService400ResponseError) { o.Error = &v } -func (o DfpListDfp500Response) MarshalJSON() ([]byte, error) { +func (o InfraServicesCreateOrUpdateDfpService400Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -79,7 +79,7 @@ func (o DfpListDfp500Response) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DfpListDfp500Response) ToMap() (map[string]interface{}, error) { +func (o InfraServicesCreateOrUpdateDfpService400Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Error) { toSerialize["error"] = o.Error @@ -87,38 +87,38 @@ func (o DfpListDfp500Response) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableDfpListDfp500Response struct { - value *DfpListDfp500Response +type NullableInfraServicesCreateOrUpdateDfpService400Response struct { + value *InfraServicesCreateOrUpdateDfpService400Response isSet bool } -func (v NullableDfpListDfp500Response) Get() *DfpListDfp500Response { +func (v NullableInfraServicesCreateOrUpdateDfpService400Response) Get() *InfraServicesCreateOrUpdateDfpService400Response { return v.value } -func (v *NullableDfpListDfp500Response) Set(val *DfpListDfp500Response) { +func (v *NullableInfraServicesCreateOrUpdateDfpService400Response) Set(val *InfraServicesCreateOrUpdateDfpService400Response) { v.value = val v.isSet = true } -func (v NullableDfpListDfp500Response) IsSet() bool { +func (v NullableInfraServicesCreateOrUpdateDfpService400Response) IsSet() bool { return v.isSet } -func (v *NullableDfpListDfp500Response) Unset() { +func (v *NullableInfraServicesCreateOrUpdateDfpService400Response) Unset() { v.value = nil v.isSet = false } -func NewNullableDfpListDfp500Response(val *DfpListDfp500Response) *NullableDfpListDfp500Response { - return &NullableDfpListDfp500Response{value: val, isSet: true} +func NewNullableInfraServicesCreateOrUpdateDfpService400Response(val *InfraServicesCreateOrUpdateDfpService400Response) *NullableInfraServicesCreateOrUpdateDfpService400Response { + return &NullableInfraServicesCreateOrUpdateDfpService400Response{value: val, isSet: true} } -func (v NullableDfpListDfp500Response) MarshalJSON() ([]byte, error) { +func (v NullableInfraServicesCreateOrUpdateDfpService400Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDfpListDfp500Response) UnmarshalJSON(src []byte) error { +func (v *NullableInfraServicesCreateOrUpdateDfpService400Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/dfp/model_dfp_list_dfp_500_response_error.go b/dfp/model_infra_services_create_or_update_dfp_service_400_response_error.go similarity index 57% rename from dfp/model_dfp_list_dfp_500_response_error.go rename to dfp/model_infra_services_create_or_update_dfp_service_400_response_error.go index 7951d49..3723db7 100644 --- a/dfp/model_dfp_list_dfp_500_response_error.go +++ b/dfp/model_infra_services_create_or_update_dfp_service_400_response_error.go @@ -14,35 +14,35 @@ import ( "encoding/json" ) -// checks if the DfpListDfp500ResponseError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpListDfp500ResponseError{} +// checks if the InfraServicesCreateOrUpdateDfpService400ResponseError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesCreateOrUpdateDfpService400ResponseError{} -// DfpListDfp500ResponseError struct for DfpListDfp500ResponseError -type DfpListDfp500ResponseError struct { +// InfraServicesCreateOrUpdateDfpService400ResponseError struct for InfraServicesCreateOrUpdateDfpService400ResponseError +type InfraServicesCreateOrUpdateDfpService400ResponseError struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *string `json:"status,omitempty"` } -// NewDfpListDfp500ResponseError instantiates a new DfpListDfp500ResponseError object +// NewInfraServicesCreateOrUpdateDfpService400ResponseError instantiates a new InfraServicesCreateOrUpdateDfpService400ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDfpListDfp500ResponseError() *DfpListDfp500ResponseError { - this := DfpListDfp500ResponseError{} +func NewInfraServicesCreateOrUpdateDfpService400ResponseError() *InfraServicesCreateOrUpdateDfpService400ResponseError { + this := InfraServicesCreateOrUpdateDfpService400ResponseError{} return &this } -// NewDfpListDfp500ResponseErrorWithDefaults instantiates a new DfpListDfp500ResponseError object +// NewInfraServicesCreateOrUpdateDfpService400ResponseErrorWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService400ResponseError object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDfpListDfp500ResponseErrorWithDefaults() *DfpListDfp500ResponseError { - this := DfpListDfp500ResponseError{} +func NewInfraServicesCreateOrUpdateDfpService400ResponseErrorWithDefaults() *InfraServicesCreateOrUpdateDfpService400ResponseError { + this := InfraServicesCreateOrUpdateDfpService400ResponseError{} return &this } // GetCode returns the Code field value if set, zero value otherwise. -func (o *DfpListDfp500ResponseError) GetCode() string { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetCode() string { if o == nil || IsNil(o.Code) { var ret string return ret @@ -52,7 +52,7 @@ func (o *DfpListDfp500ResponseError) GetCode() string { // GetCodeOk returns a tuple with the Code field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DfpListDfp500ResponseError) GetCodeOk() (*string, bool) { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetCodeOk() (*string, bool) { if o == nil || IsNil(o.Code) { return nil, false } @@ -60,7 +60,7 @@ func (o *DfpListDfp500ResponseError) GetCodeOk() (*string, bool) { } // HasCode returns a boolean if a field has been set. -func (o *DfpListDfp500ResponseError) HasCode() bool { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) HasCode() bool { if o != nil && !IsNil(o.Code) { return true } @@ -69,12 +69,12 @@ func (o *DfpListDfp500ResponseError) HasCode() bool { } // SetCode gets a reference to the given string and assigns it to the Code field. -func (o *DfpListDfp500ResponseError) SetCode(v string) { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) SetCode(v string) { o.Code = &v } // GetMessage returns the Message field value if set, zero value otherwise. -func (o *DfpListDfp500ResponseError) GetMessage() string { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetMessage() string { if o == nil || IsNil(o.Message) { var ret string return ret @@ -84,7 +84,7 @@ func (o *DfpListDfp500ResponseError) GetMessage() string { // 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 *DfpListDfp500ResponseError) GetMessageOk() (*string, bool) { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetMessageOk() (*string, bool) { if o == nil || IsNil(o.Message) { return nil, false } @@ -92,7 +92,7 @@ func (o *DfpListDfp500ResponseError) GetMessageOk() (*string, bool) { } // HasMessage returns a boolean if a field has been set. -func (o *DfpListDfp500ResponseError) HasMessage() bool { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) HasMessage() bool { if o != nil && !IsNil(o.Message) { return true } @@ -101,12 +101,12 @@ func (o *DfpListDfp500ResponseError) HasMessage() bool { } // SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *DfpListDfp500ResponseError) SetMessage(v string) { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) SetMessage(v string) { o.Message = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *DfpListDfp500ResponseError) GetStatus() string { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetStatus() string { if o == nil || IsNil(o.Status) { var ret string return ret @@ -116,7 +116,7 @@ func (o *DfpListDfp500ResponseError) GetStatus() string { // 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 *DfpListDfp500ResponseError) GetStatusOk() (*string, bool) { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) GetStatusOk() (*string, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -124,7 +124,7 @@ func (o *DfpListDfp500ResponseError) GetStatusOk() (*string, bool) { } // HasStatus returns a boolean if a field has been set. -func (o *DfpListDfp500ResponseError) HasStatus() bool { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) HasStatus() bool { if o != nil && !IsNil(o.Status) { return true } @@ -133,11 +133,11 @@ func (o *DfpListDfp500ResponseError) HasStatus() bool { } // SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *DfpListDfp500ResponseError) SetStatus(v string) { +func (o *InfraServicesCreateOrUpdateDfpService400ResponseError) SetStatus(v string) { o.Status = &v } -func (o DfpListDfp500ResponseError) MarshalJSON() ([]byte, error) { +func (o InfraServicesCreateOrUpdateDfpService400ResponseError) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -145,7 +145,7 @@ func (o DfpListDfp500ResponseError) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DfpListDfp500ResponseError) ToMap() (map[string]interface{}, error) { +func (o InfraServicesCreateOrUpdateDfpService400ResponseError) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Code) { toSerialize["code"] = o.Code @@ -159,38 +159,38 @@ func (o DfpListDfp500ResponseError) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableDfpListDfp500ResponseError struct { - value *DfpListDfp500ResponseError +type NullableInfraServicesCreateOrUpdateDfpService400ResponseError struct { + value *InfraServicesCreateOrUpdateDfpService400ResponseError isSet bool } -func (v NullableDfpListDfp500ResponseError) Get() *DfpListDfp500ResponseError { +func (v NullableInfraServicesCreateOrUpdateDfpService400ResponseError) Get() *InfraServicesCreateOrUpdateDfpService400ResponseError { return v.value } -func (v *NullableDfpListDfp500ResponseError) Set(val *DfpListDfp500ResponseError) { +func (v *NullableInfraServicesCreateOrUpdateDfpService400ResponseError) Set(val *InfraServicesCreateOrUpdateDfpService400ResponseError) { v.value = val v.isSet = true } -func (v NullableDfpListDfp500ResponseError) IsSet() bool { +func (v NullableInfraServicesCreateOrUpdateDfpService400ResponseError) IsSet() bool { return v.isSet } -func (v *NullableDfpListDfp500ResponseError) Unset() { +func (v *NullableInfraServicesCreateOrUpdateDfpService400ResponseError) Unset() { v.value = nil v.isSet = false } -func NewNullableDfpListDfp500ResponseError(val *DfpListDfp500ResponseError) *NullableDfpListDfp500ResponseError { - return &NullableDfpListDfp500ResponseError{value: val, isSet: true} +func NewNullableInfraServicesCreateOrUpdateDfpService400ResponseError(val *InfraServicesCreateOrUpdateDfpService400ResponseError) *NullableInfraServicesCreateOrUpdateDfpService400ResponseError { + return &NullableInfraServicesCreateOrUpdateDfpService400ResponseError{value: val, isSet: true} } -func (v NullableDfpListDfp500ResponseError) MarshalJSON() ([]byte, error) { +func (v NullableInfraServicesCreateOrUpdateDfpService400ResponseError) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDfpListDfp500ResponseError) UnmarshalJSON(src []byte) error { +func (v *NullableInfraServicesCreateOrUpdateDfpService400ResponseError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/dfp/model_dfp_read_dfp_404_response.go b/dfp/model_infra_services_create_or_update_dfp_service_404_response.go similarity index 51% rename from dfp/model_dfp_read_dfp_404_response.go rename to dfp/model_infra_services_create_or_update_dfp_service_404_response.go index 77f6485..07c9761 100644 --- a/dfp/model_dfp_read_dfp_404_response.go +++ b/dfp/model_infra_services_create_or_update_dfp_service_404_response.go @@ -14,35 +14,35 @@ import ( "encoding/json" ) -// checks if the DfpReadDfp404Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpReadDfp404Response{} +// checks if the InfraServicesCreateOrUpdateDfpService404Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesCreateOrUpdateDfpService404Response{} -// DfpReadDfp404Response struct for DfpReadDfp404Response -type DfpReadDfp404Response struct { - Error *DfpReadDfp404ResponseError `json:"error,omitempty"` +// InfraServicesCreateOrUpdateDfpService404Response struct for InfraServicesCreateOrUpdateDfpService404Response +type InfraServicesCreateOrUpdateDfpService404Response struct { + Error *InfraServicesCreateOrUpdateDfpService404ResponseError `json:"error,omitempty"` } -// NewDfpReadDfp404Response instantiates a new DfpReadDfp404Response object +// NewInfraServicesCreateOrUpdateDfpService404Response instantiates a new InfraServicesCreateOrUpdateDfpService404Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDfpReadDfp404Response() *DfpReadDfp404Response { - this := DfpReadDfp404Response{} +func NewInfraServicesCreateOrUpdateDfpService404Response() *InfraServicesCreateOrUpdateDfpService404Response { + this := InfraServicesCreateOrUpdateDfpService404Response{} return &this } -// NewDfpReadDfp404ResponseWithDefaults instantiates a new DfpReadDfp404Response object +// NewInfraServicesCreateOrUpdateDfpService404ResponseWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService404Response object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDfpReadDfp404ResponseWithDefaults() *DfpReadDfp404Response { - this := DfpReadDfp404Response{} +func NewInfraServicesCreateOrUpdateDfpService404ResponseWithDefaults() *InfraServicesCreateOrUpdateDfpService404Response { + this := InfraServicesCreateOrUpdateDfpService404Response{} return &this } // GetError returns the Error field value if set, zero value otherwise. -func (o *DfpReadDfp404Response) GetError() DfpReadDfp404ResponseError { +func (o *InfraServicesCreateOrUpdateDfpService404Response) GetError() InfraServicesCreateOrUpdateDfpService404ResponseError { if o == nil || IsNil(o.Error) { - var ret DfpReadDfp404ResponseError + var ret InfraServicesCreateOrUpdateDfpService404ResponseError return ret } return *o.Error @@ -50,7 +50,7 @@ func (o *DfpReadDfp404Response) GetError() DfpReadDfp404ResponseError { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DfpReadDfp404Response) GetErrorOk() (*DfpReadDfp404ResponseError, bool) { +func (o *InfraServicesCreateOrUpdateDfpService404Response) GetErrorOk() (*InfraServicesCreateOrUpdateDfpService404ResponseError, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -58,7 +58,7 @@ func (o *DfpReadDfp404Response) GetErrorOk() (*DfpReadDfp404ResponseError, bool) } // HasError returns a boolean if a field has been set. -func (o *DfpReadDfp404Response) HasError() bool { +func (o *InfraServicesCreateOrUpdateDfpService404Response) HasError() bool { if o != nil && !IsNil(o.Error) { return true } @@ -66,12 +66,12 @@ func (o *DfpReadDfp404Response) HasError() bool { return false } -// SetError gets a reference to the given DfpReadDfp404ResponseError and assigns it to the Error field. -func (o *DfpReadDfp404Response) SetError(v DfpReadDfp404ResponseError) { +// SetError gets a reference to the given InfraServicesCreateOrUpdateDfpService404ResponseError and assigns it to the Error field. +func (o *InfraServicesCreateOrUpdateDfpService404Response) SetError(v InfraServicesCreateOrUpdateDfpService404ResponseError) { o.Error = &v } -func (o DfpReadDfp404Response) MarshalJSON() ([]byte, error) { +func (o InfraServicesCreateOrUpdateDfpService404Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -79,7 +79,7 @@ func (o DfpReadDfp404Response) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DfpReadDfp404Response) ToMap() (map[string]interface{}, error) { +func (o InfraServicesCreateOrUpdateDfpService404Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Error) { toSerialize["error"] = o.Error @@ -87,38 +87,38 @@ func (o DfpReadDfp404Response) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableDfpReadDfp404Response struct { - value *DfpReadDfp404Response +type NullableInfraServicesCreateOrUpdateDfpService404Response struct { + value *InfraServicesCreateOrUpdateDfpService404Response isSet bool } -func (v NullableDfpReadDfp404Response) Get() *DfpReadDfp404Response { +func (v NullableInfraServicesCreateOrUpdateDfpService404Response) Get() *InfraServicesCreateOrUpdateDfpService404Response { return v.value } -func (v *NullableDfpReadDfp404Response) Set(val *DfpReadDfp404Response) { +func (v *NullableInfraServicesCreateOrUpdateDfpService404Response) Set(val *InfraServicesCreateOrUpdateDfpService404Response) { v.value = val v.isSet = true } -func (v NullableDfpReadDfp404Response) IsSet() bool { +func (v NullableInfraServicesCreateOrUpdateDfpService404Response) IsSet() bool { return v.isSet } -func (v *NullableDfpReadDfp404Response) Unset() { +func (v *NullableInfraServicesCreateOrUpdateDfpService404Response) Unset() { v.value = nil v.isSet = false } -func NewNullableDfpReadDfp404Response(val *DfpReadDfp404Response) *NullableDfpReadDfp404Response { - return &NullableDfpReadDfp404Response{value: val, isSet: true} +func NewNullableInfraServicesCreateOrUpdateDfpService404Response(val *InfraServicesCreateOrUpdateDfpService404Response) *NullableInfraServicesCreateOrUpdateDfpService404Response { + return &NullableInfraServicesCreateOrUpdateDfpService404Response{value: val, isSet: true} } -func (v NullableDfpReadDfp404Response) MarshalJSON() ([]byte, error) { +func (v NullableInfraServicesCreateOrUpdateDfpService404Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDfpReadDfp404Response) UnmarshalJSON(src []byte) error { +func (v *NullableInfraServicesCreateOrUpdateDfpService404Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/dfp/model_dfp_read_dfp_404_response_error.go b/dfp/model_infra_services_create_or_update_dfp_service_404_response_error.go similarity index 57% rename from dfp/model_dfp_read_dfp_404_response_error.go rename to dfp/model_infra_services_create_or_update_dfp_service_404_response_error.go index e30c9f6..eefa2c2 100644 --- a/dfp/model_dfp_read_dfp_404_response_error.go +++ b/dfp/model_infra_services_create_or_update_dfp_service_404_response_error.go @@ -14,35 +14,35 @@ import ( "encoding/json" ) -// checks if the DfpReadDfp404ResponseError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpReadDfp404ResponseError{} +// checks if the InfraServicesCreateOrUpdateDfpService404ResponseError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesCreateOrUpdateDfpService404ResponseError{} -// DfpReadDfp404ResponseError struct for DfpReadDfp404ResponseError -type DfpReadDfp404ResponseError struct { +// InfraServicesCreateOrUpdateDfpService404ResponseError struct for InfraServicesCreateOrUpdateDfpService404ResponseError +type InfraServicesCreateOrUpdateDfpService404ResponseError struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *string `json:"status,omitempty"` } -// NewDfpReadDfp404ResponseError instantiates a new DfpReadDfp404ResponseError object +// NewInfraServicesCreateOrUpdateDfpService404ResponseError instantiates a new InfraServicesCreateOrUpdateDfpService404ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDfpReadDfp404ResponseError() *DfpReadDfp404ResponseError { - this := DfpReadDfp404ResponseError{} +func NewInfraServicesCreateOrUpdateDfpService404ResponseError() *InfraServicesCreateOrUpdateDfpService404ResponseError { + this := InfraServicesCreateOrUpdateDfpService404ResponseError{} return &this } -// NewDfpReadDfp404ResponseErrorWithDefaults instantiates a new DfpReadDfp404ResponseError object +// NewInfraServicesCreateOrUpdateDfpService404ResponseErrorWithDefaults instantiates a new InfraServicesCreateOrUpdateDfpService404ResponseError object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDfpReadDfp404ResponseErrorWithDefaults() *DfpReadDfp404ResponseError { - this := DfpReadDfp404ResponseError{} +func NewInfraServicesCreateOrUpdateDfpService404ResponseErrorWithDefaults() *InfraServicesCreateOrUpdateDfpService404ResponseError { + this := InfraServicesCreateOrUpdateDfpService404ResponseError{} return &this } // GetCode returns the Code field value if set, zero value otherwise. -func (o *DfpReadDfp404ResponseError) GetCode() string { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetCode() string { if o == nil || IsNil(o.Code) { var ret string return ret @@ -52,7 +52,7 @@ func (o *DfpReadDfp404ResponseError) GetCode() string { // GetCodeOk returns a tuple with the Code field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DfpReadDfp404ResponseError) GetCodeOk() (*string, bool) { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetCodeOk() (*string, bool) { if o == nil || IsNil(o.Code) { return nil, false } @@ -60,7 +60,7 @@ func (o *DfpReadDfp404ResponseError) GetCodeOk() (*string, bool) { } // HasCode returns a boolean if a field has been set. -func (o *DfpReadDfp404ResponseError) HasCode() bool { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) HasCode() bool { if o != nil && !IsNil(o.Code) { return true } @@ -69,12 +69,12 @@ func (o *DfpReadDfp404ResponseError) HasCode() bool { } // SetCode gets a reference to the given string and assigns it to the Code field. -func (o *DfpReadDfp404ResponseError) SetCode(v string) { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) SetCode(v string) { o.Code = &v } // GetMessage returns the Message field value if set, zero value otherwise. -func (o *DfpReadDfp404ResponseError) GetMessage() string { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetMessage() string { if o == nil || IsNil(o.Message) { var ret string return ret @@ -84,7 +84,7 @@ func (o *DfpReadDfp404ResponseError) GetMessage() string { // 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 *DfpReadDfp404ResponseError) GetMessageOk() (*string, bool) { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetMessageOk() (*string, bool) { if o == nil || IsNil(o.Message) { return nil, false } @@ -92,7 +92,7 @@ func (o *DfpReadDfp404ResponseError) GetMessageOk() (*string, bool) { } // HasMessage returns a boolean if a field has been set. -func (o *DfpReadDfp404ResponseError) HasMessage() bool { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) HasMessage() bool { if o != nil && !IsNil(o.Message) { return true } @@ -101,12 +101,12 @@ func (o *DfpReadDfp404ResponseError) HasMessage() bool { } // SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *DfpReadDfp404ResponseError) SetMessage(v string) { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) SetMessage(v string) { o.Message = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *DfpReadDfp404ResponseError) GetStatus() string { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetStatus() string { if o == nil || IsNil(o.Status) { var ret string return ret @@ -116,7 +116,7 @@ func (o *DfpReadDfp404ResponseError) GetStatus() string { // 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 *DfpReadDfp404ResponseError) GetStatusOk() (*string, bool) { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) GetStatusOk() (*string, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -124,7 +124,7 @@ func (o *DfpReadDfp404ResponseError) GetStatusOk() (*string, bool) { } // HasStatus returns a boolean if a field has been set. -func (o *DfpReadDfp404ResponseError) HasStatus() bool { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) HasStatus() bool { if o != nil && !IsNil(o.Status) { return true } @@ -133,11 +133,11 @@ func (o *DfpReadDfp404ResponseError) HasStatus() bool { } // SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *DfpReadDfp404ResponseError) SetStatus(v string) { +func (o *InfraServicesCreateOrUpdateDfpService404ResponseError) SetStatus(v string) { o.Status = &v } -func (o DfpReadDfp404ResponseError) MarshalJSON() ([]byte, error) { +func (o InfraServicesCreateOrUpdateDfpService404ResponseError) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -145,7 +145,7 @@ func (o DfpReadDfp404ResponseError) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DfpReadDfp404ResponseError) ToMap() (map[string]interface{}, error) { +func (o InfraServicesCreateOrUpdateDfpService404ResponseError) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Code) { toSerialize["code"] = o.Code @@ -159,38 +159,38 @@ func (o DfpReadDfp404ResponseError) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableDfpReadDfp404ResponseError struct { - value *DfpReadDfp404ResponseError +type NullableInfraServicesCreateOrUpdateDfpService404ResponseError struct { + value *InfraServicesCreateOrUpdateDfpService404ResponseError isSet bool } -func (v NullableDfpReadDfp404ResponseError) Get() *DfpReadDfp404ResponseError { +func (v NullableInfraServicesCreateOrUpdateDfpService404ResponseError) Get() *InfraServicesCreateOrUpdateDfpService404ResponseError { return v.value } -func (v *NullableDfpReadDfp404ResponseError) Set(val *DfpReadDfp404ResponseError) { +func (v *NullableInfraServicesCreateOrUpdateDfpService404ResponseError) Set(val *InfraServicesCreateOrUpdateDfpService404ResponseError) { v.value = val v.isSet = true } -func (v NullableDfpReadDfp404ResponseError) IsSet() bool { +func (v NullableInfraServicesCreateOrUpdateDfpService404ResponseError) IsSet() bool { return v.isSet } -func (v *NullableDfpReadDfp404ResponseError) Unset() { +func (v *NullableInfraServicesCreateOrUpdateDfpService404ResponseError) Unset() { v.value = nil v.isSet = false } -func NewNullableDfpReadDfp404ResponseError(val *DfpReadDfp404ResponseError) *NullableDfpReadDfp404ResponseError { - return &NullableDfpReadDfp404ResponseError{value: val, isSet: true} +func NewNullableInfraServicesCreateOrUpdateDfpService404ResponseError(val *InfraServicesCreateOrUpdateDfpService404ResponseError) *NullableInfraServicesCreateOrUpdateDfpService404ResponseError { + return &NullableInfraServicesCreateOrUpdateDfpService404ResponseError{value: val, isSet: true} } -func (v NullableDfpReadDfp404ResponseError) MarshalJSON() ([]byte, error) { +func (v NullableInfraServicesCreateOrUpdateDfpService404ResponseError) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDfpReadDfp404ResponseError) UnmarshalJSON(src []byte) error { +func (v *NullableInfraServicesCreateOrUpdateDfpService404ResponseError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/dfp/model_dfp_create_or_update_dfp_400_response.go b/dfp/model_infra_services_list_dfp_services_500_response.go similarity index 54% rename from dfp/model_dfp_create_or_update_dfp_400_response.go rename to dfp/model_infra_services_list_dfp_services_500_response.go index 1ddd55e..f0c5e05 100644 --- a/dfp/model_dfp_create_or_update_dfp_400_response.go +++ b/dfp/model_infra_services_list_dfp_services_500_response.go @@ -14,35 +14,35 @@ import ( "encoding/json" ) -// checks if the DfpCreateOrUpdateDfp400Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpCreateOrUpdateDfp400Response{} +// checks if the InfraServicesListDfpServices500Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesListDfpServices500Response{} -// DfpCreateOrUpdateDfp400Response struct for DfpCreateOrUpdateDfp400Response -type DfpCreateOrUpdateDfp400Response struct { - Error *DfpCreateOrUpdateDfp400ResponseError `json:"error,omitempty"` +// InfraServicesListDfpServices500Response struct for InfraServicesListDfpServices500Response +type InfraServicesListDfpServices500Response struct { + Error *InfraServicesListDfpServices500ResponseError `json:"error,omitempty"` } -// NewDfpCreateOrUpdateDfp400Response instantiates a new DfpCreateOrUpdateDfp400Response object +// NewInfraServicesListDfpServices500Response instantiates a new InfraServicesListDfpServices500Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDfpCreateOrUpdateDfp400Response() *DfpCreateOrUpdateDfp400Response { - this := DfpCreateOrUpdateDfp400Response{} +func NewInfraServicesListDfpServices500Response() *InfraServicesListDfpServices500Response { + this := InfraServicesListDfpServices500Response{} return &this } -// NewDfpCreateOrUpdateDfp400ResponseWithDefaults instantiates a new DfpCreateOrUpdateDfp400Response object +// NewInfraServicesListDfpServices500ResponseWithDefaults instantiates a new InfraServicesListDfpServices500Response object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDfpCreateOrUpdateDfp400ResponseWithDefaults() *DfpCreateOrUpdateDfp400Response { - this := DfpCreateOrUpdateDfp400Response{} +func NewInfraServicesListDfpServices500ResponseWithDefaults() *InfraServicesListDfpServices500Response { + this := InfraServicesListDfpServices500Response{} return &this } // GetError returns the Error field value if set, zero value otherwise. -func (o *DfpCreateOrUpdateDfp400Response) GetError() DfpCreateOrUpdateDfp400ResponseError { +func (o *InfraServicesListDfpServices500Response) GetError() InfraServicesListDfpServices500ResponseError { if o == nil || IsNil(o.Error) { - var ret DfpCreateOrUpdateDfp400ResponseError + var ret InfraServicesListDfpServices500ResponseError return ret } return *o.Error @@ -50,7 +50,7 @@ func (o *DfpCreateOrUpdateDfp400Response) GetError() DfpCreateOrUpdateDfp400Resp // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DfpCreateOrUpdateDfp400Response) GetErrorOk() (*DfpCreateOrUpdateDfp400ResponseError, bool) { +func (o *InfraServicesListDfpServices500Response) GetErrorOk() (*InfraServicesListDfpServices500ResponseError, bool) { if o == nil || IsNil(o.Error) { return nil, false } @@ -58,7 +58,7 @@ func (o *DfpCreateOrUpdateDfp400Response) GetErrorOk() (*DfpCreateOrUpdateDfp400 } // HasError returns a boolean if a field has been set. -func (o *DfpCreateOrUpdateDfp400Response) HasError() bool { +func (o *InfraServicesListDfpServices500Response) HasError() bool { if o != nil && !IsNil(o.Error) { return true } @@ -66,12 +66,12 @@ func (o *DfpCreateOrUpdateDfp400Response) HasError() bool { return false } -// SetError gets a reference to the given DfpCreateOrUpdateDfp400ResponseError and assigns it to the Error field. -func (o *DfpCreateOrUpdateDfp400Response) SetError(v DfpCreateOrUpdateDfp400ResponseError) { +// SetError gets a reference to the given InfraServicesListDfpServices500ResponseError and assigns it to the Error field. +func (o *InfraServicesListDfpServices500Response) SetError(v InfraServicesListDfpServices500ResponseError) { o.Error = &v } -func (o DfpCreateOrUpdateDfp400Response) MarshalJSON() ([]byte, error) { +func (o InfraServicesListDfpServices500Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -79,7 +79,7 @@ func (o DfpCreateOrUpdateDfp400Response) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DfpCreateOrUpdateDfp400Response) ToMap() (map[string]interface{}, error) { +func (o InfraServicesListDfpServices500Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Error) { toSerialize["error"] = o.Error @@ -87,38 +87,38 @@ func (o DfpCreateOrUpdateDfp400Response) ToMap() (map[string]interface{}, error) return toSerialize, nil } -type NullableDfpCreateOrUpdateDfp400Response struct { - value *DfpCreateOrUpdateDfp400Response +type NullableInfraServicesListDfpServices500Response struct { + value *InfraServicesListDfpServices500Response isSet bool } -func (v NullableDfpCreateOrUpdateDfp400Response) Get() *DfpCreateOrUpdateDfp400Response { +func (v NullableInfraServicesListDfpServices500Response) Get() *InfraServicesListDfpServices500Response { return v.value } -func (v *NullableDfpCreateOrUpdateDfp400Response) Set(val *DfpCreateOrUpdateDfp400Response) { +func (v *NullableInfraServicesListDfpServices500Response) Set(val *InfraServicesListDfpServices500Response) { v.value = val v.isSet = true } -func (v NullableDfpCreateOrUpdateDfp400Response) IsSet() bool { +func (v NullableInfraServicesListDfpServices500Response) IsSet() bool { return v.isSet } -func (v *NullableDfpCreateOrUpdateDfp400Response) Unset() { +func (v *NullableInfraServicesListDfpServices500Response) Unset() { v.value = nil v.isSet = false } -func NewNullableDfpCreateOrUpdateDfp400Response(val *DfpCreateOrUpdateDfp400Response) *NullableDfpCreateOrUpdateDfp400Response { - return &NullableDfpCreateOrUpdateDfp400Response{value: val, isSet: true} +func NewNullableInfraServicesListDfpServices500Response(val *InfraServicesListDfpServices500Response) *NullableInfraServicesListDfpServices500Response { + return &NullableInfraServicesListDfpServices500Response{value: val, isSet: true} } -func (v NullableDfpCreateOrUpdateDfp400Response) MarshalJSON() ([]byte, error) { +func (v NullableInfraServicesListDfpServices500Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDfpCreateOrUpdateDfp400Response) UnmarshalJSON(src []byte) error { +func (v *NullableInfraServicesListDfpServices500Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/dfp/model_dfp_create_or_update_dfp_400_response_error.go b/dfp/model_infra_services_list_dfp_services_500_response_error.go similarity index 61% rename from dfp/model_dfp_create_or_update_dfp_400_response_error.go rename to dfp/model_infra_services_list_dfp_services_500_response_error.go index f9c0882..4461f73 100644 --- a/dfp/model_dfp_create_or_update_dfp_400_response_error.go +++ b/dfp/model_infra_services_list_dfp_services_500_response_error.go @@ -14,35 +14,35 @@ import ( "encoding/json" ) -// checks if the DfpCreateOrUpdateDfp400ResponseError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DfpCreateOrUpdateDfp400ResponseError{} +// checks if the InfraServicesListDfpServices500ResponseError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InfraServicesListDfpServices500ResponseError{} -// DfpCreateOrUpdateDfp400ResponseError struct for DfpCreateOrUpdateDfp400ResponseError -type DfpCreateOrUpdateDfp400ResponseError struct { +// InfraServicesListDfpServices500ResponseError struct for InfraServicesListDfpServices500ResponseError +type InfraServicesListDfpServices500ResponseError struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *string `json:"status,omitempty"` } -// NewDfpCreateOrUpdateDfp400ResponseError instantiates a new DfpCreateOrUpdateDfp400ResponseError object +// NewInfraServicesListDfpServices500ResponseError instantiates a new InfraServicesListDfpServices500ResponseError object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDfpCreateOrUpdateDfp400ResponseError() *DfpCreateOrUpdateDfp400ResponseError { - this := DfpCreateOrUpdateDfp400ResponseError{} +func NewInfraServicesListDfpServices500ResponseError() *InfraServicesListDfpServices500ResponseError { + this := InfraServicesListDfpServices500ResponseError{} return &this } -// NewDfpCreateOrUpdateDfp400ResponseErrorWithDefaults instantiates a new DfpCreateOrUpdateDfp400ResponseError object +// NewInfraServicesListDfpServices500ResponseErrorWithDefaults instantiates a new InfraServicesListDfpServices500ResponseError object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDfpCreateOrUpdateDfp400ResponseErrorWithDefaults() *DfpCreateOrUpdateDfp400ResponseError { - this := DfpCreateOrUpdateDfp400ResponseError{} +func NewInfraServicesListDfpServices500ResponseErrorWithDefaults() *InfraServicesListDfpServices500ResponseError { + this := InfraServicesListDfpServices500ResponseError{} return &this } // GetCode returns the Code field value if set, zero value otherwise. -func (o *DfpCreateOrUpdateDfp400ResponseError) GetCode() string { +func (o *InfraServicesListDfpServices500ResponseError) GetCode() string { if o == nil || IsNil(o.Code) { var ret string return ret @@ -52,7 +52,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetCode() string { // GetCodeOk returns a tuple with the Code field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DfpCreateOrUpdateDfp400ResponseError) GetCodeOk() (*string, bool) { +func (o *InfraServicesListDfpServices500ResponseError) GetCodeOk() (*string, bool) { if o == nil || IsNil(o.Code) { return nil, false } @@ -60,7 +60,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetCodeOk() (*string, bool) { } // HasCode returns a boolean if a field has been set. -func (o *DfpCreateOrUpdateDfp400ResponseError) HasCode() bool { +func (o *InfraServicesListDfpServices500ResponseError) HasCode() bool { if o != nil && !IsNil(o.Code) { return true } @@ -69,12 +69,12 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) HasCode() bool { } // SetCode gets a reference to the given string and assigns it to the Code field. -func (o *DfpCreateOrUpdateDfp400ResponseError) SetCode(v string) { +func (o *InfraServicesListDfpServices500ResponseError) SetCode(v string) { o.Code = &v } // GetMessage returns the Message field value if set, zero value otherwise. -func (o *DfpCreateOrUpdateDfp400ResponseError) GetMessage() string { +func (o *InfraServicesListDfpServices500ResponseError) GetMessage() string { if o == nil || IsNil(o.Message) { var ret string return ret @@ -84,7 +84,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetMessage() string { // 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 *DfpCreateOrUpdateDfp400ResponseError) GetMessageOk() (*string, bool) { +func (o *InfraServicesListDfpServices500ResponseError) GetMessageOk() (*string, bool) { if o == nil || IsNil(o.Message) { return nil, false } @@ -92,7 +92,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetMessageOk() (*string, bool) { } // HasMessage returns a boolean if a field has been set. -func (o *DfpCreateOrUpdateDfp400ResponseError) HasMessage() bool { +func (o *InfraServicesListDfpServices500ResponseError) HasMessage() bool { if o != nil && !IsNil(o.Message) { return true } @@ -101,12 +101,12 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) HasMessage() bool { } // SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *DfpCreateOrUpdateDfp400ResponseError) SetMessage(v string) { +func (o *InfraServicesListDfpServices500ResponseError) SetMessage(v string) { o.Message = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *DfpCreateOrUpdateDfp400ResponseError) GetStatus() string { +func (o *InfraServicesListDfpServices500ResponseError) GetStatus() string { if o == nil || IsNil(o.Status) { var ret string return ret @@ -116,7 +116,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetStatus() string { // 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 *DfpCreateOrUpdateDfp400ResponseError) GetStatusOk() (*string, bool) { +func (o *InfraServicesListDfpServices500ResponseError) GetStatusOk() (*string, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -124,7 +124,7 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) GetStatusOk() (*string, bool) { } // HasStatus returns a boolean if a field has been set. -func (o *DfpCreateOrUpdateDfp400ResponseError) HasStatus() bool { +func (o *InfraServicesListDfpServices500ResponseError) HasStatus() bool { if o != nil && !IsNil(o.Status) { return true } @@ -133,11 +133,11 @@ func (o *DfpCreateOrUpdateDfp400ResponseError) HasStatus() bool { } // SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *DfpCreateOrUpdateDfp400ResponseError) SetStatus(v string) { +func (o *InfraServicesListDfpServices500ResponseError) SetStatus(v string) { o.Status = &v } -func (o DfpCreateOrUpdateDfp400ResponseError) MarshalJSON() ([]byte, error) { +func (o InfraServicesListDfpServices500ResponseError) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -145,7 +145,7 @@ func (o DfpCreateOrUpdateDfp400ResponseError) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o DfpCreateOrUpdateDfp400ResponseError) ToMap() (map[string]interface{}, error) { +func (o InfraServicesListDfpServices500ResponseError) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Code) { toSerialize["code"] = o.Code @@ -159,38 +159,38 @@ func (o DfpCreateOrUpdateDfp400ResponseError) ToMap() (map[string]interface{}, e return toSerialize, nil } -type NullableDfpCreateOrUpdateDfp400ResponseError struct { - value *DfpCreateOrUpdateDfp400ResponseError +type NullableInfraServicesListDfpServices500ResponseError struct { + value *InfraServicesListDfpServices500ResponseError isSet bool } -func (v NullableDfpCreateOrUpdateDfp400ResponseError) Get() *DfpCreateOrUpdateDfp400ResponseError { +func (v NullableInfraServicesListDfpServices500ResponseError) Get() *InfraServicesListDfpServices500ResponseError { return v.value } -func (v *NullableDfpCreateOrUpdateDfp400ResponseError) Set(val *DfpCreateOrUpdateDfp400ResponseError) { +func (v *NullableInfraServicesListDfpServices500ResponseError) Set(val *InfraServicesListDfpServices500ResponseError) { v.value = val v.isSet = true } -func (v NullableDfpCreateOrUpdateDfp400ResponseError) IsSet() bool { +func (v NullableInfraServicesListDfpServices500ResponseError) IsSet() bool { return v.isSet } -func (v *NullableDfpCreateOrUpdateDfp400ResponseError) Unset() { +func (v *NullableInfraServicesListDfpServices500ResponseError) Unset() { v.value = nil v.isSet = false } -func NewNullableDfpCreateOrUpdateDfp400ResponseError(val *DfpCreateOrUpdateDfp400ResponseError) *NullableDfpCreateOrUpdateDfp400ResponseError { - return &NullableDfpCreateOrUpdateDfp400ResponseError{value: val, isSet: true} +func NewNullableInfraServicesListDfpServices500ResponseError(val *InfraServicesListDfpServices500ResponseError) *NullableInfraServicesListDfpServices500ResponseError { + return &NullableInfraServicesListDfpServices500ResponseError{value: val, isSet: true} } -func (v NullableDfpCreateOrUpdateDfp400ResponseError) MarshalJSON() ([]byte, error) { +func (v NullableInfraServicesListDfpServices500ResponseError) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDfpCreateOrUpdateDfp400ResponseError) UnmarshalJSON(src []byte) error { +func (v *NullableInfraServicesListDfpServices500ResponseError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/dfp/test/api_dfp_test.go b/dfp/test/api_infra_services_test.go similarity index 51% rename from dfp/test/api_dfp_test.go rename to dfp/test/api_infra_services_test.go index 8ef717f..bc5db5a 100644 --- a/dfp/test/api_dfp_test.go +++ b/dfp/test/api_infra_services_test.go @@ -1,7 +1,7 @@ /* DFP API -Testing DfpAPIService +Testing InfraServicesAPIService */ @@ -19,17 +19,17 @@ import ( "github.com/infobloxopen/bloxone-go-client/dfp" ) -func TestDfpAPIService(t *testing.T) { +func TestInfraServicesAPIService(t *testing.T) { apiClient := dfp.NewAPIClient() - t.Run("Test DfpAPIService CreateOrUpdateDfp", func(t *testing.T) { + t.Run("Test InfraServicesAPIService CreateOrUpdateDfpService", func(t *testing.T) { t.Skip("skip test") // remove to run test - var id int32 + var payloadServiceId string - resp, httpRes, err := apiClient.DfpAPI.CreateOrUpdateDfp(context.Background(), id).Execute() + resp, httpRes, err := apiClient.InfraServicesAPI.CreateOrUpdateDfpService(context.Background(), payloadServiceId).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -37,11 +37,11 @@ func TestDfpAPIService(t *testing.T) { }) - t.Run("Test DfpAPIService ListDfp", func(t *testing.T) { + t.Run("Test InfraServicesAPIService ListDfpServices", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DfpAPI.ListDfp(context.Background()).Execute() + resp, httpRes, err := apiClient.InfraServicesAPI.ListDfpServices(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -49,13 +49,13 @@ func TestDfpAPIService(t *testing.T) { }) - t.Run("Test DfpAPIService ReadDfp", func(t *testing.T) { + t.Run("Test InfraServicesAPIService ReadDfpService", func(t *testing.T) { t.Skip("skip test") // remove to run test - var id int32 + var serviceId string - resp, httpRes, err := apiClient.DfpAPI.ReadDfp(context.Background(), id).Execute() + resp, httpRes, err := apiClient.InfraServicesAPI.ReadDfpService(context.Background(), serviceId).Execute() require.Nil(t, err) require.NotNil(t, resp)